commit 243b5caf7e4acd715934de7d6d25e3a3e1406718 Author: Storozhenko Evgeny Vladimirovich aka kpa39l Date: Sun Mar 1 17:32:45 2026 +0300 Initial commit: проект документации YARU diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..994ff8c --- /dev/null +++ b/.gitignore @@ -0,0 +1,72 @@ +# Python +__pycache__/ +*.py[cod] +*$py.class +*.so +.Python +env/ +venv/ +.venv/ +ENV/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# FastAPI / Uvicorn +*.log +.env +.env.local + +# IDE +.idea/ +.vscode/ +*.swp +*.swo +*~ + +# OS +.DS_Store +Thumbs.db + +# Node (для фронтенда) +node_modules/ +npm-debug.log +yarn-error.log + +# Svelte / Vite +dist/ +.svelte-kit/ + +# Тесты +.pytest_cache/ +.coverage +htmlcov/ +.tox/ + +# Docker +docker-compose.override.yml + +# Медиафайлы (локальное хранилище) +media/ +uploads/ + +# Бэкапы БД +*.sql +backups/ + +# Временные файлы +tmp/ +temp/ +*.tmp diff --git a/QWEN.md b/QWEN.md new file mode 100644 index 0000000..a205696 --- /dev/null +++ b/QWEN.md @@ -0,0 +1,35 @@ +# Инструкции для Qwen Code + +## О проекте +**YARU** — Yet Another Russian Uncompleted... (название меняется) +Федеративная социальная сеть на базе ActivityPub, аналог Mastodon без ограничений на длину поста. + +## Общие принципы работы +- Отвечать на **русском языке** (технический код, команды, пути — без изменений) +- Задавать уточняющие вопросы при неопределённости +- Не делать предположений о технологиях без подтверждения +- Документировать все решения в `/docs` + +## Контекст проекта +- **Цель**: Создать аналог Mastodon с поддержкой длинных постов и статей +- **Протокол**: ActivityPub (Fediverse), полная совместимость с Mastodon +- **Бэкенд**: Python + FastAPI +- **Фронтенд**: Svelte (требуется проверка возможностей) +- **База данных**: PostgreSQL (основная + кэш + очереди через дополнения) +- **Редактор**: Временное решение (Chronicle в ранней разработке) +- **Рабочее название**: YARU (сменяемые подзаголовки: service, revolution, blog, fediverse) + +## Структура документации +``` +docs/ +├── README.md # Индекс всех документов +├── backend/ # Архитектура, API, БД +├── frontend/ # UI/UX, компоненты +├── marketing/ # Позиционирование, аудитория +├── design/ # Дизайн-система, макеты +├── api/ # Спецификации API +└── deployment/ # Деплой, инфраструктура +``` + +## История изменений +- **2026-03-01**: Инициализация проекта, создание структуры документации diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..c5f7e94 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,80 @@ +# Документация проекта YARU + +**Yet Another Russian Uncompleted...** — федеративная социальная сеть на базе ActivityPub + +--- + +## 📁 Разделы документации + +| Раздел | Описание | Статус | +|--------|----------|--------| +| [Backend](backend/README.md) | FastAPI, PostgreSQL, ActivityPub, экспорт данных | ✅ Заполнен | +| [Frontend](frontend/README.md) | Svelte, компоненты, редактор, real-time | ✅ Заполнен | +| [Marketing](marketing/README.md) | Позиционирование, аудитория, конкуренты, брендинг | ✅ Заполнен | +| [Design](design/README.md) | Логотип, цвета, типографика, компоненты | 📝 Требует утверждения | +| [API](api/README.md) | REST + ActivityPub спецификации | ✅ Заполнен | +| [Deployment](deployment/README.md) | Docker, CI/CD, мониторинг, бэкапы | ✅ Заполнен | + +--- + +## 🎯 О проекте + +YARU — это попытка создать альтернативу Mastodon со следующими особенностями: + +- ✅ **Без ограничений на длину поста** — пишите статьи, а не твиты +- ✅ **Экспорт данных** — ваш контент всегда принадлежит вам (Markdown + медиа) +- ✅ **Fediverse совместимость** — полная совместимость с Mastodon +- ✅ **Карма** — качественная оценка контента вместо лайков +- ✅ **Сменяемая концепция** — название адаптируется под контекст + +### Стек технологий + +| Компонент | Технология | +|-----------|------------| +| Бэкенд | Python 3.11+ + FastAPI | +| Фронтенд | Svelte 4+ + TypeScript | +| База данных | PostgreSQL 15+ (основная + кэш + очереди) | +| Протокол | ActivityPub (Fediverse) | +| Редактор | Временное решение (Chronicle в разработке) | + +--- + +## 📋 MVP функционал + +1. **Лента** — домашняя и публичная +2. **Профили** — создание, редактирование, аватар +3. **Посты** — создание, редактирование, удаление (без ограничения длины) +4. **Подписки** — follow/unfollow, список подписчиков +5. **Карма** — начисление/списание, защита от накрутки +6. **Экспорт** — выгрузка всего контента в Markdown + медиа + +--- + +## 🔍 Вопросы для обсуждения + +### Критичные для начала разработки + +1. **ActivityPub совместимость** — обсуждение полной совместимости с Mastodon (обратная связь?) +2. **Дизайн** — кто делает макеты, есть ли предпочтения по цветам/стилю? +3. **Хостинг** — где размещать (Timeweb, Selectel, Hetzner, свой сервер)? +4. **Домен** — использовать yaru.nixg.ru или купить отдельный (yaru.ru, yaru.social)? +5. **Редактор** — какой WYSIWYG выбрать для MVP (TipTap, Quill, Markdown textarea)? + +### Технические детали + +- Нужен ли SSR (SvelteKit) или достаточно SPA? +- Как хранить медиа: локально, S3, или оба варианта? +- Требуется ли модерация контента (админ-панель)? +- Нужна ли программа раннего доступа? + +--- + +## 📞 Контакты и ресурсы + +- **Репозиторий**: `yaru.nixg.ru` +- **Редактор**: [chronicle.nixg.ru](https://chronicle.nixg.ru) +- **Документация для разработчиков**: см. разделы выше + +--- + +*Последнее обновление: 2026-03-01* diff --git a/docs/api/README.md b/docs/api/README.md new file mode 100644 index 0000000..e805ebb --- /dev/null +++ b/docs/api/README.md @@ -0,0 +1,188 @@ +# API документация + +## REST API + +### Базовый URL +``` +GET/POST /api/v1/... +``` + +### Endpoints + +#### Аутентификация +| Метод | Endpoint | Описание | +|-------|----------|----------| +| POST | `/oauth/token` | Получение JWT токена | +| POST | `/api/v1/accounts` | Регистрация | +| GET | `/api/v1/accounts/verify_credentials` | Текущий пользователь | + +#### Посты +| Метод | Endpoint | Описание | +|-------|----------|----------| +| GET | `/api/v1/statuses/:id` | Получить пост | +| POST | `/api/v1/statuses` | Создать пост | +| DELETE | `/api/v1/statuses/:id` | Удалить пост | +| POST | `/api/v1/statuses/:id/like` | Лайк | +| POST | `/api/v1/statuses/:id/reblog` | Репост | + +#### Ленты +| Метод | Endpoint | Описание | +|-------|----------|----------| +| GET | `/api/v1/timelines/home` | Домашняя лента | +| GET | `/api/v1/timelines/public` | Публичная лента | +| GET | `/api/v1/accounts/:id/statuses` | Посты пользователя | + +#### Подписки +| Метод | Endpoint | Описание | +|-------|----------|----------| +| GET | `/api/v1/accounts/:id/followers` | Подписчики | +| GET | `/api/v1/accounts/:id/following` | Подписки | +| POST | `/api/v1/accounts/:id/follow` | Подписаться | +| POST | `/api/v1/accounts/:id/unfollow` | Отписаться | + +#### Карма +| Метод | Endpoint | Описание | +|-------|----------|----------| +| GET | `/api/v1/accounts/:id/karma` | Карма пользователя | +| GET | `/api/v1/karma/history` | История кармы (текущий пользователь) | + +#### Экспорт +| Метод | Endpoint | Описание | +|-------|----------|----------| +| POST | `/api/v1/export` | Запрос экспорта данных | +| GET | `/api/v1/export/:job_id` | Статус экспорта | +| GET | `/api/v1/export/:job_id/download` | Скачивание архива | + +--- + +## ActivityPub API + +### WebFinger +``` +GET /.well-known/webfinger?resource=acct:{username}@{domain} +``` + +**Ответ**: +```json +{ + "subject": "acct:username@yaru.nixg.ru", + "links": [ + { + "rel": "self", + "type": "application/activity+json", + "href": "https://yaru.nixg.ru/users/username" + } + ] +} +``` + +### Actor (Профиль пользователя) +``` +GET /users/{username} +``` + +**Ответ** (ActivityPub Actor): +```json +{ + "@context": [ + "https://www.w3.org/ns/activitystreams", + "https://w3id.org/security/v1" + ], + "id": "https://yaru.nixg.ru/users/username", + "type": "Person", + "preferredUsername": "username", + "name": "Display Name", + "summary": "

Bio text

", + "inbox": "https://yaru.nixg.ru/users/username/inbox", + "outbox": "https://yaru.nixg.ru/users/username/outbox", + "followers": "https://yaru.nixg.ru/users/username/followers", + "following": "https://yaru.nixg.ru/users/username/following", + "publicKey": { + "id": "https://yaru.nixg.ru/users/username#main-key", + "owner": "https://yaru.nixg.ru/users/username", + "publicKeyPem": "-----BEGIN PUBLIC KEY-----..." + } +} +``` + +### Inbox (Входящие активности) +``` +POST /users/{username}/inbox +``` + +**Принимаемые активности**: +- `Follow` — запрос подписки +- `Undo` — отмена подписки/лайка +- `Create` — новый пост (от подписчиков) +- `Like` — лайк поста +- `Announce` — репост + +### Outbox (Исходящие активности) +``` +GET /users/{username}/outbox +``` + +**Ответ**: +```json +{ + "@context": "https://www.w3.org/ns/activitystreams", + "id": "https://yaru.nixg.ru/users/username/outbox", + "type": "OrderedCollection", + "totalItems": 42, + "orderedItems": [ + { + "id": "https://yaru.nixg.ru/statuses/123/activity", + "type": "Create", + "actor": "https://yaru.nixg.ru/users/username", + "object": { ... } + } + ] +} +``` + +--- + +## Формат ошибок + +```json +{ + "error": { + "code": "VALIDATION_ERROR", + "message": "Поле 'content' не может быть пустым", + "details": { + "field": "content", + "reason": "required" + } + } +} +``` + +### Коды ошибок +| Код | HTTP статус | Описание | +|-----|-------------|----------| +| `VALIDATION_ERROR` | 400 | Ошибка валидации | +| `UNAUTHORIZED` | 401 | Не авторизован | +| `FORBIDDEN` | 403 | Нет доступа | +| `NOT_FOUND` | 404 | Ресурс не найден | +| `RATE_LIMITED` | 429 | Превышен лимит | +| `INTERNAL_ERROR` | 500 | Внутренняя ошибка | + +--- + +## Rate Limiting + +| Endpoint | Лимит | Окно | +|----------|-------|------| +| `/api/v1/statuses` | 10 запросов | 1 минута | +| `/api/v1/timelines/*` | 60 запросов | 1 минута | +| `/oauth/token` | 5 запросов | 1 минута | +| `/api/v1/export` | 1 запрос | 1 час | + +--- + +## Вопросы для обсуждения + +- [ ] Нужна ли пагинация через cursor или offset? +- [ ] Требуется ли версионирование API (`/api/v2/...`)? +- [ ] Какие поля включать в ответ при ошибке? +- [ ] Нужна ли поддержка GraphQL для сложных запросов? diff --git a/docs/backend/README.md b/docs/backend/README.md new file mode 100644 index 0000000..ecab497 --- /dev/null +++ b/docs/backend/README.md @@ -0,0 +1,130 @@ +# Backend документация + +## Стек технологий + +| Компонент | Технология | Примечание | +|-----------|------------|------------| +| Язык | Python 3.11+ | | +| Фреймворк | FastAPI | Асинхронный, автодокументация | +| База данных | PostgreSQL 15+ | Основная БД | +| Кэш | PostgreSQL + pg_redis | Или Redis через extension | +| Очереди | PostgreSQL + pgqueue | Или Celery + Redis | +| ORM | SQLAlchemy 2.0 + Async | Асинхронная работа | + +--- + +## Архитектура сервера + +``` +┌─────────────────────────────────────────────────────────┐ +│ FastAPI App │ +├─────────────┬─────────────┬─────────────┬───────────────┤ +│ REST API │ ActivityPub │ Auth API │ Export API │ +│ (лента, │ (inbox, │ (OAuth2, │ (markdown, │ +│ профили) │ outbox) │ JWT) │ медиа) │ +└─────────────┴─────────────┴─────────────┴───────────────┘ + │ + ┌─────────▼──────────┐ + │ PostgreSQL │ + │ ───────────────── │ + │ • pg_redis (кэш) │ + │ • pgqueue (очереди)│ + │ • pg_trgm (поиск) │ + └────────────────────┘ +``` + +--- + +## Требования к бэкенду + +### 1. ActivityPub реализация + +- [ ] **Inbox** — приём активностей от других серверов +- [ ] **Outbox** — отправка активностей подписчикам +- [ ] **WebFinger** — обнаружение пользователей по @username@domain +- [ ] **Actor** — профиль пользователя в формате ActivityPub +- [ ] **Follow/Unfollow** — подписки между серверами +- [ ] **Create/Update/Delete** — посты и их редактирование +- [ ] **Like/Announce** — лайки и репосты +- [ ] **Mastodon совместимость** — тестирование с mastodon.social + +### 2. REST API + +- [ ] `/api/v1/accounts` — управление профилем +- [ ] `/api/v1/statuses` — создание/чтение постов +- [ ] `/api/v1/timelines/home` — домашняя лента +- [ ] `/api/v1/timelines/public` — публичная лента +- [ ] `/api/v1/follows` — подписки +- [ ] `/api/v1/karma` — карма пользователя + +### 3. База данных (PostgreSQL) + +#### Основные таблицы: +- `users` — пользователи (id, username, domain, display_name, bio, karma) +- `posts` — посты (id, user_id, content, content_type, created_at) +- `follows` — подписки (follower_id, following_id, created_at) +- `likes` — лайки (user_id, post_id, created_at) +- `media` — медиафайлы (id, user_id, filename, mime_type, size) +- `activities` — ActivityPub активности (id, type, actor, object, timestamp) + +#### PostgreSQL расширения: +- `pg_trgm` — полнотекстовый поиск по постам +- `pg_redis` — кэширование лент +- `pgqueue` — фоновые задачи (отправка активностей) + +### 4. Экспорт контента + +**Требование**: Пользователь может экспортировать весь свой контент в виде: + +``` +export_username_2026-03-01/ +├── profile.md # Информация о профиле +├── posts/ +│ ├── 2026-03-01_post-123.md +│ ├── 2026-03-02_post-124.md +│ └── ... +├── media/ +│ ├── image-001.png +│ ├── image-002.jpg +│ └── ... +└── manifest.json # Структура экспорта +``` + +- [ ] Формат постов — Markdown с frontmatter (дата, теги, карма) +- [ ] Медиа — оригинальные файлы с переименованием +- [ ] Manifest — JSON со списком всех файлов и метаданными +- [ ] API endpoint: `GET /api/v1/export/@username` + +### 5. Аутентификация + +- [ ] OAuth2 + JWT токены +- [ ] Поддержка Application Passwords для клиентов +- [ ] Сессии с возможностью отзыва + +### 6. Карма + +- [ ] Механизм начисления/списания кармы +- [ ] Защита от накрутки (лимиты, анти-спам) +- [ ] История изменений кармы + +--- + +## План разработки бэкенда + +1. [ ] Настройка проекта FastAPI + SQLAlchemy +2. [ ] Модели базы данных (users, posts, follows, likes) +3. [ ] REST API (CRUD для постов, профили) +4. [ ] ActivityPub базовая реализация (Actor, Outbox) +5. [ ] ActivityPub полная реализация (Inbox, Federation) +6. [ ] Экспорт контента (Markdown + медиа) +7. [ ] Система кармы +8. [ ] Тестирование совместимости с Mastodon + +--- + +## Вопросы для обсуждения + +- [ ] Нужно ли поддерживать совместимость с другими Fediverse-серверами (Pleroma, Pixelfed)? +- [ ] Требуется ли rate limiting на API? Какие лимиты? +- [ ] Как хранить медиа: локально, S3, или оба варианта? +- [ ] Нужна ли модерация контента (админ-панель)? diff --git a/docs/deployment/README.md b/docs/deployment/README.md new file mode 100644 index 0000000..20d6ccf --- /dev/null +++ b/docs/deployment/README.md @@ -0,0 +1,205 @@ +# Деплой и инфраструктура + +## Архитектура развёртывания + +``` + ┌─────────────────┐ + │ Nginx/Traefik │ + │ (reverse proxy)│ + └────────┬────────┘ + │ + ┌──────────────┼──────────────┐ + │ │ │ + ┌────────▼───────┐ ┌───▼────────┐ ┌───▼────────┐ + │ FastAPI App │ │ FastAPI │ │ PostgreSQL│ + │ (instance 1) │ │ (instance 2)│ │ + pgqueue │ + └────────────────┘ └────────────┘ └────────────┘ +``` + +--- + +## Docker контейнеризация + +### Структура проекта +``` +yaru.nixg.ru/ +├── docker-compose.yml # Основной compose для разработки +├── docker-compose.prod.yml # Production конфигурация +├── Dockerfile # Образ приложения +└── docker/ + ├── nginx/ + └── postgres/ +``` + +### docker-compose.yml (разработка) +```yaml +version: '3.8' + +services: + db: + image: postgres:15 + environment: + POSTGRES_DB: yaru + POSTGRES_USER: yaru + POSTGRES_PASSWORD: yaru_dev + volumes: + - postgres_data:/var/lib/postgresql/data + + app: + build: . + command: uvicorn main:app --reload --host 0.0.0.0 + volumes: + - .:/app + environment: + DATABASE_URL: postgresql://yaru:yaru_dev@db/yaru + depends_on: + - db + + nginx: + image: nginx:alpine + ports: + - "8000:80" + volumes: + - ./docker/nginx/dev.conf:/etc/nginx/nginx.conf + +volumes: + postgres_data: +``` + +--- + +## Production развёртывание + +### Требования +- [ ] VPS с Ubuntu 22.04+ (минимум 2GB RAM, 2 CPU) +- [ ] Домен с настроенным DNS +- [ ] SSL сертификат (Let's Encrypt) + +### Переменные окружения (production) +```bash +# База данных +DATABASE_URL=postgresql://yaru:***@localhost/yaru_prod +DATABASE_POOL_SIZE=20 + +# Безопасность +SECRET_KEY=*** +JWT_EXPIRE_HOURS=24 + +# Файлы +MEDIA_ROOT=/var/yaru/media +MAX_UPLOAD_SIZE=50MB + +# Fediverse +SERVER_DOMAIN=yaru.nixg.ru +SERVER_NAME=YARU + +# Логирование +LOG_LEVEL=INFO +``` + +--- + +## CI/CD пайплайн + +### GitHub Actions (пример) +```yaml +name: Deploy + +on: + push: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run tests + run: pytest + + deploy: + needs: test + runs-on: ubuntu-latest + steps: + - name: Deploy to VPS + run: | + ssh user@server "cd /var/yaru && docker-compose pull && docker-compose up -d" +``` + +--- + +## Мониторинг и логирование + +### Логи +- [ ] Access logs (Nginx) +- [ ] Application logs (FastAPI → JSON format) +- [ ] Database logs (PostgreSQL slow queries) + +### Метрики для мониторинга +- [ ] Response time (p50, p95, p99) +- [ ] Error rate +- [ ] Active users +- [ ] Posts per hour +- [ ] Federation activities + +### Инструменты +- [ ] Prometheus + Grafana (метрики) +- [ ] Loki (логи) +- [ ] Uptime Kuma (доступность) + +--- + +## Резервное копирование + +### Что备份ровать +- [ ] PostgreSQL дамп (ежедневно) +- [ ] Медиафайлы (ежедневно) +- [ ] Конфигурационные файлы + +### Стратегия +```bash +# Ежедневный бэкап БД +pg_dump -U yaru yaru > /backups/yaru_$(date +%Y%m%d).sql + +# Синхронизация медиа +rsync -av /var/yaru/media /backups/media/ + +# Хранение: 7 дней локально, 30 дней в облаке +``` + +--- + +## Масштабирование + +### Горизонтальное +- [ ] Несколько инстансов FastAPI за load balancer +- [ ] PostgreSQL репликация (read replicas) +- [ ] CDN для статики и медиа + +### Оптимизация +- [ ] Кэширование лент в Redis +- [ ] Индексы PostgreSQL для частых запросов +- [ ] Фоновая отправка ActivityPub через очереди + +--- + +## Чеклист деплоя + +- [ ] Купить домен, настроить DNS +- [ ] Подготовить VPS (Ubuntu, firewall, SSH keys) +- [ ] Установить Docker + Docker Compose +- [ ] Настроить Nginx + SSL (Let's Encrypt) +- [ ] Развернуть PostgreSQL +- [ ] Запустить FastAPI приложение +- [ ] Настроить бэкапы +- [ ] Настроить мониторинг +- [ ] Протестировать ActivityPub federation + +--- + +## Вопросы для обсуждения + +- [ ] Какой хостинг выбрать (Timeweb, Selectel, Hetzner, DigitalOcean)? +- [ ] Нужен ли отдельный сервер для БД или всё на одном VPS? +- [ ] Использовать ли managed PostgreSQL или свой инстанс? +- [ ] Требуется ли CDN для медиа (Cloudflare, BunnyCDN)? diff --git a/docs/design/README.md b/docs/design/README.md new file mode 100644 index 0000000..0d1ba94 --- /dev/null +++ b/docs/design/README.md @@ -0,0 +1,129 @@ +# Дизайн документация + +## План раздела + +- [ ] Логотип и фирменный стиль +- [ ] Цветовая палитра +- [ ] Типографика +- [ ] Дизайн-система компонентов +- [ ] Макеты основных страниц +- [ ] Анимации и переходы + +--- + +## Логотип + +### Концепция +- **Минимализм** — простой запоминающийся символ +- **Адаптивность** — работает с разными подзаголовками +- **Fediverse связь** — визуальная ассоциация с федеративными сетями + +### Варианты +- [ ] Основной логотип (цветной) +- [ ] Монохромная версия +- [ ] Иконка для favicon/app +- [ ] Версия с подзаголовком (YARU Service/Revolution/Blog/Fediverse) + +--- + +## Цветовая палитра + +### Основная (требует утверждения) + +| Цвет | HEX | Использование | +|------|-----|---------------| +| Primary | `# TBD` | Кнопки, ссылки, акценты | +| Secondary | `# TBD` | Вторичные элементы | +| Background | `# TBD` | Фон приложения | +| Surface | `# TBD` | Карточки, панели | +| Text Primary | `# TBD` | Основной текст | +| Text Secondary | `# TBD` | Вторичный текст | +| Success | `# TBD` | Положительные действия | +| Error | `# TBD` | Ошибки | +| Warning | `# TBD` | Предупреждения | + +### Тёмная тема +- [ ] Определить цвета для тёмной темы +- [ ] Автоматическое переключение по системным настройкам + +--- + +## Типографика + +### Шрифты (требует выбора) +- [ ] Основной шрифт: **TBD** (Inter, Roboto, Open Sans?) +- [ ] Моноширинный: **TBD** (Fira Code, JetBrains Mono?) +- [ ] Поддержка кириллицы + +### Иерархия +``` +H1 — Заголовки страниц (32px) +H2 — Разделы (24px) +H3 — Подразделы (20px) +Body — Основной текст (16px) +Small — Вторичный текст (14px) +``` + +--- + +## Компоненты дизайн-системы + +### Базовые компоненты +- [ ] Button (primary, secondary, outline, ghost) +- [ ] Input (text, textarea, password) +- [ ] Card (пост, профиль) +- [ ] Avatar (пользователь) +- [ ] Badge (теги, статусы) +- [ ] Modal (диалоги) +- [ ] Toast (уведомления) +- [ ] Spinner (загрузка) +- [ ] Dropdown (меню) + +### Специфичные компоненты +- [ ] PostCard (пост с контентом, медиа, кармой) +- [ ] KarmaCounter (отображение кармы) +- [ ] FollowButton (подписка/отписка) +- [ ] Timeline (лента постов) +- [ ] Composer (создание поста) + +--- + +## Макеты страниц + +### Требуемые макеты +- [ ] Главная страница (лента) +- [ ] Профиль пользователя +- [ ] Создание поста +- [ ] Настройки +- [ ] Страница поста (детальный просмотр) +- [ ] Подписки/подписчики +- [ ] Поиск +- [ ] Landing page (для неавторизованных) + +### Формат макетов +- [ ] Figma (предпочтительно) +- [ ] Или экспорты в PNG/SVG +- [ ] Mobile + Desktop версии + +--- + +## Анимации и переходы + +### Микроанимации +- [ ] Hover эффекты на кнопках +- [ ] Плавное появление постов в ленте +- [ ] Анимация лайка/репоста +- [ ] Индикатор загрузки + +### Переходы между страницами +- [ ] Fade-in/fade-out +- [ ] Slide переходы для mobile + +--- + +## Вопросы для обсуждения + +- [ ] Есть ли предпочтения по цветовой схеме (тёплая/холодная)? +- [ ] Нужен ли готовый UI kit (Material, Chakra) или кастомный дизайн? +- [ ] Кто будет делать макеты (самостоятельно или заказывать)? +- [ ] Требуется ли brandbook документ? diff --git a/docs/frontend/README.md b/docs/frontend/README.md new file mode 100644 index 0000000..1ff5b1a --- /dev/null +++ b/docs/frontend/README.md @@ -0,0 +1,94 @@ +# Frontend документация + +## Стек технологий + +| Компонент | Технология | Примечание | +|-----------|------------|------------| +| Фреймворк | Svelte 4+ | Проверка достаточности возможностей | +| Язык | TypeScript | Строгая типизация | +| Сборщик | Vite | Быстрая разработка | +| Стили | SCSS + CSS Modules | Или Tailwind CSS | +| Состояние | Svelte Stores | Или Zustand-like решение | +| Роутинг | SvelteKit | Если нужен SSR | + +--- + +## Требования к фронтенду + +### 1. Основные страницы + +- [ ] **Лента (Home)** — посты подписок, бесконечный скролл +- [ ] **Публичная лента** — все посты сервера +- [ ] **Профиль пользователя** — аватар, био, карма, посты +- [ ] **Создание поста** — текстовый редактор + загрузка медиа +- [ ] **Пост (детальный просмотр)** — комментарии, лайки, репосты +- [ ] **Подписки/Подписчики** — списки пользователей +- [ ] **Настройки** — профиль, безопасность, экспорт данных + +### 2. Компоненты интерфейса + +- [ ] `PostCard` — отображение поста (текст, медиа, карма) +- [ ] `UserProfile` — карточка пользователя +- [ ] `Composer` — форма создания поста +- [ ] `Timeline` — лента постов с пагинацией +- [ ] `MediaGallery` — галерея изображений/видео +- [ ] `KarmaDisplay` — отображение кармы +- [ ] `FollowButton` — кнопка подписки/отписки + +### 3. Интеграция с редактором + +**Временно**: Используем готовые решения: +- [ ] TipTap — расширяемый WYSIWYG редактор +- [ ] Quill — простой редактор с Markdown поддержкой +- [ ] Markdown textarea — резервный вариант + +**В будущем**: Интеграция с Chronicle.nixg.ru + +### 4. Управление состоянием + +- [ ] Глобальное состояние: текущий пользователь, настройки +- [ ] Кэш постов: оптимистичное обновление UI +- [ ] Real-time обновления: WebSocket для новых постов + +### 5. Адаптивный дизайн + +- [ ] Mobile first подход +- [ ] Поддержка тёмной темы +- [ ] PWA возможности (оффлайн режим, push уведомления) + +### 6. Экспорт данных (UI) + +- [ ] Кнопка "Экспортировать мои данные" в настройках +- [ ] Прогресс-бар экспорта +- [ ] Скачивание ZIP архива с контентом + +--- + +## Вопросы для проверки Svelte + +- [ ] Хватит ли Svelte Stores для сложного состояния (лента + real-time)? +- [ ] Нужен ли SSR через SvelteKit для SEO? +- [ ] Поддержка WebSocket в Svelte (для live обновлений)? +- [ ] Производительность при большом количестве постов в ленте? + +--- + +## План разработки фронтенда + +1. [ ] Настройка Svelte + Vite + TypeScript +2. [ ] Базовая структура проекта (роуты, layout) +3. [ ] Компоненты: PostCard, UserProfile, Timeline +4. [ ] Интеграция с REST API бэкенда +5. [ ] Страница создания поста (редактор + медиа) +6. [ ] Real-time обновления (WebSocket) +7. [ ] Экспорт данных (UI + download) +8. [ ] Адаптивность + тёмная тема + +--- + +## Вопросы для обсуждения + +- [ ] Нужен ли SSR (SvelteKit) или достаточно SPA? +- [ ] Какой редактор выбрать для MVP (TipTap/Quill/Markdown)? +- [ ] Требуется ли поддержка PWA (оффлайн, push)? +- [ ] Нужна ли локализация интерфейса (только русский или мультиязычность)? diff --git a/docs/marketing/README.md b/docs/marketing/README.md new file mode 100644 index 0000000..98254c8 --- /dev/null +++ b/docs/marketing/README.md @@ -0,0 +1,110 @@ +# Маркетинговая документация + +## Позиционирование проекта + +**YARU** — Yet Another Russian Uncompleted... +*Федеративная социальная сеть для тех, кому есть что сказать* + +### УТП (Уникальное Торговое Предложение) + +1. **Без ограничений на длину** — пишите статьи, а не твиты +2. **Экспорт данных** — ваш контент всегда принадлежит вам +3. **Fediverse совместимость** — общайтесь с пользователями Mastodon +4. **Карма вместо лайков** — качественная оценка контента +5. **Русскоязычное сообщество** — локальная аудитория + +--- + +## Целевая аудитория + +| Сегмент | Описание | Потребности | +|---------|----------|-------------| +| Блогеры | Авторы длинных постов | Удобный редактор, форматирование | +| Мигранты из Twitter | Ищут альтернативу | Fediverse совместимость | +| Технические писатели | Документация, статьи | Markdown, экспорт | +| Приватные пользователи | Закрытые сообщества | Контроль аудитории | + +--- + +## Анализ конкурентов + +### Mastodon +| Плюсы | Минусы | +|-------|--------| +| Большая аудитория | Ограничение 500 символов | +| Fediverse совместимость | Нет экспорта данных | +| Открытый код | Сложный интерфейс для новичков | + +### Threads (Meta) +| Плюсы | Минусы | +|-------|--------| +| Простота | Закрытая экосистема | +| Интеграция с Instagram | Нет федерации | +| | Проблемы с приватностью | + +### Bluesky +| Плюсы | Минусы | +|-------|--------| +| AT Protocol | Только английский язык | +| Без ограничений | Закрытый доступ (invite) | +| | Нет Fediverse совместимости | + +--- + +## Сменяемая концепция названия + +**YARU** — базовое название с динамическим подзаголовком: + +- **YARU Service** — акцент на сервис для пользователей +- **YARU Revolution** — революция в социальных сетях +- **YARU Blog** — платформа для блогинга +- **YARU Fediverse** — часть федеративной сети + +*Реализация*: Подзаголовок меняется в заголовке сайта и мета-тегах. + +--- + +## Стратегия продвижения + +### Этап 1: Pre-launch +- [ ] Создать landing page с описанием проекта +- [ ] Собрать email ранних пользователей +- [ ] Публикация в тематических Telegram-каналах + +### Этап 2: Launch +- [ ] Открыть регистрацию для первых 1000 пользователей +- [ ] Публикация на Habr, VC.ru +- [ ] Участие в Fediverse сообществах + +### Этап 3: Growth +- [ ] Реферальная программа +- [ ] Интеграции с другими сервисами +- [ ] Партнёрства с блогерами + +--- + +## Брендинг + +### Название +- **Основное**: YARU +- **Расшифровка**: Yet Another Russian Uncompleted... +- **Домен**: yaru.nixg.ru (рабочий) + +### Логотип +- [ ] Простой, запоминающийся символ +- [ ] Адаптация под сменяемые подзаголовки +- [ ] Версии: светлая/тёмная, цветная/монохром + +### Цветовая схема +- [ ] Основной цвет: ( TBD ) +- [ ] Акцентные цвета: ( TBD ) +- [ ] Тёмная тема: ( TBD ) + +--- + +## Вопросы для обсуждения + +- [ ] Нужно ли регистрировать отдельный домен (yaru.ru, yaru.social)? +- [ ] Какой подзаголовок использовать для запуска? +- [ ] Требуется ли программа раннего доступа? +- [ ] Как работать с модерацией контента (правила сообщества)? diff --git a/ПБ017 - Свой Яру/2014-07-02 21-54-18 Официальный блог Яндекса - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-02 21-54-18 Официальный блог Яндекса - Google Chrome.png new file mode 100644 index 0000000..ff722ca Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-02 21-54-18 Официальный блог Яндекса - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-23-19 Кразя Отзывы — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-23-19 Кразя Отзывы — я.ру - Google Chrome.png new file mode 100644 index 0000000..c874350 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-23-19 Кразя Отзывы — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-23-56 Кразя Отзывы — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-23-56 Кразя Отзывы — я.ру - Google Chrome.png new file mode 100644 index 0000000..b2f02ba Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-23-56 Кразя Отзывы — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-24-34 Скриншот экрана.png b/ПБ017 - Свой Яру/2014-07-03 01-24-34 Скриншот экрана.png new file mode 100644 index 0000000..08200d9 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-24-34 Скриншот экрана.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-25-55 Записать мысль — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-25-55 Записать мысль — я.ру - Google Chrome.png new file mode 100644 index 0000000..dcb971e Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-25-55 Записать мысль — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-26-25 Вывесить фотку — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-26-25 Вывесить фотку — я.ру - Google Chrome.png new file mode 100644 index 0000000..ea0992f Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-26-25 Вывесить фотку — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-27-01 Поделиться настроением — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-27-01 Поделиться настроением — я.ру - Google Chrome.png new file mode 100644 index 0000000..a065d0f Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-27-01 Поделиться настроением — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-27-55 Создать опрос — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-27-55 Создать опрос — я.ру - Google Chrome.png new file mode 100644 index 0000000..192677c Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-27-55 Создать опрос — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-28-51 Записать желание — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-28-51 Записать желание — я.ру - Google Chrome.png new file mode 100644 index 0000000..d971065 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-28-51 Записать желание — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-29-45 Написать отзыв — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-29-45 Написать отзыв — я.ру - Google Chrome.png new file mode 100644 index 0000000..55241a8 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-29-45 Написать отзыв — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-30-18 Поделиться ссылкой — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-30-18 Поделиться ссылкой — я.ру - Google Chrome.png new file mode 100644 index 0000000..7a18d53 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-30-18 Поделиться ссылкой — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-30-58 Сменить портрет — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-30-58 Сменить портрет — я.ру - Google Chrome.png new file mode 100644 index 0000000..ae169d5 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-30-58 Сменить портрет — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-31-36 Найти новых друзей — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-31-36 Найти новых друзей — я.ру - Google Chrome.png new file mode 100644 index 0000000..9d656f3 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-31-36 Найти новых друзей — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-32-08 Пригласить друга — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-32-08 Пригласить друга — я.ру - Google Chrome.png new file mode 100644 index 0000000..e3f7ea1 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-32-08 Пригласить друга — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-32-41 Обратиться к гостям — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-32-41 Обратиться к гостям — я.ру - Google Chrome.png new file mode 100644 index 0000000..7ea3aa0 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-32-41 Обратиться к гостям — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-33-33 Кразя Дневник — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-33-33 Кразя Дневник — я.ру - Google Chrome.png new file mode 100644 index 0000000..0b3a291 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-33-33 Кразя Дневник — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-33-58 Кразя Дневник — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-33-58 Кразя Дневник — я.ру - Google Chrome.png new file mode 100644 index 0000000..54194af Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-33-58 Кразя Дневник — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-34-40 Настройки Моя страница — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-34-40 Настройки Моя страница — я.ру - Google Chrome.png new file mode 100644 index 0000000..6d05168 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-34-40 Настройки Моя страница — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-35-09 Настройки анкета — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-35-09 Настройки анкета — я.ру - Google Chrome.png new file mode 100644 index 0000000..32205c8 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-35-09 Настройки анкета — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-35-57 Настройка блоков — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-35-57 Настройка блоков — я.ру - Google Chrome.png new file mode 100644 index 0000000..c859585 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-35-57 Настройка блоков — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-36-11 Настройка блоков — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-36-11 Настройка блоков — я.ру - Google Chrome.png new file mode 100644 index 0000000..83208b5 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-36-11 Настройка блоков — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-36-40 Настройки друзья — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-36-40 Настройки друзья — я.ру - Google Chrome.png new file mode 100644 index 0000000..ed176a7 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-36-40 Настройки друзья — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-37-01 Настройки мои дневники — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-37-01 Настройки мои дневники — я.ру - Google Chrome.png new file mode 100644 index 0000000..ddb12cf Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-37-01 Настройки мои дневники — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-37-38 Настройки мои дневники — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-37-38 Настройки мои дневники — я.ру - Google Chrome.png new file mode 100644 index 0000000..d8b2713 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-37-38 Настройки мои дневники — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-38-24 Настройки мои дневники — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-38-24 Настройки мои дневники — я.ру - Google Chrome.png new file mode 100644 index 0000000..a2ef7e2 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-38-24 Настройки мои дневники — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-39-06 Мои настройки на Яндекс.Фотках - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-39-06 Мои настройки на Яндекс.Фотках - Google Chrome.png new file mode 100644 index 0000000..1c040bd Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-39-06 Мои настройки на Яндекс.Фотках - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-39-26 Настройки почтовые уведомления — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-39-26 Настройки почтовые уведомления — я.ру - Google Chrome.png new file mode 100644 index 0000000..d78327b Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-39-26 Настройки почтовые уведомления — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-39-46 Настройки типы записей — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-39-46 Настройки типы записей — я.ру - Google Chrome.png new file mode 100644 index 0000000..80fef9e Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-39-46 Настройки типы записей — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-40-46 Настройки доступ — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-40-46 Настройки доступ — я.ру - Google Chrome.png new file mode 100644 index 0000000..a5948ba Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-40-46 Настройки доступ — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-41-22 Настройки прочее — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-41-22 Настройки прочее — я.ру - Google Chrome.png new file mode 100644 index 0000000..2218ba7 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-41-22 Настройки прочее — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-41-44 Настройки прочее — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-41-44 Настройки прочее — я.ру - Google Chrome.png new file mode 100644 index 0000000..b2491d2 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-41-44 Настройки прочее — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/2014-07-03 01-42-24 Что нового у друзей Кразя — я.ру - Google Chrome.png b/ПБ017 - Свой Яру/2014-07-03 01-42-24 Что нового у друзей Кразя — я.ру - Google Chrome.png new file mode 100644 index 0000000..f71af96 Binary files /dev/null and b/ПБ017 - Свой Яру/2014-07-03 01-42-24 Что нового у друзей Кразя — я.ру - Google Chrome.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру.htm b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру.htm new file mode 100644 index 0000000..c1140ea --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру.htm @@ -0,0 +1,82 @@ + + +Fidelio V8 — я.ру
+ + + +
ПоискПочтаДискКалендарьДеньгиМой КругФотки
+ + Выход

Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

(^_^)

премодерируемый клуб по приглашениям для взрослых  

Вы являетесь создателем этого клуба
+
+
+
+ Новостей пока нет. Чтобы написать первую новость, нажмите кнопку «добавить». +

В клубе пока не было ни одного опроса. Чтобы создать первый, нажмите кнопку «создать».

О клубе
12 декабря 2012 года, 11:06
О клубе
Надоело каждый раз вспоминать что и когда делал с Фиделио или звонить по каждому поводу в ХРС. Поэтому для облегчения жизни себе и окружающим буду всю инфу пропускать через этот клуб.
В клубе действуют стандартные правила. +
Cтандартные правила клуба

+В клубе запрещено:

    +
  1. Писать сообщения, противоречащие законодательству РФ. +
  2. +
  3. Оскорблять других участников клуба. +
  4. +
  5. Размещать материалы эротического характера. +
  6. +
  7. Размещать рекламу. +
  8. +
  9. Размещать записи, не соответствующие теме клуба. +
  10. +

+В случае нарушения правил ваши записи могут быть удалены, а вы сами – исключены из клуба.

записи по месяцам · меткам · типам

выделить все / снять выделение

Показать
Кразя написал
изменено 12 декабря 2012 года, в 11:38
(^_^)
Отчет HSKP по изменению статусов номеров

Руководство хочет видеть объёмы работ горничных. И то как меняется количество грязных номеров.
Номера в ремонте. А так же сверху на всё это наложить и заполняемость.


+ β-версия + + + + + + +

 

Что получается:  +   + изменить  +
Подписаться на комментарии к записи

Получать уведомления о всех ответах в этом обсуждении.

 
Отписаться от комментарев к записи

Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

 
К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
+ \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/-data=url=http%3A%2F%2Fclubs.ya.ru%2F4611686018427470627%2F b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/-data=url=http%3A%2F%2Fclubs.ya.ru%2F4611686018427470627%2F new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/-data=url=http%3A%2F%2Fclubs.ya.ru%2F4611686018427470627%2F @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
    {popup_items}
'].join(""),popup_item:'
  • {title}
  • ',popup_item_selected:'
  • {title}
  • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
    ','','
    ','
    ','','','','
    {content}',"
    ","
    ","
    ","
    "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
      {items}
    ',""].join(""));a.templates.menuItem=a.template(['
  • ','
    ','{title}',"
    ","
  • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
    ','',"
    ",""].join("")),itemResult:a(['
    ','
    ','
    ','
    ',"
    {title}",'{count}',"
    ","
    "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
    {items}{actions}
    '),actionLink:a('
    {title}
    '),expired:a('
    {title}
    ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
    ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
     
    ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
    обновление...
    ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
    {(moreAsUpdate)[
    я в курсе
    ]}
    {(allItems)({(moreAsUpdate)()[]})}
    '),viewportLayout:b('
    {(titleButton)({titleButton})}
    показать ещё
    '),group:b('
    {timestamp}
    {items}
    '),item:b('
    {user} — {title}
    '),likeItem:b('
    {user} {appreciate} запись {title}
    '),recommendItem:b(''),replyItem:b('
    {user}{separator} {title}
    '),photoItem:b('
    {alt}
    '),videoItem:b('
    {duration}
    '),videoContainer:b('
    {items}
    '),albumsContainer:b('
    {items}
    '),videoCollection:a.template('
    {content}
    ',{content:""}),videoCollectionItem:b('
    {count} видео
    '),albumItem:b('
    {title}
    {count}
    '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
    {title}
    '),wishlistItem:b('
    {title}
    {title}
    '),wishlistPromisedItem:b('
    {info}
    {title}
    отменить
    '),ratingInfo:b(''),onload:b('
     
    '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
    ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
    "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
    ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
    ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
    Поделится с друзьями!
    {items}
    '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
      ',"
    ","",'
    ','

    Метки

    ','
      ','
    • ','
      ','','',"
      ","
    • ",'
    • добавлять метки могут только модераторы клуба
    • ',"
    ","
    ",'
    ','

    Основные:

    ','
      ',"
    ","
    "].join(""),keyword:['
  • ','
    ','{title}',"
    ","
  • "].join(""),active:['
  • ','
    ','{title} x',"","
    ","
  • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
    {prev}{next}
    ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
    ','
    ',"{userpics}","
    ",'
    ','◄','►',"
    ","
    "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
    ','
    ','

    Запись будет опубликована в вашем дневнике.

    ','
      ','
    • ','
      ','Опубликовать в клубе?',"
      ","
    • ","
    ","
    ",'",'","
    "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

    ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
    ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
    ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
    ','',"
    ",'
    {buttonOK}
    ','
    {buttonNOK}
    ',"{(checkbox)(",'
    ','','',"
    ",")[",'',"]}","{(noPreview)[",'
    ','посмотреть, что получится',"
    ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
    '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
    ','
      ','
    • ','
      ','','
      ','с оформлением','HTML-режим',"
      ","
      ","
    • ","
    ","
    "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
    {items}
    ',item:['
    ','
    ','{title}',"
    ","
    "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
    ','
      ',"
      ",'
      ','
        ','
      • ','
        ','','',"
        ","
      • ",'
      • ','
        ','','',"
        ","
      • ","
      ","
      "].join("");this.item=['
    • ','
      ','','x',"
      ","
    • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
      '+g.templates.popupLoader()+"
      ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
      ','
      Найти или выбрать из списка друзей',"
      ",'',"",'",'","","
      ','','','',"",'',"","','',"
      ","
      ",'
      ','
      ','
        ','
      • ','
        ','','',"
        ","
      • ","
      ","
      "].join("");this.emptyResults=['
      ',"Не найдено ни одного человека с именем или логином «{request}».
      ","Попробуйте уточнить запрос.
      "].join("");this.emptyPageResults=g.template('
      Пользователи не найдены.
      ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
      ','
        ','
      • ','',"
        ","
      • ","
      ","
      "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
      ','
        ','
      • ','
        ','','',"
        ","
      • ","
      ","
      "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
        ','
      • ','
        ','',"
        ","
      • ","
      ","",'
      ','

      Предыдущие:

      ',"Загрузка…","
      ",'
      ','
        ','
      • ','
        ','','',"
        ","
      • ","
      ","
      "].join("");this.list='
        {items}
      ';this.item=['
    • ','
      ','{title}',"
      ","
    • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
      ','
        ','
      • ','
        ','',"
        ","
      • ","
      ","
      ",'
      ','

      Предыдущие:

      ',"Загрузка…","
      "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
        {items}
      ',"",'
      ','
        ','
      • ','
        ','','',"
        ","
      • ",'
      • ','
        ','','","
        ","
      • ","
      ","
      "].join("");this.item=['
    • ','","
    • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
      ','
        ','
      • ','',"
      • ","
      ","
      ",'
      ','
        ','
      • ','
        ','',"
        ","
      • ","
      ","
      "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
      ','
        ','
      • ','
        ','
        как сильно хочу:
        ','','','',"",'','','',"",'','','',"","
        ","
      • ","
      ","
      ",'
      ','
        ','
      • ','
        ','',"
        ","
      • ","
      ","
      ",'
      '].join("");this.quoteEnabled=['
      ','','',"{(cut)(",'
      под врезкой
      ',")}","
      "].join("");this.quoteDisabled=['
      ','
      ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
      ","
      "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
      ','
        ','
      • ',"{quote}","
      • ","
      ","
      ",'
      ','
        ','
      • ','
        ','','
        ','с оформлением','HTML-режим',"
        ","
        ","
      • ","
      ","
      ",'
      '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
      ','
        ','
      • ','
        ',"
      • ","
      ","
      ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
      ','
        ','
      • ','
        ','',"
        ","
      • ","
      ","
      "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
      ','
        ','
      • ','
        ','','',"
        ","
      • ","
      ","
      "].join("")}function d(){this.title="Принять эту запись";this.content=['
      ',"
      "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
        {items}
      '),item:a.template('
    • {title}
    • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
      Редактирование ответа
      {content}
      {buttonOK}
      {buttonNOK}
      Текст не написан.
      '),hidden:a.template(''),text:a.template('
      '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
      ','
      {title}
      ','',"","",'",'",'',"","","
      ','
      ',"
      ',"
      ",'
      ','
      Текст не написан.
      ',"
      ","
      ",'
      ',"
      ","
      ",'
      ','
      ','
      ','
      ','',"
      ",'
      {buttonOK}
      ','
      {buttonNOK}
      ','
      ','или продолжить редактирование',"
      ","
      ","
      ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
      ','
      ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
      ",'
      ',' ','',"
      ","
      "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',""].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
      ','','','',"{user}","
      "].join("")),usersList:a('
      {users}
      '),userSocial:a(['
      ','',"{user}","
      "].join("")),pager:a(['
      ','{prev} ','{next}',"
      "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
      {contents}
      '),promise:ya.template('
      пообещать
      '),cancel:ya.template('
      отменить
      '),happens:ya.template('
      пометить как сбывшееся
      '),happened:ya.template('
      пожелание сбылось отменить
      '),promised:ya.template('
      обещано
      ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
      {text}
      '].join(""));a.templates.postDeleteForm=a.template(['
      ','','','','',"
      "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
      У вас есть сохраненный черновик, вы можете восстановить его или удалить.
      '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
      "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
      /ig,"
      ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
      Картинка недоступна
      '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
      ${content}
      ';if(!y5.is_opera||y5.opera_ver>=9){g+='
      '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
      ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
      #{title}
      ');b.setFooter('
       
      ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
      a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
      "+""+"
      ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
      t
      ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
      ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

      ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
      ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
      ","
      "],thead:[1,"","
      "],tr:[2,"","
      "],td:[3,"","
      "],col:[2,"","
      "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
      ","
      "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
      ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Fidelio V8 — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Записать желание — я.ру
      + + + +
      ПоискПочтаДискКалендарьДеньгиМой КругФотки
      + + Выход

      Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

      1 из 11
      портрет для этой записи

      Кто увидит запись:

      Записать желание

      К сожалению, заданным условиям не соответствует ни один товар.
      +Вы можете воспользоваться каталогом товаров на Маркете.
      закрыть
      Желание не введено
      Мы нашли много вариантов и не можем сделать выбор за вас. Вы можете ознакомиться с предложением здесь.
      закрыть
      Если вы передумали, начните заново.
      Прикрепить фото

      Вставить изображение

      Ошибка загрузки изображения
      Добавить ссылку
      как сильно хочу:

      Добавить метки
      Метки
      Основные: Debian, EVE, Linux, Windows, Геленджик, Интернет, Книги, Музыка, Я, Яндекс
      или посмотреть, что получится
       
      или продолжить редактирование

      + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_wishlist.xml b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_wishlist.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_wishlist.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
        {popup_items}
      '].join(""),popup_item:'
    • {title}
    • ',popup_item_selected:'
    • {title}
    • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
      ','','
      ','
      ','','','','
      {content}',"
      ","
      ","
      ","
      "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
        {items}
      ',""].join(""));a.templates.menuItem=a.template(['
    • ','
      ','{title}',"
      ","
    • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
      ','',"
      ",""].join("")),itemResult:a(['
      ','
      ','
      ','
      ',"
      {title}",'{count}',"
      ","
      "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
      {items}{actions}
      '),actionLink:a('
      {title}
      '),expired:a('
      {title}
      ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
      ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
       
      ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
      обновление...
      ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
      {(moreAsUpdate)[
      я в курсе
      ]}
      {(allItems)({(moreAsUpdate)()[]})}
      '),viewportLayout:b('
      {(titleButton)({titleButton})}
      показать ещё
      '),group:b('
      {timestamp}
      {items}
      '),item:b('
      {user} — {title}
      '),likeItem:b('
      {user} {appreciate} запись {title}
      '),recommendItem:b(''),replyItem:b('
      {user}{separator} {title}
      '),photoItem:b('
      {alt}
      '),videoItem:b('
      {duration}
      '),videoContainer:b('
      {items}
      '),albumsContainer:b('
      {items}
      '),videoCollection:a.template('
      {content}
      ',{content:""}),videoCollectionItem:b('
      {count} видео
      '),albumItem:b('
      {title}
      {count}
      '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
      {title}
      '),wishlistItem:b('
      {title}
      {title}
      '),wishlistPromisedItem:b('
      {info}
      {title}
      отменить
      '),ratingInfo:b(''),onload:b('
       
      '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
      ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
      "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/_post-add-includes.js b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/_post-add-includes.js new file mode 100644 index 0000000..0ac80c6 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/_post-add-includes.js @@ -0,0 +1,11 @@ +(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
      ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
      ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);window.g_sizePicture=function(){return"normal"};Friends.ClassPictureLoader=function(){};Friends.ClassPictureLoader.prototype={className:"pictureloader-",getElement:function(a){return y5.Dom.getDescendant(this.element,"*",this.className+a)},default_enctype:"",initBase:function(a,b){this.__listeners=[];this.element=a;this.file=this.getElement("file");this.form=this.file.form;this.filename=this.getElement("filename");this.filename.value=y5.Utils.generateId();this.label=this.getElement("label")||document.createElement("label");this.__listeners.push(y5.Events.observe("y5:"+y5.Utils.getUniqueId(this.form),this.change,this.form,true,this));this.__listeners.push(y5.Events.observe("y5:load",this.clearFile,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:error",this.error,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:readyforsend",this.sendPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:send",this.showPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:disableByRename",this.disableByRename,this.form,true,this));y5.Events.create("submit",this.enableByRename,this.form,true,this);return this.form},createFromTag:function(a,b){this.initBase(a,b)},sendPictureBase:function(){this.getElement("filename").value=y5.Utils.generateId()},change:function(){this.sendPicture(this.form);if(!this.delListener){var a=this.getElement("delete");if(a){this.delListener=new y5.AEventListener("click",this.deleteImage,a,false,this)}}if(this.delListener){this.delListener.add()}},error:function(){this.deleteImage(this.filename,this.label);y5.Classes.remove(this.label,"active");y5.Classes.remove(this.label,"load");y5.Classes.add(this.label,"error");this.clearFile();if(this.delListener){this.delListener.remove()}},deleteImage:function(){this.filename.value="";y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");y5.Classes.remove(this.label,"active");y5.Classes.add(this.label,"new");try{Friends.ChangeUserpicControl.Constructor.prototype.instance.activateCurrent()}catch(a){}if(this.delListener){this.delListener.remove()}},clearFile:function(){this.filename.value="";var a=this.file.parentNode;a.innerHTML=a.innerHTML;this.file=a.firstChild},sendForm:function(action){var _this=this;y5.Events.notify("y5:disableByRename",_this.form,true,_this.element);_this.enableByRename();_this.setFormEnctype();function response(result,trace){if(!result||!y5.Strings.trim(result)){y5.Events.notify("y5:error",_this.element,true,null);return}result=eval("("+result+")");if(!result.name){y5.Events.notify("y5:error",_this.element,true,null);return}y5.Events.notify("y5:send",_this.element,true,result);_this.restoreFormEnctype()}function error(result,trace){y5.Events.notify("y5:error",_this.element,true,null);_this.restoreFormEnctype()}if($("input[name='sk']").length){var ticketInput=$(''),utInput=$('');$(this.form).append(ticketInput,utInput)}ya.controls.pictureUpload(action,this.form,{},function(_this){return function(){_this.sendFormHandler.apply(_this,arguments)}}(this),error)},sendFormHandler:function(a,b){if(!a||!a.name){y5.Events.notify("y5:error",this.element,true,null);return}y5.Events.notify("y5:send",this.element,true,a);this.restoreFormEnctype();$("input[name='ticket']",this.form).remove();$("input[name='ut']",this.form).remove()},disableByRename:function(b){if(b==this.element){return}var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(c){if(c.name.indexOf("_disabledByRename")===-1){c.name=c.name+"_disabledByRename"}})},enableByRename:function(){var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(b){if(b.name.indexOf("_disabledByRename")!==-1){b.name=b.name.replace("_disabledByRename","")}})},restoreFormEnctype:function(){if(!y5.is_ie){this.form.enctype=this.default_enctype}},setFormEnctype:function(){this.default_enctype=this.form.enctype;this.form.enctype="multipart/form-data"},dectruct:function(){var b,a;for(b=0,a=this.__listeners.length;b"+b.innerHTML+"";new y5.AEventListener("click",this.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,this);y5.Classes.replace(this.dom_status,"load","new");this.imageURL_input.value=a;y5.Events.notify("y5:load",this.element,true,c)};Friends.ClassPictureLoaderOnePhoto.prototype.showPictureByURL=function(b,d){this.modeLoading();var c=new Image(),a=this;$(c).bind("load",function(){var e=document.createElement("img");e.src=b;a.delPhoto();y5.Classes.add(a.dom_status,"new");y5.Classes.remove(a.dom_status,"error");var h=document.createElement("div");var f=document.createElement("i");f=h.appendChild(f);f.className="del";h.appendChild(e);var g=y5.$("photo-holder");g.innerHTML="
      "+h.innerHTML+"
      ";new y5.AEventListener("click",a.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,a);y5.Classes.replace(a.dom_status,"load","new");a.dom_image_link.value=d;a.imageURL_input.value=""});$(c).bind("error",function(){a.modeNormal()});c.src=b};y5.loaded("{Friends}.classes.ClassPictureLoaderOnePhoto")});y5.require(["Ajax","AjaxForm","Dom","Events","Utils","Classes","{Friends}.classes.ClassPictureLoader"],function(){Friends.PictureLoader=new Friends.ClassPictureLoader();y5.loaded("{Friends}.PictureLoader")});y5.require(["Events","Strings","Dom","Classes","{Friends}.PictureLoader"],function(){Friends.PictureLoaderPhoto=function(f,g){this.initBase(f,g);this.list=this.getPhotoList();var d=y5.Dom.getDescendants(y5.$("photo-holder"),"i","del");for(var e=0,c=d.length;ethis.last_id){this.last_id=c}}}}this.last_id+=1;return this.last_id};var b="b-input-empty",a=function(){};Friends.PictureLoaderPhoto.prototype.restore=a;Friends.PictureLoaderPhoto.prototype.normalize=function(){var c=this.form.elements,d,f={},e="";for(d=0;d0){$(this.control).find("div.b-write-submit,div.b-preview-write-submit").find("input.submit").each(function(c){var d=a.previewModeBtns[c];var b=this;if(d){$(d).removeClass("i-hidden");if(!d.onclick&&a.params.comment){$(d).unbind("click").click(function(){$(b).click()})}d.onclick=b.onclick;d.value=b.value}});if(!a.params.comment){$(this.previewModeBtns[0]).unbind("click").click(function(){$(a.control).submit()})}}if(this.previewButton){$(this.previewButton).unbind("click").click(function(){a.togglePreview()})}if(this.editButton){$(this.editButton).unbind("click").click(function(){a.toggleEdit()})}if(!this.params.comment){$(this.control).submit(function(b){a.safeSaving();b.preventDefault()})}},getPostType:function(){return this.postType.value},showMessage:function(a){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible"},togglePreview:function(){if(!this.renderPreviewBtn){return}var _this=this;$(".b-captcha").remove();if(_this.params.comment){$('[name="item_no"]',this.control).attr("name","_item_no");$('[name="access_type"]',this.control).attr("name","_access_type")}var prevewReq=new y5.Request.Form(this.url.Preview,{transport:"XML"});function _restoreInput(){if(_this.params.comment){$('[name="_item_no"]',this.control).attr("name","item_no");$('[name="_access_type"]',this.control).attr("name","access_type")}}prevewReq.onload=function(resp){_restoreInput();var response=resp.responseText;var respJSON=null;try{respJSON=y5.JSON.decode(response)}catch(e){this.onerror(e);return}if(respJSON.status&&respJSON.status=="Success"){_this.stopAjaxAnim();_this.toggleState();_this.noteCurrent=$(_this.previewContainer).find("b.b-note-attention")[0];$(_this.previewContent).html(respJSON.html);y5.Components.init(_this.previewContent);ya.helpers.smileHelper.processSmiles(_this.previewContent);$(_this.previewContent).find(".b-control-vote").each(function(i,e){ya.instances.push(new ya.controls.Vote(e))});$(_this.previewContent).yshow();if($.browser.webkit&&navigator.platform&&navigator.platform.match(/win/i)){ya.forceRedraw($(_this.previewContent)[0])}var match,scriptRe=/]*>((.|\n)+?)<\/script>/img;while((match=scriptRe.exec(response))!==null){eval(match[1])}_this.previewInProgress=false}else{this.onerror(respJSON)}};prevewReq.onerror=function(e){_restoreInput();var error_msg=_this.createErrorMessage(e&&e.reason);_this.stopAjaxAnim();$(_this.noteCurrent).html(error_msg);_this.noteCurrent.style.visibility="visible";_this.previewInProgress=false};prevewReq.onexception=prevewReq.onerror;blogCompose.sanitize();if(!this.previewInProgress){this.startAjaxAnim();prevewReq.send(_this.control);this.previewInProgress=true}},toggleEdit:function(){$(".b-captcha").remove();this.noteCurrent.style.visibility="hidden";this.noteCurrent=this.noteEdit;this.toggleState();$(this.previewContent).addClass("i-hidden");if(g_globals.current_location.page=="posts_add_wishlist"){y5.Events.notify("click",$("div.notfound span.b-inplace-action")[0],true)}if(this.textarea){this.textarea.value=this.textarea.value.replace(//ig,"\n")}},onSubmitEnabled:function(){this.renderPreviewBtn=true;$(this.previewBtnContainer).removeClass("disabled")},onSubmitDisabled:function(){this.renderPreviewBtn=false;$(this.previewBtnContainer).addClass("disabled")},toggleState:function(){$(this.formTable).toggleClass("i-hidden");$(this.previewContainer).toggleClass("i-hidden");this.noteCurrent.style.visibility="hidden"},startAjaxAnim:function(){$(this.noteCurrent).removeClass("b-note-attention").addClass("b-note-loading");this.noteCurrent.innerHTML=" ";this.noteCurrent.style.visibility="visible"},stopAjaxAnim:function(){this.noteCurrent.style.visibility="hidden";$(this.noteCurrent).removeClass("b-note-loading").addClass("b-note-attention")},createErrorMessage:function(b){var a;if(b){a=b}else{a="К сожалению, действие совершить не удалось.
      Попробуйте ещё раз."}return a},createCaptcha:function(a,b){return'

      '+this.params.dps["save-error--captcha"]+'

       

      '},validate:function(){var a="";if(g_globals.current_location.page=="posts_add_invite"){if(y5.Strings.isVoid($(this.control).find(".FieldValidator-field")[0].value)){a="email не задан."}}return a},successHandler:function(a){y5.Events.notify("Friends:formSaved",this.control);window.location.href=a.url},safeSaving:function(){if(this.savingInProcess){return}var a=this.validate();if(a.length){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible";return}var c=this;c.startAjaxAnim();var b=new y5.Request.Form(friendsURL(this.url.Posting),{method:"post",transport:"XML"});b.onload=function(g){c.stopAjaxAnim();if(window.w5GControl){window.w5GControl.clearLocalStorage()}var d="";try{d=g.json(g.responseText)}catch(f){this.onerror();return}if(d.status&&d.status==="Success"){c.successHandler(d)}else{this.onerror(d)}};b.onerror=function(d){var g=typeof d==="object"?d:{reason:false};if(d&&typeof d.responseText==="string"){try{g=y5.JSON.decode(d.responseText)}catch(j){g={reason:false}}}c.savingInProcess=false;c.stopAjaxAnim();var f=$(".b-captcha");if(g.captcha){var i=c.createCaptcha(g.captcha,g.reason);if(f.length){f.replaceWith(i)}else{$(c.noteCurrent).before(i)}}else{if(f.length){f.remove()}}if(g.dps!="post--captcha_key-NOT_EMPTY"){var h=c.createErrorMessage(g.reason);c.noteCurrent.innerHTML=h;c.noteCurrent.style.visibility="visible"}};b.onexception=function(d){this.onerror(d)};blogCompose.sanitize();if(!this.savingInProcess){this.savingInProcess=true;b.send(this.control);this.startAjaxAnim()}}};y5.require(["Dom","Events","Request.Form","URL"],function(){y5.loaded("{Friends}.PostPreviewAndSaving")});y5.require(["Dom","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(d,e){this.control=d;this.params=e||{};this.whether_loaded=false;var b=y5.Dom.getDescendantOrSelf(this.control,"code","Friends-later-ImageLoadable");var f=b.onclick()||{};this.params.src=f.src;var c=document.createElement("img");y5.Classes.add(c,"i-hidden");y5.Dom.replaceNode(b,c);this.image=c;y5.Events.observe("load",this.onLoadHandler,this.image,true,this)};a.prototype.load=function(){if(!this.whether_loaded){this.image.src=this.params.src;this.whether_loaded=true}};a.prototype.onLoadHandler=function(){y5.Classes.remove(this.image,"i-hidden")};Friends.ImageLoadable=a;y5.loaded("{Friends}.ImageLoadable")});Friends.ChooseUserpicControlCached=function(a){this.control=a;this.radios=null;this.userpics=null;this.active=0;this.chooserText=0;this.prevChooser=0;this.nextChooser=0;this.removeText=0;this.init()};Friends.ChooseUserpicControlCached.prototype.showActive=function(e,d){if(!this.userpics.length){return}var a,c,b;this.active=(this.userpics.length+this.active+d)%this.userpics.length;for(c=0,b=this.userpics.length;c'+this.source.getUserpicContent({id:e,size:"normal",src:h})+"";g.appendChild(f);this.userpics.push(f);this.tbody.appendChild(g);this.showActive(null,this.userpics.length-this.active-1);var d,a;if(this.userpics.length>1){for(d=0,a=this.userpics.length;d'+this.source.getUserpicContent({id:c,size:"normal",src:f})+"";e.appendChild(d);this.tbody.appendChild(e);e.style.display="block";d.style.display="block"};Friends.ChooseUserpicControlCached.prototype.del=function(b){var a=this.active;if(typeof(b)!=="undefined"){a=b}y5.Dom.replaceNode(this.userpics[a].control.parentNode);this.userpics.splice(a,1);this.radios.splice(a,1);this.showActive(null,(this.active==0)?0:-1);this.setChooserText();y5.Events.notify("y5:deleteUploadUserpic",Friends,true,row.getElementsByTagName("input")[0].value)};Friends.ChooseUserpicControlCached.prototype.createSelector=function(e,h,j,f){var b=document.createElement("a"),i="";var c=document.createElement("img");c.src=g_globals.img_base+"control/userpic-"+e+i+".gif";c.alt=j;c.title="";var g=(this.userpics.length<2);y5.Classes.add(b,e);b.appendChild(c);b.title=f;return b};Friends.ChooseUserpicControlCached.prototype.changeSelector=function(f,e,d,b){var a=f.firstChild;if(e){y5.Classes.add(f,"disabled");if(a.src.indexOf("-disabled")===-1){a.src=a.src.replace(/.gif/,"-disabled.gif")}a.parentNode.onclick=null;a.parentNode.onmouseover=null;a.parentNode.onmouseout=null}else{var c=a.src.indexOf("userpic-");y5.Classes.remove(f,"disabled");a.src=a.src.replace(/-disabled/,"");a.parentNode.onclick=associateEventWithObject(this,"showActive",d);a.parentNode.onmouseover=associateEventWithObject(this,"mouseover",b);a.parentNode.onmouseout=associateEventWithObject(this,"mouseout",b)}};Friends.ChooseUserpicControlCached.prototype.setChooserText=function(){if(this.userpics.length===0){this.addDefaultUserpic();y5.Classes.add(this.nextChooser,"i-hidden");y5.Classes.add(this.prevChooser,"i-hidden")}var c,a=this.userpics.length;if(a==0){c="нет картинок"}else{if(a==1){c="1 картинка"}else{c=(this.active+1)+" из "+a}}if(this.removeText){if(!a||this.radios[this.active].value==""){y5.Classes.add(this.removeText,"remove-disabled")}else{y5.Classes.remove(this.removeText,"remove-disabled")}}var b=(a<=1);this.changeSelector(this.prevChooser,b,-1,"prev");this.changeSelector(this.nextChooser,b,+1,"next");this.chooserText.innerHTML=c};Friends.ChooseUserpicControlCached.prototype.init=function(){this.tbody=y5.Dom.getDescendant(this.control,"tbody","*");if(!this.tbody){return}var g=this.tbody.getElementsByTagName("tr");var f=g.length;this.radios=new Array(f);this.userpics=new Array(f);this.source=g_source;for(var c=0;c-6){a(this.userpics,b+this.active);b--}};Friends.ChooseUserpicControlCached.prototype.destruct=function(){this.control.control=null;this.control=null};y5.require(["Dom","Events","Classes","Strings","{Friends}.ImageLoadable"],function(){y5.loaded("{Friends}.ChooseUserpicControlCached")});Friends.SubmitShortcut=function(){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.SubmitShortcut.prototype.init=function(d){this.__listeners=[];this.submit_btn=y5.Dom.getDescendant(d,"input","submit");this.submited=false;var f=this.submit_btn.form;y5.Events.observe("y5:form_destructed",b,f,true,this);this.__listeners.push(y5.Events.observe("submit",a,f,true,this));var c=this,g=function(h){if(h.keyCode=="13"&&h.ctrlKey){e.call(c)}};this.__listeners.push(y5.Events.observe("keydown",g,f,true,c));this.__listeners.push(y5.Events.observe("y5:w5g_ctrlEnter",e,Friends,true,this));this.__listeners.push(y5.Events.observe("y5:enableSubmit",function(){this.submited=false},Friends,true,this));function a(h){if(this.submited){h.preventDefault()}this.submited=true}function e(){new y5.Event("click",this.submit_btn,true);this.submit_btn.click()}function b(){var j,h;for(j=0,h=this.__listeners.length;j');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u)}}}d.style.display="none";document.body.appendChild(d);d.submit();return false},fields:["body","title","userpic","access","tags","item_time_day","item_time_month","item_time_year","item_time_minute","URL","url","uid","id","login"]};y5.require(["Dom","Events"],function(){y5.loaded("{Friends}.SaveStateForm")});y5.require([],function(){var a=function(){};a.prototype.init=function(b){this.params=b;this.next_link=b.next_link;this.prev_link=b.prev_link;this.visible_length=b.visible_length||4;y5.Events.observe("click",this.nextLink,this.next_link,true,this);y5.Events.observe("click",this.prevLink,this.prev_link,true,this);return this};a.prototype.setCollection=function(b){this.collection=b;this.left_index=0;this.setLeftmostIndex(0);return this};a.prototype.setLeftmostIndex=function(d){if(!this.collection){return false}this.collection.items.forEach(function(e){y5.Events.notify("y5:UICarousel:hide",this,true,{item:e})},this);this.left_index=(this.collection.items.length+d)%this.collection.items.length;y5.Events.notify("y5:UICarousel:set_index",this,true,{index:d});var b=function(f){var e=this.collection.items;f=(e.length+f)%e.length;var g=e[f];y5.Events.notify("y5:UICarousel:show",this,true,{item:g})},c;for(c=0;c0){this.init.apply(this,arguments)}};a.prototype.init=function(){};a.prototype.select=function(){};a.prototype.unselect=function(){};a.prototype.selectIf=function(b,c){if(c){this.select(b)}};a.prototype.unselectIf=function(b,c){if(c){this.unselect(b)}};a.prototype.add=function(c,d){var b=y5.Utils.getUniqueId(c);if(!(b in this.uids)){this.items.push(c);this.uids[b]={item:c,index:this.items.length-1,data:d};y5.Events.notify("y5:UICollection:add",this,true,{item:c});this.addEvents(c);return false}return true};a.prototype.get=function(e){var d,c;if(typeof e==="number"){d=this.items[e];if(!d){return false}c=y5.Utils.getUniqueId(d)}else{if(typeof e==="string"){c=e}else{if(typeof e==="object"){c=y5.Utils.getUniqueID(d)}}}if(!(c in this.uids)){return false}var b=this.uids[c];return b};a.prototype.remove=function(c){var b=y5.Utils.getUniqueId(c);if(b in this.uids){var d=this.uids[b];this.items.splice(d.index,1);delete this.uids[b];y5.Events.notify("y5:UICollection:remove",this,true,{item:c});return false}return true};a.prototype.addEvents=function(b){};Friends.UICollection=a;y5.loaded("{Friends}.UICollection")});y5.require(["{Friends}.UICollection"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype=new Friends.UICollection();a.prototype.init=function(b){this.items=[];this.uids={};this.selectedItem=null;this.params=b||{};return this};a.prototype.addEvents=function(b){if(!this.params.noclick){y5.Events.observe("click",function(c){this.select(b)},b,true,this)}};a.prototype.select=function(c){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];this.unselect(this.selectedItem);this.selectedItem=c;y5.Events.notify("y5:UICollection:select",this,true,{item:c,data:d.data})};a.prototype.unselect=function(c){if(c!==null){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];y5.Events.notify("y5:UICollection:unselect",this,true,{item:c,data:d.data})}};Friends.UICollectionRadio=a;y5.loaded("{Friends}.UICollectionRadio")});y5.require(["{Friends}.UICollectionRadio","{Friends}.UICarousel","Widget","Utils"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype.init=function(b,c){y5.Events.observe("y5:make",function(d){this.widget=d;this.initAsControl(d.window,this.params);if(!this.has_been_inited){this.initWidgetEvents();this.has_been_inited=true}y5.Classes.add(d.button_ok,"i-hidden")},b,true,this);y5.Events.observe("y5:show",function(d){if(typeof d.caller==="object"){this.caller=d.caller;this.showWidget(b)}},window,true,this);return this};a.prototype.initWidgetEvents=function(){y5.Events.observe("y5:ok",function(){y5.Events.notify("y5:card:ok",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:esc",function(){y5.Events.notify("y5:card:esc",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:cancel",function(){y5.Events.notify("y5:card:cancel",this.caller,true,{caller:this});return true},this.widget.element,true,this)};a.prototype.initAsControl=function(c,d){this.control=c;this.params=d;var b=y5.Dom.getDescendant(this.control,"b","ff");var e=y5.Dom.getDescendant(this.control,"b","rev");this.carousel=new Friends.UICarousel().init({next_link:b,prev_link:e});y5.Events.observe("y5:UICarousel:prev",this.carouselPrev,this.carousel,true,this);y5.Events.observe("y5:UICarousel:next",this.carouselNext,this.carousel,true,this);y5.Events.observe("y5:UICarousel:hide",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.add(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:show",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.remove(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:set_index",function(g){var h=g.index;var f=this.carousel.collection.items.length;var i=this.carousel.visible_length;var j=(i+h-f);if(h==0){y5.Classes.add(this.carousel.prev_link,"i-hidden")}else{y5.Classes.remove(this.carousel.prev_link,"i-hidden")}if(h+i>=f){y5.Classes.add(this.carousel.next_link,"i-hidden")}else{y5.Classes.remove(this.carousel.next_link,"i-hidden")}},this.carousel,true,this);this.holiday_links=new Friends.UICollectionRadio().init();y5.cssQuery("ul.b-list-links li",this.control).forEach(function(f){var h=f.onclick().holiday;var g=y5.Dom.getDescendant(this.control,"tr","holiday_".concat(h));var i=this.initCardsCollection(g);this.holiday_links.add(f,{holiday_id:h,dom_cards:g,cards_collection:i})},this);y5.Events.observe("y5:UICollection:select",this.selectHoliday,this.holiday_links,true,this);y5.Events.observe("y5:UICollection:unselect",this.unselectHoliday,this.holiday_links,true,this);this.holiday_links.select(this.holiday_links.items[0])};a.prototype.showWidget=function(b){y5.Widget.make(b,"Widget.Dialog.Standard",{title:"Вставить открытку",valign:"30%"})};a.prototype.carouselPrev=function(b){};a.prototype.carouselNext=function(b){};a.prototype.initCardsCollection=function(b){var c=new Friends.UICollectionRadio().init();y5.cssQuery("img.postcard",b).forEach(function(d){c.add(d)});y5.Events.observe("y5:UICollection:select",this.choosePostcard,c,true,this);return c};a.prototype.choosePostcard=function(b){this.selected_card=b.item.onclick();this.widget.fireOk()};a.prototype.selectHoliday=function(b){var c=b.item;y5.Classes.add(c,"active");y5.Classes.remove(b.data.dom_cards,"i-hidden");var d=b.data.cards_collection;this.carousel.setCollection(d)};a.prototype.unselectHoliday=function(b){var c=b.item;y5.Classes.remove(c,"active");y5.Classes.add(b.data.dom_cards,"i-hidden")};Friends.Postcard=a;y5.loaded("{Friends}.Postcard")});Friends.ChangeUserpicControl=function(a){if(arguments.length>0){var b=new Friends.ChangeUserpicControl();b.init.apply(this,arguments);return b}};Friends.ChangeUserpicControl.prototype.init=function(a){var b=this;this.control=a;this.current=null;this.pointer=null;this.selected_span=0;this.form=y5.Dom.getAncestorOrSelf(this.control,"form");this.submit=y5.cssQuery('input[type="submit"]',this.form)[0];y5.Events.observe("y5:choose_userpic",this.chooseUserpic,this,true,this);Friends.ChangeUserpicControl.lastCreatedInstance=this};Friends.ChangeUserpicControl.prototype.chooseUserpic=function(a){if(this.pointer!=null){this.pointer.modeUnchoosed()}this.pointer=a.userpic};y5.loaded("{Friends}.ChangeUserpicControl");y5.require(["{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(c,d){this.control=c;this.params=d;this.options=y5.cssQuery("li.answer",this.control);this.options.forEach(function(e,f){y5.cssQuery("input",e).forEach(function(g){this.disableSubmit(g)},this)},this);this.dom_options_holder=y5.Dom.getAncestor(this.options[0],"ul");this.dom_add_option=y5.cssQuery("div.add span",this.control)[0];y5.Events.observe("click",this.addOption,this.dom_add_option,true,this);this.dom_remove_option=y5.cssQuery("span.js-remove",this.control);this.dom_remove_option.forEach(function(f){b(f)})};a.prototype.disableSubmit=function(c){y5.Events.observe("keypress",function(d){var e=d.keyCode;if(e==13){d.stopPropagation();d.preventDefault()}},c,true,this)};a.prototype.addOption=function(){y5.cssQuery(".answer .js-remove",this.control).forEach(function(g){y5.Classes.add(g,"i-hidden")});var c=document.createElement("span");c.innerHTML="";c.className="remove js-remove";b(c);var d=this.options[0].cloneNode(true);var f=y5.cssQuery("li.answer input",this.control);var e=Number(f[f.length-1].id)+1;y5.cssQuery("input",d).forEach(function(g){g.id=e;g.value="";g.name="option".concat(e);this.disableSubmit(g);y5.Dom.insertAfter(c,g)},this);this.dom_options_holder.appendChild(d);this.options.push(d)};var b=function(c){y5.Events.observe("click",function(){y5.Dom.removeNode(y5.Dom.getAncestors(c,"li","answer")[0]);var d=y5.cssQuery("li.answer .js-remove",this.control);if(d.length-1>=0){y5.Classes.remove(d[d.length-1],"i-hidden")}},c,true,this)};Friends.Poll=a;y5.loaded("{Friends}.Poll")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);var b=a.prototype;b.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initUrlBlock();this.initMarketSearchBlock();return this};b.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};b.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};b.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};b.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};b.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};b.initUrlBlock=function(){this.dom_url_block_switcher=y5.Dom.getDescendant(this.control,"span","action-link");this.dom_url_block=y5.Dom.getDescendant(this.control,"div","b-write-link");this.dom_input_url=y5.Dom.getDescendant(this.dom_url_block,"input","*");var c=y5.Dom.getDescendant(this.dom_url_block,"a","*");if(this.dom_input_url.value!=""){this.showURLBlock("nofocus")}y5.Events.observe("click",this.followURL,c,true,this);y5.Events.observe("click",this.showURLBlock,this.dom_url_block_switcher,true,this)};b.showURLBlock=function(){y5.Classes.remove(this.dom_url_block,"i-hidden");if(this.dom_url_block_switcher){y5.Classes.add(this.dom_url_block_switcher,"i-hidden")}if(arguments.length==0){this.dom_input_url.focus()}};b.fillURL=function(c){this.showURLBlock();this.dom_input_url.value=this.processURL(c)};b.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};b.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};b.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};b.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};b.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};b.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};b.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};b.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};b.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};b.notFoundMessage=function(){this.modeNotFound()};b.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};b.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_input_url);this.inputOff(this.dom_title);this.photoloader.disable()};b.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearch:select",a,true);this.modeNormal();this.fillURL(c.model_url);this.server_market_id.value=c.model_id;this.server_market_url.value=c.model_url;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};b.cancelWishcard=function(){this.photoloader.delPhoto();this.dom_input_url.value="";this.server_market_id.value="";this.server_market_url.value="";this.inputOn(this.dom_input_url);this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearch:unselect",a,true)};b.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};b.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.Wishlist=a;y5.loaded("{Friends}.Wishlist")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor","{Friends}.CheckChangesSaved"],function(){var b=Friends.CommonConstructor(Friends.BasicControl);var a=b.prototype;a.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initMarketSearchBlock();return this};a.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};a.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};a.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};a.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};a.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};a.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};a.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};a.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};a.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.dom_changemind=this.dom_changemind||document.createElement("div");this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};a.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};a.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};a.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};a.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};a.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};a.notFoundMessage=function(){this.modeNotFound()};a.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};a.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_title);this.photoloader.disable()};a.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearchGrades:fillWishcard",b,true);this.modeNormal();this.server_market_id.value=c.model_id;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};a.cancelWishcard=function(){this.photoloader.delPhoto();this.server_market_id.value="";this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearchGrades:cancelWishcard",b,true)};a.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};a.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.MarketSearchGrades=b;y5.loaded("{Friends}.MarketSearchGrades")});y5.require(["{Friends}.CommonConstructor","{Friends}.UICollectionRadio","{Friends}.MarketSearchGrades"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(d,e){this.control=d;this.params=e;this.whether_editing_post=!y5.Strings.isVoid(y5.cssQuery('input[name="market_id"]',this.control)[0].value);var c=y5.Dom.getDescendant(this.control,"*","js-major-grades");this.major_smiles=new Friends.UICollectionRadio().init();this.additional_smiles=[];this.dom_all_grades=y5.Dom.getDescendant(this.control,"*","js-all-grades");this.grades_table=y5.Dom.getDescendant(this.control,"*","js-all-grades-table");y5.cssQuery("tr",this.grades_table).forEach(function(f){this.createGradesLine(f)},this);this.on("click",function(){if(this.whether_advanced_grades){this.hideAdvancedGrades()}else{this.showAdvancedGrades()}},this.dom_all_grades);var b=y5.cssQuery("div.active",this.grades_table).length>0;b=b||y5.cssQuery(".js-advanced-grades input").some(function(f){return f.value.length>0});if(b){this.showAdvancedGrades()}y5.Events.observe("y5:UICollection:select",function(f){var g=f.data;y5.Classes.add(f.item,"active");this.show(f.data.dom);g.server.value=g.value},this.major_smiles,true,this);y5.Events.observe("y5:UICollection:unselect",function(f){y5.Classes.remove(f.item,"active");this.hide(f.data.dom)},this.major_smiles,true,this);y5.cssQuery("div.smile",c).forEach(function(f){var g=f.onclick();var h=y5.cssQuery(g.server_selector,this.control)[0];var i=y5.cssQuery(g.selector,c)[0];this.major_smiles.add(f,{dom:i,server:h,value:g.value});var j=y5.Classes.test(f,"active");this.major_smiles.selectIf(f,j)},this);this.on("y5:MarketSearch:select",this.modeAdvanced,Friends.MarketSearchGrades);this.on("y5:MarketSearch:unselect",this.modeSimple,Friends.MarketSearchGrades);if(this.whether_editing_post){this.modeAdvanced(".js-mode-advanced:not(.js-not-editable)")}};a.prototype.enable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.show(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.removeAttribute("disabled")},this)},this)};a.prototype.disable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.hide(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.setAttribute("disabled","disabled")},this)},this)};a.prototype.modeAdvanced=function(b){b=b||".js-mode-advanced";this.enable(b)};a.prototype.modeSimple=function(b){b=b||".js-mode-advanced";this.disable(b);this.hideAdvancedGrades()};a.prototype.showAdvancedGrades=function(){this.whether_advanced_grades=true;y5.Classes.add(this.dom_all_grades,"open");this.enable(".js-advanced-grades")};a.prototype.hideAdvancedGrades=function(){this.whether_advanced_grades=false;y5.Classes.remove(this.dom_all_grades,"open");this.disable(".js-advanced-grades")};a.prototype.createGradesLine=function(c){var b=new Friends.UICollectionRadio().init();y5.Events.observe("y5:UICollection:select",function(d){var e=d.data;y5.Classes.add(d.item,"active");e.server.value=e.value},b,true,this);y5.Events.observe("y5:UICollection:unselect",function(d){y5.Classes.remove(d.item,"active")},b,true,this);y5.cssQuery("div.smile",c).forEach(function(d){var e=d.onclick();var f=y5.cssQuery(e.server_selector,this.control)[0];b.add(d,{server:f,value:e.value});var g=y5.Classes.test(d,"active");b.selectIf(d,g)});this.additional_smiles.push(b)};Friends.MarketGrades=a;y5.loaded("{Friends}.MarketGrades")});Friends.KeywordsControl=new function(){this.createFromTag=function(a,b){new Friends.KeywordsControl.Constructor(a,b)}};Friends.KeywordsControl.Constructor=function(a,b){this.control=a;this.max=b.tagsCount||5;this.keywords=[];this.init()};Friends.KeywordsControl.Constructor.prototype=new function(){this.addKeyword=function(b){var a=y5.Strings.trim(this.input.value);if(a==y5.Strings.EMPTY){return}this.input.value=this.pushTags(a,true).join(", ")};this.delKeyword=function(a,b){y5.Dom.removeNode(a);this.keywords.splice(this.keywords.indexOf(b,0),1);this.saveKeywords();this.showKeywordsLine();this.input.focus()};this.getPreviewKeywords=function(){var c=[],b,a;for(b=0,a=this.keywords.length;b'+y5.Strings.escapeHTML(this.keywords[b])+""}return c.join(", ")};this.addUserTag=function(b){var a=y5.Strings.unescapeHTML(b.target.innerHTML);if(this.pushTag(a)){this.addKeywordElem(a)}};this.pushTags=function(f,g){var e=[],b=f.split(/[,;]/g),c,a;for(c=0,a=b.length;c=this.max){if(!j){var j=document.createElement("span");d.appendChild(j);y5.Classes.add(j,"all-tags");j.appendChild(document.createTextNode(", "))}d=j}var h=d.appendChild(b);new y5.AEventListener("click",this.addUserTag,h,true,this);if((e!=this.max-1)&&(e0){var a=new Friends.UserpicCurrent();a.createFromTag.apply(this,arguments);return a}};Friends.UserpicCurrent.prototype.createFromTag=function(a,b){this.control=a;this.params=b;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.dom_mode=y5.Dom.getDescendant(this.control,"div");y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);this.modeChoosed()};Friends.UserpicCurrent.prototype.modeChoosed=function(){this.is_choosed=true;y5.Classes.remove(this.dom_mode,"unselected");y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});y5.cssQuery('input[name="userpic"]:checked').forEach(function(a){a.checked=false});y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.remove(a,"i-hidden")})};Friends.UserpicCurrent.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.add(this.dom_mode,"unselected");y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.add(a,"i-hidden")})};y5.loaded("{Friends}.UserpicCurrent")});y5.require(["Events","{Friends}.ChangeUserpicControl","{Friends}.CommonConstructor"],function(){Friends.UserpicDeletable=function(){if(arguments.length>0){var a=new Friends.UserpicDeletable();a.createFromTag.apply(a,arguments);return a}};Friends.UserpicDeletable.prototype.createFromTag=function(b,c){this.control=b;this.control_label=y5.Dom.getDescendant(this.control,"label");this.params=c;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.createDrawButton();this.server=new y5.Request.XML("ajax/userpic_do_delete.xml",{method:"POST",callbackContext:this});this.server.onload=this.deleteUserpicHandler;this.server.onerror=this.deleteUserpicHandlerError;y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);var a=y5.Classes.test(this.control_label,"active");if(a){this.modeChoosed()}else{this.modeUnchoosed()}};Friends.UserpicDeletable.prototype.modeChoosed=function(){if(this.is_choosed){return}y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});this.is_choosed=true;y5.Classes.add(this.control_label,"active");y5.Classes.add(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0];a.checked=true};Friends.UserpicDeletable.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.remove(this.control_label,"active");y5.Classes.remove(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0]};Friends.UserpicDeletable.prototype.createDrawButton=function(){this.delete_button=y5.Elements.create(' ');y5.Classes.add(this.userpic.parentNode,"delete-userpic-holder");this.userpic.parentNode.appendChild(this.delete_button);y5.Events.observe("click",this.clickDeleteButton,this.delete_button,true,this)};Friends.UserpicDeletable.prototype.clickDeleteButton=function(a){a.stopPropagation();a.preventDefault();this.deleteUserpic()};Friends.UserpicDeletable.prototype.deleteUserpic=function(){y5.Classes.add(this.userpic,"faded");this.server.send({name:this.params.userpic,host_id:this.params.host_id})};Friends.UserpicDeletable.prototype.deleteUserpicHandler=function(a){var b=y5.JSON.decode(a.responseText);if(b.status==="Success"){y5.Dom.removeNode(this.control)}else{this.deleteUserpicHandlerError()}};Friends.UserpicDeletable.prototype.deleteUserpicHandlerError=function(){y5.Classes.remove(this.userpic,"faded")};y5.loaded("{Friends}.UserpicDeletable")});y5.require(["Events","Strings","Dom","Classes","{Friends}.classes.ClassPictureLoader","{Friends}.UserpicDeletable"],function(){Friends.PictureLoaderAvatar=function(a,c){if(arguments.length>0){var b=new Friends.PictureLoaderAvatar();b.init.apply(b,arguments);return b}};Friends.PictureLoaderAvatar.prototype=new Friends.ClassPictureLoader();Friends.PictureLoaderAvatar.prototype.showPicture=function(a){var g=this;var b=a.name;var e=g_globals.userpic_base+g_source.id+"/"+b+"-"+this.size;var d=this.image;d.onerror=function(h){d.onerror=null;y5.Events.notify("y5:error",g.element,true,null)};y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");d.src=e;this.response=a;y5.Events.notify("y5:load",this.element,true,b);if(!this.params.simpleForm){var f=this.element.cloneNode(true);var c=new Friends.UserpicDeletable(f,{userpic:b,host_id:this.params.host_id});y5.Dom.insertBefore(c.control,this.element);y5.cssQuery('input[type="file"]',c.control).forEach(function(h){y5.Dom.removeNode(h)});y5.cssQuery('input[name="userpic"]',c.control).forEach(function(h){h.value=b});this.deleteImage();c.modeChoosed()}};Friends.PictureLoaderAvatar.prototype.saveUserpic=function(a){};Friends.PictureLoaderAvatar.prototype.saveUserpicHandler=function(c){var b=c.responseText;var a=y5.JSON.decode(b);if(a.name===false){y5.Events.notify("y5:error",this.element,true,null);return false}};Friends.PictureLoaderAvatar.prototype.saveUserpicErrorHandler=function(){y5.Events.notify("y5:error",this.element,true,null)};Friends.PictureLoaderAvatar.prototype.init=function(a,b){this.initBase(a,b);this.image=this.getElement("image");y5.Events.observe("click",function(){y5.Events.notify("y5:userpic_clicked",this,true)},this.image,true,this);this.size=b.size||"normal";this.params=b};Friends.PictureLoaderAvatar.prototype.urlModify=function(){return g_globals.upics_simple_upload};Friends.PictureLoaderAvatar.prototype.sendPicture=function(){this.sendPictureBase();y5.Classes.swap(this.label,"new","load");y5.Classes.remove(this.label,"error");this.sendForm(this.urlModify())};y5.loaded("{Friends}.PictureLoaderAvatar")});var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
      У вас есть сохраненный черновик, вы можете восстановить его или удалить.
      '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
      "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
      /ig,"
      ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b=0)&&b(f,!g)}});e(function(){var f=document.body,c=f.appendChild(c=document.createElement("div"));e.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=c.offsetHeight===100;e.support.selectstart="onselectstart" in c;f.removeChild(c).style.display="none"});e.extend(e.ui,{plugin:{add:function(f,c,h){f=e.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g0){return true}f[c]=1;g=f[c]>0;f[c]=0;return g},isOverAxis:function(f,c,g){return f>c&&f'))}function N(a){return a.bind("mouseout",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==C){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.15"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('
      '))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f==""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]}a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b){b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";if(b==""){return null}var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l){throw"Invalid date"}return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}if(c=this._get(a,"onSelect")){e=this._formatDate(a);c.apply(a.input?a.input[0]:null,[e,a])}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+n+"";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+s+"":f?"":''+s+"";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
      '+(c?h:"")+(this._isInRange(a,s)?'":"")+(c?"":h)+"
      ":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x1){switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}}y+='">'}y+='
      '+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'
      ';var z=j?'":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="=5?' class="ui-datepicker-week-end"':"")+'>'+q[r]+""}y+=z+"";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,z)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q";var R=!j?"":'";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&ro;R+='";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+""}g++;if(g>11){g=0;m++}y+="
      '+this._get(a,"weekHeader")+"
      '+this._get(a,"calculateWeek")(r)+""+(F&&!D?" ":L?''+r.getDate()+"":''+r.getDate()+"")+"
      "+(l?""+(i[0]>0&&G==i[1]-1?'
      ':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'':"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='
      ',o="";if(h||!j){o+=''+i[b]+""}else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(k+=o+(h||!(j&&l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l){k+=''+c+""}else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u){k+=(h||!(j&&l)?" ":"")+o}k+="
      ";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.15";window["DP_jQuery_"+B]=d})(jQuery);jQuery(function(a){a.datepicker.regional.ru={closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.ru)});(function(a,b){a.namespace("locales.ru");a.locales.ru.chooseDate="выберите дату";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){b(document).ready(function(){b.datepicker.setDefaults(b.datepicker.regional.ru);var f=b(".b-control-datepicker"),h="yy-mm-dd",e="dd.mm.yy";f.datepicker({showOn:"button",buttonImage:g_globals.img_base+"b-calendar-button.png ",buttonImageOnly:true,dateFormat:e,buttonText:a.locale.chooseDate});var d=f[0];if(d&&d.form){b(d.form).bind("submit",function(){d.value=b.datepicker.formatDate(h,f.datepicker("getDate"))})}var c=f[0]?f[0].value:null;if(c){f.datepicker("setDate",b.datepicker.parseDate(h,c))}var g=b(".other-list");if(!a.support_columns(g)){g.columnize({width:200})}})})(window.ya,jQuery); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/_y.js b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/_y.js new file mode 100644 index 0000000..4f3ce8c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/_y.js @@ -0,0 +1,8 @@ +(function(b){var a={};a.imageError=function(c){var d=c.parentNode,e=d.parentNode.childNodes.length>2?d:d.parentNode;e.innerHTML='
      Картинка недоступна
      '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
      ${content}
      ';if(!y5.is_opera||y5.opera_ver>=9){g+='
      '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
      ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
      #{title}
      ');b.setFooter('
       
      ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/delete.gif b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/delete.gif new file mode 100644 index 0000000..f5e84ad Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/delete.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
      a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
      "+""+"
      ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
      t
      ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
      ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

      ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
      ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
      ","
      "],thead:[1,"","
      "],tr:[2,"","
      "],td:[3,"","
      "],col:[2,"","
      "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
      ","
      "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
      ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Записать желание — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1 + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать мысль — я.ру_files/update_session.js b/ПБ017 - Свой Яру/Внешний вид/Записать мысль — я.ру_files/update_session.js new file mode 100644 index 0000000..b5327db --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Записать мысль — я.ру_files/update_session.js @@ -0,0 +1,19 @@ +y5.require( + ['Cookies'], + function() { + /** + * Обновляет сессию с помощью редиректа на паспорт. + */ + function updateSession() + { + y5.Cookies.set('Cookie_check', '1', false); // для текущего домена + var loc = window.location; + var url = loc.protocol.concat('//', loc.host) + '/pass?retpath=' + encodeURIComponent(window.parent.friendsURL('update_session')); + window.location.replace(url); + } + + // обновляем сессию каждые 55 минут + var update_delta = 55*1000*60; + if (update_delta) window.setTimeout(updateSession, update_delta); + } +) diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать мысль — я.ру_files/userpic-next.gif b/ПБ017 - Свой Яру/Внешний вид/Записать мысль — я.ру_files/userpic-next.gif new file mode 100644 index 0000000..095e006 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Записать мысль — я.ру_files/userpic-next.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать мысль — я.ру_files/userpic-prev.gif b/ПБ017 - Свой Яру/Внешний вид/Записать мысль — я.ру_files/userpic-prev.gif new file mode 100644 index 0000000..1680c88 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Записать мысль — я.ру_files/userpic-prev.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Записать мысль — я.ру_files/watch.js b/ПБ017 - Свой Яру/Внешний вид/Записать мысль — я.ру_files/watch.js new file mode 100644 index 0000000..9b3fd50 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Записать мысль — я.ру_files/watch.js @@ -0,0 +1,113 @@ +(function(f,d,ga){function E(a,b){return function(){try{return a.apply(this,arguments)}catch(c){("string"!=typeof c.message||-1==c.message.indexOf("NPObject")&&-1==c.message.indexOf("Too much time spent in unload handler"))&&qa(c,b)}}}function qa(a,b){if(0.01>Math.random()){var c=["cp: "+b,a.name+": "+a.message,"debug: "+Aa,"code: "+Ma,"stack: "+a.stack];(new Image).src="//an.yandex.ru/jserr/101500?cnt-class=100&errmsg="+encodeURIComponent(c.join("; ").replace(/\r?\n/g,"\\n"))}}function P(a,b,c){return f.setTimeout(E(a, +c||"setTimeout"),b)}function B(){for(var a={},b="hash host hostname href pathname port protocol search".split(" "),c=b.length,d=c;d--;)a[b[d]]="";try{for(var g=f.location,d=c;d--;){var h=b[d];a[h]=""+g[h]}}catch(l){H&&(a=H)}return a}function mb(a){return a?(""+a).replace(/^\s+/,"").replace(/\s+$/,""):""}function Ba(a){return-1!==(""+f.navigator.userAgent).toLowerCase().search(a)}function sa(a){try{delete f[a]}catch(b){f[a]=ga}}function ta(a){var b=d.createElement("script");b.type="text/javascript"; +b.async=!0;b.src=a;try{var c=d.getElementsByTagName("html")[0];d.getElementsByTagName("head")[0]||c.appendChild(d.createElement("head"));var f=d.getElementsByTagName("head")[0];f.insertBefore(b,f.firstChild)}catch(g){}}function ha(){if(top!=f&&parent==top&&f.postMessage&&!Ya.Metrika_visorPlayerOn){Ya.Metrika_visorPlayerOn=!0;var a=d.createElement("div");a.innerHTML=''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Кразя: Видео — я.ру
      + + + +
      ПоискПочтаДискКалендарьДеньгиМой КругФотки
      + + Выход

      Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

       

      Что получается:  +   + изменить  +
      Подписаться на комментарии к записи

      Получать уведомления о всех ответах в этом обсуждении.

       
      Отписаться от комментарев к записи

      Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

       
      К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
      + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_video.xml b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_video.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_video.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/0_9b5e6_2b4878ce_M b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/0_9b5e6_2b4878ce_M new file mode 100644 index 0000000..e3a4b82 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/0_9b5e6_2b4878ce_M differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(1).jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(1).jpg new file mode 100644 index 0000000..2bd01fd Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(1).jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(2).jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(2).jpg new file mode 100644 index 0000000..802d8d6 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(2).jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(3).jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(3).jpg new file mode 100644 index 0000000..779dd1a Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(3).jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(4).jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(4).jpg new file mode 100644 index 0000000..1994ae1 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(4).jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(5).jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(5).jpg new file mode 100644 index 0000000..24bb405 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(5).jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(6).jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(6).jpg new file mode 100644 index 0000000..9656589 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72(6).jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72.jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72.jpg new file mode 100644 index 0000000..87ae2f4 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/1.120x72.jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72(1).jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72(1).jpg new file mode 100644 index 0000000..0a90b56 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72(1).jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72(2).jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72(2).jpg new file mode 100644 index 0000000..d049703 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72(2).jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72(3).jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72(3).jpg new file mode 100644 index 0000000..84afd8d Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72(3).jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72(4).jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72(4).jpg new file mode 100644 index 0000000..3ebe3bc Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72(4).jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72.jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72.jpg new file mode 100644 index 0000000..ddd30c3 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/120x72.jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
        {popup_items}
      '].join(""),popup_item:'
    • {title}
    • ',popup_item_selected:'
    • {title}
    • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
      ','','
      ','
      ','','','','
      {content}',"
      ","
      ","
      ","
      "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
        {items}
      ',""].join(""));a.templates.menuItem=a.template(['
    • ','
      ','{title}',"
      ","
    • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
      ','',"
      ",""].join("")),itemResult:a(['
      ','
      ','
      ','
      ',"
      {title}",'{count}',"
      ","
      "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
      {items}{actions}
      '),actionLink:a('
      {title}
      '),expired:a('
      {title}
      ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
      ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
       
      ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
      обновление...
      ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
      {(moreAsUpdate)[
      я в курсе
      ]}
      {(allItems)({(moreAsUpdate)()[]})}
      '),viewportLayout:b('
      {(titleButton)({titleButton})}
      показать ещё
      '),group:b('
      {timestamp}
      {items}
      '),item:b('
      {user} — {title}
      '),likeItem:b('
      {user} {appreciate} запись {title}
      '),recommendItem:b(''),replyItem:b('
      {user}{separator} {title}
      '),photoItem:b('
      {alt}
      '),videoItem:b('
      {duration}
      '),videoContainer:b('
      {items}
      '),albumsContainer:b('
      {items}
      '),videoCollection:a.template('
      {content}
      ',{content:""}),videoCollectionItem:b('
      {count} видео
      '),albumItem:b('
      {title}
      {count}
      '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
      {title}
      '),wishlistItem:b('
      {title}
      {title}
      '),wishlistPromisedItem:b('
      {info}
      {title}
      отменить
      '),ratingInfo:b(''),onload:b('
       
      '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
      ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
      "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
      ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
      ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
      Поделится с друзьями!
      {items}
      '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
        ',"
      ","",'
      ','

      Метки

      ','
        ','
      • ','
        ','','',"
        ","
      • ",'
      • добавлять метки могут только модераторы клуба
      • ',"
      ","
      ",'
      ','

      Основные:

      ','
        ',"
      ","
      "].join(""),keyword:['
    • ','
      ','{title}',"
      ","
    • "].join(""),active:['
    • ','
      ','{title} x',"","
      ","
    • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
      {prev}{next}
      ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
      ','
      ',"{userpics}","
      ",'
      ','◄','►',"
      ","
      "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
      ','
      ','

      Запись будет опубликована в вашем дневнике.

      ','
        ','
      • ','
        ','Опубликовать в клубе?',"
        ","
      • ","
      ","
      ",'",'","
      "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

      ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
      ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
      ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
      ','',"
      ",'
      {buttonOK}
      ','
      {buttonNOK}
      ',"{(checkbox)(",'
      ','','',"
      ",")[",'',"]}","{(noPreview)[",'
      ','посмотреть, что получится',"
      ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
      '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
      ','
        ','
      • ','
        ','','
        ','с оформлением','HTML-режим',"
        ","
        ","
      • ","
      ","
      "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
      {items}
      ',item:['
      ','
      ','{title}',"
      ","
      "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
      ','
        ',"
        ",'
        ','
          ','
        • ','
          ','','',"
          ","
        • ",'
        • ','
          ','','',"
          ","
        • ","
        ","
        "].join("");this.item=['
      • ','
        ','','x',"
        ","
      • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
        '+g.templates.popupLoader()+"
        ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
        ','
        Найти или выбрать из списка друзей',"
        ",'',"",'",'","","
        ','','','',"",'',"","','',"
        ","
        ",'
        ','
        ','
          ','
        • ','
          ','','',"
          ","
        • ","
        ","
        "].join("");this.emptyResults=['
        ',"Не найдено ни одного человека с именем или логином «{request}».
        ","Попробуйте уточнить запрос.
        "].join("");this.emptyPageResults=g.template('
        Пользователи не найдены.
        ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
        ','
          ','
        • ','',"
          ","
        • ","
        ","
        "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
        ','
          ','
        • ','
          ','','',"
          ","
        • ","
        ","
        "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
          ','
        • ','
          ','',"
          ","
        • ","
        ","",'
        ','

        Предыдущие:

        ',"Загрузка…","
        ",'
        ','
          ','
        • ','
          ','','',"
          ","
        • ","
        ","
        "].join("");this.list='
          {items}
        ';this.item=['
      • ','
        ','{title}',"
        ","
      • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
        ','
          ','
        • ','
          ','',"
          ","
        • ","
        ","
        ",'
        ','

        Предыдущие:

        ',"Загрузка…","
        "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
          {items}
        ',"",'
        ','
          ','
        • ','
          ','','',"
          ","
        • ",'
        • ','
          ','','","
          ","
        • ","
        ","
        "].join("");this.item=['
      • ','","
      • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
        ','
          ','
        • ','',"
        • ","
        ","
        ",'
        ','
          ','
        • ','
          ','',"
          ","
        • ","
        ","
        "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
        ','
          ','
        • ','
          ','
          как сильно хочу:
          ','','','',"",'','','',"",'','','',"","
          ","
        • ","
        ","
        ",'
        ','
          ','
        • ','
          ','',"
          ","
        • ","
        ","
        ",'
        '].join("");this.quoteEnabled=['
        ','','',"{(cut)(",'
        под врезкой
        ',")}","
        "].join("");this.quoteDisabled=['
        ','
        ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
        ","
        "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
        ','
          ','
        • ',"{quote}","
        • ","
        ","
        ",'
        ','
          ','
        • ','
          ','','
          ','с оформлением','HTML-режим',"
          ","
          ","
        • ","
        ","
        ",'
        '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
        ','
          ','
        • ','
          ',"
        • ","
        ","
        ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
        ','
          ','
        • ','
          ','',"
          ","
        • ","
        ","
        "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
        ','
          ','
        • ','
          ','','',"
          ","
        • ","
        ","
        "].join("")}function d(){this.title="Принять эту запись";this.content=['
        ',"
        "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
          {items}
        '),item:a.template('
      • {title}
      • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
        Редактирование ответа
        {content}
        {buttonOK}
        {buttonNOK}
        Текст не написан.
        '),hidden:a.template(''),text:a.template('
        '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
        ','
        {title}
        ','',"","",'",'",'',"","","
        ','
        ',"
        ',"
        ",'
        ','
        Текст не написан.
        ',"
        ","
        ",'
        ',"
        ","
        ",'
        ','
        ','
        ','
        ','',"
        ",'
        {buttonOK}
        ','
        {buttonNOK}
        ','
        ','или продолжить редактирование',"
        ","
        ","
        ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
        ','
        ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
        ",'
        ',' ','',"
        ","
        "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
        "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
        ','','','',"{user}","
        "].join("")),usersList:a('
        {users}
        '),userSocial:a(['
        ','',"{user}","
        "].join("")),pager:a(['
        ','{prev} ','{next}',"
        "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
        {contents}
        '),promise:ya.template('
        пообещать
        '),cancel:ya.template('
        отменить
        '),happens:ya.template('
        пометить как сбывшееся
        '),happened:ya.template('
        пожелание сбылось отменить
        '),promised:ya.template('
        обещано
        ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
        {text}
        '].join(""));a.templates.postDeleteForm=a.template(['
        ','','','','',"
        "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
        У вас есть сохраненный черновик, вы можете восстановить его или удалить.
        '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
        "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
        /ig,"
        ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
        Картинка недоступна
        '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
        ${content}
        ';if(!y5.is_opera||y5.opera_ver>=9){g+='
        '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
        ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
        #{title}
        ');b.setFooter('
         
        ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
        a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
        "+""+"
        ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
        t
        ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
        ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

        ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
        ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
        ","
        "],thead:[1,"","
        "],tr:[2,"","
        "],td:[3,"","
        "],col:[2,"","
        "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
        ","
        "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
        ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Видео — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Кразя: Дневник — я.ру
        + + + +
        ПоискПочтаДискКалендарьДеньгиМой КругФотки
        + + Выход

        Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

        +
        Записать мысль

        записи по  

        месяцам · меткам · типам

        выделить все / снять выделение

        Показать
        Кразя сменил настроение
        сегодня, 01:17
        (^_^)
        В связи с закрытием данного сервиса я переехал на http://blogobomzh.blogspot.ru/. Рад был со всеми Вами общаться! Очень жаль, но Се Ля Ви, как говорят французы!
        Кразя поделился ссылкой
        27 июня, 22:43
        (^_^)
        Яндекс закрывает Я.ру — Блог Яндекса
        Офигеть. В этой новости отключили комментарии.... хотелось бы думать, что это из-за большого их количества... Но что-то мне подсказывает, что всё-таки из-за очень негативного отклика... угумс. Я и сам здорово расстроился.
        Кразя написал
        27 июня, 22:22
        (^_^)
        Круговорот сервисов в природе

        Вот  в связи с закрытием Яру вспомнилось мне, что недавно точно так же грустил по поводу онлайн IM клиента и Джаббер сервера.

        Да и обиднее всего то, что накомпленный фукнционал сервисов и тот пользовательский опыт и отшлифованное тысячами пользователей удобство использования при закрытии сервисов просто пропвадает. Вот поэтому открытые проекты намного лучше закрытых. Потому что в открытых проектах ничего не пропадает. Всё можно использовать для построения чего-то нового и наверно еще более полезного и жизнестойкого.

         

        Вот скажем в чём для меня Яру был удобен. 

        Во-первых сквозная интеграция множества сервисов Яндекса. Да те же Фотки и авторизация.

        Во-вторых это действительно профессионально и грамотно построенный интерфейс. Очень удобный интерфейс я хочу подчеркнуть. Да хотя бы анкета для каждого пользователя

        В-третьих, очень удачное сочетание социальности и наличие некоторых уникальных опций таких как "Поссориться" интеграция отзывов с Маркетом.

        В-Четвёртых, клубная система. Простоая и функциональная.

        Есть еще и в в-пятых и в-десятых... Но описать почему я так переживаю из-за закрыия сервиса аргументированно я наврено так и не смогу. наверно всё дело тут в атмосфере. Которая даже такого интраверта как я  привязала к себе.

         

         

        Кстати, интересно, а передать сообществу или открыть код и инструменты работы Яру для сообщества нет возможности? 

         

        Кразя сменил настроение
        27 июня, 08:47
        (^_^)
        Яру убивают! Ужас, никогда не думал, что могу настолько привязаться к какому-то сервису... Передо мной разверзлась бездна! Теперь фобии развиваются...А вдруг и остальные сервисы когда-нибудь закроют... Например почту... Как дальше жить?!
        Кразя поделился ссылкой
        27 июня, 08:43
        (^_^)
        Яндекс закрывает Я.ру — Блог Яндекса
        Вот это да... Нежданно-негаданно получил оплеуху от Яндекса. И это при том, что специально использовал сервисы Яндекса для того чтобы застраховаться от ситуации когда его (сервис) прото закрывают. Мда... Теперь придётся куда-то перебираться... Блогобомж в пути!
        Кразя написал
        27 июня, 00:39
        plus.google.com
        (^_^)
        Яру мертв! Да ебись оно конём!

        Коробка из под холодильника
        Заебись. Сука яндекс убивает Яру. И блять предлагает переехать на другой блогосервис. На ЖЖ!!! Они блять издеваются. Как этим говносервисом можно пользоваться после лаконичного и удобного Яру? Яндекс говорит идите нахуй в сво...
        Кразя написал
        26 июня, 13:00
        plus.google.com
        (^_^)
        Открывается период долгосрочной поддержки Debian 6.0
        Проект Debian  рад объявить что заработала инфраструктура для долгосрочной поддержки (Long Term Support - LTS) которая будет обеспечивать Debian GNU/Linux 6.0 (кодовое имя squeeze) обновлениями безопасности  до февраля 2016г. Пользователям этой версии необходимо воспользоваться инструкциями размещенными на странице https://wiki.debian.org/LTS/Using, чтобы убедиться что они получают обновления безопаности LTS.

        Debian -- News -- Debian 6 debuts its long term support period
        Debian 6 debuts its long term support period. June 16th, 2014. The Debian project is pleased to announce that the Long Term Support (LTS) infrastructure to provide security updates for Debian GNU/Linux 6.0 (code name squeeze ) until February 2016 is now in place. Users of this version should ...
        Кразя написал
        26 июня, 12:59
        plus.google.com
        (^_^)
        Выпуск обновленного Debian 7: 7.5
        Проект Debian рад сообщить о пятом обновлении стабильной версии дистрибутива Debian 7 (кодовое имя wheezy). Значительная часть обновления связана с исправлением проблем безопасности, но так же исправлены несколько серьезных ошибок. Так же отдельно были опубликованы и размещены рекомендации по безопаности. 

        Debian -- News -- Updated Debian 7: 7.5 released
        Updated Debian 7: 7.5 released. April 26th, 2014. The Debian project is pleased to announce the fifth update of its stable distribution Debian 7 (codename wheezy ). This update mainly adds corrections for security problems to the stable release, along with a few adjustments for serious problems.
        Кразя написал
        26 июня, 12:59
        plus.google.com
        (^_^)
        Объявлено о долгосрочной поддержке для Debian 6.0

        Проект Debian рад объявить что поскольку выпуск обновлений безопасности для Debian GNU/Linux 6.0 (Кодовое имя squeeze) прекращен 31 мая, то долгсрочная поддержка для этого дистрибудтивы продлевается до февраля 2016 года, т.е. до 5 лет с первого выпуска. Дополнительные ресурсы на это выделяются по запросу заинтересованных компаний и групп которым требовалось продление выпуска обновлений безопаности.

        Debian -- News -- Long term support for Debian 6.0 Announced
        Long term support for Debian 6.0 Announced. April 24th, 2014. The Debian project is pleased to announce that although regular security support for Debian GNU/Linux 6.0 (code name squeeze ) will be terminated on 31 May, long term support for the distribution is going to be extended until February ...
        Кразя написал
        21 июня, 15:26
        plus.google.com
        (^_^)
        Очень грамотно сформулированное мнение о причинах выбора средств и целей САСШ в ситуации вокруг Украины. Приведены очень красочные и яркие исторические параллели. Очень советую в ОБЯЗАТЕЛЬНОМ порядке ознакомится всем интересующимся текущей международной политической и экономической обстановкой.

        Зачем Америке Майдан - Аргументы Недели
        Разворачивающаяся на Донбассе война несёт огромные угрозы России, Европе и даже всему миру, непонимание которых влечёт их автоматическое развёртывание в региональную, а затем и мировую войну. Как остановить конфликт?
        +

         

        Что получается:  +   + изменить  +
        Подписаться на комментарии к записи

        Получать уведомления о всех ответах в этом обсуждении.

         
        Отписаться от комментарев к записи

        Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

         
        К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
        + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_blog.xml b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_blog.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_blog.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/0_9b5e6_2b4878ce_M b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/0_9b5e6_2b4878ce_M new file mode 100644 index 0000000..e3a4b82 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/0_9b5e6_2b4878ce_M differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
          {popup_items}
        '].join(""),popup_item:'
      • {title}
      • ',popup_item_selected:'
      • {title}
      • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
        ','','
        ','
        ','','','','
        {content}',"
        ","
        ","
        ","
        "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
          {items}
        ',""].join(""));a.templates.menuItem=a.template(['
      • ','
        ','{title}',"
        ","
      • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
        ','',"
        ",""].join("")),itemResult:a(['
        ','
        ','
        ','
        ',"
        {title}",'{count}',"
        ","
        "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
        {items}{actions}
        '),actionLink:a('
        {title}
        '),expired:a('
        {title}
        ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
        ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
         
        ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
        обновление...
        ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
        {(moreAsUpdate)[
        я в курсе
        ]}
        {(allItems)({(moreAsUpdate)()[]})}
        '),viewportLayout:b('
        {(titleButton)({titleButton})}
        показать ещё
        '),group:b('
        {timestamp}
        {items}
        '),item:b('
        {user} — {title}
        '),likeItem:b('
        {user} {appreciate} запись {title}
        '),recommendItem:b(''),replyItem:b('
        {user}{separator} {title}
        '),photoItem:b('
        {alt}
        '),videoItem:b('
        {duration}
        '),videoContainer:b('
        {items}
        '),albumsContainer:b('
        {items}
        '),videoCollection:a.template('
        {content}
        ',{content:""}),videoCollectionItem:b('
        {count} видео
        '),albumItem:b('
        {title}
        {count}
        '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
        {title}
        '),wishlistItem:b('
        {title}
        {title}
        '),wishlistPromisedItem:b('
        {info}
        {title}
        отменить
        '),ratingInfo:b(''),onload:b('
         
        '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
        ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
        "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
        ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
        ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
        Поделится с друзьями!
        {items}
        '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
          ',"
        ","",'
        ','

        Метки

        ','
          ','
        • ','
          ','','',"
          ","
        • ",'
        • добавлять метки могут только модераторы клуба
        • ',"
        ","
        ",'
        ','

        Основные:

        ','
          ',"
        ","
        "].join(""),keyword:['
      • ','
        ','{title}',"
        ","
      • "].join(""),active:['
      • ','
        ','{title} x',"","
        ","
      • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
        {prev}{next}
        ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
        ','
        ',"{userpics}","
        ",'
        ','◄','►',"
        ","
        "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
        ','
        ','

        Запись будет опубликована в вашем дневнике.

        ','
          ','
        • ','
          ','Опубликовать в клубе?',"
          ","
        • ","
        ","
        ",'",'","
        "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

        ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
        ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
        ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
        ','',"
        ",'
        {buttonOK}
        ','
        {buttonNOK}
        ',"{(checkbox)(",'
        ','','',"
        ",")[",'',"]}","{(noPreview)[",'
        ','посмотреть, что получится',"
        ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
        '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
        ','
          ','
        • ','
          ','','
          ','с оформлением','HTML-режим',"
          ","
          ","
        • ","
        ","
        "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
        {items}
        ',item:['
        ','
        ','{title}',"
        ","
        "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
        ','
          ',"
          ",'
          ','
            ','
          • ','
            ','','',"
            ","
          • ",'
          • ','
            ','','',"
            ","
          • ","
          ","
          "].join("");this.item=['
        • ','
          ','','x',"
          ","
        • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
          '+g.templates.popupLoader()+"
          ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
          ','
          Найти или выбрать из списка друзей',"
          ",'',"",'",'","","
          ','','','',"",'',"","','',"
          ","
          ",'
          ','
          ','
            ','
          • ','
            ','','',"
            ","
          • ","
          ","
          "].join("");this.emptyResults=['
          ',"Не найдено ни одного человека с именем или логином «{request}».
          ","Попробуйте уточнить запрос.
          "].join("");this.emptyPageResults=g.template('
          Пользователи не найдены.
          ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
          ','
            ','
          • ','',"
            ","
          • ","
          ","
          "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
          ','
            ','
          • ','
            ','','',"
            ","
          • ","
          ","
          "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
            ','
          • ','
            ','',"
            ","
          • ","
          ","",'
          ','

          Предыдущие:

          ',"Загрузка…","
          ",'
          ','
            ','
          • ','
            ','','',"
            ","
          • ","
          ","
          "].join("");this.list='
            {items}
          ';this.item=['
        • ','
          ','{title}',"
          ","
        • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
          ','
            ','
          • ','
            ','',"
            ","
          • ","
          ","
          ",'
          ','

          Предыдущие:

          ',"Загрузка…","
          "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
            {items}
          ',"",'
          ','
            ','
          • ','
            ','','',"
            ","
          • ",'
          • ','
            ','','","
            ","
          • ","
          ","
          "].join("");this.item=['
        • ','","
        • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
          ','
            ','
          • ','',"
          • ","
          ","
          ",'
          ','
            ','
          • ','
            ','',"
            ","
          • ","
          ","
          "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
          ','
            ','
          • ','
            ','
            как сильно хочу:
            ','','','',"",'','','',"",'','','',"","
            ","
          • ","
          ","
          ",'
          ','
            ','
          • ','
            ','',"
            ","
          • ","
          ","
          ",'
          '].join("");this.quoteEnabled=['
          ','','',"{(cut)(",'
          под врезкой
          ',")}","
          "].join("");this.quoteDisabled=['
          ','
          ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
          ","
          "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
          ','
            ','
          • ',"{quote}","
          • ","
          ","
          ",'
          ','
            ','
          • ','
            ','','
            ','с оформлением','HTML-режим',"
            ","
            ","
          • ","
          ","
          ",'
          '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
          ','
            ','
          • ','
            ',"
          • ","
          ","
          ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
          ','
            ','
          • ','
            ','',"
            ","
          • ","
          ","
          "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
          ','
            ','
          • ','
            ','','',"
            ","
          • ","
          ","
          "].join("")}function d(){this.title="Принять эту запись";this.content=['
          ',"
          "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
            {items}
          '),item:a.template('
        • {title}
        • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
          Редактирование ответа
          {content}
          {buttonOK}
          {buttonNOK}
          Текст не написан.
          '),hidden:a.template(''),text:a.template('
          '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
          ','
          {title}
          ','',"","",'",'",'',"","","
          ','
          ',"
          ',"
          ",'
          ','
          Текст не написан.
          ',"
          ","
          ",'
          ',"
          ","
          ",'
          ','
          ','
          ','
          ','',"
          ",'
          {buttonOK}
          ','
          {buttonNOK}
          ','
          ','или продолжить редактирование',"
          ","
          ","
          ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
          ','
          ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
          ",'
          ',' ','',"
          ","
          "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
          "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
          ','','','',"{user}","
          "].join("")),usersList:a('
          {users}
          '),userSocial:a(['
          ','',"{user}","
          "].join("")),pager:a(['
          ','{prev} ','{next}',"
          "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
          {contents}
          '),promise:ya.template('
          пообещать
          '),cancel:ya.template('
          отменить
          '),happens:ya.template('
          пометить как сбывшееся
          '),happened:ya.template('
          пожелание сбылось отменить
          '),promised:ya.template('
          обещано
          ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
          {text}
          '].join(""));a.templates.postDeleteForm=a.template(['
          ','','','','',"
          "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
          У вас есть сохраненный черновик, вы можете восстановить его или удалить.
          '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
          "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
          /ig,"
          ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
          Картинка недоступна
          '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
          ${content}
          ';if(!y5.is_opera||y5.opera_ver>=9){g+='
          '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
          ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
          #{title}
          ');b.setFooter('
           
          ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/blog.yandex.ru b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/blog.yandex.ru new file mode 100644 index 0000000..3daefb2 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/blog.yandex.ru differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
          a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
          "+""+"
          ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
          t
          ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
          ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

          ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
          ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
          ","
          "],thead:[1,"","
          "],tr:[2,"","
          "],td:[3,"","
          "],col:[2,"","
          "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
          ","
          "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
          ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/ka-4QjmUd01423RZVdjYCj2wnKQN_uSlfxL6Iu_YsAabYWBH7OMn_4K3jOL7k-I23U8prQ8zSKLtIJAJnH-10aaTri2pTG93hkHIHU_ovkk-gXomx1ZVdXFlcsqK8EM=w120-h120 b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/ka-4QjmUd01423RZVdjYCj2wnKQN_uSlfxL6Iu_YsAabYWBH7OMn_4K3jOL7k-I23U8prQ8zSKLtIJAJnH-10aaTri2pTG93hkHIHU_ovkk-gXomx1ZVdXFlcsqK8EM=w120-h120 new file mode 100644 index 0000000..9d47393 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/ka-4QjmUd01423RZVdjYCj2wnKQN_uSlfxL6Iu_YsAabYWBH7OMn_4K3jOL7k-I23U8prQ8zSKLtIJAJnH-10aaTri2pTG93hkHIHU_ovkk-gXomx1ZVdXFlcsqK8EM=w120-h120 differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Дневник — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Кразя: Желания — я.ру
          + + + +
          ПоискПочтаДискКалендарьДеньгиМой КругФотки
          + + Выход

          Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

          + +
          Записать желание
          Кразя захотел
          5 марта, 10:31
          (^_^)
          Huawei Honor 3 Yandex
          Очень хочу
          Телефон с прямой интеграцией с сервисами Яндекса.  ХОЧУ!
          Кразя захотел
          16 декабря 2013 года, 19:02
          (^_^)
          Инструмент для формирования кабельных жгутов
          Очень хочу
          Это реальная фишка для профессионала
          Кразя захотел
          9 ноября 2013 года, 15:25
          (^_^)
          Удобный термометр
          Очень хочу
          артикул    RST01391
          страна    Швеция/КНР
          торговая марка    RST
          размер    70х98х2х22 мм
          цвет корпуса    прозрачный
          количество в коробке    50 шт
          диапазон измеряемых температур в помещении    -30~70 °С
          разрешение    0,1 °С
          описание термометра
          Современные оригинальные модели уличного термометра с прозрачным дисплеем. Крепятся на окно с внешней стороны в любом месте. Крупные контрастные цифры. Система контроля тенденции изменения температур. Система автоматического определения минимальной и максимальной температур за текущие сутки.
          Кразя захотел
          изменено 24 ноября 2012 года, в 16:41
          (^_^)
          POLAR WEARLINK®+ TRANSMITTER WITH BLUETOOTH®
          Очень хочу
          Подключается по Bluetouth к моему Андройду. Теперь могу узнать данные о пульсе во время тренировки. По-моему очень хорошее подспорье.
          Кразя захотел
          30 декабря 2011 года, 23:16
          (^_^)
          Млава красная
          Чтобы было
          Ух ты! Альтернативная история от Перумова! Интересно-интересно почитать.
          Кразя захотел
          10 декабря 2010 года, 15:10
          (^_^)
          Нашивка Caldari
          Очень хочу
          Чтобы все знали, что я давил, давлю и буду давить заносчивых галентов!
          Кразя захотел
          изменено 18 июня 2012 года, в 22:04
          (^_^)
          Lowepro Backpack Factor
          Чтобы было
          Портфель, что у меня сейчас уже на ладан дышит, да и неудобный очень. надо чтоб руки свободные были... ну чтобы газету держать, или пирожок, воду, бластер, ключи... да мало ли!
          UPD:
          У меня уже ТРИ кожанных портфеля для ноутов. Но блин, ни одного рюкзака нет. Надоело быть серьезным с портфелем, хочу несерьезный рюкзак!
          Кразя захотел
          20 ноября 2011 года, 12:53
          (^_^)
          Samsung Galaxy S
          Невыносимо хочу
          Да это целый компьютер в кармане!
          Во-первых, это всё-таки какой-никакой а Linux, пускай и от Google.
          Во-вторых, я от планшета отказался из-за того, что писать на нём пальцем нереально... а тогда зачем таскать с собой дуру, которая через пару лет приведёт к расзвитию туннельного синдрома на левой руке? (тяжёлый собака).
          В-третьих, он большой! Я такие люблю! Хоть и лёгкий... Но думаю это можно будет исправить при желании =)=)
          В-четвёртых, как сказал Иван Охлобыстин: "Это настоящий офис фрилансера!". И главное, синхронизация контактов будет! И задач! И почты!

          АААААА!!! Когда же ?! Когда же он попадёт в мои нежные и ласковые руки?!
          Кразя захотел
          24 сентября 2011 года, 20:12
          (^_^)
          Губная гармоника - HOHNER Special 20 560/20 C
          Очень хочу
          Буду мучать соседей =)=)
          Кразя захотел
          26 декабря 2010 года, 16:56
          (^_^)
          Зарядку для телефона Motorolla
          Очень хочу
          а заодно и для гарнитуры. Всё, всё что нажито непосильным трудом сгорело во время смерти удлинителя. И каким образом он так красиво умудрился помереть?! 0_о0_о
          +

           

          Что получается:  +   + изменить  +
          Подписаться на комментарии к записи

          Получать уведомления о всех ответах в этом обсуждении.

           
          Отписаться от комментарев к записи

          Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

           
          К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
          + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_wishlist.xml b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_wishlist.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_wishlist.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_4b493_12f2c2ab_XS b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_4b493_12f2c2ab_XS new file mode 100644 index 0000000..c7eb5f7 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_4b493_12f2c2ab_XS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_4c091_685a214_XS b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_4c091_685a214_XS new file mode 100644 index 0000000..532ffe9 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_4c091_685a214_XS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_9b5e6_2b4878ce_M b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_9b5e6_2b4878ce_M new file mode 100644 index 0000000..e3a4b82 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_9b5e6_2b4878ce_M differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_a8754_a4217beb_XS b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_a8754_a4217beb_XS new file mode 100644 index 0000000..94afeab Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_a8754_a4217beb_XS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_aa790_c43c28f3_XS b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_aa790_c43c28f3_XS new file mode 100644 index 0000000..05cecf9 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/0_aa790_c43c28f3_XS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/205852455_66x100.jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/205852455_66x100.jpg new file mode 100644 index 0000000..747f959 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/205852455_66x100.jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
            {popup_items}
          '].join(""),popup_item:'
        • {title}
        • ',popup_item_selected:'
        • {title}
        • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
          ','','
          ','
          ','','','','
          {content}',"
          ","
          ","
          ","
          "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
            {items}
          ',""].join(""));a.templates.menuItem=a.template(['
        • ','
          ','{title}',"
          ","
        • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
          ','',"
          ",""].join("")),itemResult:a(['
          ','
          ','
          ','
          ',"
          {title}",'{count}',"
          ","
          "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
          {items}{actions}
          '),actionLink:a('
          {title}
          '),expired:a('
          {title}
          ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
          ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
           
          ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
          обновление...
          ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
          {(moreAsUpdate)[
          я в курсе
          ]}
          {(allItems)({(moreAsUpdate)()[]})}
          '),viewportLayout:b('
          {(titleButton)({titleButton})}
          показать ещё
          '),group:b('
          {timestamp}
          {items}
          '),item:b('
          {user} — {title}
          '),likeItem:b('
          {user} {appreciate} запись {title}
          '),recommendItem:b(''),replyItem:b('
          {user}{separator} {title}
          '),photoItem:b('
          {alt}
          '),videoItem:b('
          {duration}
          '),videoContainer:b('
          {items}
          '),albumsContainer:b('
          {items}
          '),videoCollection:a.template('
          {content}
          ',{content:""}),videoCollectionItem:b('
          {count} видео
          '),albumItem:b('
          {title}
          {count}
          '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
          {title}
          '),wishlistItem:b('
          {title}
          {title}
          '),wishlistPromisedItem:b('
          {info}
          {title}
          отменить
          '),ratingInfo:b(''),onload:b('
           
          '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
          ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
          "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
          ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
          ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
          Поделится с друзьями!
          {items}
          '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
            ',"
          ","",'
          ','

          Метки

          ','
            ','
          • ','
            ','','',"
            ","
          • ",'
          • добавлять метки могут только модераторы клуба
          • ',"
          ","
          ",'
          ','

          Основные:

          ','
            ',"
          ","
          "].join(""),keyword:['
        • ','
          ','{title}',"
          ","
        • "].join(""),active:['
        • ','
          ','{title} x',"","
          ","
        • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
          {prev}{next}
          ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
          ','
          ',"{userpics}","
          ",'
          ','◄','►',"
          ","
          "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
          ','
          ','

          Запись будет опубликована в вашем дневнике.

          ','
            ','
          • ','
            ','Опубликовать в клубе?',"
            ","
          • ","
          ","
          ",'",'","
          "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

          ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
          ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
          ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
          ','',"
          ",'
          {buttonOK}
          ','
          {buttonNOK}
          ',"{(checkbox)(",'
          ','','',"
          ",")[",'',"]}","{(noPreview)[",'
          ','посмотреть, что получится',"
          ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
          '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
          ','
            ','
          • ','
            ','','
            ','с оформлением','HTML-режим',"
            ","
            ","
          • ","
          ","
          "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
          {items}
          ',item:['
          ','
          ','{title}',"
          ","
          "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
          ','
            ',"
            ",'
            ','
              ','
            • ','
              ','','',"
              ","
            • ",'
            • ','
              ','','',"
              ","
            • ","
            ","
            "].join("");this.item=['
          • ','
            ','','x',"
            ","
          • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
            '+g.templates.popupLoader()+"
            ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
            ','
            Найти или выбрать из списка друзей',"
            ",'',"",'",'","","
            ','','','',"",'',"","','',"
            ","
            ",'
            ','
            ','
              ','
            • ','
              ','','',"
              ","
            • ","
            ","
            "].join("");this.emptyResults=['
            ',"Не найдено ни одного человека с именем или логином «{request}».
            ","Попробуйте уточнить запрос.
            "].join("");this.emptyPageResults=g.template('
            Пользователи не найдены.
            ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
            ','
              ','
            • ','',"
              ","
            • ","
            ","
            "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
            ','
              ','
            • ','
              ','','',"
              ","
            • ","
            ","
            "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
              ','
            • ','
              ','',"
              ","
            • ","
            ","",'
            ','

            Предыдущие:

            ',"Загрузка…","
            ",'
            ','
              ','
            • ','
              ','','',"
              ","
            • ","
            ","
            "].join("");this.list='
              {items}
            ';this.item=['
          • ','
            ','{title}',"
            ","
          • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
            ','
              ','
            • ','
              ','',"
              ","
            • ","
            ","
            ",'
            ','

            Предыдущие:

            ',"Загрузка…","
            "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
              {items}
            ',"",'
            ','
              ','
            • ','
              ','','',"
              ","
            • ",'
            • ','
              ','','","
              ","
            • ","
            ","
            "].join("");this.item=['
          • ','","
          • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
            ','
              ','
            • ','',"
            • ","
            ","
            ",'
            ','
              ','
            • ','
              ','',"
              ","
            • ","
            ","
            "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
            ','
              ','
            • ','
              ','
              как сильно хочу:
              ','','','',"",'','','',"",'','','',"","
              ","
            • ","
            ","
            ",'
            ','
              ','
            • ','
              ','',"
              ","
            • ","
            ","
            ",'
            '].join("");this.quoteEnabled=['
            ','','',"{(cut)(",'
            под врезкой
            ',")}","
            "].join("");this.quoteDisabled=['
            ','
            ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
            ","
            "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
            ','
              ','
            • ',"{quote}","
            • ","
            ","
            ",'
            ','
              ','
            • ','
              ','','
              ','с оформлением','HTML-режим',"
              ","
              ","
            • ","
            ","
            ",'
            '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
            ','
              ','
            • ','
              ',"
            • ","
            ","
            ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
            ','
              ','
            • ','
              ','',"
              ","
            • ","
            ","
            "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
            ','
              ','
            • ','
              ','','',"
              ","
            • ","
            ","
            "].join("")}function d(){this.title="Принять эту запись";this.content=['
            ',"
            "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
              {items}
            '),item:a.template('
          • {title}
          • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
            Редактирование ответа
            {content}
            {buttonOK}
            {buttonNOK}
            Текст не написан.
            '),hidden:a.template(''),text:a.template('
            '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
            ','
            {title}
            ','',"","",'",'",'',"","","
            ','
            ',"
            ',"
            ",'
            ','
            Текст не написан.
            ',"
            ","
            ",'
            ',"
            ","
            ",'
            ','
            ','
            ','
            ','',"
            ",'
            {buttonOK}
            ','
            {buttonNOK}
            ','
            ','или продолжить редактирование',"
            ","
            ","
            ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
            ','
            ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
            ",'
            ',' ','',"
            ","
            "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
            "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
            ','','','',"{user}","
            "].join("")),usersList:a('
            {users}
            '),userSocial:a(['
            ','',"{user}","
            "].join("")),pager:a(['
            ','{prev} ','{next}',"
            "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
            {contents}
            '),promise:ya.template('
            пообещать
            '),cancel:ya.template('
            отменить
            '),happens:ya.template('
            пометить как сбывшееся
            '),happened:ya.template('
            пожелание сбылось отменить
            '),promised:ya.template('
            обещано
            ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
            {text}
            '].join(""));a.templates.postDeleteForm=a.template(['
            ','','','','',"
            "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
            У вас есть сохраненный черновик, вы можете восстановить его или удалить.
            '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
            "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
            /ig,"
            ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
            Картинка недоступна
            '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
            ${content}
            ';if(!y5.is_opera||y5.opera_ver>=9){g+='
            '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
            ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
            #{title}
            ');b.setFooter('
             
            ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/arm99926.jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/arm99926.jpg new file mode 100644 index 0000000..fc9da59 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/arm99926.jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/bt_wearlink_transmitter_500x500.jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/bt_wearlink_transmitter_500x500.jpg new file mode 100644 index 0000000..6a4cd15 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/bt_wearlink_transmitter_500x500.jpg differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/i b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/i new file mode 100644 index 0000000..c56fb80 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/i differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/i(1) b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/i(1) new file mode 100644 index 0000000..a16cddf Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/i(1) differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/i(2) b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/i(2) new file mode 100644 index 0000000..55d86fd Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/i(2) differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
            a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
            "+""+"
            ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
            t
            ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
            ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

            ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
            ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
            ","
            "],thead:[1,"","
            "],tr:[2,"","
            "],td:[3,"","
            "],col:[2,"","
            "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
            ","
            "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
            ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Желания — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Кразя: Отзывы — я.ру
            + + + +
            ПоискПочтаДискКалендарьДеньгиМой КругФотки
            + + Выход

            Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

            Написать отзыв
            +
            Кразя написал отзыв
            31 мая, 21:12
            Яндекс.Маркета
            (^_^)
            Epson M200
            + + всем рекомендую + :-))
            -подробные оценки
            Хорошее качество:-)
            Хорошая цена:-)
            Удобен в обращении:-)
            Достоинства: Работает под Linux, стоимость печати,  отсутствие картриджей
            Недостатки: После печати раздается высокочастотный свист, медленная работа сканера (частично решается программным путём) и соответственно ADF.
            Комментарий: Приобрёл себе этот сетевой струйный МФУ с ADF (автоматический податчик документов). Выбирал из соображений стоимости отпечатка.

            Установка на работе под Linux такой же модели не вызвала никаких проблем.

            Драйвера с ресурса epson.net установил под свою платформу и всё. Кстати драйвера собственно принтера и сканера в двух разных пакетах раздаются. Плагин для сетевого сканера так же в отдельном пакете.
            А вот дома у меня из коробки сканер не заработал по USB. Имею ввиду утилиту iscan, которая мне показалось удобной в работе. Пришлось править файл:
            /etc/sane.d/epkowa.conf.
            Так как агрегат подключен к сети, то я  закомментировал строки поиска сканера по usb и scsi, оставив только сетевое подключение через по имени принтера.
            Кразя написал отзыв
            7 января 2012 года, 00:28
            (^_^)
            Аксенов - Арес
            + + вполне достойный выбор + :-)
            Комментарий: С удовольствием прочитал эту книгу! Чувствуется задел на серьезный сериал =)=)  исхожу из того что обнаружил некоторое количество огнестрельного оружия развешенного по стенам, но в первых двух актах (книгах) не было ни одного выстрела.
            Эти книги мне понравились даже больше, чем цикл "Самозванец", как динамикой сюжета, так и "лёгкостью слога".  Книга действительно легко читается и время за ней пролетает незаметно.
            Кразя написал отзыв
            30 декабря 2011 года, 23:47
            (^_^)
            Владимир Мясоедов, Леонид Кондратьев - Торговец
            + + не хуже и не лучше других + :-|
            Комментарий: Веселая история о восхождении на престол Молодого мага-императора с помощью современного огнестрельного оружия из нашего мира.  Возможно книга покажется кому-то интересной и смешной. Я честно говоря не очень и смеялся.
            Кразя написал отзыв
            изменено 30 декабря 2011 года, в 23:19
            (^_^)
            Даниил Аксенов - Самозванец
            + + вполне достойный выбор + :-)
            Комментарий: Опус о "молодом человеке" попашем в другой мир и с головой окунувшемся в формирование для любимого себя приемлемых условий существования.  Читая эту книгу я в очередной раз порадовался за классическую, до фурсенковскую систему образования, которая готовит не просто специалистов, а людей способных учиться и самосовершенствоваться, не зацикливаясь на своих профессиональных навыках. Как жаль что это не стало массовым явлением для выпускников русских ВУЗов =)=)

            Бодренькое действие, весьма и весьма сжатое по времени, где-то полтора года. Очень радует намек на продолжение. Уже видел вторую и третью книгу этой серии.

            Не хочу оценивать литературное качество текста, поскольку являюсь весьма не привередливым читателем и уж тем более не имею навыков в работе критиком. И уж тем более не стараюсь локализоваться все  клавишно-ударные музыкальные инструменты с горизонтальным размещением струн, дек и механической части в произведении. В целом неплохо, отторжения не вызывает.  Единственное что это некоторый скачок в  точке с которой идёт повествование где-то процентах на 20 от начала автор вдруг нивелирует главного героя до уровня еще одного из действующих лиц. Причём, перестаёт называть его по имени.  Не сразу понимал в диалогов кто и что говорит, возникала небольшая путаница.
            Кразя написал отзыв
            изменено 29 декабря 2011 года, в 21:35
            (^_^)
            Линкольн для адвоката (The Lincoln Lawyer)
            + + всем рекомендую + :-))
            Комментарий: Детективная история набирающая скорость по ходу раскрытия сюжета. То что начинается как еще одно дело для адвоката, просто способ срубить деньжат становится битвой за жизнь. Сюжет захватывает внимание, заставляет сопереживать главному герою и не отпускает до самой развязки.

            Мэттью Макконехи показал замечательную игру, сыграл отличного парня. А вот к Райану Филлипп похоже очень крепко прицепилось амплуа парня с прекрасным лицом и червивым сердцем.

            Описание:
            Микки Хэллер – это не совсем обычный адвокат. Офисом ему служит заднее сиденье машины, а клиентская база формируется из байкеров, шулеров, торговцев наркотиками. Известный своей циничностью адвокат Линкольна обожает игры с правосудием. Но на этот раз ему предстоит вести серьезное дело об убийстве, а клиент - известный плэйбой из Беверли-Хиллз. Майкл и не подозревает, какими опасностями обернется его желание восстановить справедливость.

            Год выпуска: 2011
            Жанр фильма: Драмы
            Страна выпуска: США
            Продолжительность: 118 минут

            Режиссер фильма: Брэд Фурман
            В ролях:
            Мэттью Макконехи
            Райан Филлипп
            Уильям Мэйси
            Маргарита Левиева
            Кразя написал отзыв
            20 ноября 2011 года, 12:29
            (^_^)
            HDD SATA Docking station for 2.5'' or 3.5'' USB2.0(HDD-DSUS)
            + + вполне достойный выбор + :-)
            Комментарий: Пользуюсь полгода. На момент написания отзыва (20.11.2011), через интернет магазины можно было купить за 750 рублей + доставка. Сам приобрёл за 1000 рублей в городе Геленджик.

            Подпружиненая крышечка отвалилась прямо в магазине, поэтому и понял, что док станция в хозяйстве вещь архиважная и требуется её купить прямо сейчас. =)=) Но толку от крышечки всё равно никакого, у меня винт всё время торчит, поэтому о данной потери совершенно не жалею.

            Пластик не сильно пылиться. Внешний вид хороший. Правда жирными пальцами лучше не лапать =)=) замучился оттирать. Модный голубой светодиод в сочетании с классическим чёрным угловатым корпусом добавляют немного атмосферы киберпанка 80х на мой рабочий стол =)=)

            Особо порадовало, что в Linux диски определяются не как съёмные USB, а как полноценные SATA устройства. Спасибо встроенному контроллеру. Поэтому диски могут уходить в спящий режим и не крутить постоянно шпиндель.

            Есть выключатель. Поэтому если нет необходимости в работе док станции можно просто её выключить. Родной блок питания не греется.

            Кабель USB в комплекте длинный, мне хватило чтобы разместить станцию на противоположной от системного блока стороне стола. Кстати системник стоит ПОД столом. Чтобы не соврать, но полтора метра длины у кабеля есть, кажется.
            Кразя написал отзыв
            изменено 29 декабря 2011 года, в 21:34
            (^_^)
            Ник. Админ
            + + вполне достойный выбор + :-)
            Достоинства: Уже четвёртая книга. Подробные описания инфомагии. Ряд динамичный моментов
            Недостатки: Сюжет топчется на месте
            Комментарий: Недавно закончил читать уже четвёртую книгу потрясающего сериала про программиста попавшего в мир магии, меча и кинжала.  Закончил потому что уже два раза бросал из-за скуки. Не то чтобы книга скучная или неинтересная.  Просто для меня в ней нет драйва. Если первые две я проглотил залпом, вторую прочитал с интересом, то эту читал местами.Если раньше связь методов программирования с магическими основами была фишкой этой серии, то теперь степенные и подробные описания уже как старая жвачка - вроде и жевать можно, но челюсти намертво склеивает.

            Дочитал из принципа. Но всё равно жду следующую книгу. Интересно же что с парнем дальше будет и какая из двух красоток (а может сразу две?) будут ему в купальне спину массажировать =)=)
            Кразя написал отзыв
            15 октября 2010 года, 16:55
            Яндекс.Маркета
            ссылкатолько для меня
            (^_^)
            Sanyo ICR-FP700D
            + + вполне достойный выбор + :-)
            -подробные оценки
            Превосходное качество:-))
            Хорошая цена:-)
            Очень удобен в обращении:-))
            Достоинства: Акуратный и лаконичный дизайн.
            Возможность подключения внешнего микрофона с MiniJack 3.5 разъемом
            Стереозапись
            Питание от одной батареи ААА
            Нет встроеной памяти
            Недостатки: Отсутствие чехла
            Комментарий: Абсолютно адекватный прибор. На высокой чувствительности позволяет отлично записывать лекции и семинары. Не имеет встроеной памяти, поэтому не надо переплачивать за эту бесполезную штуку, учитывая, что SD карта 10-го класса на 4 гигабайта стоит менее четырёх сотен рублей и позволяет более 40 часов звука записывать. На данный момент записал почти 12 часов а на индикаторе заряда батареи до сих пор все 3 деления горят.

            Качество изготовления: корпус не скрипит крышки от разъема карты и блока батареии сидят плотно, не соскакивают. Переключатели и кноки работают четко. Подписи к кнопкам не стираются и не царапаются.

            Подключается к ЭВМ через стандартный MiniUSB, так что не надо с собой возить кучу кабелей.

            Нет чехла и прибор быстро покрывается царапинами, что есть минус.
            Кразя написал отзыв
            15 мая 2010 года, 19:26
            (^_^)
            Эпоха мертвых. Начало
            + + всем рекомендую + :-))
            Комментарий: Очень понравилась книга, прочитал запоем, хотя и не очень люблю про живых мертвецов читать. зато оказывается просто тащусь от "манчкинских" книжек =)=) Весьма подробное описание оружия используемого главным героем с одной стороны это классная фишка автора, а с другой некоторым людям это кажется скучным. А учитывая, что именно эта сюжетная линия в трёх книгах, и параллельная уже в дух и будут ещё... то удовольствие будет длинным %)
            Кразя написал отзыв
            9 марта 2010 года, 11:20
            Яндекс.Маркета
            ссылкатолько для меня
            (^_^)
            Linksys WRT54GL
            + + всем рекомендую + :-))
            Комментарий: около 10 точек используется для раздачи трафика, зафисаний нет, по PoE работает замечательною Однозначно положительная оценка.

            Для дома можно залить OpenWRT прошивку и получить дополнительные возможности.

             

            Что получается:  +   + изменить  +
            Подписаться на комментарии к записи

            Получать уведомления о всех ответах в этом обсуждении.

             
            Отписаться от комментарев к записи

            Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

             
            К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
            + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_opinions.xml b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_opinions.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_opinions.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/0_62d76_135e542a_XS b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/0_62d76_135e542a_XS new file mode 100644 index 0000000..9014768 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/0_62d76_135e542a_XS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/0_65124_53a7c981_XS b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/0_65124_53a7c981_XS new file mode 100644 index 0000000..8843b32 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/0_65124_53a7c981_XS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/0_6514a_598c02f7_XS b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/0_6514a_598c02f7_XS new file mode 100644 index 0000000..fc74398 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/0_6514a_598c02f7_XS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/0_9b5e6_2b4878ce_M b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/0_9b5e6_2b4878ce_M new file mode 100644 index 0000000..e3a4b82 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/0_9b5e6_2b4878ce_M differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/148316902_73x100.jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/148316902_73x100.jpg new file mode 100644 index 0000000..a9a1634 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/148316902_73x100.jpg @@ -0,0 +1 @@ +

            404 Not found

            \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/198272226_65x100.jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/198272226_65x100.jpg new file mode 100644 index 0000000..a9a1634 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/198272226_65x100.jpg @@ -0,0 +1 @@ +

            404 Not found

            \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/40949881_73x100.jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/40949881_73x100.jpg new file mode 100644 index 0000000..a9a1634 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/40949881_73x100.jpg @@ -0,0 +1 @@ +

            404 Not found

            \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/63868694_64x100.jpg b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/63868694_64x100.jpg new file mode 100644 index 0000000..a9a1634 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/63868694_64x100.jpg @@ -0,0 +1 @@ +

            404 Not found

            \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
              {popup_items}
            '].join(""),popup_item:'
          • {title}
          • ',popup_item_selected:'
          • {title}
          • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
            ','','
            ','
            ','','','','
            {content}',"
            ","
            ","
            ","
            "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
              {items}
            ',""].join(""));a.templates.menuItem=a.template(['
          • ','
            ','{title}',"
            ","
          • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
            ','',"
            ",""].join("")),itemResult:a(['
            ','
            ','
            ','
            ',"
            {title}",'{count}',"
            ","
            "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
            {items}{actions}
            '),actionLink:a('
            {title}
            '),expired:a('
            {title}
            ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
            ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
             
            ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
            обновление...
            ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
            {(moreAsUpdate)[
            я в курсе
            ]}
            {(allItems)({(moreAsUpdate)()[]})}
            '),viewportLayout:b('
            {(titleButton)({titleButton})}
            показать ещё
            '),group:b('
            {timestamp}
            {items}
            '),item:b('
            {user} — {title}
            '),likeItem:b('
            {user} {appreciate} запись {title}
            '),recommendItem:b(''),replyItem:b('
            {user}{separator} {title}
            '),photoItem:b('
            {alt}
            '),videoItem:b('
            {duration}
            '),videoContainer:b('
            {items}
            '),albumsContainer:b('
            {items}
            '),videoCollection:a.template('
            {content}
            ',{content:""}),videoCollectionItem:b('
            {count} видео
            '),albumItem:b('
            {title}
            {count}
            '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
            {title}
            '),wishlistItem:b('
            {title}
            {title}
            '),wishlistPromisedItem:b('
            {info}
            {title}
            отменить
            '),ratingInfo:b(''),onload:b('
             
            '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
            ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
            "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
            ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
            ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
            Поделится с друзьями!
            {items}
            '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
              ',"
            ","",'
            ','

            Метки

            ','
              ','
            • ','
              ','','',"
              ","
            • ",'
            • добавлять метки могут только модераторы клуба
            • ',"
            ","
            ",'
            ','

            Основные:

            ','
              ',"
            ","
            "].join(""),keyword:['
          • ','
            ','{title}',"
            ","
          • "].join(""),active:['
          • ','
            ','{title} x',"","
            ","
          • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
            {prev}{next}
            ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
            ','
            ',"{userpics}","
            ",'
            ','◄','►',"
            ","
            "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
            ','
            ','

            Запись будет опубликована в вашем дневнике.

            ','
              ','
            • ','
              ','Опубликовать в клубе?',"
              ","
            • ","
            ","
            ",'",'","
            "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

            ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
            ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
            ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
            ','',"
            ",'
            {buttonOK}
            ','
            {buttonNOK}
            ',"{(checkbox)(",'
            ','','',"
            ",")[",'',"]}","{(noPreview)[",'
            ','посмотреть, что получится',"
            ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
            '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
            ','
              ','
            • ','
              ','','
              ','с оформлением','HTML-режим',"
              ","
              ","
            • ","
            ","
            "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
            {items}
            ',item:['
            ','
            ','{title}',"
            ","
            "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
            ','
              ',"
              ",'
              ','
                ','
              • ','
                ','','',"
                ","
              • ",'
              • ','
                ','','',"
                ","
              • ","
              ","
              "].join("");this.item=['
            • ','
              ','','x',"
              ","
            • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
              '+g.templates.popupLoader()+"
              ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
              ','
              Найти или выбрать из списка друзей',"
              ",'',"",'",'","","
              ','','','',"",'',"","','',"
              ","
              ",'
              ','
              ','
                ','
              • ','
                ','','',"
                ","
              • ","
              ","
              "].join("");this.emptyResults=['
              ',"Не найдено ни одного человека с именем или логином «{request}».
              ","Попробуйте уточнить запрос.
              "].join("");this.emptyPageResults=g.template('
              Пользователи не найдены.
              ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
              ','
                ','
              • ','',"
                ","
              • ","
              ","
              "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
              ','
                ','
              • ','
                ','','',"
                ","
              • ","
              ","
              "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                ','
              • ','
                ','',"
                ","
              • ","
              ","",'
              ','

              Предыдущие:

              ',"Загрузка…","
              ",'
              ','
                ','
              • ','
                ','','',"
                ","
              • ","
              ","
              "].join("");this.list='
                {items}
              ';this.item=['
            • ','
              ','{title}',"
              ","
            • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
              ','
                ','
              • ','
                ','',"
                ","
              • ","
              ","
              ",'
              ','

              Предыдущие:

              ',"Загрузка…","
              "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                {items}
              ',"",'
              ','
                ','
              • ','
                ','','',"
                ","
              • ",'
              • ','
                ','','","
                ","
              • ","
              ","
              "].join("");this.item=['
            • ','","
            • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
              ','
                ','
              • ','',"
              • ","
              ","
              ",'
              ','
                ','
              • ','
                ','',"
                ","
              • ","
              ","
              "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
              ','
                ','
              • ','
                ','
                как сильно хочу:
                ','','','',"",'','','',"",'','','',"","
                ","
              • ","
              ","
              ",'
              ','
                ','
              • ','
                ','',"
                ","
              • ","
              ","
              ",'
              '].join("");this.quoteEnabled=['
              ','','',"{(cut)(",'
              под врезкой
              ',")}","
              "].join("");this.quoteDisabled=['
              ','
              ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
              ","
              "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
              ','
                ','
              • ',"{quote}","
              • ","
              ","
              ",'
              ','
                ','
              • ','
                ','','
                ','с оформлением','HTML-режим',"
                ","
                ","
              • ","
              ","
              ",'
              '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
              ','
                ','
              • ','
                ',"
              • ","
              ","
              ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
              ','
                ','
              • ','
                ','',"
                ","
              • ","
              ","
              "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
              ','
                ','
              • ','
                ','','',"
                ","
              • ","
              ","
              "].join("")}function d(){this.title="Принять эту запись";this.content=['
              ',"
              "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                {items}
              '),item:a.template('
            • {title}
            • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
              Редактирование ответа
              {content}
              {buttonOK}
              {buttonNOK}
              Текст не написан.
              '),hidden:a.template(''),text:a.template('
              '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
              ','
              {title}
              ','',"","",'",'",'',"","","
              ','
              ',"
              ',"
              ",'
              ','
              Текст не написан.
              ',"
              ","
              ",'
              ',"
              ","
              ",'
              ','
              ','
              ','
              ','',"
              ",'
              {buttonOK}
              ','
              {buttonNOK}
              ','
              ','или продолжить редактирование',"
              ","
              ","
              ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
              ','
              ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
              ",'
              ',' ','',"
              ","
              "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
              "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
              ','','','',"{user}","
              "].join("")),usersList:a('
              {users}
              '),userSocial:a(['
              ','',"{user}","
              "].join("")),pager:a(['
              ','{prev} ','{next}',"
              "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
              {contents}
              '),promise:ya.template('
              пообещать
              '),cancel:ya.template('
              отменить
              '),happens:ya.template('
              пометить как сбывшееся
              '),happened:ya.template('
              пожелание сбылось отменить
              '),promised:ya.template('
              обещано
              ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
              {text}
              '].join(""));a.templates.postDeleteForm=a.template(['
              ','','','','',"
              "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
              У вас есть сохраненный черновик, вы можете восстановить его или удалить.
              '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
              "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
              /ig,"
              ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
              Картинка недоступна
              '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
              ${content}
              ';if(!y5.is_opera||y5.opera_ver>=9){g+='
              '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
              ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
              #{title}
              ');b.setFooter('
               
              ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/favicon.ico b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/favicon.ico new file mode 100644 index 0000000..3857550 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/favicon.ico differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/i b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/i new file mode 100644 index 0000000..ee8ced1 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/i differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/i(1) b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/i(1) new file mode 100644 index 0000000..90ee088 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/i(1) differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/i(2) b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/i(2) new file mode 100644 index 0000000..66f1a23 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/i(2) differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
              a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
              "+""+"
              ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
              t
              ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
              ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

              ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
              ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
              ","
              "],thead:[1,"","
              "],tr:[2,"","
              "],td:[3,"","
              "],col:[2,"","
              "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
              ","
              "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
              ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Отзывы — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Кразя: Ссылки — я.ру
              + + + +
              ПоискПочтаДискКалендарьДеньгиМой КругФотки
              + + Выход

              Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

               

              Что получается:  +   + изменить  +
              Подписаться на комментарии к записи

              Получать уведомления о всех ответах в этом обсуждении.

               
              Отписаться от комментарев к записи

              Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

               
              К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
              + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_links.xml b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_links.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_links.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/0_9b5e6_2b4878ce_M b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/0_9b5e6_2b4878ce_M new file mode 100644 index 0000000..e3a4b82 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/0_9b5e6_2b4878ce_M differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                {popup_items}
              '].join(""),popup_item:'
            • {title}
            • ',popup_item_selected:'
            • {title}
            • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
              ','','
              ','
              ','','','','
              {content}',"
              ","
              ","
              ","
              "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                {items}
              ',""].join(""));a.templates.menuItem=a.template(['
            • ','
              ','{title}',"
              ","
            • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
              ','',"
              ",""].join("")),itemResult:a(['
              ','
              ','
              ','
              ',"
              {title}",'{count}',"
              ","
              "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
              {items}{actions}
              '),actionLink:a('
              {title}
              '),expired:a('
              {title}
              ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
              ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
               
              ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
              обновление...
              ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
              {(moreAsUpdate)[
              я в курсе
              ]}
              {(allItems)({(moreAsUpdate)()[]})}
              '),viewportLayout:b('
              {(titleButton)({titleButton})}
              показать ещё
              '),group:b('
              {timestamp}
              {items}
              '),item:b('
              {user} — {title}
              '),likeItem:b('
              {user} {appreciate} запись {title}
              '),recommendItem:b(''),replyItem:b('
              {user}{separator} {title}
              '),photoItem:b('
              {alt}
              '),videoItem:b('
              {duration}
              '),videoContainer:b('
              {items}
              '),albumsContainer:b('
              {items}
              '),videoCollection:a.template('
              {content}
              ',{content:""}),videoCollectionItem:b('
              {count} видео
              '),albumItem:b('
              {title}
              {count}
              '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
              {title}
              '),wishlistItem:b('
              {title}
              {title}
              '),wishlistPromisedItem:b('
              {info}
              {title}
              отменить
              '),ratingInfo:b(''),onload:b('
               
              '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
              ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
              "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
              ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
              ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
              Поделится с друзьями!
              {items}
              '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                ',"
              ","",'
              ','

              Метки

              ','
                ','
              • ','
                ','','',"
                ","
              • ",'
              • добавлять метки могут только модераторы клуба
              • ',"
              ","
              ",'
              ','

              Основные:

              ','
                ',"
              ","
              "].join(""),keyword:['
            • ','
              ','{title}',"
              ","
            • "].join(""),active:['
            • ','
              ','{title} x',"","
              ","
            • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
              {prev}{next}
              ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
              ','
              ',"{userpics}","
              ",'
              ','◄','►',"
              ","
              "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
              ','
              ','

              Запись будет опубликована в вашем дневнике.

              ','
                ','
              • ','
                ','Опубликовать в клубе?',"
                ","
              • ","
              ","
              ",'",'","
              "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

              ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
              ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
              ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
              ','',"
              ",'
              {buttonOK}
              ','
              {buttonNOK}
              ',"{(checkbox)(",'
              ','','',"
              ",")[",'',"]}","{(noPreview)[",'
              ','посмотреть, что получится',"
              ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
              '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
              ','
                ','
              • ','
                ','','
                ','с оформлением','HTML-режим',"
                ","
                ","
              • ","
              ","
              "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
              {items}
              ',item:['
              ','
              ','{title}',"
              ","
              "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
              ','
                ',"
                ",'
                ','
                  ','
                • ','
                  ','','',"
                  ","
                • ",'
                • ','
                  ','','',"
                  ","
                • ","
                ","
                "].join("");this.item=['
              • ','
                ','','x',"
                ","
              • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                '+g.templates.popupLoader()+"
                ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                ','
                Найти или выбрать из списка друзей',"
                ",'',"",'",'","","
                ','','','',"",'',"","','',"
                ","
                ",'
                ','
                ','
                  ','
                • ','
                  ','','',"
                  ","
                • ","
                ","
                "].join("");this.emptyResults=['
                ',"Не найдено ни одного человека с именем или логином «{request}».
                ","Попробуйте уточнить запрос.
                "].join("");this.emptyPageResults=g.template('
                Пользователи не найдены.
                ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                ','
                  ','
                • ','',"
                  ","
                • ","
                ","
                "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                ','
                  ','
                • ','
                  ','','',"
                  ","
                • ","
                ","
                "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                  ','
                • ','
                  ','',"
                  ","
                • ","
                ","",'
                ','

                Предыдущие:

                ',"Загрузка…","
                ",'
                ','
                  ','
                • ','
                  ','','',"
                  ","
                • ","
                ","
                "].join("");this.list='
                  {items}
                ';this.item=['
              • ','
                ','{title}',"
                ","
              • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                ','
                  ','
                • ','
                  ','',"
                  ","
                • ","
                ","
                ",'
                ','

                Предыдущие:

                ',"Загрузка…","
                "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                  {items}
                ',"",'
                ','
                  ','
                • ','
                  ','','',"
                  ","
                • ",'
                • ','
                  ','','","
                  ","
                • ","
                ","
                "].join("");this.item=['
              • ','","
              • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                ','
                  ','
                • ','',"
                • ","
                ","
                ",'
                ','
                  ','
                • ','
                  ','',"
                  ","
                • ","
                ","
                "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                ','
                  ','
                • ','
                  ','
                  как сильно хочу:
                  ','','','',"",'','','',"",'','','',"","
                  ","
                • ","
                ","
                ",'
                ','
                  ','
                • ','
                  ','',"
                  ","
                • ","
                ","
                ",'
                '].join("");this.quoteEnabled=['
                ','','',"{(cut)(",'
                под врезкой
                ',")}","
                "].join("");this.quoteDisabled=['
                ','
                ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                ","
                "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                ','
                  ','
                • ',"{quote}","
                • ","
                ","
                ",'
                ','
                  ','
                • ','
                  ','','
                  ','с оформлением','HTML-режим',"
                  ","
                  ","
                • ","
                ","
                ",'
                '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                ','
                  ','
                • ','
                  ',"
                • ","
                ","
                ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                ','
                  ','
                • ','
                  ','',"
                  ","
                • ","
                ","
                "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                ','
                  ','
                • ','
                  ','','',"
                  ","
                • ","
                ","
                "].join("")}function d(){this.title="Принять эту запись";this.content=['
                ',"
                "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                  {items}
                '),item:a.template('
              • {title}
              • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                Редактирование ответа
                {content}
                {buttonOK}
                {buttonNOK}
                Текст не написан.
                '),hidden:a.template(''),text:a.template('
                '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                ','
                {title}
                ','',"","",'",'",'',"","","
                ','
                ',"
                ',"
                ",'
                ','
                Текст не написан.
                ',"
                ","
                ",'
                ',"
                ","
                ",'
                ','
                ','
                ','
                ','',"
                ",'
                {buttonOK}
                ','
                {buttonNOK}
                ','
                ','или продолжить редактирование',"
                ","
                ","
                ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                ','
                ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                ",'
                ',' ','',"
                ","
                "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                ','','','',"{user}","
                "].join("")),usersList:a('
                {users}
                '),userSocial:a(['
                ','',"{user}","
                "].join("")),pager:a(['
                ','{prev} ','{next}',"
                "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                {contents}
                '),promise:ya.template('
                пообещать
                '),cancel:ya.template('
                отменить
                '),happens:ya.template('
                пометить как сбывшееся
                '),happened:ya.template('
                пожелание сбылось отменить
                '),promised:ya.template('
                обещано
                ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                {text}
                '].join(""));a.templates.postDeleteForm=a.template(['
                ','','','','',"
                "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                /ig,"
                ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                Картинка недоступна
                '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                ${content}
                ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                #{title}
                ');b.setFooter('
                 
                ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/blog.yandex.ru b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/blog.yandex.ru new file mode 100644 index 0000000..3daefb2 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/blog.yandex.ru differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/fotki.yandex.ru b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/fotki.yandex.ru new file mode 100644 index 0000000..8b44497 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/fotki.yandex.ru differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                "+""+"
                ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                t
                ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                ","
                "],thead:[1,"","
                "],tr:[2,"","
                "],td:[3,"","
                "],col:[2,"","
                "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                ","
                "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Ссылки — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Кразя: Фотки — я.ру
                + + + +
                ПоискПочтаДискКалендарьДеньгиМой КругФотки
                + + Выход

                Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                 

                Что получается:  +   + изменить  +
                Подписаться на комментарии к записи

                Получать уведомления о всех ответах в этом обсуждении.

                 
                Отписаться от комментарев к записи

                Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                 
                К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_fotki.xml b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_fotki.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Findex_fotki.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_9b5e6_2b4878ce_M b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_9b5e6_2b4878ce_M new file mode 100644 index 0000000..e3a4b82 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_9b5e6_2b4878ce_M differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_a9e50_4ae38d0f_XS b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_a9e50_4ae38d0f_XS new file mode 100644 index 0000000..d51bc41 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_a9e50_4ae38d0f_XS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_a9e94_9927b8e2_XS b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_a9e94_9927b8e2_XS new file mode 100644 index 0000000..66fc295 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_a9e94_9927b8e2_XS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_ad5e2_928fef2_XS b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_ad5e2_928fef2_XS new file mode 100644 index 0000000..5d2411f Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_ad5e2_928fef2_XS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5eb_2992923b_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5eb_2992923b_S new file mode 100644 index 0000000..c887999 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5eb_2992923b_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5ec_513bc9e9_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5ec_513bc9e9_S new file mode 100644 index 0000000..ed24607 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5ec_513bc9e9_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5ed_a5662cb_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5ed_a5662cb_S new file mode 100644 index 0000000..c1300c8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5ed_a5662cb_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5ee_f8980720_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5ee_f8980720_S new file mode 100644 index 0000000..385a60f Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5ee_f8980720_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5ef_b4033e20_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5ef_b4033e20_S new file mode 100644 index 0000000..85d01b7 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5ef_b4033e20_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5f0_bb45ca42_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5f0_bb45ca42_S new file mode 100644 index 0000000..d239a03 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af5f0_bb45ca42_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af943_e6f14775_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af943_e6f14775_S new file mode 100644 index 0000000..612208b Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af943_e6f14775_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af944_3bfe969b_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af944_3bfe969b_S new file mode 100644 index 0000000..b9a1fa1 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_af944_3bfe969b_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d5_80fe567e_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d5_80fe567e_S new file mode 100644 index 0000000..5873781 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d5_80fe567e_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d6_27962e3a_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d6_27962e3a_S new file mode 100644 index 0000000..37ffe98 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d6_27962e3a_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d7_8ef2be40_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d7_8ef2be40_S new file mode 100644 index 0000000..911416b Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d7_8ef2be40_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d8_7b0c0841_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d8_7b0c0841_S new file mode 100644 index 0000000..16bfcc6 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d8_7b0c0841_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d9_6972565d_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d9_6972565d_S new file mode 100644 index 0000000..e514be8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25d9_6972565d_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25da_d77b1c24_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25da_d77b1c24_S new file mode 100644 index 0000000..f69d892 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b25da_d77b1c24_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2981_826ce712_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2981_826ce712_S new file mode 100644 index 0000000..d5554bb Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2981_826ce712_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2981_826ce712_XS b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2981_826ce712_XS new file mode 100644 index 0000000..8c12c3d Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2981_826ce712_XS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2982_9a9fcc6a_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2982_9a9fcc6a_S new file mode 100644 index 0000000..03959e8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2982_9a9fcc6a_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2983_afa68623_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2983_afa68623_S new file mode 100644 index 0000000..f6d87d6 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2983_afa68623_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2984_afc57a8d_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2984_afc57a8d_S new file mode 100644 index 0000000..83f8ffa Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2984_afc57a8d_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2985_aa08d3dd_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2985_aa08d3dd_S new file mode 100644 index 0000000..ad218e2 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2985_aa08d3dd_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2986_e37819cd_S b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2986_e37819cd_S new file mode 100644 index 0000000..0949a57 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/0_b2986_e37819cd_S differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/WidgetLoaderFotki.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/WidgetLoaderFotki.js new file mode 100644 index 0000000..92a6b04 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/WidgetLoaderFotki.js @@ -0,0 +1,7 @@ +y5.require(['{Friends}.CommonConstructor', '{Friends}.WidgetLoader'], function() { + var Fotki = Friends.CommonConstructor(); + Fotki.prototype = new Friends.WidgetLoader; + + Friends.WidgetLoaderFotki = Fotki; + y5.loaded('{Friends}.WidgetLoaderFotki'); +}); diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                  {popup_items}
                '].join(""),popup_item:'
              • {title}
              • ',popup_item_selected:'
              • {title}
              • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                ','','
                ','
                ','','','','
                {content}',"
                ","
                ","
                ","
                "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                  {items}
                ',""].join(""));a.templates.menuItem=a.template(['
              • ','
                ','{title}',"
                ","
              • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                ','',"
                ",""].join("")),itemResult:a(['
                ','
                ','
                ','
                ',"
                {title}",'{count}',"
                ","
                "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                {items}{actions}
                '),actionLink:a('
                {title}
                '),expired:a('
                {title}
                ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                 
                ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                обновление...
                ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                {(moreAsUpdate)[
                я в курсе
                ]}
                {(allItems)({(moreAsUpdate)()[]})}
                '),viewportLayout:b('
                {(titleButton)({titleButton})}
                показать ещё
                '),group:b('
                {timestamp}
                {items}
                '),item:b('
                {user} — {title}
                '),likeItem:b('
                {user} {appreciate} запись {title}
                '),recommendItem:b(''),replyItem:b('
                {user}{separator} {title}
                '),photoItem:b('
                {alt}
                '),videoItem:b('
                {duration}
                '),videoContainer:b('
                {items}
                '),albumsContainer:b('
                {items}
                '),videoCollection:a.template('
                {content}
                ',{content:""}),videoCollectionItem:b('
                {count} видео
                '),albumItem:b('
                {title}
                {count}
                '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                {title}
                '),wishlistItem:b('
                {title}
                {title}
                '),wishlistPromisedItem:b('
                {info}
                {title}
                отменить
                '),ratingInfo:b(''),onload:b('
                 
                '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                Поделится с друзьями!
                {items}
                '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                  ',"
                ","",'
                ','

                Метки

                ','
                  ','
                • ','
                  ','','',"
                  ","
                • ",'
                • добавлять метки могут только модераторы клуба
                • ',"
                ","
                ",'
                ','

                Основные:

                ','
                  ',"
                ","
                "].join(""),keyword:['
              • ','
                ','{title}',"
                ","
              • "].join(""),active:['
              • ','
                ','{title} x',"","
                ","
              • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                {prev}{next}
                ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                ','
                ',"{userpics}","
                ",'
                ','◄','►',"
                ","
                "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                ','
                ','

                Запись будет опубликована в вашем дневнике.

                ','
                  ','
                • ','
                  ','Опубликовать в клубе?',"
                  ","
                • ","
                ","
                ",'",'","
                "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                ','',"
                ",'
                {buttonOK}
                ','
                {buttonNOK}
                ',"{(checkbox)(",'
                ','','',"
                ",")[",'',"]}","{(noPreview)[",'
                ','посмотреть, что получится',"
                ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                ','
                  ','
                • ','
                  ','','
                  ','с оформлением','HTML-режим',"
                  ","
                  ","
                • ","
                ","
                "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                {items}
                ',item:['
                ','
                ','{title}',"
                ","
                "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                ','
                  ',"
                  ",'
                  ','
                    ','
                  • ','
                    ','','',"
                    ","
                  • ",'
                  • ','
                    ','','',"
                    ","
                  • ","
                  ","
                  "].join("");this.item=['
                • ','
                  ','','x',"
                  ","
                • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                  '+g.templates.popupLoader()+"
                  ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                  ','
                  Найти или выбрать из списка друзей',"
                  ",'',"",'",'","","
                  ','','','',"",'',"","','',"
                  ","
                  ",'
                  ','
                  ','
                    ','
                  • ','
                    ','','',"
                    ","
                  • ","
                  ","
                  "].join("");this.emptyResults=['
                  ',"Не найдено ни одного человека с именем или логином «{request}».
                  ","Попробуйте уточнить запрос.
                  "].join("");this.emptyPageResults=g.template('
                  Пользователи не найдены.
                  ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                  ','
                    ','
                  • ','',"
                    ","
                  • ","
                  ","
                  "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                  ','
                    ','
                  • ','
                    ','','',"
                    ","
                  • ","
                  ","
                  "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                    ','
                  • ','
                    ','',"
                    ","
                  • ","
                  ","",'
                  ','

                  Предыдущие:

                  ',"Загрузка…","
                  ",'
                  ','
                    ','
                  • ','
                    ','','',"
                    ","
                  • ","
                  ","
                  "].join("");this.list='
                    {items}
                  ';this.item=['
                • ','
                  ','{title}',"
                  ","
                • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                  ','
                    ','
                  • ','
                    ','',"
                    ","
                  • ","
                  ","
                  ",'
                  ','

                  Предыдущие:

                  ',"Загрузка…","
                  "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                    {items}
                  ',"",'
                  ','
                    ','
                  • ','
                    ','','',"
                    ","
                  • ",'
                  • ','
                    ','','","
                    ","
                  • ","
                  ","
                  "].join("");this.item=['
                • ','","
                • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                  ','
                    ','
                  • ','',"
                  • ","
                  ","
                  ",'
                  ','
                    ','
                  • ','
                    ','',"
                    ","
                  • ","
                  ","
                  "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                  ','
                    ','
                  • ','
                    ','
                    как сильно хочу:
                    ','','','',"",'','','',"",'','','',"","
                    ","
                  • ","
                  ","
                  ",'
                  ','
                    ','
                  • ','
                    ','',"
                    ","
                  • ","
                  ","
                  ",'
                  '].join("");this.quoteEnabled=['
                  ','','',"{(cut)(",'
                  под врезкой
                  ',")}","
                  "].join("");this.quoteDisabled=['
                  ','
                  ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                  ","
                  "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                  ','
                    ','
                  • ',"{quote}","
                  • ","
                  ","
                  ",'
                  ','
                    ','
                  • ','
                    ','','
                    ','с оформлением','HTML-режим',"
                    ","
                    ","
                  • ","
                  ","
                  ",'
                  '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                  ','
                    ','
                  • ','
                    ',"
                  • ","
                  ","
                  ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                  ','
                    ','
                  • ','
                    ','',"
                    ","
                  • ","
                  ","
                  "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                  ','
                    ','
                  • ','
                    ','','',"
                    ","
                  • ","
                  ","
                  "].join("")}function d(){this.title="Принять эту запись";this.content=['
                  ',"
                  "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                    {items}
                  '),item:a.template('
                • {title}
                • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                  Редактирование ответа
                  {content}
                  {buttonOK}
                  {buttonNOK}
                  Текст не написан.
                  '),hidden:a.template(''),text:a.template('
                  '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                  ','
                  {title}
                  ','',"","",'",'",'',"","","
                  ','
                  ',"
                  ',"
                  ",'
                  ','
                  Текст не написан.
                  ',"
                  ","
                  ",'
                  ',"
                  ","
                  ",'
                  ','
                  ','
                  ','
                  ','',"
                  ",'
                  {buttonOK}
                  ','
                  {buttonNOK}
                  ','
                  ','или продолжить редактирование',"
                  ","
                  ","
                  ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                  ','
                  ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                  ",'
                  ',' ','',"
                  ","
                  "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                  "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                  ','','','',"{user}","
                  "].join("")),usersList:a('
                  {users}
                  '),userSocial:a(['
                  ','',"{user}","
                  "].join("")),pager:a(['
                  ','{prev} ','{next}',"
                  "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                  {contents}
                  '),promise:ya.template('
                  пообещать
                  '),cancel:ya.template('
                  отменить
                  '),happens:ya.template('
                  пометить как сбывшееся
                  '),happened:ya.template('
                  пожелание сбылось отменить
                  '),promised:ya.template('
                  обещано
                  ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                  {text}
                  '].join(""));a.templates.postDeleteForm=a.template(['
                  ','','','','',"
                  "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                  У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                  '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                  "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                  /ig,"
                  ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                  Картинка недоступна
                  '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                  ${content}
                  ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                  '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                  ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                  #{title}
                  ');b.setFooter('
                   
                  ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                  a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                  "+""+"
                  ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                  t
                  ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                  ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                  ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                  ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                  ","
                  "],thead:[1,"","
                  "],tr:[2,"","
                  "],td:[3,"","
                  "],col:[2,"","
                  "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                  ","
                  "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                  ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя Фотки — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Кразя — я.ру
                  + + + +
                  ПоискПочтаДискКалендарьДеньгиМой КругФотки
                  + + Выход

                  Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                  + +
                  +
                  +
                  + + +
                  Обращение к гостям
                  изменено 18 марта 2013 года, в 18:13
                  +
                  + + + +
                  (^_^)
                  +
                  Мои приветствия!
                  +
                  +

                  Я всегда любил те дни когда к нам приходили гости. Ведь это так интересно и весело! Да и вкусненьго постоянно приносили ;);) Так что добро пожаловать! Рад что вы зашли!

                  +

                  Этот блог я использую как хранилище возникающих передо мной задач, и что намного полезней, тех действий которые позволили мне их решить.  Что-то вроде записной книжки. Правда с надеждой, что кому-то эти решения когда-нибудь и пригодятся.

                  + + +

                  +
                  +
                  + + + + + + + +
                  оценить
                  ещё
                  +
                  +
                  +
                  +
                  +
                  +
                  +
                  Записать мысль

                  записи по  

                  месяцам · меткам · типам

                  выделить все / снять выделение

                  Показать
                  Кразя сменил настроение
                  сегодня, 01:17
                  (^_^)
                  В связи с закрытием данного сервиса я переехал на http://blogobomzh.blogspot.ru/. Рад был со всеми Вами общаться! Очень жаль, но Се Ля Ви, как говорят французы!
                  Кразя поделился ссылкой
                  27 июня, 22:43
                  (^_^)
                  Яндекс закрывает Я.ру — Блог Яндекса
                  Офигеть. В этой новости отключили комментарии.... хотелось бы думать, что это из-за большого их количества... Но что-то мне подсказывает, что всё-таки из-за очень негативного отклика... угумс. Я и сам здорово расстроился.
                  Кразя написал
                  27 июня, 22:22
                  (^_^)
                  Круговорот сервисов в природе

                  Вот  в связи с закрытием Яру вспомнилось мне, что недавно точно так же грустил по поводу онлайн IM клиента и Джаббер сервера.

                  Да и обиднее всего то, что накомпленный фукнционал сервисов и тот пользовательский опыт и отшлифованное тысячами пользователей удобство использования при закрытии сервисов просто пропвадает. Вот поэтому открытые проекты намного лучше закрытых. Потому что в открытых проектах ничего не пропадает. Всё можно использовать для построения чего-то нового и наверно еще более полезного и жизнестойкого.

                   

                  Вот скажем в чём для меня Яру был удобен. 

                  Во-первых сквозная интеграция множества сервисов Яндекса. Да те же Фотки и авторизация.

                  Во-вторых это действительно профессионально и грамотно построенный интерфейс. Очень удобный интерфейс я хочу подчеркнуть. Да хотя бы анкета для каждого пользователя

                  В-третьих, очень удачное сочетание социальности и наличие некоторых уникальных опций таких как "Поссориться" интеграция отзывов с Маркетом.

                  В-Четвёртых, клубная система. Простоая и функциональная.

                  Есть еще и в в-пятых и в-десятых... Но описать почему я так переживаю из-за закрыия сервиса аргументированно я наврено так и не смогу. наверно всё дело тут в атмосфере. Которая даже такого интраверта как я  привязала к себе.

                   

                   

                  Кстати, интересно, а передать сообществу или открыть код и инструменты работы Яру для сообщества нет возможности? 

                   

                  Кразя сменил настроение
                  27 июня, 08:47
                  (^_^)
                  Яру убивают! Ужас, никогда не думал, что могу настолько привязаться к какому-то сервису... Передо мной разверзлась бездна! Теперь фобии развиваются...А вдруг и остальные сервисы когда-нибудь закроют... Например почту... Как дальше жить?!
                  Кразя поделился ссылкой
                  27 июня, 08:43
                  (^_^)
                  Яндекс закрывает Я.ру — Блог Яндекса
                  Вот это да... Нежданно-негаданно получил оплеуху от Яндекса. И это при том, что специально использовал сервисы Яндекса для того чтобы застраховаться от ситуации когда его (сервис) прото закрывают. Мда... Теперь придётся куда-то перебираться... Блогобомж в пути!
                  Кразя написал
                  27 июня, 00:39
                  plus.google.com
                  (^_^)
                  Яру мертв! Да ебись оно конём!

                  Коробка из под холодильника
                  Заебись. Сука яндекс убивает Яру. И блять предлагает переехать на другой блогосервис. На ЖЖ!!! Они блять издеваются. Как этим говносервисом можно пользоваться после лаконичного и удобного Яру? Яндекс говорит идите нахуй в сво...
                  Кразя написал
                  26 июня, 13:00
                  plus.google.com
                  (^_^)
                  Открывается период долгосрочной поддержки Debian 6.0
                  Проект Debian  рад объявить что заработала инфраструктура для долгосрочной поддержки (Long Term Support - LTS) которая будет обеспечивать Debian GNU/Linux 6.0 (кодовое имя squeeze) обновлениями безопасности  до февраля 2016г. Пользователям этой версии необходимо воспользоваться инструкциями размещенными на странице https://wiki.debian.org/LTS/Using, чтобы убедиться что они получают обновления безопаности LTS.

                  Debian -- News -- Debian 6 debuts its long term support period
                  Debian 6 debuts its long term support period. June 16th, 2014. The Debian project is pleased to announce that the Long Term Support (LTS) infrastructure to provide security updates for Debian GNU/Linux 6.0 (code name squeeze ) until February 2016 is now in place. Users of this version should ...
                  Кразя написал
                  26 июня, 12:59
                  plus.google.com
                  (^_^)
                  Выпуск обновленного Debian 7: 7.5
                  Проект Debian рад сообщить о пятом обновлении стабильной версии дистрибутива Debian 7 (кодовое имя wheezy). Значительная часть обновления связана с исправлением проблем безопасности, но так же исправлены несколько серьезных ошибок. Так же отдельно были опубликованы и размещены рекомендации по безопаности. 

                  Debian -- News -- Updated Debian 7: 7.5 released
                  Updated Debian 7: 7.5 released. April 26th, 2014. The Debian project is pleased to announce the fifth update of its stable distribution Debian 7 (codename wheezy ). This update mainly adds corrections for security problems to the stable release, along with a few adjustments for serious problems.
                  Кразя написал
                  26 июня, 12:59
                  plus.google.com
                  (^_^)
                  Объявлено о долгосрочной поддержке для Debian 6.0

                  Проект Debian рад объявить что поскольку выпуск обновлений безопасности для Debian GNU/Linux 6.0 (Кодовое имя squeeze) прекращен 31 мая, то долгсрочная поддержка для этого дистрибудтивы продлевается до февраля 2016 года, т.е. до 5 лет с первого выпуска. Дополнительные ресурсы на это выделяются по запросу заинтересованных компаний и групп которым требовалось продление выпуска обновлений безопаности.

                  Debian -- News -- Long term support for Debian 6.0 Announced
                  Long term support for Debian 6.0 Announced. April 24th, 2014. The Debian project is pleased to announce that although regular security support for Debian GNU/Linux 6.0 (code name squeeze ) will be terminated on 31 May, long term support for the distribution is going to be extended until February ...
                  Кразя написал
                  21 июня, 15:26
                  plus.google.com
                  (^_^)
                  Очень грамотно сформулированное мнение о причинах выбора средств и целей САСШ в ситуации вокруг Украины. Приведены очень красочные и яркие исторические параллели. Очень советую в ОБЯЗАТЕЛЬНОМ порядке ознакомится всем интересующимся текущей международной политической и экономической обстановкой.

                  Зачем Америке Майдан - Аргументы Недели
                  Разворачивающаяся на Донбассе война несёт огромные угрозы России, Европе и даже всему миру, непонимание которых влечёт их автоматическое развёртывание в региональную, а затем и мировую войну. Как остановить конфликт?
                  +
                  Huawei Honor 3 Yandex
                  Huawei Honor 3 Yandex
                  Инструмент для формирования кабельных жгутов
                  Инструмент для формирования кабельных жгутов
                  Удобный термометр
                  Удобный термометр
                  я в курсе

                   

                  Что получается:  +   + изменить  +
                  Подписаться на комментарии к записи

                  Получать уведомления о всех ответах в этом обсуждении.

                   
                  Отписаться от комментарев к записи

                  Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                   
                  К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                  + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2F b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2F new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2F @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/0_9b5e6_2b4878ce_M b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/0_9b5e6_2b4878ce_M new file mode 100644 index 0000000..e3a4b82 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/0_9b5e6_2b4878ce_M differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/0_a8754_a4217beb_XXXS b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/0_a8754_a4217beb_XXXS new file mode 100644 index 0000000..cb62eca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/0_a8754_a4217beb_XXXS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/0_aa790_c43c28f3_XXXS b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/0_aa790_c43c28f3_XXXS new file mode 100644 index 0000000..648f27c Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/0_aa790_c43c28f3_XXXS differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/31419692-rating-white-male.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/31419692-rating-white-male.gif new file mode 100644 index 0000000..9776229 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/31419692-rating-white-male.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                    {popup_items}
                  '].join(""),popup_item:'
                • {title}
                • ',popup_item_selected:'
                • {title}
                • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                  ','','
                  ','
                  ','','','','
                  {content}',"
                  ","
                  ","
                  ","
                  "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                    {items}
                  ',""].join(""));a.templates.menuItem=a.template(['
                • ','
                  ','{title}',"
                  ","
                • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                  ','',"
                  ",""].join("")),itemResult:a(['
                  ','
                  ','
                  ','
                  ',"
                  {title}",'{count}',"
                  ","
                  "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                  {items}{actions}
                  '),actionLink:a('
                  {title}
                  '),expired:a('
                  {title}
                  ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                  ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                   
                  ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                  обновление...
                  ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                  {(moreAsUpdate)[
                  я в курсе
                  ]}
                  {(allItems)({(moreAsUpdate)()[]})}
                  '),viewportLayout:b('
                  {(titleButton)({titleButton})}
                  показать ещё
                  '),group:b('
                  {timestamp}
                  {items}
                  '),item:b('
                  {user} — {title}
                  '),likeItem:b('
                  {user} {appreciate} запись {title}
                  '),recommendItem:b(''),replyItem:b('
                  {user}{separator} {title}
                  '),photoItem:b('
                  {alt}
                  '),videoItem:b('
                  {duration}
                  '),videoContainer:b('
                  {items}
                  '),albumsContainer:b('
                  {items}
                  '),videoCollection:a.template('
                  {content}
                  ',{content:""}),videoCollectionItem:b('
                  {count} видео
                  '),albumItem:b('
                  {title}
                  {count}
                  '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                  {title}
                  '),wishlistItem:b('
                  {title}
                  {title}
                  '),wishlistPromisedItem:b('
                  {info}
                  {title}
                  отменить
                  '),ratingInfo:b(''),onload:b('
                   
                  '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                  ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                  "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                  ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                  ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                  Поделится с друзьями!
                  {items}
                  '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                    ',"
                  ","",'
                  ','

                  Метки

                  ','
                    ','
                  • ','
                    ','','',"
                    ","
                  • ",'
                  • добавлять метки могут только модераторы клуба
                  • ',"
                  ","
                  ",'
                  ','

                  Основные:

                  ','
                    ',"
                  ","
                  "].join(""),keyword:['
                • ','
                  ','{title}',"
                  ","
                • "].join(""),active:['
                • ','
                  ','{title} x',"","
                  ","
                • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                  {prev}{next}
                  ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                  ','
                  ',"{userpics}","
                  ",'
                  ','◄','►',"
                  ","
                  "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                  ','
                  ','

                  Запись будет опубликована в вашем дневнике.

                  ','
                    ','
                  • ','
                    ','Опубликовать в клубе?',"
                    ","
                  • ","
                  ","
                  ",'",'","
                  "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                  ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                  ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                  ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                  ','',"
                  ",'
                  {buttonOK}
                  ','
                  {buttonNOK}
                  ',"{(checkbox)(",'
                  ','','',"
                  ",")[",'',"]}","{(noPreview)[",'
                  ','посмотреть, что получится',"
                  ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                  '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                  ','
                    ','
                  • ','
                    ','','
                    ','с оформлением','HTML-режим',"
                    ","
                    ","
                  • ","
                  ","
                  "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                  {items}
                  ',item:['
                  ','
                  ','{title}',"
                  ","
                  "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                  ','
                    ',"
                    ",'
                    ','
                      ','
                    • ','
                      ','','',"
                      ","
                    • ",'
                    • ','
                      ','','',"
                      ","
                    • ","
                    ","
                    "].join("");this.item=['
                  • ','
                    ','','x',"
                    ","
                  • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                    '+g.templates.popupLoader()+"
                    ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                    ','
                    Найти или выбрать из списка друзей',"
                    ",'',"",'",'","","
                    ','','','',"",'',"","','',"
                    ","
                    ",'
                    ','
                    ','
                      ','
                    • ','
                      ','','',"
                      ","
                    • ","
                    ","
                    "].join("");this.emptyResults=['
                    ',"Не найдено ни одного человека с именем или логином «{request}».
                    ","Попробуйте уточнить запрос.
                    "].join("");this.emptyPageResults=g.template('
                    Пользователи не найдены.
                    ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                    ','
                      ','
                    • ','',"
                      ","
                    • ","
                    ","
                    "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                    ','
                      ','
                    • ','
                      ','','',"
                      ","
                    • ","
                    ","
                    "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                      ','
                    • ','
                      ','',"
                      ","
                    • ","
                    ","",'
                    ','

                    Предыдущие:

                    ',"Загрузка…","
                    ",'
                    ','
                      ','
                    • ','
                      ','','',"
                      ","
                    • ","
                    ","
                    "].join("");this.list='
                      {items}
                    ';this.item=['
                  • ','
                    ','{title}',"
                    ","
                  • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                    ','
                      ','
                    • ','
                      ','',"
                      ","
                    • ","
                    ","
                    ",'
                    ','

                    Предыдущие:

                    ',"Загрузка…","
                    "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                      {items}
                    ',"",'
                    ','
                      ','
                    • ','
                      ','','',"
                      ","
                    • ",'
                    • ','
                      ','','","
                      ","
                    • ","
                    ","
                    "].join("");this.item=['
                  • ','","
                  • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                    ','
                      ','
                    • ','',"
                    • ","
                    ","
                    ",'
                    ','
                      ','
                    • ','
                      ','',"
                      ","
                    • ","
                    ","
                    "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                    ','
                      ','
                    • ','
                      ','
                      как сильно хочу:
                      ','','','',"",'','','',"",'','','',"","
                      ","
                    • ","
                    ","
                    ",'
                    ','
                      ','
                    • ','
                      ','',"
                      ","
                    • ","
                    ","
                    ",'
                    '].join("");this.quoteEnabled=['
                    ','','',"{(cut)(",'
                    под врезкой
                    ',")}","
                    "].join("");this.quoteDisabled=['
                    ','
                    ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                    ","
                    "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                    ','
                      ','
                    • ',"{quote}","
                    • ","
                    ","
                    ",'
                    ','
                      ','
                    • ','
                      ','','
                      ','с оформлением','HTML-режим',"
                      ","
                      ","
                    • ","
                    ","
                    ",'
                    '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                    ','
                      ','
                    • ','
                      ',"
                    • ","
                    ","
                    ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                    ','
                      ','
                    • ','
                      ','',"
                      ","
                    • ","
                    ","
                    "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                    ','
                      ','
                    • ','
                      ','','',"
                      ","
                    • ","
                    ","
                    "].join("")}function d(){this.title="Принять эту запись";this.content=['
                    ',"
                    "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                      {items}
                    '),item:a.template('
                  • {title}
                  • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                    Редактирование ответа
                    {content}
                    {buttonOK}
                    {buttonNOK}
                    Текст не написан.
                    '),hidden:a.template(''),text:a.template('
                    '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                    ','
                    {title}
                    ','',"","",'",'",'',"","","
                    ','
                    ',"
                    ',"
                    ",'
                    ','
                    Текст не написан.
                    ',"
                    ","
                    ",'
                    ',"
                    ","
                    ",'
                    ','
                    ','
                    ','
                    ','',"
                    ",'
                    {buttonOK}
                    ','
                    {buttonNOK}
                    ','
                    ','или продолжить редактирование',"
                    ","
                    ","
                    ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                    ','
                    ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                    ",'
                    ',' ','',"
                    ","
                    "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                    "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                    ','','','',"{user}","
                    "].join("")),usersList:a('
                    {users}
                    '),userSocial:a(['
                    ','',"{user}","
                    "].join("")),pager:a(['
                    ','{prev} ','{next}',"
                    "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                    {contents}
                    '),promise:ya.template('
                    пообещать
                    '),cancel:ya.template('
                    отменить
                    '),happens:ya.template('
                    пометить как сбывшееся
                    '),happened:ya.template('
                    пожелание сбылось отменить
                    '),promised:ya.template('
                    обещано
                    ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                    {text}
                    '].join(""));a.templates.postDeleteForm=a.template(['
                    ','','','','',"
                    "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                    У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                    '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                    "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                    /ig,"
                    ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                    Картинка недоступна
                    '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                    ${content}
                    ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                    '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                    ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                    #{title}
                    ');b.setFooter('
                     
                    ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/blog.yandex.ru b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/blog.yandex.ru new file mode 100644 index 0000000..3daefb2 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/blog.yandex.ru differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/card.gif b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/card.gif new file mode 100644 index 0000000..9d0ab98 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/card.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/i b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/i new file mode 100644 index 0000000..af095ad Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/i differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                    a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                    "+""+"
                    ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                    t
                    ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                    ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                    ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                    ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                    ","
                    "],thead:[1,"","
                    "],tr:[2,"","
                    "],td:[3,"","
                    "],col:[2,"","
                    "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                    ","
                    "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                    ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/ka-4QjmUd01423RZVdjYCj2wnKQN_uSlfxL6Iu_YsAabYWBH7OMn_4K3jOL7k-I23U8prQ8zSKLtIJAJnH-10aaTri2pTG93hkHIHU_ovkk-gXomx1ZVdXFlcsqK8EM=w120-h120 b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/ka-4QjmUd01423RZVdjYCj2wnKQN_uSlfxL6Iu_YsAabYWBH7OMn_4K3jOL7k-I23U8prQ8zSKLtIJAJnH-10aaTri2pTG93hkHIHU_ovkk-gXomx1ZVdXFlcsqK8EM=w120-h120 new file mode 100644 index 0000000..9d47393 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/ka-4QjmUd01423RZVdjYCj2wnKQN_uSlfxL6Iu_YsAabYWBH7OMn_4K3jOL7k-I23U8prQ8zSKLtIJAJnH-10aaTri2pTG93hkHIHU_ovkk-gXomx1ZVdXFlcsqK8EM=w120-h120 differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Кразя — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1 + Мои клубы — Кразя — я.ру +
                    + + + +
                    ПоискПочтаДискКалендарьДеньгиМой КругФотки
                    + + Выход

                    Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                    Клубы — это места, где можно общаться с единомышленниками, + искать друзей по интересам, знакомиться, общаться, встречаться. +

                    Клубы, в которых я состою:

                    Показать удаленные клубы

                    Рейтинг

                    (^_^)
                    Наука и технология
                    133772 участника,
                    1948 записей
                    последний комментарий сегодня в 03:21
                    (^_^)
                    Photoshop
                    57003 участника,
                    2951 запись
                    последний комментарий сегодня в 00:14
                    (^_^)
                    Помощь новичкам
                    36424 участника,
                    2954 записи
                    последний комментарий 1 июля в 15:18

                    Рекомендуемые клубы

                    (^_^)
                    CHILLOUT
                    2931 участник,
                    2807 записей
                    последний комментарий 22 июня в 18:17
                    (^_^)
                    Ubuntu
                    1028 участников,
                    599 записей
                    последний комментарий 15 марта в 04:29
                    (^_^)
                    Клуб природного земледелия
                    1397 участников,
                    1842 записи
                    последний комментарий 20 июня в 15:58

                     

                    Что получается:  +   + изменить  +
                    Подписаться на комментарии к записи

                    Получать уведомления о всех ответах в этом обсуждении.

                     
                    Отписаться от комментарев к записи

                    Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                     
                    К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                    + + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Fclubs.xml b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Fclubs.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Fclubs.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/_clubs-includes.js b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/_clubs-includes.js new file mode 100644 index 0000000..e801208 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/_clubs-includes.js @@ -0,0 +1 @@ +y5.require(["Classes","Events"],function(){var a=function(){};a.prototype.register=function(){var d,c,b;for(b=0;b0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                    ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                    ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                    ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});Friends.Tips=function(a,b){this.control=a;this.__listeners=[];this.init(a,b)};Friends.Tips.prototype={init:function(a,b){this.table=y5.Dom.getAncestor(this.control,"table","b-tips");this.submitPseudoBtn=y5.Dom.getDescendant(this.control,"a","update");this.__listeners.push(new y5.AEventListener("click",this.onRequest,this.submitPseudoBtn,true,this))},onRequest:function(c){c.preventDefault();var b=new y5.Request.Form(this.control.action);var a=this;b.onload=function(d){y5.Classes.add(a.table,"i-hidden")};b.onerror=b.onload;b.send(this.control)},dectruct:function(){var b,a;for(b=0,a=this.__listeners.length;b",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                      {popup_items}
                    '].join(""),popup_item:'
                  • {title}
                  • ',popup_item_selected:'
                  • {title}
                  • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                    ','','
                    ','
                    ','','','','
                    {content}',"
                    ","
                    ","
                    ","
                    "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                      {items}
                    ',""].join(""));a.templates.menuItem=a.template(['
                  • ','
                    ','{title}',"
                    ","
                  • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                    ','',"
                    ",""].join("")),itemResult:a(['
                    ','
                    ','
                    ','
                    ',"
                    {title}",'{count}',"
                    ","
                    "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                    {items}{actions}
                    '),actionLink:a('
                    {title}
                    '),expired:a('
                    {title}
                    ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                    ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                     
                    ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                    обновление...
                    ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                    {(moreAsUpdate)[
                    я в курсе
                    ]}
                    {(allItems)({(moreAsUpdate)()[]})}
                    '),viewportLayout:b('
                    {(titleButton)({titleButton})}
                    показать ещё
                    '),group:b('
                    {timestamp}
                    {items}
                    '),item:b('
                    {user} — {title}
                    '),likeItem:b('
                    {user} {appreciate} запись {title}
                    '),recommendItem:b(''),replyItem:b('
                    {user}{separator} {title}
                    '),photoItem:b('
                    {alt}
                    '),videoItem:b('
                    {duration}
                    '),videoContainer:b('
                    {items}
                    '),albumsContainer:b('
                    {items}
                    '),videoCollection:a.template('
                    {content}
                    ',{content:""}),videoCollectionItem:b('
                    {count} видео
                    '),albumItem:b('
                    {title}
                    {count}
                    '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                    {title}
                    '),wishlistItem:b('
                    {title}
                    {title}
                    '),wishlistPromisedItem:b('
                    {info}
                    {title}
                    отменить
                    '),ratingInfo:b(''),onload:b('
                     
                    '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                    ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                    "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/_y.js b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/_y.js new file mode 100644 index 0000000..4f3ce8c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/_y.js @@ -0,0 +1,8 @@ +(function(b){var a={};a.imageError=function(c){var d=c.parentNode,e=d.parentNode.childNodes.length>2?d:d.parentNode;e.innerHTML='
                    Картинка недоступна
                    '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                    ${content}
                    ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                    '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                    ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                    #{title}
                    ');b.setFooter('
                     
                    ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                    a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                    "+""+"
                    ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                    t
                    ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                    ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                    ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                    ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                    ","
                    "],thead:[1,"","
                    "],tr:[2,"","
                    "],td:[3,"","
                    "],col:[2,"","
                    "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                    ","
                    "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                    ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Мои клубы — Кразя — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Мои настройки на Яндекс.Фотках

                    Настройки

                    Портрет

                    Главный
                    kpa39l
                    Назад6 из 11Вперед
                    удалить
                    Взять файл с картинкой:

                    можно загрузить до 12 картинок

                    Кразя

                    • укажите вашу подпись (инициалы или псевдоним)

                    • укажите электронный адрес,
                      на который будут высылаться уведомления

                    Редактировать список друзей

                    Редактировать список любимых авторов

                    Редактировать список заблокированных пользователей


                    Удалить аккаунт

                    + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/_common.js new file mode 100644 index 0000000..e9abad9 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/_common.js @@ -0,0 +1 @@ +(function(){var a=function(){var b=document.documentElement.style;return typeof b.borderRadius==="string"||typeof b.WebkitBorderRadius==="string"||typeof b.KhtmlBorderRadius==="string"||typeof b.MozBorderRadius==="string"};document.documentElement.className+=a()?" m-border-radius":" m-no-border-radius"}());(function(a){if(!a){a=window.Lego={}}a.c=function(c,b,i){var g=(i&&i.host)||"clck.yandex.ru",d=function(k,m,l,j){return m.indexOf("/dtype=")>-1?m:location.protocol+"//"+g+"/"+l+"/dtype="+k+"/rnd="+((new Date()).getTime()+Math.round(Math.random()*100))+(j?"/*"+(m.match(/^http/)?m:location.protocol+"//"+location.host+(m.match("^/")?m:"/"+m)):"/*data="+encodeURIComponent("url="+encodeURIComponent((m.match(/^http/)?m:location.protocol+"//"+location.host+(m.match("^/")?m:"/"+m)))))},f=function(){var j=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];var h=document.createElement("script");h.setAttribute("src",d(c,location.href,"jclck"));j.insertBefore(h,j.firstChild)};if(b){if(b.className.match(/b-pseudo-link/)||(b.href&&b.href.match(/^mailto:/))||(i&&i.noRedirect===true)){f()}else{if(b.href){var e=b.href;b.href=d(c,e,"redir");setTimeout(function(){b.href=e},500)}else{if(b.form){if(b.type.match(/submit|button|image/)){var e=b.form.action;b.form.action=d(c,e,"redir",true);setTimeout(function(){b.form.action=e},500)}else{f()}}else{if(b.action){b.action=d(c,b.action,"redir",true)}else{throw"counter.js: not link and not form!"}}}}}else{f()}}})(window.Lego);(function(a){if(!a){a=window.Lego={}}a.cp=function(f,c,e,b,d){a.c("stred/pid="+f+"/cid="+c+(e?"/path="+e:""),b,d)}})(window.Lego);(function(a){if(!a){a=window.Lego={}}a.ch=function(c,b){if(a.params["show-counters"]){a.cp(0,2219,c,b)}}})(window.Lego);(function(a){if(!a){a=window.Lego={}}a.getCookie=function(h){var g=document.cookie;if(g.length<1){return false}var d=g.indexOf(h+"=");if(d==-1){return false}d+=(h.length+1);var f=g.indexOf(";",d);return decodeURIComponent((f==-1)?g.substring(d):g.substring(d,f))}})(window.Lego);(function(a){if(!a){a=window.Lego={}}a.isSessionValid=function(){return !!a.getCookie("yandex_login")}})(window.Lego);(function(b,a){if(!a){a=window.Lego={}}a.init||(a.init=function(c){(c=a.params=b.extend({id:"",login:a.isSessionValid()?a.getCookie("yandex_login")||"":"",yandexuid:a.getCookie("yandexuid"),locale:"ru",retpath:window.location.toString(),"passport-host":"//passport.yandex.ru","pass-host":"//pass.yandex.ru","passport-msg":c.id,"social-host":"//social.yandex.ru","lego-path":"/lego","show-counters-percent":100},c))["show-counters"]=Math.round(Math.random()*100)<=c["show-counters-percent"];b(function(){c.oframebust&&a.oframebust(c.oframebust)});return c});a.block||(a.block={});a.blockInit||(a.blockInit=function(c,d){c=c||document;d=d||".g-js";b(c).find(d).each(function(){var h=b(this),g=this.onclick?this.onclick():{},e=g.name||"",f=a.block[e];if(f&&!h.data(e)){f.call(h,g);h.data(e,true).addClass(e+"_js_inited")}})});a.blockInitBinded||(a.blockInitBinded=!!b(document).ready(function(){a.blockInit()}))})(jQuery,window.Lego); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/common.ru.js b/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/common.ru.js new file mode 100644 index 0000000..85b0b46 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/common.ru.js @@ -0,0 +1 @@ +if(!window.locale_text){window.locale_text={}}window.locale_text.common={rdb_error1:"не могу добавить уже существующую строку",rdb_error2:"не заполнено обязательное поле",photodragandrop_tooltip:"переместить в альбом",inplace_edit_photoname:"Добавьте заголовок к фото",inplace_edit_photodesc:"Добавьте описание к фотографии",inplace_edit_albumname:"Название",inplace_edit_albumdesc:"Описание",inplace_edit_error:"Ошибка сохранения.",ineditor_save:"Сохранить",ineditor_cancel:"Отменить",fotki_files_newalbum:"в новый альбом",fotki_files_saved:'Есть выбранные, но не загруженные фотки. Для того чтоб вернуться и загрузить их нажмите "Отмена", в противном случае ваш выбор будет сброшен.',fotki_files_labels:"метки",fotki_files_name:"название",fotki_files_desc:"описание",fotki_files_upload:"Загрузка фотографии",fotki_files_uploadsucess:"Загружено успешно",fotki_files_uploaderror:"Ошибка при загрузке",fotki_files_albumerror:"Не удалось создать альбом",fotki_files_no_avatar:"нет аватара",fotki_files_formats:"допустимые форматы: JPEG, GIF, PNG",fotki_files_maxuserpics:"у вас уже 12 картинок, поэтому при загрузке следующей картинки будет удалена самая старая из тех, что уже есть",fotki_files_maxlimit:"можно загрузить до 12 картинок",propertyEditorForm_confirm:"Для фотографии возможно указать не более 30 меток. Сохранить фото с первыми введёнными 30 метками?",propertyEditorForm_revert_confirm:"Вы уверены что хотите отменить все изменения редактирования этой фотографии?"}; \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/context_static_r702.js b/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/context_static_r702.js new file mode 100644 index 0000000..c75a3c6 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/context_static_r702.js @@ -0,0 +1,3 @@ +!function(window,document,undefined){function AdvManager(){this.queue=new util.Queue,this.loader=AdvManager.loader,this._rtb=new Rtb(this),this._direct=new Direct(this)}function Rtb(t){this._advManager=t,this._adFilter="",this._managers={}}function Direct(t){this._advManager=t,this._managers={},this._settingsCache={}}if(!Ya.Context.AdvManager){var util={};util.genRnd=function(){return Math.abs(+new Date)+Math.round(1e4*Math.random())},util.augment=function(t,e){var i=e.constructor;e.hasOwnProperty("constructor")||(i=function(){i.superConstructor.apply(this,arguments)});var a=function(){};return a.prototype=t.prototype,i.prototype=new a,i.prototype.constructor=i,i.superclass=t.prototype,i.superConstructor=t,util.extend(i.prototype,e),i},util.extend=function(t){for(var e,i=1,a=arguments.length;a>i;i++)if(e=arguments[i])for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t};var toString={}.toString;util.isArray=function(t){return"[object Array]"===toString.call(t)},util.isFunction=function(t){return"[object Function]"===toString.call(t)},util.inArray=function(t,e,i){(e===undefined||null===e)&&(e="");for(var a=0;aa;++a)e.call(i,t[a],a,t)},util.forOwn=function(t,e,i){util.each(util.keys(t),function(a){return e.call(i,t[a],a,t)},i)},util.map=function(t,e,i){var a,r,n=new Array(t.length);for(a=0,r=t.length;r>a;a++)a in t&&(n[a]=e.call(i,t[a],a,t));return n},util.filter=function(t,e,i){for(var a=[],r=0,n=t.length;n>r;r++){var o=t[r];e.call(i,o,r,t)&&a.push(o)}return a},util.keys=function(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e},util.deepCopy=function(t,e){if(e&&"object"==typeof e)for(var i in e)e.hasOwnProperty(i)&&("object"!=typeof e[i]||util.isArray(e[i])?t[i]=e[i]:("object"!=typeof t[i]&&(t[i]={}),util.deepCopy(t[i],e[i])));return t},util.getNativeMethod=function(t,e){var i=t[e];if(!util.checkNativeCode(i)){var a=i;try{delete t[e],i=t[e],t[e]=a}catch(r){}}return i},util.checkNativeCode=function(t){if(!t||!t.toString)return!1;var e=t.toString();return/\[native code\]/.test(e)||/\/\* source code not available \*\//.test(e)},util.format=function(t,e){var i=Array.prototype.slice.call(arguments,1);return t.toString().replace(/(^|.|\r|\n)(\$\{(.*?)\})/g,function(t,a,r,n){return"\\"==a?r:/^[0-9]+$/.test(n)?a+[i[+n]].join(""):a+[e&&e[n]].join("")})},util.trim=function(t){return t.replace(/^\s+|\s+$/g,"")},util.camelize=function(t){return t.replace(/[-|_]([a-z])/g,function(){return arguments[1].toUpperCase()})},util.uncamelize=function(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})},util.capitalize=function(t){return t.charAt(0).toUpperCase()+t.substring(1,t.length)},util.toQueryParams=function(t){var e=[];return util.each(util.keys(t),function(i){t[i]!=undefined&&""!==t[i]&&e.push(i+"="+encodeURIComponent(t[i]))}),e.join("&")},util.isInRange=function(t,e,i){if("number"!=typeof t)throw new Error("util.isInRange: Number value is expected");return t>=e&&i>=t},util.camelizeKeys=function(t){var e={};return util.forOwn(t,function(t,i){e[util.camelize(i)]=t}),e},util.joinBitmasks=function(t){for(var e=0,i=0,a=0;i$2")),t=t.replace(r,"$1"+o+s+" $2").replace(/ \-(\d\d?)%/g," \u2212$1%").replace(/ ([^\s]{1,2})$/,o+"$1").replace(/(\d+ (\d{3} ){0,2})\u0440\u0443\u0431([.,?!:;\s]|$)/g,function(t){return t.replace(/ /g,o)}).replace(/ !/,o+"!")},util.Queue=function(){var t=[],e=!1,i=function(){t.length?t.shift()(i):e=!1};return{add:function(a){e?t.push(a):(e=!0,a(i))}}},function(){var t=navigator,e=document.documentMode,i=document.compatMode,a=t.userAgent.toLowerCase(),r=a.indexOf("opera")>-1,n=a.indexOf("presto")>-1,o=a.indexOf("opera mini")>-1,s=!r&&a.indexOf("msie 7")>-1||7==e,l=!r&&a.indexOf("msie 8")>-1&&7!=e&&9!=e||8==e,p=!r&&a.indexOf("msie 9")>-1&&7!=e&&8!=e||9==e,d=!r&&a.indexOf("msie 10")>-1,c=!r&&a.indexOf("msie 6")>-1,u=!r&&a.indexOf("msie")>-1||c||s||l||p||d,h=u&&(5==e||!d&&"BackCompat"==i),y=function(t){for(var e=new Image,i=0,a=t.length;a>i;i++)if(""===e.style[t[i]+"transform"])return t[i];return null}(" -webkit- -ms- -moz- -o-".split(" "));util.browser={support:{cssTransform:null!==y,cssTransformPrefix:y,canvas:function(t){return Boolean(t.getContext&&t.getContext("2d"))}(document.createElement("canvas"))},isIE:u,isIE6:c,isIE7:s,isIE8:l,isIE9:p,isIEQuirks:h,isPresto:n,isOperaMini:o},util.browser.flashVer=function(){var e,i=t.plugins||{},a="object",r="Shockwave Flash",n="ShockwaveFlash.ShockwaveFlash",o="application/x-shockwave-flash",s=[0,0,0];if(typeof i[r]==a){if(e=i[r].description,e&&(t.mimeTypes!==undefined||!t.mimeTypes[o]||t.mimeTypes[o].enabledPlugin))return e=e.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),s[0]=parseInt(e.replace(/^(.*)\..*$/,"$1"),10),s[1]=parseInt(e.replace(/^.*\.(.*)\s.*$/,"$1"),10),s[2]=/[a-zA-Z]/.test(e)?parseInt(e.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0,s}else if(window.ActiveXObject!==undefined)try{var l=new ActiveXObject(n);if(l&&(e=l.GetVariable("$version")))return e=e.split(" ")[1].split(","),[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}catch(p){}return s}()}(),util.post=function(t,e){var i=util.toQueryParams(e);try{var a=new(window.XDomainRequest||window.XMLHttpRequest);a.open("post",t,!0),a.setRequestHeader&&a.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),a.send(i)}catch(r){var n=2083-location.protocol.length,o=t+"?"+i;if(o.length>n){var s=o.lastIndexOf("%",n-1);0>s&&(s=n-1),o=o.substring(0,s)}(new Image).src=o}},util.RGB=function(t,e,i){if(arguments.length<3){var a=util.RGB.normalizeColorHash(t)||"#000000";t=parseInt(a.substr(1,2),16),e=parseInt(a.substr(3,2),16),i=parseInt(a.substr(5,2),16)}this[0]=t,this[1]=e,this[2]=i},util.RGB.normalizeColorHash=function(t){return t=(t+"").toUpperCase().replace(/^#?/,"#"),/^#[0-9A-F]{6}$/i.test(t)?t:/^#[0-9A-F]{3}$/i.test(t)?t.replace(/([0-9A-F])([0-9A-F])([0-9A-F])/i,"$1$1$2$2$3$3"):undefined},util.RGB.prototype={_dec2hex:function(t){var e="0123456789ABCDEF";return e.charAt(t/16<<0)+e.charAt(t%16)},toString:function(){return"#"+this._dec2hex(this[0])+this._dec2hex(this[1])+this._dec2hex(this[2])},avg:function(){return(this[0]+this[1]+this[2])/3},luma:function(){return(299*this[0]+587*this[1]+114*this[2])/1e3},isLight:function(){return this.luma()>127}},util.base64=new function(){function t(t,e){t=t.replace(/\r\n/g,"\n");for(var i,r="",n=0;no?i=a(o):o>127&&2048>o?(i=a(o>>6|192),i+=a(63&o|128)):(i=a(o>>12|224),i+=a(o>>6&63|128),i+=a(63&o|128)),r.length+i.length>e)break;r+=i}return r}function e(t){for(var e="",i=0,a=0,r=0;ia)e+=String.fromCharCode(a),i++;else if(a>191&&224>a)r=t.charCodeAt(i+1),e+=String.fromCharCode((31&a)<<6|63&r),i+=2;else{r=t.charCodeAt(i+1);var n=t.charCodeAt(i+2);e+=String.fromCharCode((15&a)<<12|(63&r)<<6|63&n),i+=3}return e}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",a=String.fromCharCode;this.encode=function(e,a){a=a||1e6;var r,n,o,s,l,p,d,c="",u=0;for(e=t(e,3*a/4|0);u>2,l=(3&r)<<4|n>>4,p=(15&n)<<2|o>>6,d=63&o,isNaN(n)?p=d=64:isNaN(o)&&(d=64),c=c+i.charAt(s)+i.charAt(l)+i.charAt(p)+i.charAt(d);return c},this.decode=function(t){var a,r,n,o,s,l,p,d="",c=0;for(t=t.replace(/[^A-Za-z0-9\-\_\=]/g,"");c>4,r=(15&s)<<4|l>>2,n=(3&l)<<6|p,d+=String.fromCharCode(a),64!=l&&(d+=String.fromCharCode(r)),64!=p&&(d+=String.fromCharCode(n));return e(d)}},document.createElement("YATAG"),util.dom=function(t,e){if("string"!=typeof t)return t;var i=t.slice(0,1),a=t.slice(1);switch(i){case"#":return document.getElementById(a);case".":return util.dom.getElementsByClassName(a,e)}},util.dom.getElementsByClassName=function(t,e){if(e=e||document,util.checkNativeCode(e.getElementsByClassName))return Array.prototype.slice.call(e.getElementsByClassName(t));var i=e.getElementsByTagName("*"),a=util.filter(i,function(e){return util.dom.hasClass(e,t)});return a},util.dom.css=function(t,e){util.each(util.keys(e),function(i){var a=util.dom.normalizeCSSProperty(i,e[i]),r=util.camelize(a[0]);t.style[r]=a[1]})},util.dom.hasClass=function(t,e){for(var i=t.className.split(" "),a=0,r=i.length;r>a;a++)if(i[a]==e)return!0;return!1},util.dom.addClass=function(t,e){util.dom.hasClass(t,e)||(t.className+=" "+e)},util.dom.removeClass=function(t,e){var i=t.className.split(" "),a=util.filter(i,function(t){return t!=e});a.length');var i=document.createElement("script");return i.charset="utf-8",i.src=t,util.dom.getHead().appendChild(i),i},util.dom.isInViewport=function(t,e){try{var i=t.getBoundingClientRect()}catch(a){}if(!i||util.browser.isOperaMini)return t.offsetWidth>0&&t.offsetHeight>0;var r=i.right-i.left,n=i.bottom-i.top,o=0;if(r>0&&n>0){var s=function(t,e,i){return Math.max(Math.min(e,i)-Math.max(t,0),0)},l=util.dom.getWindowSize(),p=s(i.left,i.right,l.width),d=s(i.top,i.bottom,l.height);o=p*d/(r*n)}return o>=(e||Number.MIN_VALUE)},util.domEvent={},function(){function t(){if("complete"===document.readyState)setTimeout(e);else if(r)n(document,"DOMContentLoaded",i,!1),n(window,"load",i,!1);else{document.attachEvent("onreadystatechange",i),window.attachEvent("onload",i);var t=!1;try{t=null==window.frameElement&&document.documentElement}catch(o){}t&&t.doScroll&&!function l(){if(!s){try{t.doScroll("left")}catch(i){return setTimeout(l,50)}a(),e()}}()}}function e(){if(!s){if(!document.body)return setTimeout(e);s=!0;for(var t=0;ti)return"";for(var r,n="",o=t.childNodes,s=0;sa&&e>p;){o=document.getElementsByTagName("h"+a);for(var d=0;d0&&util.post("//an.yandex.ru/jserr/1",{errmsg:"v:"+Ya.codeVer+"::"+e})},env.protect=function(t,e,i){return function(){try{return e.apply(i||this,arguments)}catch(a){env.remoteLog("Error::"+t+"::"+a.message)}}},env.setProtectedTimeout=function(t,e,i){return window.setTimeout(env.protect("timeout",t,i),e)}}(),function(){Ya.Const={},Ya.Const.Products={},Ya.Const.BlockTypes={VERTICAL:"vertical",FLAT:"flat",HORIZONTAL:"horizontal",GRID:"grid",VK:"vk",ROW:"row"},Ya.Const.ImageSize={M:"M",L:"L"},Ya.Const.ImageAxis={X:"X",Y:"Y"},Ya.Const.BorderTypes={NONE:"none",BLOCK:"block",AD:"ad",COLLAPSE:"collapse"},Ya.Const.Limits={reloadTimeOut:3e4,visibCheckDelay:2e3,stripeVisibCheckDelay:2e3},Ya.Const.config={autoRenderStripeBlock:!0},Ya.Const.urls={adTune:"http://adtune.yandex.ru/"}}(),Ya.Context.configure=function(t){var e=util.extend(Ya.Const.config,t);Ya.HeadStripe.autoRender=!!e.autoRenderStripeBlock,e.autoRenderStripeBlock?delete Ya.Context.renderStripeBlock:Ya.Context.renderStripeBlock=function(t){Ya.HeadStripe._renderBlock(t)}},AdvManager.prototype={render:function(t,e){var i=/^(\w)\-(?:\w+\-)?(\d+)\-(\d+)$/.exec(t.blockId);if(t.pageId=i[2],t.blockImpId=i[3],t.statId=t.blockImpId,"R"==i[1])this._rtb.render(t,e);else{if("D"==i[1])t.product="direct";else if("S"==i[1])t.product="stripe";else{if("P"!=i[1])return;t.product="premium"}this._direct.render(t,null,e)}},renderDirect:function(t,e,i,a){var r={pageId:t,renderTo:e,data:i.data,grab:i.grab,searchText:i.search_text,searchPageNumber:i.search_page_number,lang:i.lang,product:i.ad_format};if("stripe"==i.type)r.product="stripe";else if("direct"!=r.product&&"premium"!=r.product)return;var n=parseInt(i.stat_id,10);isNaN(n)||(r.statId=n%Math.pow(2,24)+Math.pow(2,30)),i=util.camelizeKeys(i),i.name=i.type,this._direct.render(r,i,a)},checkStripe:function(t){(t.stripe_universal||t.stripe)&&Ya.HeadStripe.loadStripeData(t)},callMetrikaHit:function(t){(window.yandex_metrika_callbacks||(window.yandex_metrika_callbacks=[])).push(env.protect("mc",function(){window["yaCounter"+t]=new Ya.Metrika({id:t,type:1,_exp:!0})})),util.dom.addScript("//mc.yandex.ru/metrika/watch.js"),this.callMetrikaHit=function(){}}},function(){function t(t,e){a(r(t),e)}function e(t,e){a(n(t),e)}function i(t,e){a(o(t),e)}function a(t,e){var i,a=util.genRnd(),r=env.setProtectedTimeout(function(){Ya[a]&&(Ya[a]("{}"),Ya[a]=function(){})},15e3);Ya[a]=function(t){window.clearTimeout(r);var n={};try{delete Ya[a],n=new Function("return "+t)()}catch(o){env.remoteLog("JSONP parse::"+o.message+"::"+t)}env.protect("JSONP callback",function(){e(n),i&&util.dom.remove(i)})()},i=util.dom.addScript(t+"&callback=Ya["+a+"]",!Ya.Context._asyncModeOn)}function r(t){var e="//bs-meta.yandex.ru/meta/"+t.pageId+"?",i=s(t);return i["flash-ver"]=util.browser.flashVer[0],t.skipToken&&(i["skip-token"]=t.skipToken),t.extParam&&(i["ext-param"]=t.extParam),e+=util.toQueryParams(i),e+=t.extParams||"","http:"==location.protocol&&(e+="&grab="+util.grab(2040-e.length)),e}function n(t){var e="//an.yandex.ru/page/"+t.pageId+"?",i=s(t);return t.statId&&(i["stat-id"]=t.statId),t.skipBanner&&(i["skip-banner"]=t.skipBanner),t.searchText&&(i.text=t.searchText,i["page-no"]=t.searchPageNumber),e+=util.toQueryParams(i),"http:"==location.protocol&&(e+="&grab="+util.grab(2040-e.length,t.grab)),e}function o(t){var e="//an.yandex.ru/blkset/"+t.pageId+"?",i=s(t);return e+=util.toQueryParams(i)}function s(t){var e,i;try{{window.top.document.location.host}e=window.top.document.referrer,i=window.top.document.location.href,util.browser.isIE6&&i===e&&(e="")}catch(a){i=document.referrer||window.location.href,e=""}var r={"target-ref":i.substr(0,512),"page-ref":e.substr(0,512),charset:"utf-8"};return t.blockImpId&&(r["imp-id"]=t.blockImpId),t.lang&&(r.lang=t.lang),r}AdvManager.loader={loadRtb:t,loadDirect:e,loadDirectSettings:i}}(),Rtb.prototype={render:function(t,e){this._advManager.callMetrikaHit(t.pageId);var i=this._getManager("scope##",t.blockId);Ya.Context._asyncModeOn?this._renderAsync(i,t,e):this._renderSync(i,t)},_getManager:function(t,e){return e in this._managers||(this._managers[e]=new RtbManager(t,e)),this._managers[e]},_renderAsync:function(t,e,i){this._loadData(t,e,i||function(){},!1)},_renderSync:function(t,e){window.yandex_rtb_is_displayed=!0,this._loadData(t,e,function(){window.yandex_rtb_is_displayed=!1},!0)},_loadData:function(t,e,i,a){var r=this,n=function(a){a.settings&&(r._adFilter=a.settings[e.blockImpId].adFilter),t.setData(a),r._render(t,e,i),a.rtb&&a.rtb.url&&((new Image).src=a.rtb.url)};if(e.data)return void n(e.data);if(!t.dataCanReload())return void r._render(t,e,i);var o=function(i){r._advManager.loader.loadRtb({pageId:e.pageId,blockImpId:e.blockImpId,extParams:e.extParams,extParam:e.extParam,skipToken:r._getSkipToken(t),lang:e.lang},function(t){r._advManager.checkStripe(t),n(t),i&&i()})};a?o():this._advManager.queue.add(function(t){o(t)})},_render:function(t,e,i){return t.dataHasProduct()?void t.render(e):void(i&&i())},_getSkipToken:function(t){var e=this._adFilter?this._adFilter.split(":"):[];e=util.filter(e,function(t){return!/^yabs\./.test(t)});var i=t.getSkipAds();return i.length&&e.push("yabs."+util.base64.encode(i.join("\n"))),e.join(":")}};var RtbManager;!function(){function t(t,e){function i(){return util.joinBitmasks([[3,Ya.codeVer%8],[3,Ya.loaderVer%8],[1,window.top!==window.self]])}var a;this.getSettings=function(){return e},this.hasOnRender=function(){return Boolean(t.common&&"1"==t.common.isYandexPage)},this.getSize=function(){return[0==t.rtb.width?"100%":t.rtb.width,t.rtb.height]},this.getHtml=function(){return a||(a=util.base64.decode(t.rtb.html)),a};var r;this.onConfirmVisibility=function(){r||(e.linkTail&&((new Image).src=e.linkTail+"?test-tag="+i()),e.viewNotice&&((new Image).src=e.viewNotice),r=!0)}}RtbManager=function(e,i){function a(e){var i=util.dom("#"+e.renderTo);return i?void((i!==d||p!==o)&&(d=i,p=o,s&&s.destructor(),l||(l=new t(n,n.settings[e.blockImpId])),s=new RtbBlock(l,e.blockId),s.render(i),e.onRender&&l.hasOnRender()&&e.onRender({product:"rtb"}))):(d=null,p=null,void(s&&s.destructor()))}function r(t){s&&s.destructor();var e={onRender:t.onRender,renderTo:t.renderTo,product:"direct"},i=n.settings[t.blockImpId];t.imagesFirst&&(i.imagesFirst=!0),c.render(e,i),s={destructor:function(){n.direct||c.render(e,i)}}}var n,o,s,l,p=null,d=null,c=new Direct.Manager(e,i);this.setData=function(t){n=t,o=new Date,l=null,c.setData({}),n.direct&&c.setData(n)},this.dataCanReload=function(){return!o||new Date-o>Ya.Const.Limits.reloadTimeOut},this.dataHasProduct=function(){return Boolean(n&&(n.rtb||n.direct))},this.getSkipAds=function(){return c.getSkipBanners()},this.render=function(t){n.rtb?a(t):n.direct&&r(t)}}}(),Direct.prototype={render:function(t,e,i){this._advManager.callMetrikaHit(t.pageId);var a=[t.searchPageNumber||"",t.searchText||""].join("#"),r=this._getManager("scope#"+a,"common#"+a);Ya.Context._asyncModeOn?this._renderAsync(r,t,e,i):this._renderSync(r,t,e)},_getManager:function(t,e){return e in this._managers||(this._managers[e]=new Direct.Manager(t,e)),this._managers[e]},_renderAsync:function(t,e,i,a){var r=this;this._advManager.queue.add(function(n){r._loadData(t,e,i,a||function(){},n)})},_renderSync:function(t,e,i){window.yandex_ad_is_displayed=!0,this._loadData(t,e,i,function(){window.yandex_ad_is_displayed=!1},function(){})},_loadData:function(t,e,i,a,r){if(e.data)return void this._parseData(e.data,t,e,i,a,r);if(!t.dataCanReload()&&"stripe"!==e.product)return void this._render(t,e,i,a,r);var n=this;this._advManager.loader.loadDirect({pageId:e.pageId,blockImpId:e.blockImpId,skipBanner:t.getSkipBanners().join("\n"),statId:e.statId,grab:e.grab,searchText:e.searchText,searchPageNumber:e.searchPageNumber||1,lang:e.lang},function(o){n._parseData(o,t,e,i,a,r)})},_parseData:function(t,e,i,a,r,n){return e.setData(t),this._advManager.checkStripe(t),"stripe"==i.product?void n():(a||(a=t.settings&&t.settings[i.blockImpId]?t.settings[i.blockImpId]:{},this._settingsCache[i.blockId]=a),void this._render(e,i,a,r,n))},_render:function(t,e,i,a,r){return t.dataHasProduct(e.product)?void this._getSettings(e,i,function(i){t.render(e,i),r()}):(a&&a(),void r())},_getSettings:function(t,e,i){if(e)i(e);else if(this._settingsCache[t.blockId])i(this._settingsCache[t.blockId]);else{var a=this;this._advManager.loader.loadDirectSettings({pageId:t.pageId,blockImpId:t.blockImpId},function(e){var r=e[t.blockImpId];a._settingsCache[t.blockId]=r,i(r)})}}},function(){var t=Ya.Const.BlockTypes,e=Ya.Const.BorderTypes,i=[{name:t.VERTICAL,fixed:!1,type:t.VERTICAL,limit:9,border:[e.NONE,e.BLOCK,e.AD,e.COLLAPSE]},{name:t.FLAT,fixed:!1,type:t.FLAT,limit:4,border:[e.NONE,e.BLOCK,e.AD,e.COLLAPSE]},{name:t.HORIZONTAL,fixed:!1,type:t.HORIZONTAL,limit:4,border:[e.NONE,e.BLOCK,e.AD,e.COLLAPSE]},{name:"160x600",fixed:!0,type:t.VERTICAL,limit:5,border:[e.NONE,e.BLOCK,e.COLLAPSE]},{name:"240x400",fixed:!0,type:t.VERTICAL,limit:4,border:[e.NONE,e.BLOCK,e.COLLAPSE]},{name:"200x300",fixed:!0,type:t.VERTICAL,limit:3,border:[e.NONE,e.BLOCK,e.COLLAPSE]},{name:"300x300",fixed:!0,type:t.VERTICAL,limit:4,border:[e.NONE,e.BLOCK,e.COLLAPSE]},{name:"300x250",fixed:!0,type:t.VERTICAL,limit:3,border:[e.NONE,e.BLOCK,e.COLLAPSE]},{name:"250x250",fixed:!0,type:t.VERTICAL,limit:3,border:[e.NONE,e.BLOCK,e.COLLAPSE]},{name:"728x90",fixed:!0,type:t.HORIZONTAL,limit:2,border:[e.NONE,e.BLOCK,e.COLLAPSE]},{name:"1000x120",fixed:!0,type:t.HORIZONTAL,limit:4,border:[e.NONE,e.BLOCK,e.COLLAPSE]},{name:t.ROW,fixed:!1,type:t.ROW,limit:1,skipWarnings:!0,border:[e.NONE,e.BLOCK]},{name:"mobile",fixed:!1,type:t.VERTICAL,limit:1,border:[e.NONE,e.BLOCK]},{name:"100%x90",fixed:!0,type:t.HORIZONTAL,limit:2,border:[e.NONE,e.BLOCK,e.COLLAPSE]},{name:"100%x120",fixed:!0,type:t.HORIZONTAL,limit:4,border:[e.NONE,e.BLOCK,e.COLLAPSE]},{name:t.GRID,fixed:!1,type:t.GRID,limit:4,border:[e.NONE,e.BLOCK,e.AD,e.COLLAPSE]},{name:t.VK,fixed:!1,type:t.VK,limit:2,border:[e.NONE]}],a={};util.each(i,function(t,e){t.index=e,a[t.name]=t}),Direct.formatManager={getFormatByName:function(t){return a[t]||null}}}(),function(){function t(t,i){i.linkTail=t.linkTail,i.favicon=Boolean(t.favicon),i.noSitelinks=Boolean(t.noSitelinks),i.c11n=t.c11n||{},i.imagesFirst=Boolean(t.imagesFirst);var a=i.format.limit;if(i.format.fixed)i.limit=a;else{var r=parseInt(t.limit,10);i.limit=util.isInRange(r,1,a)?r:a}i.borderType=util.inArray(i.format.border,t.borderType)>-1?t.borderType:i.format.border[0],i.borderRadius=Boolean(t.borderRadius),i.linksUnderline=t.linksUnderline===undefined?!0:Boolean(t.linksUnderline),util.each(["siteBgColor","bgColor","borderColor","headerBgColor","titleColor","textColor","urlColor","sitelinksColor","hoverColor"],function(e){var a=util.RGB.normalizeColorHash(t[e]);null!=a&&(i[e]=a)}),i.format.fixed||e(t,i),"islands"==t.theme&&(i.theme="islands",i.bgColor="#fff",i.siteBgColor="#fff",i.fontFamily="Arial, Helvetica, sans-serif",i.sitelinksColor="#2222cc",i.headerBgColor=undefined,i.hoverColor="#ff0000",i.borderType="collapse",i.borderRadius=!1,i.borderColor="#dddcda",i.linksUnderline=!1,i.titleColor||(i.titleColor="#2222cc"),i.sitelinksColor||(i.sitelinksColor="#2222cc"),i.urlColor||(i.urlColor="#007700")),(util.browser.isIEQuirks||util.browser.isIE7||util.browser.isIE6)&&i.borderType==Ya.Const.BorderTypes.AD&&(i.borderType=Ya.Const.BorderTypes.COLLAPSE),util.browser.isPresto&&i.borderRadius&&i.bgColor&&(i.borderRadius=!1)}function e(t,e){var i=parseFloat(t.fontSize);util.isInRange(i,.8,1.2)||(i=1),e.fontSize=i;var a=parseInt(t.titleFontSize,10);util.isInRange(a,1,3)||(a=3),e.titleFontSize=a;for(var r={1:[[0,107]],2:[[0,128],[.7,125],[.8,123],[1.1,116]],3:[[0,135],[.9,130],[1,128],[1.1,125]]},n=r[a],o=0;n[o]&&n[o][0]Ya.Const.Limits.reloadTimeOut},dataHasProduct:function(t){return Boolean(this._data&&this._data[t])},render:function(t,e){var i=Direct.parseSettings(e);if(i){var a=t.blockId||t.renderTo;this._blocks[a]&&this._blocks[a].destructor();var r=t.blockId;r||(r=(t.renderTo+"-"+i.format.name).replace(/[^-\w]/g,"-")),this._blocks[a]=this._createBlock(t,i,r),this._blocks[a]&&(this._blocks[a].render(),t.onRender&&this._blocks[a].dataSource.hasOnRender()&&t.onRender({product:"direct"}))}},_createBlock:function(t,e,i){var a=this._createDataSource(t,e);if(a.isEmpty())return null;var r=blocks[util.capitalize(e.format.name)];return new r(a,e,t.renderTo,i)},_createDataSource:function(t,e){var i;switch(t.product){case"direct":i=Direct.StandardDataSource;break;case"premium":i=Direct.PremiumDataSource}return i?new i(this._data,this._key,t.statId,e,this._capturingManager,this._visibilityManager):void 0},getSkipBanners:function(){return this._capturingManager.getCapturedAdIds(this._key)}},Direct.Manager.getCapturingManager=function(){function t(){this._capturedAdIdsIndex={}}t.prototype={constructor:t,capture:function(t,e){this._capturedAdIdsIndex[t]||(this._capturedAdIdsIndex[t]=[]),this._capturedAdIdsIndex[t].push(e) +},release:function(t,e){var i=this._capturedAdIdsIndex[t];if(i){var a=util.inArray(i,e);-1!==a&&i.splice(a,1)}},getCapturedAdIds:function(t){var e=[];return util.forOwn(this._capturedAdIdsIndex,function(i,a){a!==t&&e.push.apply(e,i)}),e}};var e={};return function(i){return i in e||(e[i]=new t),e[i]}}(),Direct.Manager.VisibilityManager=function(){var t={};return{isRtbVisibilityConfirmed:function(){return this._rtbVisibilityConfirmed},setRtbVisibilityConfirmed:function(){this._rtbVisibilityConfirmed=!0},needConfirm:function(e){return!t[e]},confirm:function(e){t[e]=!0}}},Direct.CommonDataSource=util.augment(Object,{constructor:function(t,e,i,a,r,n){this._data=t,this._key=e,this._statId=i,this._settings=a,this._capturingManager=r,this._visibilityManager=n,this._ads=[];var o=this._getFromData("ads");o&&(this._ads=util.map(o,this._prepareAd,this))},getType:function(){},_getFromData:function(t){var e=this.getType();return this._data[e]&&this._data[e][t]},_prepareAd:function(t){var e=util.extend({},t),i=this._getLinkTailExt();return e.url+=i,e.vcardUrl&&(e.vcardUrl+=i),e.images&&(e.images=this._prepareImages(e.images)),e.site=e.domain?e.domain.replace(/^www\./,""):"",this._settings.favicon&&e.punyDomain&&(e.favicon="//favicon.yandex.net/favicon/"+e.punyDomain),e.sitelinks=this._settings.noSitelinks||!e.sitelinks?null:this._prepareSitelinks(e.sitelinks,i),e},_getLinkTailExt:function(){return"?"+util.toQueryParams({"test-tag":this._getTestTag(),"stat-id":this._statId})},_getTestTag:function(){return util.joinBitmasks([[4,1],[3,Ya.codeVer%8],[3,Ya.loaderVer%8],[5,this._settings.format.index],[1,window.top!==window.self],[1,!!this._settings.favicon]])},_prepareImages:function(t){var e={},i={M:80,L:90};return util.each(t,function(t){for(var a in i)e[a]=e[a]||{},t[1]==i[a]&&(e[a].X=t),t[2]==i[a]&&(e[a].Y=t)}),e},_prepareSitelinks:function(t,e){var i=[];return util.each(t,function(t){t.title&&t.url&&i.push({title:t.title,url:t.url+e})}),i.length?i:null},isEmpty:function(){return 0===this._ads.length},doSortByImages:function(){return Boolean(this._settings.imagesFirst)},getLinkHead:function(){return this._data.common.linkHead},getTitle:function(){return this._getFromData(this.getType()+"Title")},getFreeAds:function(){var t=this._capturingManager.getCapturedAdIds(),e=util.filter(this._ads,function(e){return-1===util.inArray(t,e.adId)});return e},hasOnRender:function(){return"1"==this._data.common.isYandexPage},releaseAd:function(t){this._capturingManager.release(this._key,t.adId)},captureAd:function(t){this._capturingManager.capture(this._key,t.adId)},onConfirmVisibility:function(t){var e=util.filter(t,function(t){return this._visibilityManager.needConfirm(t.linkTail)},this);if(e.length){var i=util.map(e,function(t){return t.linkTail}).join("");(new Image).src=this.getLinkHead()+i+this._getLinkTailExt()+"&wmode=0",util.each(e,function(t){this._visibilityManager.confirm(t.linkTail)},this)}}}),Direct.StandardDataSource=util.augment(Direct.CommonDataSource,{getType:function(){return"direct"},onConfirmVisibility:function(t){this._settings.linkTail&&!this._visibilityManager.isRtbVisibilityConfirmed()&&((new Image).src=this._settings.linkTail,this._visibilityManager.setRtbVisibilityConfirmed()),Direct.StandardDataSource.superclass.onConfirmVisibility.call(this,t)}}),Direct.PremiumDataSource=util.augment(Direct.CommonDataSource,{getType:function(){return"premium"}});var templates={layout:function(obj){var p=[];with(obj)p.push(''),util.each(ads,function(t,e){p.push(""),!(e>0&&format.type!=Ya.Const.BlockTypes.HORIZONTAL)||format.type==Ya.Const.BlockTypes.GRID&&e%2||p.push(""),p.push('")}),p.push("
                    '),titleOver&&p.push("",templates.title({ad:t}),""),p.push(""),t.picture&&p.push(''),p.push(""),titleOver||p.push("",templates.title({ad:t}),""),p.push('",t.body,""),t.age&&p.push('',t.age,""),p.push(""),t.sitelinks&&(p.push(''),util.each(t.sitelinks,function(e,i){p.push('',e.title,""),i·'),p.push("")}),p.push("")),p.push(''),t.vcardUrl&&p.push('\u0410\u0434\u0440\u0435\u0441 \u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d'),p.push(""),t.site&&p.push('',t.site,""),p.push(""),t.region&&p.push('',t.region,""),p.push(""),t.warning&&p.push('',t.warning,""),p.push("
                    ");return p.join("")},vk:function(obj){var p=[];with(obj)p.push(''),util.each(ads,function(t,e){p.push('',t.title,""),t.domain&&p.push('',t.domain,""),p.push(""),t.picture&&p.push('...'),p.push('',t.body,""),t.age&&p.push('',t.age,""),p.push(""),t.warning&&p.push('',t.warning,""),p.push("")}),p.push('");return p.join("")},row:function(obj){var p=[];with(obj)p.push(""),function(){var t=ads[0];p.push(''),t.age&&p.push('',t.age,""),p.push(""),t.favicon&&p.push(' '),p.push('',t.title,'',t.body,"")}(),p.push("");return p.join("")},title:function(obj){var p=[];with(obj)p.push(''),ad.favicon&&!ad.picture&&p.push(' '),p.push('',ad.title,"");return p.join("")}},styles={block:{yatag:{display:"block"},".yap-reset,.yap-reset a,.yap-reset img,.yap-reset table,.yap-reset tbody,.yap-reset tr,.yap-reset td":{"font-size":"inherit","text-align":"left",background:"transparent none no-repeat scroll 0 0",border:"none","-webkit-border-radius":0,"-moz-border-radius":0,"border-radius":0,"border-spacing":0,"border-collapse":"collapse",clear:"both","float":"none","font-variant":"normal","font-weight":"normal",height:"auto","letter-spacing":"normal","line-height":"normal",margin:0,"max-height":"none","max-width":"none","min-height":0,"min-width":0,outline:"none",padding:0,position:"static","text-decoration":"none","text-indent":0,"text-transform":"none","vertical-align":"baseline",visibility:"visible","word-spacing":"normal"},".yap-reset":{"white-space":"normal",width:"100%"},".yap-reset,.yap-reset a":{clear:"none"},".yap-reset yatag table":{display:"table","empty-cells":"hide","font-size":"100%","table-layout":"fixed"},".yap-reset yatag td":{display:"table-cell","font-size":"100%","vertical-align":"middle"},".yap-main":{position:"relative",overflow:"hidden"},".yap-list-wrapper":{border:"1px solid #dddcda",overflow:"hidden",clear:"both"},".yap-list":{width:"100%",height:"auto"},".yap-item":{height:"auto","text-align":"left"},".yap-border-type-none .yap-list-wrapper,.yap-border-type-ad .yap-list-wrapper":{"border-width":0},".yap-border-type-ad table.yap-list":{"border-spacing":"0 5px","border-collapse":"separate"},".yap-border-type-ad table.yap-list td.yap-item":{border:"1px solid #dddcda"},".yap-border-type-none table.yap-list td.yap-item,.yap-border-type-block table.yap-list td.yap-item":{"border-width":0},".yap-border-type-block .yap-logo-text,.yap-border-type-ad .yap-logo-text,.yap-border-type-collapse .yap-logo-text":{"padding-left":"1px"},".yap-border-type-none.yap-border-radius-true .yap-list-wrapper,.yap-border-type-block.yap-border-radius-true .yap-list-wrapper,.yap-border-type-collapse.yap-border-radius-true .yap-list-wrapper":{"-webkit-border-radius":"0 4px 4px 4px","-moz-border-radius":"0 4px 4px 4px","border-radius":"0 4px 4px 4px"},".yap-border-type-ad.yap-border-radius-true td.yap-item":{"-webkit-border-radius":"4px","-moz-border-radius":"4px","border-radius":"4px"},".yap-border-type-ad.yap-border-radius-true td.yap-item.yap-item-1":{"-webkit-border-radius":"0 4px 4px 4px","-moz-border-radius":"0 4px 4px 4px","border-radius":"0 4px 4px 4px"},".yap-logo-transparent-true.yap-border-radius-true.yap-border-type-block .yap-list-wrapper,.yap-logo-transparent-true.yap-border-radius-true.yap-border-type-collapse .yap-list-wrapper":{"-webkit-border-top-left-radius":"4px","-moz-border-top-left-radius":"4px","border-top-left-radius":"4px"},".yap-logo-transparent-true.yap-border-radius-true.yap-border-type-ad td.yap-item.yap-item-1":{"-webkit-border-top-left-radius":"4px","-moz-border-top-left-radius":"4px","border-top-left-radius":"4px"},".yap-item-inner":{padding:"0.7em",overflow:"hidden"},".yap-title,.yap-title *":{display:"inline"},".yap-title hl":{"vertical-align":"baseline"},"a.yap-title-text":{"font-weight":"normal","text-decoration":"underline","font-size":"130%","line-height":1.1},".yap-links-underline-false a.yap-title-text,.yap-links-underline-false a.yap-title-text:hover":{"text-decoration":"none"},"a.yap-body-text,a.yap-body-text:hover":{"font-weight":"normal","line-height":1.2,"text-decoration":"none"},".yap-logo":{"font-family":"Arial, sans-serif",position:"relative","padding-left":"0.7em","float":"left"},".yap-logo .yap-logo-arrow":{position:"absolute",left:"100%",top:0,"z-index":1,width:"9px",height:"100%"},"a.yap-logo-text":{"font-family":"Arial, sans-serif","font-size":"87%","padding-right":"4px","line-height":1.4,"font-weight":"normal","text-decoration":"none"},".yap-border-type-none.yap-logo-transparent-true a.yap-logo-text":{"text-decoration":"underline"},".yap-logo a.yap-logo-text *":{"font-weight":"normal","font-style":"normal","vertical-align":"baseline"},".yap-picture-block":{"float":"left","padding-right":"0.38em","padding-bottom":"0.38em"},".yap-picture-block img":{display:"block"},".yap-title-block":{"padding-bottom":"0.23em"},".yap-links-underline-true .yap-title-block":{"padding-bottom":"0.38em"},".yap-title-block a.yap-favicon-inline,.yap-title-block a.yap-favicon-inline:hover":{"text-decoration":"none"},".yap-title-block .yap-favicon":{display:"inline-block","margin-top":"-0.1em","vertical-align":"text-top"},".yap-nobr":{"white-space":"nowrap",display:"inline"},".yap-sitelinks":{"text-align":"left","padding-top":"0.23em"},".yap-sitelink":{"white-space":"nowrap","vertical-align":"middle",display:"inline-block"},".yap-sitelinks wbr":{display:"none"},"a.yap-sitelink-text":{"white-space":"normal","font-weight":"normal","text-decoration":"underline"},".yap-links-underline-false .yap-sitelink-text,.yap-links-underline-false .yap-sitelink-text:hover":{"text-decoration":"none"},".yap-sitelink-delim":{display:"inline",padding:"0 0.53em"},".yap-contacts":{"padding-top":"0.23em","line-height":1.1,"font-size":"85%"},".yap-links-underline-false .yap-contacts":{"padding-top":"0.15em"},".yap-contacts a,.yap-links-underline-false .yap-contacts a:hover":{"font-weight":"normal","text-decoration":"none"},".yap-contacts a:hover":{"text-decoration":"underline"},".yap-address,.yap-domain,.yap-region":{display:"inline-block","vertical-align":"baseline","padding-right":"0.53em"},".yap-age":{display:"inline-block","font-size":"70%","vertical-align":"middle",border:"1px solid #dddcda","-webkit-border-radius":"4px","-moz-border-radius":"4px","border-radius":"4px",padding:"0 0.15em","margin-left":"0.23em","text-align":"center","line-height":1.6,"margin-top":"-0.2em"},".yap-warning":{clear:"both",padding:"0.23em 0.35em 0 0"},".yap-warning-content":{display:"block",border:"1px solid #dddcda","-webkit-border-radius":"4px","-moz-border-radius":"4px","border-radius":"4px",padding:"0.15em 0.3em","font-size":"70%","line-height":1}},fixed:{".yap-fixed":{"font-family":"Arial, sans-serif","font-size":"13px"},".yap-fixed.yap-invisible":{visibility:"hidden"},".yap-fixed.yap-invisible .yap-list-wrapper":{overflow:"visible"},".yap-fixed .yap-font-size,.yap-fixed .yap-text,.yap-fixed .yap-text *,.yap-sitelink-text":{"font-size":"13px"},".yap-fixed .yap-title-font-size":{"font-size":"17px"},".yap-fixed .yap-contacts,.yap-fixed .yap-age":{"font-size":"11px"},".yap-fixed .yap-list":{height:"100%"},".yap-fixed .yap-item-inner":{padding:"5px"},".yap-fixed .yap-picture-block":{"padding-right":"5px","padding-bottom":"5px"},".yap-fixed .yap-warning-content":{"font-size":"8px"},".yap-fixed .yap-logo":{"font-size":"11px","line-height":"15px","padding-left":"5px"},".yap-fixed .yap-logo a.yap-logo-text":{"font-size":"11px","line-height":"15px"},".yap-hide-contacts .yap-contacts":{display:"none"},".yap-hide-contacts .yap-sitelinks":{"padding-bottom":0},".yap-hide-sitelink-1 .yap-sitelink-1,.yap-hide-sitelink-2 .yap-sitelink-2,.yap-hide-sitelink-3 .yap-sitelink-3,.yap-hide-sitelink-4 .yap-sitelink-4":{display:"none"},".yap-hide-sitelink-2 .yap-sitelink-1 .yap-sitelink-delim,.yap-hide-sitelink-3 .yap-sitelink-2 .yap-sitelink-delim,.yap-hide-sitelink-4 .yap-sitelink-3 .yap-sitelink-delim":{display:"none"},".yap-hide-all-sitelinks .yap-sitelinks":{display:"none"},".yap-type-160x600 .yap-picture-block":{"float":"none"},".yap-type-160x600 .yap-item-inner":{"padding-right":0},".yap-type-fixed-horizontal .yap-list-wrapper":{"margin-left":"15px"}},fixedHorizontal:{".yap-type-fixed-horizontal .yap-logo":{position:"absolute","z-index":3,left:0,top:0,width:"15px",height:"100%",overflow:"hidden",padding:0},".yap-type-fixed-horizontal .yap-logo .yap-logo-arrow":{display:"none"},".yap-type-fixed-horizontal .yap-logo-text":{display:"block",position:"absolute","z-index":3,left:"2px",bottom:"6px",padding:0},".yap-type-fixed-horizontal.yap-border-radius-true .yap-list-wrapper":{"-webkit-border-radius":"0 4px 4px 0","-moz-border-radius":"0 4px 0","border-radius":"0 4px 4px 0"},".yap-type-728x90 .yap-title-block,.yap-type-728x90 .yap-text":{display:"inline"},".yap-type-728x90 .yap-title-block":{"padding-right":"5px"},".yap-type-728x90 .yap-picture-block":{"padding-bottom":0},".yap-type-728x90 .yap-text":{"padding-top":0},".yap-type-728x90 .yap-item-inner":{"padding-bottom":"2px"},".yap-type-728x90.yap-border-type-none .yap-item-inner":{"padding-bottom":"3px"},".yap-type-728x90 .yap-item-has-picture .yap-warning":{clear:"none","float":"left","min-width":"70%"}},flat:{".yap-type-flat .yap-item":{"border-bottom":"1px solid #dddcda","vertical-align":"top"},".yap-type-flat td.yap-item-last":{"border-bottom-width":0},".yap-type-flat .yap-title-block,.yap-type-flat .yap-text":{display:"inline"},".yap-type-flat .yap-title-block":{"padding-right":"5px"},".yap-type-flat .yap-text":{"padding-top":0},".yap-type-flat .yap-item-has-picture .yap-warning":{clear:"none","float":"left","min-width":"80%"},".yap-type-flat.yap-border-type-ad table.yap-list":{"margin-top":"-5px"}},grid:{".yap-type-grid":{"border-width":0},".yap-type-grid .yap-item":{"vertical-align":"top"},".yap-type-grid .yap-item-1,.yap-type-grid .yap-item-3":{"border-right":"1px solid #dddcda"},".yap-type-grid .yap-item-1,.yap-type-grid .yap-item-2":{"border-bottom":"1px solid #dddcda"},".yap-type-grid td.yap-item-3":{"border-bottom-width":0},".yap-type-grid.yap-border-type-ad table.yap-list":{"border-spacing":"5px","margin-left":"-5px"}},horizontal:{".yap-type-horizontal .yap-item":{"border-right":"1px solid #dddcda","vertical-align":"top",height:"100%"},".yap-type-horizontal td.yap-item-last":{"border-right-width":0},".yap-type-horizontal.yap-border-type-ad table.yap-list":{"border-spacing":"5px 0","margin-left":"-5px"}},row:{".yap-type-row":{"white-space":"nowrap"},".yap-type-row .yap-logo":{"margin-right":"0.8em","padding-left":"5px","font-size":"inherit",display:"inline-block","float":"none"},".yap-type-row .yap-logo-text":{"line-height":1.5,padding:"0 0.25em"},".yap-type-row .yap-logo-arrow":{display:"inline-block"},".yap-type-row .yap-item":{padding:"0.18em",overflow:"hidden","text-overflow":"ellipsis"},".yap-type-row .yap-item *":{"vertical-align":"middle"},".yap-type-row .yap-age":{"margin-right":"0.6em","margin-top":0},".yap-type-row .yap-item .yap-title-text":{"font-size":"100%"},".yap-type-row .yap-item .yap-title-text *":{"vertical-align":"baseline"},".yap-type-row .yap-body-text":{"margin-left":"0.35em"},".yap-type-row .yap-favicon":{"padding-bottom":"1px"},".yap-type-row.yap-border-type-block .yap-item":{border:"1px solid #dddcda"},".yap-type-row.yap-border-radius-true .yap-item":{"-webkit-border-radius":"4px","-moz-border-radius":"4px","border-radius":"4px"}},vertical:{".yap-type-vertical .yap-item":{"border-bottom":"1px solid #dddcda"},".yap-type-vertical td.yap-item-last":{"border-bottom-width":0},".yap-type-vertical.yap-border-type-ad table.yap-list":{"margin-top":"-5px"}},vk:{".yap-vk-main":{display:"block","font-family":"Tahoma, Arial, Verdana, 'Lucida Sans', sans-serif","font-style":"normal","font-weight":"normal",width:"118px",overflow:"hidden",padding:0,margin:0},"yap-vk-main yatag":{display:"block"},".yap-vk-main img":{border:0,display:"inline-block"},".yap-vk-logo,.yap-vk-logo *":{color:"#777777","font-size":"0.91em","line-height":"11px","font-weight":"normal","font-style":"normal"},".yap-vk-logo":{padding:"3px 0 4px","text-align":"center"},".yap-vk-main a.yap-vk-item,.yap-vk-main a.yap-vk-item:hover,.yap-vk-main a.yap-vk-item:visited":{display:"block",padding:"8px 3px 11px","text-decoration":"none",color:"#000","text-align":"center","border-bottom":"1px solid #DCE3E9"},".yap-vk-main a.yap-vk-item.yap-vk-item-1":{"border-top":"1px solid #DCE3E9"},".yap-vk-title":{color:"#36638E","font-weight":"bold","word-wrap":"break-word"},".yap-vk-domain":{color:"#777777","font-size":"0.91em","padding-top":"3px","word-wrap":"break-word"},".yap-vk-image":{"padding-top":"9px"},".yap-vk-body":{"padding-top":"10px","word-wrap":"break-word"},".yap-vk-warning,.yap-vk-age":{color:"#777777","font-size":"0.82em","line-height":"130%","padding-top":"10px"}}},blocks={};blocks.Base=util.augment(Object,{constructor:function(t,e,i,a){this.blockId=a,this.renderTo=i,this._mainContId="yap-"+this.blockId,this.dataSource=t,this.settings=e,this._visibilityChecker=null,this.advs=[]},destructor:function(){this.clearEvents(),this.clearHTML(),this._privateStyle&&(util.dom.remove(this._privateStyle),this._privateStyle=null),this.advs.length&&util.each(this.advs,function(t){this.dataSource.releaseAd(t)},this)},clearHTML:function(){var t=this.getMainCont();t&&util.dom.remove(t)},clearEvents:function(){this._visibilityChecker&&this._visibilityChecker.clear()},getMainCont:function(){return util.dom("#"+this._mainContId)},_grabCss:function(t){t=t||"css";var e,i=this._grabPrototypeChain(t,!0).reverse(),a={};for(e=0;e1&&e();){var a=i.pop(),r=i.length;if(this.settings.format.type==Ya.Const.BlockTypes.HORIZONTAL){var n=Math.floor(100/r)+"%";util.each(i,function(t){util.dom.setImportantCssProperty(t,"width",n)})}util.dom.remove(1==a.parentNode.cells.length?a.parentNode:a),util.dom.addClass(i[r-1],"yap-item-last"),this.dataSource.releaseAd(this.advs.pop())}},showMisc:function(t,e){var i=function(e){util.dom.removeClass(t,e)},a=function(e){util.dom.addClass(t,e)},r=function(t){return i(t),e()?(a(t),!1):!0},n="yap-hide-all-sitelinks";if(!this.settings.noSitelinks){var o=!1;if(r(n))for(var s=1;4>=s&&r("yap-hide-sitelink-"+s);s++)o=!0;o||a(n)}r("yap-hide-contacts")},removeOverflow:function(){var t=util.dom(".yap-main",this.getMainCont())[0],e=this.height,i=0,a=function(){return t.scrollHeight-e>i};this.removeAds(t,a),this.showMisc(t,a),util.dom.removeClass(t,"yap-invisible")}};blocks.FixedVertical=util.augment(util.augment(blocks.Vertical,FixedProto),{classes:"yap-type-fixed-vertical",decorateCss:function(t){blocks.FixedHorizontal.superclass.decorateCss.call(this,t);var e=15,i=this.settings.borderType==Ya.Const.BorderTypes.BLOCK||this.settings.borderType==Ya.Const.BorderTypes.COLLAPSE;this.addCssStyle(".yap-list-wrapper",t,{height:(i?this.height-2:this.height)-e+"px"})},afterRender:function(){blocks.FixedVertical.superclass.afterRender.call(this),this.removeOverflow()}}),blocks.FixedHorizontal=util.augment(util.augment(blocks.Horizontal,FixedProto),{classes:"yap-type-fixed-horizontal",css:styles.fixedHorizontal,decorateCss:function(t){blocks.FixedHorizontal.superclass.decorateCss.call(this,t);var e=this.settings.borderType==Ya.Const.BorderTypes.BLOCK||this.settings.borderType==Ya.Const.BorderTypes.COLLAPSE;this.addCssStyle(".yap-list-wrapper",t,{height:(e?this.height-2:this.height)+"px"})},afterRender:function(){blocks.FixedHorizontal.superclass.afterRender.call(this),this.removeOverflow(),util.setVerticalText(util.dom(".yap-logo-text",this.getMainCont())[0],this.getLogoBg().isLight()?"#000":"#fff","11px/11px Arial,sans-serif")}});var fixedTypes={FixedHorizontal:["728x90","1000x120"],FixedVertical:["160x600","200x300","240x400","250x250","300x250","300x300"]};util.each(util.keys(fixedTypes),function(t){util.each(fixedTypes[t],function(e){var i=e.split("x",2),a={};a[".yap-type-"+e]={width:i[0]+"px",height:i[1]+"px"},blocks[e]=util.augment(blocks[t],{classes:"yap-type-"+e,css:a,width:i[0],height:i[1],imageSize:"FixedVertical"==t?"L":"M"}) +})}),function(){function t(t,i){return util.augment(t,{insertHtml:function(a){return a=util.format(e,{width:i,html:a}),t.prototype.insertHtml.call(this,a)}})}var e='${html}';blocks["100%x90"]=t(blocks["728x90"],728),blocks["100%x120"]=t(blocks["1000x120"],1e3)}(),blocks.Grid=util.augment(blocks.Vertical,{classes:"yap-type-grid",css:styles.grid,constructor:function(){blocks.Grid.superConstructor.apply(this,arguments),this.settings.limit=this.settings.format.limit}}),blocks.Row=util.augment(blocks.Block,{classes:"yap-type-row",css:styles.row,template:templates.row,decorateCss:function(t){blocks.Row.superclass.decorateCss.call(this,t);var e=this.settings.c11n;"itemPadding"in e&&this.addCssStyle(".yap-item-padding",t,{padding:e.itemPadding}),"arrowTextUnderline"in e&&util.isArray(e.arrowTextUnderline)&&(this.addCssStyle("a.yap-logo-underline",t,{"text-decoration":e.arrowTextUnderline[0]?"underline":"none"}),this.addCssStyle("a.yap-logo-underline:hover",t,{"text-decoration":e.arrowTextUnderline[1]?"underline":"none"})),this.addCssStyle(".yap-title-font-size",t,{"font-size":"normal"}),"130%"==this.settings.titleFontSizePercent?this.addCssStyle(".yap-title-font-size",t,{"font-weight":"bold"}):this.addCssStyle(".yap-title-font-size",t,{"font-weight":"normal"})}}),blocks.Vk=util.augment(blocks.Block,{template:templates.vk,css:styles.vk,prepareData:function(t){util.each(t.ads,function(t){util.each(["title","body","domain"],function(e){t[e]&&(t[e]=util.prettify(t[e],{gluePrepositions:!0,maxGluedLength:12,softBreakPunct:!0}))})})}}),blocks.Mobile=util.augment(blocks.Vertical,{classes:"yap-type-mobile"}),function(){var t=function(t,e){return this.clickListeners=[],this.isIframe()?null:(this.prefs=this.getPrefs(t),this.prefs?(this.ready=!0,void(e&&this.render())):null)};t.Types={FLOAT:"1",SHIFT:"2",BOTTOM:"3"},t.ANIMATION_TIME=500,t.prototype.canRender=function(){return this.ready},t.prototype.isIframe=function(){return window!=window.top},t.prototype.getPrefs=function(e){var i=util.camelizeKeys(e.stripe_universal||e.stripe.data);i.animation=!!parseInt(e.common.stripeAnimation,10),i.autoClose=parseInt(i.autoClose,10)||0,i.height=parseInt(i.height,10)||0,i.closeColor=i.closeColor||"#fff",i.closeDecoration=i.closeDecoration||"none",i.closeHoverColor=i.closeHoverColor||"#fff",i.closeLeft=parseInt(i.closeLeft,10)||0,i.closeCounter=i.closeCounter||"",i.text1FontSize=parseInt(i.text1FontSize||i.fontSize,10)||9,i.text1Color=i.text1Color||"#fff",i.text1Decoration=i.text1Decoration||"none",i.text1Left=parseInt(i.text1Left,10)||0,i.text1Target=i.text1Target||"_blank",i.text1Url=i.text1Url||"",i.text2FontSize=parseInt(i.text2FontSize||i.fontSize,10)||9,i.text2Color=i.text2Color||"#fff",i.text2Decoration=i.text2Decoration||"none",i.text2Left=parseInt(i.text2Left,10)||0,i.text2Target=i.text2Target||"_blank",i.text2Url=i.text2Url||"",i.backgroundColor=i.backgroundColor||"transparent",i.backgroundColorFile=i.backgroundColorFile||i.backgroundGradient||"",i.backgroundImage=i.backgroundImage||"",i.backgroundImageLeft=parseInt(i.backgroundImageLeft,10)||0,i.voidUrl=i.voidUrl||"",i.voidTarget=i.voidTarget||"_blank",i.stripeType=e.common.stripeType||t.Types.FLOAT,i.confirmVisibilityLink=i.linkNext?e.common.linkHead+i.linkNext:"",i.stripeType==t.Types.SHIFT&&(i.animation=!1);var a=util.browser;return(a.isIE6||a.isIE7||a.isIE8)&&(i.animation=!1),a.isIE9&&i.animation&&(this.toggleView=this.timedToggleView),i.stripeType==t.Types.BOTTOM&&(a.isIE6||a.isIEQuirks)?null:i},t.prototype.render=function(){this.iframe=document.createElement("iframe"),this.iframe.frameBorder=0,this.iframe.scrolling="no",this.iframe.seamless=!0,util.forOwn(this.getCss(),function(t,e){this.iframe.style[e]=t},this);var e=document.body||document.documentElement;e.insertBefore(this.iframe,e.firstChild);var i=util.format(t.Templates.DOCUMENT,this.getTmplData());this.iframe.contentWindow.name=i,this.iframe.contentWindow.location.replace("javascript:name"),util.domEvent.on(this.iframe,"load",this.afterRender,this,{once:!0})},t.prototype.getCss=function(){var e={display:"block",margin:0,padding:0,zIndex:2e4,border:"none",width:"100%",position:"absolute",left:0,height:this.prefs.height+"px"};return this.prefs.stripeType==t.Types.SHIFT&&(e.position="relative"),this.prefs.stripeType==t.Types.BOTTOM?(e.position="fixed",e.bottom=-this.prefs.height+"px"):e.top=-this.prefs.height+"px",this.prefs.animation&&(e.transition=e.WebkitTransition=e.MozTransition=e.OTransition="all "+t.ANIMATION_TIME+"ms"),e},t.prototype.getTmplData=function(){var e=function(t){return t.replace(/./g,function(t){return"&#"+t.charCodeAt(0)+";"})},i="";if(this.prefs.agreementText&&this.prefs.agreementUrl){var a=this.prefs.agreementText,r="",n="",o=this.prefs.agreementText.match(/(.*?)\[(.+)\](.*)/);o&&(r=o[1],a=o[2],n=o[3]),i=util.format(t.Templates.LINK,{preText:e(r),postText:e(n),linkText:e(a),linkUrl:this.prefs.agreementUrl})}var s=function(t){var e=[0,2,10,18,26,34,42,50,58,66,74,82,90,98,100];return e[t]+"%"};return util.extend({},this.prefs,{bgPosition:s(this.prefs.backgroundImageLeft),text1Position:s(this.prefs.text1Left),text2Position:s(this.prefs.text2Left),closePosition:s(14-this.prefs.closeLeft),text1:e(this.prefs.text1),text2:e(this.prefs.text2),close:e(this.prefs.close),closeBorder:"underline"==this.prefs.closeDecoration?"1px":"0",agreementLink:i})},t.prototype.afterRender=function(){this.toggleView(!0),this.prefs.autoClose&&(this.autoCloseTimer=env.setProtectedTimeout(this.close,1e3*this.prefs.autoClose,this));var t=function(){env.setProtectedTimeout(this.close,10,this)};this.addClickEvent("text1",t),this.addClickEvent("text2",t),this.addClickEvent("background",t),this.prefs.close&&this.addClickEvent("close",function(){this.onManualClose(),this.close()}),this.launchVisibilityChecker()},t.prototype.addClickEvent=function(t,e){var i=this.iframe.contentWindow.document.getElementById(t);this.clickListeners.push(util.domEvent.on(i,"click",e,this,{once:!0}))},t.prototype.removeClickEvents=function(){util.each(this.clickListeners,function(t){util.domEvent.un(t)}),this.clickListeners.length=0},t.prototype.toggleView=function(e,i){var a="top";this.prefs.stripeType==t.Types.BOTTOM&&(a="bottom"),this.iframe.style[a]=(e?0:-this.prefs.height)+"px",i&&(this.prefs.animation?this.addTransitionEndEvent(i):i())},t.prototype.addTransitionEndEvent=function(t){util.each(["transitionend","webkittransitionend","moztransitionend","otransitionend"],function(e){util.domEvent.on(this.iframe,e,t,this,{once:!0})},this)},t.prototype.close=function(){this.closed||(this.closed=!0,this.autoCloseTimer&&(clearTimeout(this.autoCloseTimer),this.autoCloseTimer=null),this.visibilityChecker.clear(),this.removeClickEvents(),this.toggleView(!1,env.protect("Stripe closed",this.destroy,this)))},t.prototype.destroy=function(){util.dom.remove(this.iframe),this.iframe=null},t.prototype.onManualClose=function(){this.prefs.closeCounter&&((new Image).src=this.prefs.closeCounter)},t.prototype.launchVisibilityChecker=function(){this.visibilityChecker=new util.VisibilityChecker(2e3).onConfirmed(env.protect("Stripe: onConfirmed",this.onConfirmVisibility,this)),this.prefs.confirmVisibilityLink&&(this.prefs.animation?env.setProtectedTimeout(function(){this.visibilityChecker.listen(this.iframe)},t.ANIMATION_TIME,this):this.visibilityChecker.listen(this.iframe))},t.prototype.onConfirmVisibility=function(){(new Image).src=this.prefs.confirmVisibilityLink},t.prototype.timedToggleView=function(e,i){function a(t,e,i,a){return i*t/a+e}function r(t,e){var i=new Date,a=function(){t(new Date-i)?setTimeout(a,17):e&&e()};a()}function n(t){r(function(e){var i=t.easing(e,t.start,t.end-t.start,t.duration),a=e${linkText}${postText} ',t.Templates.DOCUMENT='
                    ${text2} ${agreementLink}
                    ${ageRestriction}
                    ',Ya.HeadStripe={autoRender:!0,loadStripeData:function(e){if(!this._singleStripe){var i=new t(e,this.autoRender);i.canRender()&&(this._singleStripe=i)}},renderBlock:function(){return!this.autoRender&&this._singleStripe?(this._singleStripe.render(),!0):!1}}}();var RtbBlock;!function(){var t='${html}',e='';RtbBlock=function(t,e){this.dataSource=t,this.blockId=e},RtbBlock.prototype={render:function(t){var i=this.dataSource.getSize(),a=util.format(e,{baseURL:window.location.href,id:"ya_partner_"+this.blockId,width:i[0],height:i[1]});t.innerHTML=a,this._container=t,this.dataSource.getSettings().displayDelayed?this._createContainerChecker(t,this._render,this):this._render(t)},_render:function(e){var i=util.format(t,{baseURL:window.location.href,html:this.dataSource.getHtml()}),a=e.getElementsByTagName("iframe")[0];a.contentWindow.name=i,a.contentWindow.location.replace("javascript:this.name"),this._createVisibilityChecker(a)},_createContainerChecker:function(t,e,i){this._containerChecker=new util.VisibilityChecker(0).onVisible(env.protect("RTB container visible",function(){e.call(i,t)},this)).listen(t)},_createVisibilityChecker:function(t){this._visibilityChecker=new util.VisibilityChecker(2e3,.5).onConfirmed(env.protect("confirmVisibility: rtb",function(){this.dataSource.onConfirmVisibility()},this)).listen(t)},destructor:function(){clearTimeout(this._renderIframeTimeoutRef),this._containerChecker&&this._containerChecker.clear(),this._visibilityChecker&&this._visibilityChecker.clear(),this._container&&(this._container.innerHTML="")}}}(),function(){var t=new AdvManager;Ya.Context.AdvManager={render:env.protect("AdvManager.render",function(){t.render.apply(t,arguments)}),renderDirect:env.protect("AdvManager.renderDirect",function(){t.renderDirect.apply(t,arguments)})}}(),Ya.Context._init=env.protect("Ya.Context._callbacks",function(){for(var t=0;t'));var u=r("partner_id");c.Context._callbacks.push(function(){c.Context.AdvManager.renderDirect(u,f,y)})}var C="//an.yandex.ru/resource/context_static_r"+c.codeVer+".js";if(c.Context._asyncModeOn){var v=t.createElement("script"),g=t.getElementsByTagName("script")[0];v.src=C,g.parentNode.insertBefore(v,g)}else setTimeout(function(){var n=t.getElementsByTagName("script"),a=n?n[n.length-1]:null;a&&!e.Ya.Context.AdvManager&&"yes"==a.getAttribute("yandex_load_check")&&a.parentNode.removeChild(a)},8e3),t.write('')}(this,this.document); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/jquery.min.js new file mode 100644 index 0000000..bc3fbc8 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/jquery.min.js @@ -0,0 +1,2 @@ +/*! jQuery v1.8.2 jquery.com | jquery.org/license */ +(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write(""),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bS[a]=c,c}function ci(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||ce.test(a)?d(a,e):ci(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ci(a+"["+e+"]",b[e],c,d);else d(a,b)}function cz(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h)[^>]*$|#([\w\-]*)$)/,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,y=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,z=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,A=/^-ms-/,B=/-([\da-z])/gi,C=function(a,b){return(b+"").toUpperCase()},D=function(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",D,!1),p.ready()):e.readyState==="complete"&&(e.detachEvent("onreadystatechange",D),p.ready())},E={};p.fn=p.prototype={constructor:p,init:function(a,c,d){var f,g,h,i;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?f=[null,a,null]:f=u.exec(a);if(f&&(f[1]||!c)){if(f[1])return c=c instanceof p?c[0]:c,i=c&&c.nodeType?c.ownerDocument||c:e,a=p.parseHTML(f[1],i,!0),v.test(f[1])&&p.isPlainObject(c)&&this.attr.call(a,c,!0),p.merge(this,a);g=e.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2])return d.find(a);this.length=1,this[0]=g}return this.context=e,this.selector=a,this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}return p.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),p.makeArray(a,this))},selector:"",jquery:"1.8.2",length:0,size:function(){return this.length},toArray:function(){return k.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=p.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return p.each(this,a,b)},ready:function(a){return p.ready.promise().done(a),this},eq:function(a){return a=+a,a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(a){return this.pushStack(p.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},p.fn.init.prototype=p.fn,p.extend=p.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;typeof h=="boolean"&&(k=h,h=arguments[1]||{},i=2),typeof h!="object"&&!p.isFunction(h)&&(h={}),j===i&&(h=this,--i);for(;i0)return;d.resolveWith(e,[p]),p.fn.trigger&&p(e).trigger("ready").off("ready")},isFunction:function(a){return p.type(a)==="function"},isArray:Array.isArray||function(a){return p.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):E[m.call(a)]||"object"},isPlainObject:function(a){if(!a||p.type(a)!=="object"||a.nodeType||p.isWindow(a))return!1;try{if(a.constructor&&!n.call(a,"constructor")&&!n.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||n.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return!a||typeof a!="string"?null:(typeof b=="boolean"&&(c=b,b=0),b=b||e,(d=v.exec(a))?[b.createElement(d[1])]:(d=p.buildFragment([a],b,c?null:[]),p.merge([],(d.cacheable?p.clone(d.fragment):d.fragment).childNodes)))},parseJSON:function(b){if(!b||typeof b!="string")return null;b=p.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(w.test(b.replace(y,"@").replace(z,"]").replace(x,"")))return(new Function("return "+b))();p.error("Invalid JSON: "+b)},parseXML:function(c){var d,e;if(!c||typeof c!="string")return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&r.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(A,"ms-").replace(B,C)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||p.isFunction(a);if(d){if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;f0&&a[0]&&a[i-1]||i===0||p.isArray(a));if(j)for(;h-1)i.splice(c,1),e&&(c<=g&&g--,c<=h&&h--)}),this},has:function(a){return p.inArray(a,i)>-1},empty:function(){return i=[],this},disable:function(){return i=j=c=b,this},disabled:function(){return!i},lock:function(){return j=b,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],i&&(!d||j)&&(e?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},p.extend({Deferred:function(a){var b=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return p.Deferred(function(c){p.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]](p.isFunction(g)?function(){var a=g.apply(this,arguments);a&&p.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return a!=null?p.extend(a,d):d}},e={};return d.pipe=d.then,p.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=k.call(arguments),d=c.length,e=d!==1||a&&p.isFunction(a.promise)?d:0,f=e===1?a:p.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?k.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b
                    a",c=n.getElementsByTagName("*"),d=n.getElementsByTagName("a")[0],d.style.cssText="top:1px;float:left;opacity:.5";if(!c||!c.length)return{};f=e.createElement("select"),g=f.appendChild(e.createElement("option")),h=n.getElementsByTagName("input")[0],b={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:n.className!=="t",enctype:!!e.createElement("form").enctype,html5Clone:e.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:e.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},h.checked=!0,b.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled;try{delete n.test}catch(o){b.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",m=function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick"),n.detachEvent("onclick",m)),h=e.createElement("input"),h.value="t",h.setAttribute("type","radio"),b.radioValue=h.value==="t",h.setAttribute("checked","checked"),h.setAttribute("name","t"),n.appendChild(h),i=e.createDocumentFragment(),i.appendChild(n.lastChild),b.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=h.checked,i.removeChild(h),i.appendChild(n);if(n.attachEvent)for(k in{submit:!0,change:!0,focusin:!0})j="on"+k,l=j in n,l||(n.setAttribute(j,"return;"),l=typeof n[j]=="function"),b[k+"Bubbles"]=l;return p(function(){var c,d,f,g,h="padding:0;margin:0;border:0;display:block;overflow:hidden;",i=e.getElementsByTagName("body")[0];if(!i)return;c=e.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",i.insertBefore(c,i.firstChild),d=e.createElement("div"),c.appendChild(d),d.innerHTML="
                    t
                    ",f=d.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",l=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",b.reliableHiddenOffsets=l&&f[0].offsetHeight===0,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=d.offsetWidth===4,b.doesNotIncludeMarginInBodyOffset=i.offsetTop!==1,a.getComputedStyle&&(b.pixelPosition=(a.getComputedStyle(d,null)||{}).top!=="1%",b.boxSizingReliable=(a.getComputedStyle(d,null)||{width:"4px"}).width==="4px",g=e.createElement("div"),g.style.cssText=d.style.cssText=h,g.style.marginRight=g.style.width="0",d.style.width="1px",d.appendChild(g),b.reliableMarginRight=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight)),typeof d.style.zoom!="undefined"&&(d.innerHTML="",d.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=d.offsetWidth===3,d.style.display="block",d.style.overflow="visible",d.innerHTML="
                    ",d.firstChild.style.width="5px",b.shrinkWrapBlocks=d.offsetWidth!==3,c.style.zoom=1),i.removeChild(c),c=d=f=g=null}),i.removeChild(n),c=d=f=g=h=i=n=null,b}();var H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,I=/([A-Z])/g;p.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(p.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?p.cache[a[p.expando]]:a[p.expando],!!a&&!K(a)},data:function(a,c,d,e){if(!p.acceptData(a))return;var f,g,h=p.expando,i=typeof c=="string",j=a.nodeType,k=j?p.cache:a,l=j?a[h]:a[h]&&h;if((!l||!k[l]||!e&&!k[l].data)&&i&&d===b)return;l||(j?a[h]=l=p.deletedIds.pop()||p.guid++:l=h),k[l]||(k[l]={},j||(k[l].toJSON=p.noop));if(typeof c=="object"||typeof c=="function")e?k[l]=p.extend(k[l],c):k[l].data=p.extend(k[l].data,c);return f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[p.camelCase(c)]=d),i?(g=f[c],g==null&&(g=f[p.camelCase(c)])):g=f,g},removeData:function(a,b,c){if(!p.acceptData(a))return;var d,e,f,g=a.nodeType,h=g?p.cache:a,i=g?a[p.expando]:p.expando;if(!h[i])return;if(b){d=c?h[i]:h[i].data;if(d){p.isArray(b)||(b in d?b=[b]:(b=p.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,f=b.length;e1,null,!1))},removeData:function(a){return this.each(function(){p.removeData(this,a)})}}),p.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=p._data(a,b),c&&(!d||p.isArray(c)?d=p._data(a,b,p.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=p.queue(a,b),d=c.length,e=c.shift(),f=p._queueHooks(a,b),g=function(){p.dequeue(a,b)};e==="inprogress"&&(e=c.shift(),d--),e&&(b==="fx"&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return p._data(a,c)||p._data(a,c,{empty:p.Callbacks("once memory").add(function(){p.removeData(a,b+"queue",!0),p.removeData(a,c,!0)})})}}),p.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length1)},removeAttr:function(a){return this.each(function(){p.removeAttr(this,a)})},prop:function(a,b){return p.access(this,p.prop,a,b,arguments.length>1)},removeProp:function(a){return a=p.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(p.isFunction(a))return this.each(function(b){p(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(s);for(c=0,d=this.length;c=0)d=d.replace(" "+c[f]+" "," ");e.className=a?p.trim(d):""}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return p.isFunction(a)?this.each(function(c){p(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,f=0,g=p(this),h=b,i=a.split(s);while(e=i[f++])h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||a===!1?"":p._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c=0)return!0;return!1},val:function(a){var c,d,e,f=this[0];if(!arguments.length){if(f)return c=p.valHooks[f.type]||p.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"?d.replace(P,""):d==null?"":d);return}return e=p.isFunction(a),this.each(function(d){var f,g=p(this);if(this.nodeType!==1)return;e?f=a.call(this,d,g.val()):f=a,f==null?f="":typeof f=="number"?f+="":p.isArray(f)&&(f=p.map(f,function(a){return a==null?"":a+""})),c=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,f,"value")===b)this.value=f})}}),p.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,f=a.selectedIndex,g=[],h=a.options,i=a.type==="select-one";if(f<0)return null;c=i?f:0,d=i?f+1:h.length;for(;c=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return;if(e&&p.isFunction(p.fn[c]))return p(a)[c](d);if(typeof a.getAttribute=="undefined")return p.prop(a,c,d);h=i!==1||!p.isXMLDoc(a),h&&(c=c.toLowerCase(),g=p.attrHooks[c]||(T.test(c)?M:L));if(d!==b){if(d===null){p.removeAttr(a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,d+""),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c),f===null?b:f)},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&a.nodeType===1){d=b.split(s);for(;g=0}})});var V=/^(?:textarea|input|select)$/i,W=/^([^\.]*|)(?:\.(.+)|)$/,X=/(?:^|\s)hover(\.\S+|)\b/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=function(a){return p.event.special.hover?a:a.replace(X,"mouseenter$1 mouseleave$1")};p.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,q,r;if(a.nodeType===3||a.nodeType===8||!c||!d||!(g=p._data(a)))return;d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=p.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b},h.elem=a),c=p.trim(_(c)).split(" ");for(j=0;j=0&&(s=s.slice(0,-1),i=!0),s.indexOf(".")>=0&&(t=s.split("."),s=t.shift(),t.sort());if((!f||p.event.customEvent[s])&&!p.event.global[s])return;c=typeof c=="object"?c[p.expando]?c:new p.Event(s,c):new p.Event(s),c.type=s,c.isTrigger=!0,c.exclusive=i,c.namespace=t.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m=s.indexOf(":")<0?"on"+s:"";if(!f){h=p.cache;for(j in h)h[j].events&&h[j].events[s]&&p.event.trigger(c,d,h[j].handle.elem,!0);return}c.result=b,c.target||(c.target=f),d=d!=null?p.makeArray(d):[],d.unshift(c),n=p.event.special[s]||{};if(n.trigger&&n.trigger.apply(f,d)===!1)return;q=[[f,n.bindType||s]];if(!g&&!n.noBubble&&!p.isWindow(f)){r=n.delegateType||s,k=$.test(r+s)?f:f.parentNode;for(l=f;k;k=k.parentNode)q.push([k,r]),l=k;l===(f.ownerDocument||e)&&q.push([l.defaultView||l.parentWindow||a,r])}for(j=0;j=0:p.find(m,this,null,[f]).length),h[m]&&j.push(l);j.length&&u.push({elem:f,matches:j})}o.length>q&&u.push({elem:this,matches:o.slice(q)});for(d=0;d0?this.on(b,null,a,c):this.trigger(b)},Y.test(b)&&(p.event.fixHooks[b]=p.event.keyHooks),Z.test(b)&&(p.event.fixHooks[b]=p.event.mouseHooks)}),function(a,b){function bc(a,b,c,d){c=c||[],b=b||r;var e,f,i,j,k=b.nodeType;if(!a||typeof a!="string")return c;if(k!==1&&k!==9)return[];i=g(b);if(!i&&!d)if(e=P.exec(a))if(j=e[1]){if(k===9){f=b.getElementById(j);if(!f||!f.parentNode)return c;if(f.id===j)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(j))&&h(b,f)&&f.id===j)return c.push(f),c}else{if(e[2])return w.apply(c,x.call(b.getElementsByTagName(a),0)),c;if((j=e[3])&&_&&b.getElementsByClassName)return w.apply(c,x.call(b.getElementsByClassName(j),0)),c}return bp(a.replace(L,"$1"),b,c,d,i)}function bd(a){return function(b){var c=b.nodeName.toLowerCase();return c==="input"&&b.type===a}}function be(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}}function bf(a){return z(function(b){return b=+b,z(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function bg(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}function bh(a,b){var c,d,f,g,h,i,j,k=C[o][a];if(k)return b?0:k.slice(0);h=a,i=[],j=e.preFilter;while(h){if(!c||(d=M.exec(h)))d&&(h=h.slice(d[0].length)),i.push(f=[]);c=!1;if(d=N.exec(h))f.push(c=new q(d.shift())),h=h.slice(c.length),c.type=d[0].replace(L," ");for(g in e.filter)(d=W[g].exec(h))&&(!j[g]||(d=j[g](d,r,!0)))&&(f.push(c=new q(d.shift())),h=h.slice(c.length),c.type=g,c.matches=d);if(!c)break}return b?h.length:h?bc.error(a):C(a,i).slice(0)}function bi(a,b,d){var e=b.dir,f=d&&b.dir==="parentNode",g=u++;return b.first?function(b,c,d){while(b=b[e])if(f||b.nodeType===1)return a(b,c,d)}:function(b,d,h){if(!h){var i,j=t+" "+g+" ",k=j+c;while(b=b[e])if(f||b.nodeType===1){if((i=b[o])===k)return b.sizset;if(typeof i=="string"&&i.indexOf(j)===0){if(b.sizset)return b}else{b[o]=k;if(a(b,d,h))return b.sizset=!0,b;b.sizset=!1}}}else while(b=b[e])if(f||b.nodeType===1)if(a(b,d,h))return b}}function bj(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function bk(a,b,c,d,e){var f,g=[],h=0,i=a.length,j=b!=null;for(;h-1},h,!0),m=[function(a,c,d){return!g&&(d||c!==l)||((b=c).nodeType?j(a,c,d):k(a,c,d))}];for(;i1&&bj(m),i>1&&a.slice(0,i-1).join("").replace(L,"$1"),c,i0,f=a.length>0,g=function(h,i,j,k,m){var n,o,p,q=[],s=0,u="0",x=h&&[],y=m!=null,z=l,A=h||f&&e.find.TAG("*",m&&i.parentNode||i),B=t+=z==null?1:Math.E;y&&(l=i!==r&&i,c=g.el);for(;(n=A[u])!=null;u++){if(f&&n){for(o=0;p=a[o];o++)if(p(n,i,j)){k.push(n);break}y&&(t=B,c=++g.el)}d&&((n=!p&&n)&&s--,h&&x.push(n))}s+=u;if(d&&u!==s){for(o=0;p=b[o];o++)p(x,q,i,j);if(h){if(s>0)while(u--)!x[u]&&!q[u]&&(q[u]=v.call(k));q=bk(q)}w.apply(k,q),y&&!h&&q.length>0&&s+b.length>1&&bc.uniqueSort(k)}return y&&(t=B,l=z),x};return g.el=0,d?z(g):g}function bo(a,b,c,d){var e=0,f=b.length;for(;e2&&(j=h[0]).type==="ID"&&b.nodeType===9&&!f&&e.relative[h[1].type]){b=e.find.ID(j.matches[0].replace(V,""),b,f)[0];if(!b)return c;a=a.slice(h.shift().length)}for(g=W.POS.test(a)?-1:h.length-1;g>=0;g--){j=h[g];if(e.relative[k=j.type])break;if(l=e.find[k])if(d=l(j.matches[0].replace(V,""),R.test(h[0].type)&&b.parentNode||b,f)){h.splice(g,1),a=d.length&&h.join("");if(!a)return w.apply(c,x.call(d,0)),c;break}}}return i(a,m)(d,b,f,c,R.test(a)),c}function bq(){}var c,d,e,f,g,h,i,j,k,l,m=!0,n="undefined",o=("sizcache"+Math.random()).replace(".",""),q=String,r=a.document,s=r.documentElement,t=0,u=0,v=[].pop,w=[].push,x=[].slice,y=[].indexOf||function(a){var b=0,c=this.length;for(;be.cacheLength&&delete a[b.shift()],a[c]=d},a)},B=A(),C=A(),D=A(),E="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",G=F.replace("w","w#"),H="([*^$|!~]?=)",I="\\["+E+"*("+F+")"+E+"*(?:"+H+E+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+G+")|)|)"+E+"*\\]",J=":("+F+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+I+")|[^:]|\\\\.)*|.*))\\)|)",K=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)",L=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g"),M=new RegExp("^"+E+"*,"+E+"*"),N=new RegExp("^"+E+"*([\\x20\\t\\r\\n\\f>+~])"+E+"*"),O=new RegExp(J),P=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,Q=/^:not/,R=/[\x20\t\r\n\f]*[+~]/,S=/:not\($/,T=/h\d/i,U=/input|select|textarea|button/i,V=/\\(?!\\)/g,W={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),NAME:new RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+J),POS:new RegExp(K,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),needsContext:new RegExp("^"+E+"*[>+~]|"+K,"i")},X=function(a){var b=r.createElement("div");try{return a(b)}catch(c){return!1}finally{b=null}},Y=X(function(a){return a.appendChild(r.createComment("")),!a.getElementsByTagName("*").length}),Z=X(function(a){return a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!==n&&a.firstChild.getAttribute("href")==="#"}),$=X(function(a){a.innerHTML="";var b=typeof a.lastChild.getAttribute("multiple");return b!=="boolean"&&b!=="string"}),_=X(function(a){return a.innerHTML="",!a.getElementsByClassName||!a.getElementsByClassName("e").length?!1:(a.lastChild.className="e",a.getElementsByClassName("e").length===2)}),ba=X(function(a){a.id=o+0,a.innerHTML="
                    ",s.insertBefore(a,s.firstChild);var b=r.getElementsByName&&r.getElementsByName(o).length===2+r.getElementsByName(o+0).length;return d=!r.getElementById(o),s.removeChild(a),b});try{x.call(s.childNodes,0)[0].nodeType}catch(bb){x=function(a){var b,c=[];for(;b=this[a];a++)c.push(b);return c}}bc.matches=function(a,b){return bc(a,null,null,b)},bc.matchesSelector=function(a,b){return bc(b,null,null,[a]).length>0},f=bc.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(e===1||e===9||e===11){if(typeof a.textContent=="string")return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=f(a)}else if(e===3||e===4)return a.nodeValue}else for(;b=a[d];d++)c+=f(b);return c},g=bc.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?b.nodeName!=="HTML":!1},h=bc.contains=s.contains?function(a,b){var c=a.nodeType===9?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&d.nodeType===1&&c.contains&&c.contains(d))}:s.compareDocumentPosition?function(a,b){return b&&!!(a.compareDocumentPosition(b)&16)}:function(a,b){while(b=b.parentNode)if(b===a)return!0;return!1},bc.attr=function(a,b){var c,d=g(a);return d||(b=b.toLowerCase()),(c=e.attrHandle[b])?c(a):d||$?a.getAttribute(b):(c=a.getAttributeNode(b),c?typeof a[b]=="boolean"?a[b]?b:null:c.specified?c.value:null:null)},e=bc.selectors={cacheLength:50,createPseudo:z,match:W,attrHandle:Z?{}:{href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}},find:{ID:d?function(a,b,c){if(typeof b.getElementById!==n&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==n&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==n&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:Y?function(a,b){if(typeof b.getElementsByTagName!==n)return b.getElementsByTagName(a)}:function(a,b){var c=b.getElementsByTagName(a);if(a==="*"){var d,e=[],f=0;for(;d=c[f];f++)d.nodeType===1&&e.push(d);return e}return c},NAME:ba&&function(a,b){if(typeof b.getElementsByName!==n)return b.getElementsByName(name)},CLASS:_&&function(a,b,c){if(typeof b.getElementsByClassName!==n&&!c)return b.getElementsByClassName(a)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(V,""),a[3]=(a[4]||a[5]||"").replace(V,""),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1]==="nth"?(a[2]||bc.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*(a[2]==="even"||a[2]==="odd")),a[4]=+(a[6]+a[7]||a[2]==="odd")):a[2]&&bc.error(a[0]),a},PSEUDO:function(a){var b,c;if(W.CHILD.test(a[0]))return null;if(a[3])a[2]=a[3];else if(b=a[4])O.test(b)&&(c=bh(b,!0))&&(c=b.indexOf(")",b.length-c)-b.length)&&(b=b.slice(0,c),a[0]=a[0].slice(0,c)),a[2]=b;return a.slice(0,3)}},filter:{ID:d?function(a){return a=a.replace(V,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(V,""),function(b){var c=typeof b.getAttributeNode!==n&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return a==="*"?function(){return!0}:(a=a.replace(V,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=B[o][a];return b||(b=B(a,new RegExp("(^|"+E+")"+a+"("+E+"|$)"))),function(a){return b.test(a.className||typeof a.getAttribute!==n&&a.getAttribute("class")||"")}},ATTR:function(a,b,c){return function(d,e){var f=bc.attr(d,a);return f==null?b==="!=":b?(f+="",b==="="?f===c:b==="!="?f!==c:b==="^="?c&&f.indexOf(c)===0:b==="*="?c&&f.indexOf(c)>-1:b==="$="?c&&f.substr(f.length-c.length)===c:b==="~="?(" "+f+" ").indexOf(c)>-1:b==="|="?f===c||f.substr(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d){return a==="nth"?function(a){var b,e,f=a.parentNode;if(c===1&&d===0)return!0;if(f){e=0;for(b=f.firstChild;b;b=b.nextSibling)if(b.nodeType===1){e++;if(a===b)break}}return e-=d,e===c||e%c===0&&e/c>=0}:function(b){var c=b;switch(a){case"only":case"first":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(a==="first")return!0;c=b;case"last":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0}}},PSEUDO:function(a,b){var c,d=e.pseudos[a]||e.setFilters[a.toLowerCase()]||bc.error("unsupported pseudo: "+a);return d[o]?d(b):d.length>1?(c=[a,a,"",b],e.setFilters.hasOwnProperty(a.toLowerCase())?z(function(a,c){var e,f=d(a,b),g=f.length;while(g--)e=y.call(a,f[g]),a[e]=!(c[e]=f[g])}):function(a){return d(a,0,c)}):d}},pseudos:{not:z(function(a){var b=[],c=[],d=i(a.replace(L,"$1"));return d[o]?z(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)if(f=g[h])a[h]=!(b[h]=f)}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:z(function(a){return function(b){return bc(a,b).length>0}}),contains:z(function(a){return function(b){return(b.textContent||b.innerText||f(b)).indexOf(a)>-1}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!e.pseudos.empty(a)},empty:function(a){var b;a=a.firstChild;while(a){if(a.nodeName>"@"||(b=a.nodeType)===3||b===4)return!1;a=a.nextSibling}return!0},header:function(a){return T.test(a.nodeName)},text:function(a){var b,c;return a.nodeName.toLowerCase()==="input"&&(b=a.type)==="text"&&((c=a.getAttribute("type"))==null||c.toLowerCase()===b)},radio:bd("radio"),checkbox:bd("checkbox"),file:bd("file"),password:bd("password"),image:bd("image"),submit:be("submit"),reset:be("reset"),button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},input:function(a){return U.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&(!!a.type||!!a.href)},active:function(a){return a===a.ownerDocument.activeElement},first:bf(function(a,b,c){return[0]}),last:bf(function(a,b,c){return[b-1]}),eq:bf(function(a,b,c){return[c<0?c+b:c]}),even:bf(function(a,b,c){for(var d=0;d=0;)a.push(d);return a}),gt:bf(function(a,b,c){for(var d=c<0?c+b:c;++d",a.querySelectorAll("[selected]").length||e.push("\\["+E+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||e.push(":checked")}),X(function(a){a.innerHTML="

                    ",a.querySelectorAll("[test^='']").length&&e.push("[*^$]="+E+"*(?:\"\"|'')"),a.innerHTML="",a.querySelectorAll(":enabled").length||e.push(":enabled",":disabled")}),e=new RegExp(e.join("|")),bp=function(a,d,f,g,h){if(!g&&!h&&(!e||!e.test(a))){var i,j,k=!0,l=o,m=d,n=d.nodeType===9&&a;if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){i=bh(a),(k=d.getAttribute("id"))?l=k.replace(c,"\\$&"):d.setAttribute("id",l),l="[id='"+l+"'] ",j=i.length;while(j--)i[j]=l+i[j].join("");m=R.test(a)&&d.parentNode||d,n=i.join(",")}if(n)try{return w.apply(f,x.call(m.querySelectorAll(n),0)),f}catch(p){}finally{k||d.removeAttribute("id")}}return b(a,d,f,g,h)},h&&(X(function(b){a=h.call(b,"div");try{h.call(b,"[test!='']:sizzle"),f.push("!=",J)}catch(c){}}),f=new RegExp(f.join("|")),bc.matchesSelector=function(b,c){c=c.replace(d,"='$1']");if(!g(b)&&!f.test(c)&&(!e||!e.test(c)))try{var i=h.call(b,c);if(i||a||b.document&&b.document.nodeType!==11)return i}catch(j){}return bc(c,null,null,[b]).length>0})}(),e.pseudos.nth=e.pseudos.eq,e.filters=bq.prototype=e.pseudos,e.setFilters=new bq,bc.attr=p.attr,p.find=bc,p.expr=bc.selectors,p.expr[":"]=p.expr.pseudos,p.unique=bc.uniqueSort,p.text=bc.getText,p.isXMLDoc=bc.isXML,p.contains=bc.contains}(a);var bc=/Until$/,bd=/^(?:parents|prev(?:Until|All))/,be=/^.[^:#\[\.,]*$/,bf=p.expr.match.needsContext,bg={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if(typeof a!="string")return p(a).filter(function(){for(b=0,c=h.length;b0)for(e=d;e=0:p.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c,d=0,e=this.length,f=[],g=bf.test(a)||typeof a!="string"?p(a,b||this.context):0;for(;d-1:p.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}}return f=f.length>1?p.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?typeof a=="string"?p.inArray(this[0],p(a)):p.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?p(a,b):p.makeArray(a&&a.nodeType?[a]:a),d=p.merge(this.get(),c);return this.pushStack(bh(c[0])||bh(d[0])?d:p.unique(d))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),p.fn.andSelf=p.fn.addBack,p.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return p.dir(a,"parentNode")},parentsUntil:function(a,b,c){return p.dir(a,"parentNode",c)},next:function(a){return bi(a,"nextSibling")},prev:function(a){return bi(a,"previousSibling")},nextAll:function(a){return p.dir(a,"nextSibling")},prevAll:function(a){return p.dir(a,"previousSibling")},nextUntil:function(a,b,c){return p.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return p.dir(a,"previousSibling",c)},siblings:function(a){return p.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return p.sibling(a.firstChild)},contents:function(a){return p.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:p.merge([],a.childNodes)}},function(a,b){p.fn[a]=function(c,d){var e=p.map(this,b,c);return bc.test(a)||(d=c),d&&typeof d=="string"&&(e=p.filter(d,e)),e=this.length>1&&!bg[a]?p.unique(e):e,this.length>1&&bd.test(a)&&(e=e.reverse()),this.pushStack(e,a,k.call(arguments).join(","))}}),p.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?p.find.matchesSelector(b[0],a)?[b[0]]:[]:p.find.matches(a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&&f.nodeType!==9&&(d===b||f.nodeType!==1||!p(f).is(d)))f.nodeType===1&&e.push(f),f=f[c];return e},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bl="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",bm=/ jQuery\d+="(?:null|\d+)"/g,bn=/^\s+/,bo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bp=/<([\w:]+)/,bq=/]","i"),bv=/^(?:checkbox|radio)$/,bw=/checked\s*(?:[^=]|=\s*.checked.)/i,bx=/\/(java|ecma)script/i,by=/^\s*\s*$/g,bz={option:[1,""],legend:[1,"
                    ","
                    "],thead:[1,"","
                    "],tr:[2,"","
                    "],td:[3,"","
                    "],col:[2,"","
                    "],area:[1,"",""],_default:[0,"",""]},bA=bk(e),bB=bA.appendChild(e.createElement("div"));bz.optgroup=bz.option,bz.tbody=bz.tfoot=bz.colgroup=bz.caption=bz.thead,bz.th=bz.td,p.support.htmlSerialize||(bz._default=[1,"X
                    ","
                    "]),p.fn.extend({text:function(a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(p.isFunction(a))return this.each(function(b){p(this).wrapAll(a.call(this,b))});if(this[0]){var b=p(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return p.isFunction(a)?this.each(function(b){p(this).wrapInner(a.call(this,b))}):this.each(function(){var b=p(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=p.isFunction(a);return this.each(function(c){p(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(a,this),"before",this.selector)}},after:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(this,a),"after",this.selector)}},remove:function(a,b){var c,d=0;for(;(c=this[d])!=null;d++)if(!a||p.filter(a,[c]).length)!b&&c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),p.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){a.nodeType===1&&p.cleanData(a.getElementsByTagName("*"));while(a.firstChild)a.removeChild(a.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return p.clone(this,a,b)})},html:function(a){return p.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(bm,""):b;if(typeof a=="string"&&!bs.test(a)&&(p.support.htmlSerialize||!bu.test(a))&&(p.support.leadingWhitespace||!bn.test(a))&&!bz[(bp.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(bo,"<$1>");try{for(;d1&&typeof j=="string"&&bw.test(j))return this.each(function(){p(this).domManip(a,c,d)});if(p.isFunction(j))return this.each(function(e){var f=p(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){e=p.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,g.childNodes.length===1&&(g=f);if(f){c=c&&p.nodeName(f,"tr");for(h=e.cacheable||l-1;i0?this.clone(!0):this).get(),p(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),p.extend({clone:function(a,b,c){var d,e,f,g;p.support.html5Clone||p.isXMLDoc(a)||!bu.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bB.innerHTML=a.outerHTML,bB.removeChild(g=bB.firstChild));if((!p.support.noCloneEvent||!p.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!p.isXMLDoc(a)){bE(a,g),d=bF(a),e=bF(g);for(f=0;d[f];++f)e[f]&&bE(d[f],e[f])}if(b){bD(a,g);if(c){d=bF(a),e=bF(g);for(f=0;d[f];++f)bD(d[f],e[f])}}return d=e=null,g},clean:function(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,q,r,s=b===e&&bA,t=[];if(!b||typeof b.createDocumentFragment=="undefined")b=e;for(f=0;(h=a[f])!=null;f++){typeof h=="number"&&(h+="");if(!h)continue;if(typeof h=="string")if(!br.test(h))h=b.createTextNode(h);else{s=s||bk(b),l=b.createElement("div"),s.appendChild(l),h=h.replace(bo,"<$1>"),i=(bp.exec(h)||["",""])[1].toLowerCase(),j=bz[i]||bz._default,k=j[0],l.innerHTML=j[1]+h+j[2];while(k--)l=l.lastChild;if(!p.support.tbody){m=bq.test(h),n=i==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]===""&&!m?l.childNodes:[];for(g=n.length-1;g>=0;--g)p.nodeName(n[g],"tbody")&&!n[g].childNodes.length&&n[g].parentNode.removeChild(n[g])}!p.support.leadingWhitespace&&bn.test(h)&&l.insertBefore(b.createTextNode(bn.exec(h)[0]),l.firstChild),h=l.childNodes,l.parentNode.removeChild(l)}h.nodeType?t.push(h):p.merge(t,h)}l&&(h=l=s=null);if(!p.support.appendChecked)for(f=0;(h=t[f])!=null;f++)p.nodeName(h,"input")?bG(h):typeof h.getElementsByTagName!="undefined"&&p.grep(h.getElementsByTagName("input"),bG);if(c){q=function(a){if(!a.type||bx.test(a.type))return d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a)};for(f=0;(h=t[f])!=null;f++)if(!p.nodeName(h,"script")||!q(h))c.appendChild(h),typeof h.getElementsByTagName!="undefined"&&(r=p.grep(p.merge([],h.getElementsByTagName("script")),q),t.splice.apply(t,[f+1,0].concat(r)),f+=r.length)}return t},cleanData:function(a,b){var c,d,e,f,g=0,h=p.expando,i=p.cache,j=p.support.deleteExpando,k=p.event.special;for(;(e=a[g])!=null;g++)if(b||p.acceptData(e)){d=e[h],c=d&&i[d];if(c){if(c.events)for(f in c.events)k[f]?p.event.remove(e,f):p.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,p.deletedIds.push(d))}}}}),function(){var a,b;p.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=p.uaMatch(g.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0),p.browser=b,p.sub=function(){function a(b,c){return new a.fn.init(b,c)}p.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function c(c,d){return d&&d instanceof p&&!(d instanceof a)&&(d=a(d)),p.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(e);return a}}();var bH,bI,bJ,bK=/alpha\([^)]*\)/i,bL=/opacity=([^)]*)/,bM=/^(top|right|bottom|left)$/,bN=/^(none|table(?!-c[ea]).+)/,bO=/^margin/,bP=new RegExp("^("+q+")(.*)$","i"),bQ=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),bR=new RegExp("^([-+])=("+q+")","i"),bS={},bT={position:"absolute",visibility:"hidden",display:"block"},bU={letterSpacing:0,fontWeight:400},bV=["Top","Right","Bottom","Left"],bW=["Webkit","O","Moz","ms"],bX=p.fn.toggle;p.fn.extend({css:function(a,c){return p.access(this,function(a,c,d){return d!==b?p.style(a,c,d):p.css(a,c)},a,c,arguments.length>1)},show:function(){return b$(this,!0)},hide:function(){return b$(this)},toggle:function(a,b){var c=typeof a=="boolean";return p.isFunction(a)&&p.isFunction(b)?bX.apply(this,arguments):this.each(function(){(c?a:bZ(this))?p(this).show():p(this).hide()})}}),p.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bH(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":p.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g,h,i=p.camelCase(c),j=a.style;c=p.cssProps[i]||(p.cssProps[i]=bY(j,i)),h=p.cssHooks[c]||p.cssHooks[i];if(d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];g=typeof d,g==="string"&&(f=bR.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(p.css(a,c)),g="number");if(d==null||g==="number"&&isNaN(d))return;g==="number"&&!p.cssNumber[i]&&(d+="px");if(!h||!("set"in h)||(d=h.set(a,d,e))!==b)try{j[c]=d}catch(k){}},css:function(a,c,d,e){var f,g,h,i=p.camelCase(c);return c=p.cssProps[i]||(p.cssProps[i]=bY(a.style,i)),h=p.cssHooks[c]||p.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=bH(a,c)),f==="normal"&&c in bU&&(f=bU[c]),d||e!==b?(g=parseFloat(f),d||p.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?bH=function(b,c){var d,e,f,g,h=a.getComputedStyle(b,null),i=b.style;return h&&(d=h[c],d===""&&!p.contains(b.ownerDocument,b)&&(d=p.style(b,c)),bQ.test(d)&&bO.test(c)&&(e=i.width,f=i.minWidth,g=i.maxWidth,i.minWidth=i.maxWidth=i.width=d,d=h.width,i.width=e,i.minWidth=f,i.maxWidth=g)),d}:e.documentElement.currentStyle&&(bH=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return e==null&&f&&f[b]&&(e=f[b]),bQ.test(e)&&!bM.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),e===""?"auto":e}),p.each(["height","width"],function(a,b){p.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth===0&&bN.test(bH(a,"display"))?p.swap(a,bT,function(){return cb(a,b,d)}):cb(a,b,d)},set:function(a,c,d){return b_(a,c,d?ca(a,b,d,p.support.boxSizing&&p.css(a,"boxSizing")==="border-box"):0)}}}),p.support.opacity||(p.cssHooks.opacity={get:function(a,b){return bL.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=p.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&p.trim(f.replace(bK,""))===""&&c.removeAttribute){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bK.test(f)?f.replace(bK,e):f+" "+e}}),p(function(){p.support.reliableMarginRight||(p.cssHooks.marginRight={get:function(a,b){return p.swap(a,{display:"inline-block"},function(){if(b)return bH(a,"marginRight")})}}),!p.support.pixelPosition&&p.fn.position&&p.each(["top","left"],function(a,b){p.cssHooks[b]={get:function(a,c){if(c){var d=bH(a,b);return bQ.test(d)?p(a).position()[b]+"px":d}}}})}),p.expr&&p.expr.filters&&(p.expr.filters.hidden=function(a){return a.offsetWidth===0&&a.offsetHeight===0||!p.support.reliableHiddenOffsets&&(a.style&&a.style.display||bH(a,"display"))==="none"},p.expr.filters.visible=function(a){return!p.expr.filters.hidden(a)}),p.each({margin:"",padding:"",border:"Width"},function(a,b){p.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bV[d]+b]=e[d]||e[d-2]||e[0];return f}},bO.test(a)||(p.cssHooks[a+b].set=b_)});var cd=/%20/g,ce=/\[\]$/,cf=/\r?\n/g,cg=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ch=/^(?:select|textarea)/i;p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ch.test(this.nodeName)||cg.test(this.type))}).map(function(a,b){var c=p(this).val();return c==null?null:p.isArray(c)?p.map(c,function(a,c){return{name:b.name,value:a.replace(cf,"\r\n")}}):{name:b.name,value:c.replace(cf,"\r\n")}}).get()}}),p.param=function(a,c){var d,e=[],f=function(a,b){b=p.isFunction(b)?b():b==null?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(a)||a.jquery&&!p.isPlainObject(a))p.each(a,function(){f(this.name,this.value)});else for(d in a)ci(d,a[d],c,f);return e.join("&").replace(cd,"+")};var cj,ck,cl=/#.*$/,cm=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,cn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,co=/^(?:GET|HEAD)$/,cp=/^\/\//,cq=/\?/,cr=/)<[^<]*)*<\/script>/gi,cs=/([?&])_=[^&]*/,ct=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,cu=p.fn.load,cv={},cw={},cx=["*/"]+["*"];try{ck=f.href}catch(cy){ck=e.createElement("a"),ck.href="",ck=ck.href}cj=ct.exec(ck.toLowerCase())||[],p.fn.load=function(a,c,d){if(typeof a!="string"&&cu)return cu.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),p.isFunction(c)?(d=c,c=b):c&&typeof c=="object"&&(f="POST"),p.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?p("
                    ").append(a.replace(cr,"")).find(e):a)}),this},p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){p.fn[b]=function(a){return this.on(b,a)}}),p.each(["get","post"],function(a,c){p[c]=function(a,d,e,f){return p.isFunction(d)&&(f=f||e,e=d,d=b),p.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),p.extend({getScript:function(a,c){return p.get(a,b,c,"script")},getJSON:function(a,b,c){return p.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?cB(a,p.ajaxSettings):(b=a,a=p.ajaxSettings),cB(a,b),a},ajaxSettings:{url:ck,isLocal:cn.test(cj[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cx},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:cz(cv),ajaxTransport:cz(cw),ajax:function(a,c){function y(a,c,f,i){var k,s,t,u,w,y=c;if(v===2)return;v=2,h&&clearTimeout(h),g=b,e=i||"",x.readyState=a>0?4:0,f&&(u=cC(l,x,f));if(a>=200&&a<300||a===304)l.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(p.lastModified[d]=w),w=x.getResponseHeader("Etag"),w&&(p.etag[d]=w)),a===304?(y="notmodified",k=!0):(k=cD(l,u),y=k.state,s=k.data,t=k.error,k=!t);else{t=y;if(!y||a)y="error",a<0&&(a=0)}x.status=a,x.statusText=(c||y)+"",k?o.resolveWith(m,[s,y,x]):o.rejectWith(m,[x,y,t]),x.statusCode(r),r=b,j&&n.trigger("ajax"+(k?"Success":"Error"),[x,l,k?s:t]),q.fireWith(m,[x,y]),j&&(n.trigger("ajaxComplete",[x,l]),--p.active||p.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d,e,f,g,h,i,j,k,l=p.ajaxSetup({},c),m=l.context||l,n=m!==l&&(m.nodeType||m instanceof p)?p(m):p.event,o=p.Deferred(),q=p.Callbacks("once memory"),r=l.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase();a=u[c]=u[c]||a,t[a]=b}return this},getAllResponseHeaders:function(){return v===2?e:null},getResponseHeader:function(a){var c;if(v===2){if(!f){f={};while(c=cm.exec(e))f[c[1].toLowerCase()]=c[2]}c=f[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return v||(l.mimeType=a),this},abort:function(a){return a=a||w,g&&g.abort(a),y(0,a),this}};o.promise(x),x.success=x.done,x.error=x.fail,x.complete=q.add,x.statusCode=function(a){if(a){var b;if(v<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.always(b)}return this},l.url=((a||l.url)+"").replace(cl,"").replace(cp,cj[1]+"//"),l.dataTypes=p.trim(l.dataType||"*").toLowerCase().split(s),l.crossDomain==null&&(i=ct.exec(l.url.toLowerCase())||!1,l.crossDomain=i&&i.join(":")+(i[3]?"":i[1]==="http:"?80:443)!==cj.join(":")+(cj[3]?"":cj[1]==="http:"?80:443)),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),cA(cv,l,c,x);if(v===2)return x;j=l.global,l.type=l.type.toUpperCase(),l.hasContent=!co.test(l.type),j&&p.active++===0&&p.event.trigger("ajaxStart");if(!l.hasContent){l.data&&(l.url+=(cq.test(l.url)?"&":"?")+l.data,delete l.data),d=l.url;if(l.cache===!1){var z=p.now(),A=l.url.replace(cs,"$1_="+z);l.url=A+(A===l.url?(cq.test(l.url)?"&":"?")+"_="+z:"")}}(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",l.contentType),l.ifModified&&(d=d||l.url,p.lastModified[d]&&x.setRequestHeader("If-Modified-Since",p.lastModified[d]),p.etag[d]&&x.setRequestHeader("If-None-Match",p.etag[d])),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+cx+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)x.setRequestHeader(k,l.headers[k]);if(!l.beforeSend||l.beforeSend.call(m,x,l)!==!1&&v!==2){w="abort";for(k in{success:1,error:1,complete:1})x[k](l[k]);g=cA(cw,l,c,x);if(!g)y(-1,"No Transport");else{x.readyState=1,j&&n.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){x.abort("timeout")},l.timeout));try{v=1,g.send(t,y)}catch(B){if(v<2)y(-1,B);else throw B}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var cE=[],cF=/\?/,cG=/(=)\?(?=&|$)|\?\?/,cH=p.now();p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=cE.pop()||p.expando+"_"+cH++;return this[a]=!0,a}}),p.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&cG.test(j),m=k&&!l&&typeof i=="string"&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&cG.test(i);if(c.dataTypes[0]==="jsonp"||l||m)return f=c.jsonpCallback=p.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(cG,"$1"+f):m?c.data=i.replace(cG,"$1"+f):k&&(c.url+=(cF.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||p.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,cE.push(f)),h&&p.isFunction(g)&&g(h[0]),h=g=b}),"script"}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return p.globalEval(a),a}}}),p.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),p.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(f,g){c=e.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||g(200,"success")},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var cI,cJ=a.ActiveXObject?function(){for(var a in cI)cI[a](0,1)}:!1,cK=0;p.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cL()||cM()}:cL,function(a){p.extend(p.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(p.ajaxSettings.xhr()),p.support.ajax&&p.ajaxTransport(function(c){if(!c.crossDomain||p.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async);if(c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||i.readyState===4)){d=b,g&&(i.onreadystatechange=p.noop,cJ&&delete cI[g]);if(e)i.readyState!==4&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(a){}try{j=i.statusText}catch(n){j=""}!h&&c.isLocal&&!c.crossDomain?h=l.text?200:404:h===1223&&(h=204)}}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?i.readyState===4?setTimeout(d,0):(g=++cK,cJ&&(cI||(cI={},p(a).unload(cJ)),cI[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cN,cO,cP=/^(?:toggle|show|hide)$/,cQ=new RegExp("^(?:([-+])=|)("+q+")([a-z%]*)$","i"),cR=/queueHooks$/,cS=[cY],cT={"*":[function(a,b){var c,d,e=this.createTween(a,b),f=cQ.exec(b),g=e.cur(),h=+g||0,i=1,j=20;if(f){c=+f[2],d=f[3]||(p.cssNumber[a]?"":"px");if(d!=="px"&&h){h=p.css(e.elem,a,!0)||c||1;do i=i||".5",h=h/i,p.style(e.elem,a,h+d);while(i!==(i=e.cur()/g)&&i!==1&&--j)}e.unit=d,e.start=h,e.end=f[1]?h+(f[1]+1)*c:c}return e}]};p.Animation=p.extend(cW,{tweener:function(a,b){p.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d-1,j={},k={},l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat(g)||0,m=parseFloat(h)||0),p.isFunction(b)&&(b=b.call(a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!=null&&(j.left=b.left-f.left+m),"using"in b?b.using.call(a,j):e.css(j)}},p.fn.extend({position:function(){if(!this[0])return;var a=this[0],b=this.offsetParent(),c=this.offset(),d=c_.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(p.css(a,"marginTop"))||0,c.left-=parseFloat(p.css(a,"marginLeft"))||0,d.top+=parseFloat(p.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(p.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||e.body;while(a&&!c_.test(a.nodeName)&&p.css(a,"position")==="static")a=a.offsetParent;return a||e.body})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);p.fn[a]=function(e){return p.access(this,function(a,e,f){var g=da(a);if(f===b)return g?c in g?g[c]:g.document.documentElement[e]:a[e];g?g.scrollTo(d?p(g).scrollLeft():f,d?f:p(g).scrollTop()):a[e]=f},a,e,arguments.length,null)}}),p.each({Height:"height",Width:"width"},function(a,c){p.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){p.fn[e]=function(e,f){var g=arguments.length&&(d||typeof e!="boolean"),h=d||(e===!0||f===!0?"margin":"border");return p.access(this,function(c,d,e){var f;return p.isWindow(c)?c.document.documentElement["client"+a]:c.nodeType===9?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?p.css(c,d,e,h):p.style(c,d,e,h)},c,g?e:b,g,null)}})}),a.jQuery=a.$=p,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return p})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/normal-78c522fc2878557407a21cae6da578be.3212 b/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/normal-78c522fc2878557407a21cae6da578be.3212 new file mode 100644 index 0000000..a7eecd6 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/normal-78c522fc2878557407a21cae6da578be.3212 differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/page.default.js b/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/page.default.js new file mode 100644 index 0000000..2db92e8 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Мои настройки на Яндекс.Фотках_files/page.default.js @@ -0,0 +1,12 @@ +function include(filename){document.write('')}Function.prototype.softExtend=function(donor){var proto=this.prototype;for(var key in donor)if(key in proto)continue;else proto[key]=donor[key];return this};Function.softExtend({mixin:function(donor){for(var key in donor)this[key]=donor[key];return this},hardExtend:function(donor){this.mixin.call(this.prototype,donor);return this},bind:function(obj,params){var _this=this;var l=function($1){return $1};var args=Array.map(arguments,l);return function(){return _this.call.apply(_this,args.concat(Array.map(arguments,l)))}},clone:function(){eval("var clone= "+this.toString());return clone.hardExtend(this.prototype)},schedule:function(timeout){return setTimeout(this,timeout||0)},wait:function(func,latency){var self=this;var tick=function(){if(func())self();else tick.schedule(latency)};return tick},observe:function(obj,event){var evName="on"+event;var handler=obj[evName];if(typeof handler==="function"&&handler.handlers)handler.handlers.push(this);else{var hand=function(ev){var funcs=hand.handlers;if(!ev)ev=window.event;if(!ev.stopPropagation)ev.stopPropagation=function(){this.cancelBubble=true};for(var i=0;i=l;i--){this[i+al]=this[i]}for(i=0,l=al;i2){var il;var arr=this.slice(start);this.length=start;for(i=2,il=args.length;i>>0;var from=Number(arguments[1])||0;from=from<0?Math.ceil(from):Math.floor(from);if(from<0)from+=len;for(;from=len)from=len-1}for(;from>-1;from--){if(from in this&&this[from]===elt)return from}return-1},every:function(fun){var len=this.length>>>0;if(typeof fun!="function")throw new TypeError;var thisp=arguments[1];for(var i=0;i>>0;if(typeof fun!="function")throw new TypeError;var res=new Array;var thisp=arguments[1];for(var i=0;i>>0;if(typeof fun!="function")throw new TypeError;var thisp=arguments[1];for(var i=0;i>>0;if(typeof fun!="function")throw new TypeError;var res=new Array(len);var thisp=arguments[1];for(var i=0;i>>0;if(typeof fun!="function")throw new TypeError;var thisp=arguments[1];for(;i>>0;if(typeof fun!="function")throw new TypeError;if(len==0&&arguments.length==1)throw new TypeError;var i=0;if(arguments.length>=2){var rv=arguments[1]}else{do{if(i in this){rv=this[i++];break}if(++i>=len)throw new TypeError}while(true)}for(;i>>0;if(typeof fun!="function")throw new TypeError;if(len==0&&arguments.length==1)throw new TypeError;var i=len-1;if(arguments.length>=2){var rv=arguments[1]}else{do{if(i in this){rv=this[i--];break}if(--i<0)throw new TypeError}while(true)}for(;i>=0;i--){if(i in this)rv=fun.call(null,rv,this[i],i,this)}return rv}});(function(){var make_generic=function(static_holder,dynamic_holder,method_name){var dynamic_method=dynamic_holder[method_name];if(typeof dynamic_method!="function"&&static_holder[method_name]){return false}static_holder[method_name]=function(){return dynamic_method.call.apply(dynamic_method,arguments)};return static_holder[method_name]};["concat","every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","reverse","some","pop"].forEach(function($1){make_generic(Array,Array.prototype,$1)})})();String.softExtend({parseHTML:function(){var parser=document.createElement("div");parser.innerHTML=this;return[].append(parser.childNodes)},translit:function(lang){var transtable={english:{"а":"a","б":"b","в":"v","г":"g","д":"d","е":"ye","ё":"yo","ж":"zsh","з":"z","и":"i","й":"y","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"tc","ч":"ch","ш":"sh","щ":"sch","ъ":"","ы":"yi","ь":"'","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"YE","Ё":"YO","Ж":"ZSH","З":"Z","И":"I","Й":"Y","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"TC","Ч":"CH","Ш":"SH","Щ":"SCH","Ъ":"","Ы":"YI","Ь":"'","Э":"E","Ю":"YU","Я":"YA"}}[lang||"english"];return this.split("").replace(function(letter){var trans=transtable[letter];return trans||letter}).join("")},trim:function(what){what=RegExp(what||"[ \\s\\n\\r]+");return this.replace(new RegExp("^"+what.source+"|"+what.source+"$","g"+(what.ignoreCase?"i":"")),"")},stripTags:function(){return this.replace(/<[^<>]*?>/g,"")},escapeHTML:function(){return this.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},unescapeHTML:function(){return("").parseHTML()[0].value},insertWBRs:function(limit){return this.replace(new RegExp("([^\\s]{"+(limit||16)+"})|([^\\s]*(?:\\s|$))","g"),function(str,big,small){return str.escapeHTML()+(big?"":"")})},ellipsis:function(limit){if(!limit)limit=256;return this.lengthmax)return max;return val},plural:function(forms,withoutNumber){var num=Number(this);var res=2;var num_10=num%10;var num_100=num%100;if(num==0){if(forms[3]){return forms[3]}}else{if(num_100<5||num_100>20){if(num_10==1){res=0}else{if(num_10>=2&&num_10<=4){res=1}}}}if(withoutNumber){return forms[res]}else{return num+" "+forms[res]}}});new function(){var $_$=window.$_$=function(uri,config){var Module=arguments.callee;if(!(this instanceof Module))return new Module(uri);this.uri=uri;this.exports={};var doc=this.doc;var frame=doc.createElementNS&&doc.createElementNS("http://www.w3.org/1999/xhtml","iframe")||doc.createElement("iframe");frame.name="sandbox."+Math.random();frame.style.display="none";this.place.parentNode.insertBefore(frame,this.place);var fwin=this.local=frame.contentWindow||window.frames[frame.name];var self=this;setTimeout(function(){var fdoc=fwin.document;fdoc.open();setTimeout(function(){if(config)config.call(fwin,fwin);fdoc.write('');var defer=doc.createElementNS?"":" defer ";fdoc.write('");try{fdoc.close()}catch(e){}},1);fwin.$_$=self},1);return this}.prototype;$_$.root=($_$.doc=($_$.global=$_$.local=window).document).documentElement;var findEl=function(name){var nodes=$_$.root.getElementsByTagName(name);return nodes.length?nodes[nodes.length-1]:null};$_$.head=findEl("head");$_$.body=findEl("body");$_$.place=findEl("script");$_$.uri=$_$.place.src;$_$.module=function(uri,config){return new $_$.constructor(uri,config)};$_$.destructor=function(){var frame=this.local.frameElement;frame.parentNode.removeChild(frame);for(key in this)delete this[key]}};var g_form,g_searchInput,g_activeInput;document.documentElement.id="js";function addEvent(obj,type,func){if(obj.addEventListener){obj.addEventListener(type,func,0)}else if(obj.attachEvent){obj.attachEvent("on"+type,func)}}function commonKeydown(e){if(!e){e=window.event}var key=e.keyCode;if(e.ctrlKey){if(!g_activeInput){if(key==13&&document.forms.length==1){g_form.submit()}else if(key==38){g_searchInput.focus()}else if(key==37){var p=document.getElementById("previous_page");if(p){location.href=p.href}}else if(key==39){var n=document.getElementById("next_page");if(n){location.href=n.href}}}else if(key==38&&document.forms[0]==g_activeInput.form&&g_activeInput.select){g_activeInput.select()}}else if(key==27&&typeof keydownEsc=="function"){keydownEsc(e)}}function commonInit(focus){g_form=document.forms[0];addEvent(document,"keydown",commonKeydown);if(g_form){if(typeof initTabs=="function"){initTabs(g_form)}for(var i=0,l=document.forms.length;i-1,needCheckProps=$.browser.msie,specProps=needCheckProps?["toString","valueOf"]:null,emptyBase=function(){};function override(base,result,add){var hasSpecProps=false;if(needCheckProps){var addList=[];$.each(specProps,function(){add.hasOwnProperty(this)&&(hasSpecProps=true)&&addList.push({name:this,val:add[this]})});if(hasSpecProps){$.each(add,function(name){addList.push({name:name,val:this})});add=addList}}$.each(add,function(name,prop){if(hasSpecProps){name=prop.name;prop=prop.val}if($.isFunction(prop)&&(!hasIntrospection||prop.toString().indexOf(".__base")>-1)){var baseMethod=base[name]||function(){};result[name]=function(){var baseSaved=this.__base;this.__base=baseMethod;var result=prop.apply(this,arguments);this.__base=baseSaved;return result}}else{result[name]=prop}})}$.inherit=function(){var hasBase=$.isFunction(arguments[0]),base=hasBase?arguments[0]:emptyBase,props=arguments[hasBase?1:0]||{},staticProps=arguments[hasBase?2:1],result=props.__constructor||hasBase&&base.prototype.__constructor?function(){this.__constructor.apply(this,arguments)}:function(){};if(!hasBase){result.prototype=props;result.prototype.__self=result.prototype.constructor=result;return $.extend(result,staticProps)}$.extend(result,base);var inheritance=function(){},basePtp=inheritance.prototype=base.prototype,resultPtp=result.prototype=new inheritance;resultPtp.__self=resultPtp.constructor=result;override(basePtp,resultPtp,props);staticProps&&override(base,result,staticProps);return result};$.inheritSelf=function(base,props,staticProps){var basePtp=base.prototype;override(basePtp,basePtp,props);staticProps&&override(base,base,staticProps);return base}})(jQuery);(function($){var counter=0,expando="__"+ +new Date,get=function(){return"uniq"+ ++counter};$.identify=function(obj,onlyGet){if(!obj)return get();var key="uniqueID"in obj?"uniqueID":expando;return onlyGet||key in obj?obj[key]:obj[key]=get()}})(jQuery);(function($){$.isEmptyObject||($.isEmptyObject=function(obj){for(var i in obj)return false;return true})})(jQuery);(function($){var storageExpando="__"+ +new Date+"storage",getFnId=function(fn,ctx){return $.identify(fn)+(ctx?$.identify(ctx):"")},Observable={buildEventName:function(e){return e},on:function(e,data,fn,ctx,_special){if(typeof e=="string"){if($.isFunction(data)){ctx=fn;fn=data;data=undefined}var id=getFnId(fn,ctx),storage=this[storageExpando]||(this[storageExpando]={}),eList=e.split(" "),i=0,eStorage;while(e=eList[i++]){e=this.buildEventName(e);eStorage=storage[e]||(storage[e]={ids:{},list:{}});if(!(id in eStorage.ids)){var list=eStorage.list,item={fn:fn,data:data,ctx:ctx||this,special:_special};if(list.last){list.last.next=item;item.prev=list.last}else{list.first=item}eStorage.ids[id]=list.last=item}}}else{var _this=this;$.each(e,function(e,fn){_this.on(e,fn,data,_special)})}return this},onFirst:function(e,data,fn,ctx){return this.on(e,data,fn,ctx,{one:true})},un:function(e,fn,ctx){if(typeof e=="string"||typeof e=="undefined"){var storage=this[storageExpando];if(storage){if(e){var eList=e.split(" "),i=0,eStorage;while(e=eList[i++]){e=this.buildEventName(e);if(eStorage=storage[e]){if(fn){var id=getFnId(fn,ctx),ids=eStorage.ids;if(id in ids){var list=eStorage.list,item=ids[id],prev=item.prev,next=item.next;if(prev){prev.next=next}else if(item===list.first){list.first=next}if(next){next.prev=prev}else if(item===list.last){list.last=prev}delete ids[id]}}else{delete this[storageExpando][e]}}}}else{delete this[storageExpando]}}}else{var _this=this;$.each(e,function(e,fn){_this.un(e,fn,ctx)})}return this},trigger:function(e,data){typeof e==="string"?e=$.Event(this.buildEventName(e)):e.type=this.buildEventName(e.type);var storage=this[storageExpando];if(storage&&(storage=storage[e.type])){var item=storage.list.first,ret,next;while(item){e.data=item.data;ret=item.fn.call(item.ctx,e,data);if(typeof ret!=="undefined"){e.result=ret;if(ret===false){e.preventDefault();e.stopPropagation()}}next=item.next;item.special&&item.special.one&&this.un(e.type,item.fn,item.ctx);item=next}}return this}};$.observable=$.inherit(Observable,Observable)})(jQuery);(function($,undefined){var afterCurrentEventFns=[],liveEventNameCache={},blocks={},uniqIdToBlock={};function buildModFnName(elemName,modName,modVal){return(elemName?"__elem_"+elemName:"")+"__mod"+(modName?"_"+modName:"")+(modVal?"_"+modVal:"")}function modFnsToProps(modFns,props,elemName){$.isFunction(modFns)?props[buildModFnName(elemName,"*","*")]=modFns:$.each(modFns,function(modName,modFn){$.isFunction(modFn)?props[buildModFnName(elemName,modName,"*")]=modFn:$.each(modFn,function(modVal,modFn){props[buildModFnName(elemName,modName,modVal)]=modFn})})}this.BEM=$.inherit($.observable,{__constructor:function(params,initImmediately){var _this=this;_this._modCache={};_this._processingMods={};_this.params=$.extend(_this.getDefaultParams(),params);_this._uniqId=_this.params.uniqId||$.identify(_this);uniqIdToBlock[_this._uniqId]=_this;initImmediately!==false?_this._init():_this.afterCurrentEvent(_this._init)},_init:function(){var _this=this;if("_uniqId"in _this&&!_this.hasMod("js","inited"))_this.setMod("js","inited").trigger("init");return _this},changeThis:function(fn,ctx){var _this=this;return function(){return fn.apply(ctx||_this,arguments)}},afterCurrentEvent:function(fn,ctx){this.__self.afterCurrentEvent(this.changeThis(fn,ctx))},bind:function(event,data,fn,ctx){return this.on(event,data,fn,ctx)},bindOne:function(event,data,fn,ctx){return this.onFirst(event,data,fn,ctx)},unbind:function(event,fn){return this.un(event,fn)},trigger:function(e,data){this.__base(e=this.buildEvent(e),data).__self.trigger(e,data);return this},buildEvent:function(e){typeof e=="string"&&(e=$.Event(e));e.block=this;return e},hasMod:function(elem,modName,modVal){if(arguments.length==2){modVal=modName;modName=elem;elem=undefined}return this.getMod(elem,modName)===modVal},getMod:function(elem,modName){var type=typeof elem;if(type==="string"||type==="undefined"){modName=elem||modName;var modCache=this._modCache;return modName in modCache?modCache[modName]:modCache[modName]=this._extractModVal(modName)}return this._getElemMod(modName,elem)},_getElemMod:function(modName,elem,elemName){return this._extractModVal(modName,elem,elemName)},getMods:function(elem){var hasElem=elem&&typeof elem!="string",_this=this,modNames=[].slice.call(arguments,hasElem?1:0),res=_this._extractMods(modNames,hasElem?elem:undefined);if(!hasElem){modNames.length?$.each(modNames,function(i,name){_this._modCache[name]=res[name]}):_this._modCache=res}return res},setMod:function(elem,modName,modVal){if(typeof modVal=="undefined"){modVal=modName;modName=elem;elem=undefined}var _this=this;if(!elem||elem[0]){var modId=(elem&&elem[0]?$.identify(elem[0]):"")+"_"+modName;if(this._processingMods[modId])return _this;var elemName,currentModVal=elem?_this._getElemMod(modName,elem,elemName=_this.__self._extractElemNameFrom(elem)):_this.getMod(modName);if(currentModVal===modVal)return _this;this._processingMods[modId]=true;var needSetMod=true,modFnParams=[modName,modVal,currentModVal];elem&&modFnParams.unshift(elem);$.each([["*","*"],[modName,"*"],[modName,modVal]],function(){needSetMod=_this._callModFn(elemName,this[0],this[1],modFnParams)!==false&&needSetMod});!elem&&needSetMod&&(_this._modCache[modName]=modVal);needSetMod&&_this._afterSetMod(modName,modVal,elem,elemName);delete this._processingMods[modId]}return _this},_afterSetMod:function(modName,modVal,elem){},toggleMod:function(elem,modName,modVal1,modVal2,condition){if(typeof elem=="string"){condition=modVal2;modVal2=modVal1;modVal1=modName;modName=elem;elem=undefined}if(typeof modVal2=="undefined"){modVal2=""}else if(typeof modVal2=="boolean"){condition=modVal2;modVal2=""}var modVal=this.getMod(elem,modName);(modVal==modVal1||modVal==modVal2)&&this.setMod(elem,modName,typeof condition==="boolean"?condition?modVal1:modVal2:this.hasMod(elem,modName,modVal1)?modVal2:modVal1);return this},delMod:function(elem,modName){if(!modName){modName=elem;elem=undefined}return this.setMod(elem,modName,"")},_callModFn:function(elemName,modName,modVal,modFnParams){var modFnName=buildModFnName(elemName,modName,modVal);return this[modFnName]?this[modFnName].apply(this,modFnParams):undefined},_extractModVal:function(modName,elem){return""},_extractMods:function(modNames,elem){return{}},getDefaultParams:function(){return{}},del:function(obj){var args=[].slice.call(arguments);typeof obj=="string"&&args.unshift(this);this.__self.del.apply(this.__self,args);return this},destruct:function(){delete uniqIdToBlock[this._uniqId];delete this._uniqId}},{blocks:blocks,_uniqIdToBlock:uniqIdToBlock,getBlockByUniqId:function(uniqId){return uniqIdToBlock[uniqId]},decl:function(decl,props,staticProps){typeof decl=="string"&&(decl={name:decl});if(props.onSetMod){modFnsToProps(props.onSetMod,props);delete props.onSetMod}if(props.onElemSetMod){$.each(props.onElemSetMod,function(elemName,modFns){modFnsToProps(modFns,props,elemName)});delete props.onElemSetMod}var baseBlock=blocks[decl.baseBlock||decl.name]||this;if(decl.modName){$.each(props,function(name,prop){$.isFunction(prop)&&(props[name]=function(){var method;if(this.hasMod(decl.modName,decl.modVal)){method=prop}else{var baseMethod=baseBlock.prototype[name];baseMethod&&baseMethod!==props[name]&&(method=this.__base)}return method?method.apply(this,arguments):undefined})})}var block;decl.name==baseBlock._name?(block=$.inheritSelf(baseBlock,props,staticProps))._processLive(true):(block=blocks[decl.name]=$.inherit(baseBlock,props,staticProps))._name=decl.name;return block},_processLive:function(heedLive){return false},create:function(blockName,params){return new blocks[blockName](params)},getName:function(){return this._name},_extractElemNameFrom:function(elem){},buildEventName:function(e){var key=e+":"+this._name;return key in liveEventNameCache?liveEventNameCache[key]:liveEventNameCache[key]=e.replace(/ |^/g,"$&"+this._name+":")},afterCurrentEvent:function(fn,ctx){afterCurrentEventFns.push({fn:fn,ctx:ctx})==1&&setTimeout(function(){var fnObj,fnsCopy=afterCurrentEventFns.splice(0,afterCurrentEventFns.length);while(fnObj=fnsCopy.shift())fnObj.fn.call(fnObj.ctx||this)},0)},changeThis:function(fn,ctx){return function(){return fn.apply(ctx||this,arguments)}},del:function(obj){var delInThis=typeof obj=="string",i=delInThis?0:1,len=arguments.length;delInThis&&(obj=this);while(i0?",":"")+(typeof strValue=="undefined"?"null":strValue)}return res+"]";case"[object Object]":var res="{",i=0,strValue;for(var key in value){if(value.hasOwnProperty(key)){strValue=$.stringify(value[key]);typeof strValue!="undefined"&&(res+=(i++>0?",":"")+'"'+key+'":'+strValue)}}return res+"}";default:return undefined}}})(jQuery);(function(BEM,undefined){var INTERNAL=BEM.INTERNAL,ELEM_DELIM=INTERNAL.ELEM_DELIM,SHORT_TAGS={area:1,base:1,br:1,col:1,command:1,embed:1,hr:1,img:1,input:1,keygen:1,link:1,meta:1,param:1,source:1,wbr:1},buildClasses=INTERNAL.buildClasses,Context=$.inherit({__constructor:function(params){this._buffer=[];this._params=params;this._tParams=null;this._tParamsChanges=null;this._currBlock=undefined},buildAll:function(){var _this=this,buffer=_this._buffer,params=_this._params,paramsType=typeof params;if(paramsType=="string"||paramsType=="number"){buffer.push(params)}else if($.isArray(params)){var i=0,len=params.length,currParams,currParamsType;while(i")}else{buffer.push(">");if(params.content){_this._params=params.content;_this.buildAll()}buffer.push("")}},push:function(){return this._buffer.push.apply(this._buffer,arguments)},flush:function(){var res=this._buffer.join("");delete this._buffer;return res},pos:function(){return this._params._pos},isFirst:function(){return this._params._pos===1},isLast:function(){var params=this._params;return params._pos===params._siblingsCount},params:function(params){var _this=this;if(typeof params=="undefined")return _this._params;_this._params=params;return _this},param:function(name,val,force,needExtend){var _this=this,params=_this._params;if(typeof val=="undefined")return params[name];if(force||!(name in params)){params[name]=val}else if(needExtend){params[name]=$.extend(val,params[name])}return _this},attrs:function(val,force){return this.param("attrs",val,force,true)},attr:function(name,val,force){var _this=this;if(typeof val=="undefined")return(_this._params.attrs||{})[name];var attrs=_this._params.attrs;attrs?(force||!(name in attrs))&&(attrs[name]=val):(_this._params.attrs={})[name]=val;return _this},tag:function(val,force){return this.param("tag",val,force)},cls:function(val,force){return this.param("cls",val,force)},mods:function(val,force){return this.param("mods",val,force,true)},mod:function(name,val,force){var _this=this;if(typeof val=="undefined")return(_this._params.mods||{})[name];var mods=_this._params.mods;mods?(force||!(name in mods))&&(mods[name]=val):(_this._params.mods={})[name]=val;return _this},js:function(val){return this.param("js",val)},content:function(val,force){return this.param("content",val,force)},wrapContent:function(obj){var _this=this,params=_this._params;obj.content=params.content;params.content=obj;return _this},beforeContent:function(obj){var _this=this,params=_this._params;$.isArray(params.content)||(params.content=[params.content]);params.content.unshift(obj);return _this},afterContent:function(obj){var _this=this,params=_this._params;$.isArray(params.content)||(params.content=[params.content]);params.content.push(obj);return _this},wrap:function(obj){var _this=this,params=_this._params;obj.block||(obj._currBlock=_this._currBlock);obj.content=params._wrapper?params._wrapper:params;params._wrapper=obj;return _this},tParam:function(name,val){var _this=this,tParams=_this._tParams||(_this._tParams={});if(typeof val=="undefined")return tParams[name];var tParamsChanges=_this._tParamsChanges||(_this._tParamsChanges={});name in tParamsChanges||(tParamsChanges[name]=tParams[name]);tParams[name]=val;return _this},_buildByDecl:function(){var _this=this,currBlock=_this._currBlock,params=_this._params;params._currBlock&&(_this._currBlock=params._currBlock);params.block&&(_this._currBlock=params.block);if(!params._wrapper){if(params.block||params.elem){var decl=decls[_this._currBlock];if(decl){var fns=params.elem?decl["_elem"+ELEM_DELIM+params.elem]||decl._elem:decl._block;if(fns){var i=0,fn;while(fn=fns[i++])fn(_this)}}}if(params._wrapper){params._currBlock=_this._currBlock;_this._params=params._wrapper;return _this.buildAll()}}var tParamsChanges=_this._tParamsChanges;_this._tParamsChanges=null;_this.build();_this._currBlock=currBlock;if(tParamsChanges){var tParams=_this._tParams;$.each(tParamsChanges,function(name,val){typeof val=="undefined"?delete tParams[name]:tParams[name]=val})}}}),decls={};function addPropToDecl(decl,name,fn){(decl[name]||(decl[name]=[])).unshift(fn)}BEM.HTML={decl:function(name,props){var decl=decls[name]||(decls[name]={});props.onBlock&&addPropToDecl(decl,"_block",props.onBlock);if(props.onElem){$.isFunction(props.onElem)?addPropToDecl(decl,"_elem",props.onElem):$.each(props.onElem,function(elem,fn){addPropToDecl(decl,"_elem"+(elem==="*"?"":ELEM_DELIM+elem),fn) +})}},build:function(params){var builder=new Context(params);builder.buildAll();return builder.flush()}}})(BEM);(function(BEM,$,undefined){var win=$(window),doc=$(document),uniqIdToDomElems={},domElemToParams={},liveEventCtxStorage={},liveClassEventStorage={},blocks=BEM.blocks,uniqIdToBlock=BEM._uniqIdToBlock,INTERNAL=BEM.INTERNAL,NAME_PATTERN=INTERNAL.NAME_PATTERN,MOD_DELIM=INTERNAL.MOD_DELIM,ELEM_DELIM=INTERNAL.ELEM_DELIM,buildModPostfix=INTERNAL.buildModPostfix,buildClass=INTERNAL.buildClass;function init(domElem,uniqInitId){var domNode=domElem[0];$.each(getParams(domNode),function(blockName,params){processParams(params,domNode,blockName,uniqInitId);var block=uniqIdToBlock[params.uniqId];block?block._addDomElem(domElem):initBlock(blockName,domElem,params)})}function initBlock(blockName,domElem,params,forceLive,callback){if(typeof params=="boolean"){callback=forceLive;forceLive=params;params=undefined}var domNode=domElem[0];params=processParams(params||getParams(domNode)[blockName],domNode,blockName);var uniqId=params.uniqId;if(uniqIdToBlock[uniqId]){return uniqIdToBlock[uniqId]._init()}uniqIdToDomElems[uniqId]=uniqIdToDomElems[uniqId]?uniqIdToDomElems[uniqId].add(domElem):domElem;var blockClass=blocks[blockName]||DOM.decl(blockName,{},{live:true});if(forceLive||!(blockClass._liveInitable=!!blockClass._processLive())){var block=new blockClass(uniqIdToDomElems[uniqId],params,!!forceLive);delete uniqIdToDomElems[uniqId];callback&&callback.apply(block,Array.prototype.slice.call(arguments,4));return block}}function processParams(params,domNode,blockName,uniqInitId){(params||(params={})).uniqId||(params.uniqId=(params.id?blockName+"-id-"+params.id:$.identify())+(uniqInitId||$.identify()));var domUniqId=$.identify(domNode),domParams=domElemToParams[domUniqId]||(domElemToParams[domUniqId]={});domParams[blockName]||(domParams[blockName]=params);return params}function findDomElem(ctx,selector,excludeSelf){var res=ctx.find(selector);return excludeSelf?res:res.add(ctx.filter(selector))}function getParams(domNode){var uniqId=$.identify(domNode);return domElemToParams[uniqId]||(domElemToParams[uniqId]=extractParams(domNode))}function extractParams(domNode){var fn=domNode.onclick;if(!fn&&domNode.tagName.toLowerCase()=="body"){var attr=$(domNode).attr("onclick");attr&&(fn=Function(attr))}return fn?fn():{}}function cleanupDomNode(domNode){delete domElemToParams[$.identify(domNode)]}function getClientNode(){return doc[0][$.support.boxModel?"documentElement":"body"]}$.fn.bem=function(blockName,params){return initBlock(blockName,this,params,true)};var DOM=BEM.DOM=BEM.decl("i-bem__dom",{__constructor:function(domElem,params,initImmediately){this.domElem=domElem;this._eventNameCache={};this._elemCache={};this.__base(params,initImmediately)},_addDomElem:function(domElem){this.domElem=this.domElem.add(domElem)},_removeDomElem:function(domElem){!(this.domElem=this.domElem.not(domElem))[0]&&this.destruct()},findBlocksInside:function(elem,block){return this._doBlocksMethod(this._buildFindBlocksParams("find",elem,block))},findBlockInside:function(elem,block){return this._doBlocksMethod(this._buildFindBlocksParams("find",elem,block,true))},findBlocksOutside:function(elem,block){return this._doBlocksMethod(this._buildFindBlocksParams("parents",elem,block))},findBlockOutside:function(elem,block){return this._doBlocksMethod(this._buildFindBlocksParams("closest",elem,block))[0]},findBlocksOn:function(elem,block){return this._doBlocksMethod(this._buildFindBlocksParams("",elem,block))},findBlockOn:function(elem,block){return this._doBlocksMethod(this._buildFindBlocksParams("",elem,block,true))},_buildFindBlocksParams:function(select,elem,block,onlyFirst){return{select:select,elem:block?elem:undefined,block:block||elem,onlyFirst:onlyFirst}},doBlocksMethodInside:function(elem,block,method,args){return this._doBlocksMethod(this._buildDoBlocksMethodParams("find",elem,block,method,args))},doBlocksMethodOutside:function(elem,block,method,args){return this._doBlocksMethod(this._buildDoBlocksMethodParams("closest",elem,block,method,args))},doBlocksMethodOn:function(elem,block,method,args){return this._doBlocksMethod(this._buildDoBlocksMethodParams("",elem,block,method,args))},doBlocksMethod:function(blocks,method,args){return this._doBlocksMethod({blocks:blocks,method:method,args:args})},_buildDoBlocksMethodParams:function(select,elem,block,method,args){var hasElem=typeof method=="string";return{select:select,elem:hasElem?elem:undefined,block:hasElem?block:elem,method:hasElem?method:block,args:hasElem?args:method}},_doBlocksMethod:function(params){var _this=this;if(params.blocks){return $.map(params.blocks,function(block){return _this._doBlockMethod(block,params.method,params.args)})}var ctxElem=params.elem?typeof params.elem=="string"?this.findElem(params.elem):params.elem:this.domElem,isSimpleBlock=typeof params.block=="string",blockName=isSimpleBlock?params.block:params.block.blockName,selector="."+(isSimpleBlock?buildClass(blockName):buildClass(blockName,params.block.modName,params.block.modVal))+(params.onlyFirst?":first":""),domElems=ctxElem.filter(selector);params.select&&(domElems=domElems.add(ctxElem[params.select](selector)));return params.onlyFirst?domElems[0]?this._doBlockMethod(initBlock(blockName,domElems.eq(0),true),params.method,params.args):null:$.map(domElems,function(domElem){return _this._doBlockMethod(initBlock(blockName,$(domElem),true),params.method,params.args)})},_doBlockMethod:function(block,method,args){return method?block[method].apply(block,args||[]):block},bindToDomElem:function(domElem,event,fn){var _this=this;fn?domElem.bind(_this._buildEventName(event),function(e){(e.data||(e.data={})).domElem=$(this);return fn.apply(_this,arguments)}):$.each(event,function(event,fn){_this.bindToDomElem(domElem,event,fn)});return _this},bindToDoc:function(event,fn){return this.bindToDomElem(doc,event,fn)},bindToWin:function(event,fn){return this.bindToDomElem(win,event,fn)},bindToBlock:function(event,fn){return this.bindToDomElem(this.domElem,event,fn)},bindToElem:function(elem,event,fn){return this.bindToDomElem(typeof elem=="string"?this.findElem(elem):elem,event,fn)},bindTo:function(elem,event,fn){if(!event||$.isFunction(event)){fn=event;event=elem;elem=this.domElem}else if(typeof elem=="string"){elem=this.elem(elem)}return this.bindToDomElem(elem,event,fn)},unbindFromDomElem:function(domElem,event){domElem.unbind(this._buildEventName(event));return this},unbindFromDoc:function(event){return this.unbindFromDomElem(doc,event)},unbindFromWin:function(event){return this.unbindFromDomElem(win,event)},unbindFromBlock:function(event){return this.unbindFromDomElem(this.domElem,event)},unbindFromElem:function(elem,event){return this.unbindFromDomElem(typeof elem=="string"?this.findElem(elem):elem,event)},unbindFrom:function(elem,event){if(!event){event=elem;elem=this.domElem}else if(typeof elem=="string"){elem=this.elem(elem)}return this.unbindFromDomElem(elem,event)},_buildEventName:function(event){var _this=this;return event.indexOf(" ")>1?$.map(event.split(" "),function(e){return _this._buildOneEventName(e)}).join(" "):_this._buildOneEventName(event)},_buildOneEventName:function(event){var _this=this,eventNameCache=_this._eventNameCache;if(event in eventNameCache)return eventNameCache[event];var uniq="."+_this._uniqId;if(event.indexOf(".")<0)return eventNameCache[event]=event+uniq;var lego=".bem_"+_this.__self._name;return eventNameCache[event]=$.map(event.split("."),function(e,i){return i==0?e+lego:lego+"_"+e}).join("")+uniq},trigger:function(e,data){this.__base(e=this.buildEvent(e),data)._ctxTrigger(e,data);return this},_ctxTrigger:function(e,data){var _this=this,storage=liveEventCtxStorage[e.type];storage&&_this.domElem.each(function(){var ctx=this,counter=storage.counter;while(ctx&&counter){var ctxId=$.identify(ctx,true);if(ctxId){var storageCtx=storage.ctxs[ctxId];if(storageCtx){$.each(storageCtx,function(uniqId,handler){handler.fn.call(handler.ctx||_this,e,data)});counter--}}ctx=ctx.parentNode}})},setMod:function(elem,modName,modVal){if(elem&&typeof modVal!="undefined"&&elem.length>1){var _this=this;elem.each(function(){_this.setMod($(this),modName,modVal)});return _this}return this.__base(elem,modName,modVal)},_extractModVal:function(modName,elem,elemName){var domNode=(elem||this.domElem)[0],matches;domNode&&(matches=domNode.className.match(this.__self._buildModValRE(modName,elemName||elem)));return matches?matches[2]:""},_extractMods:function(modNames,elem){var res={},extractAll=!modNames.length,countMatched=0;$.each((elem||this.domElem)[0].className.match(this.__self._buildModValRE("("+(extractAll?NAME_PATTERN:modNames.join("|"))+")",elem,"g"))||[],function(i,className){var iModVal=(className=$.trim(className)).lastIndexOf(MOD_DELIM),iModName=className.substr(0,iModVal-1).lastIndexOf(MOD_DELIM);res[className.substr(iModName+1,iModVal-iModName-1)]=className.substr(iModVal+1);++countMatched});countMatched-1?this.className=className.replace(classRE,(needDel?"":"$1"+classPrefix+modVal)+"$3"):needDel||$(this).addClass(classPrefix+modVal)});elemName&&this.dropElemCache(elemName,modName,modVal)},findElem:function(ctx,names,modName,modVal){if(arguments.length%2){modVal=modName;modName=names;names=ctx;ctx=this.domElem}else if(typeof ctx=="string"){ctx=this.findElem(ctx)}var _self=this.__self,selector="."+$.map(names.split(" "),function(name){return buildClass(_self._name,name,modName,modVal)}).join(",.");return findDomElem(ctx,selector)},_elem:function(name,modName,modVal){var key=name+buildModPostfix(modName,modVal);return this._elemCache[key]||(this._elemCache[key]=this.findElem(name,modName,modVal))},elem:function(names,modName,modVal){if(names.indexOf(" ")<0){return this._elem(names,modName,modVal)}var res=$([]),_this=this;$.each(names.split(" "),function(){res=res.add(_this._elem(this,modName,modVal))});return res},dropElemCache:function(names,modName,modVal){if(names){var _this=this,modPostfix=buildModPostfix(modName,modVal);names.indexOf(" ")<0?delete _this._elemCache[names+modPostfix]:$.each(names.split(" "),function(i,name){delete _this._elemCache[name+modPostfix]})}else{this._elemCache={}}return this},containsDomElem:function(domElem){return domElem.parents().andSelf().index(this.domElem)>-1},buildSelector:function(elem,modName,modVal){return this.__self.buildSelector(elem,modName,modVal)},destruct:function(keepDOM){var _this=this;_this.__base();_this.dropElemCache().domElem.each(function(i,domNode){$.each(getParams(domNode),function(blockName,blockParams){var block=uniqIdToBlock[blockParams.uniqId];block&&block._removeDomElem(domNode)});cleanupDomNode(domNode)});keepDOM||_this.domElem.remove();delete _this.domElem;delete _this._elemCache}},{doc:doc,win:win,_processLive:function(heedLive){var _this=this,res=_this._liveInitable;if("live"in _this){var noLive=typeof res=="undefined";if(noLive^heedLive){if($.isFunction(_this.live)){res=_this.live()!==false;_this.live=function(){}}else{res=_this.live}}}return res},init:function(ctx,callback,callbackCtx){if(!ctx||$.isFunction(ctx)){callbackCtx=callback;callback=ctx;ctx=doc}var uniqInitId=$.identify();findDomElem(ctx,".i-bem").each(function(){init($(this),uniqInitId)});callback&&this.afterCurrentEvent(callback,callbackCtx)},destruct:function(keepDOM,ctx,excludeSelf){if(typeof keepDOM!="boolean"){excludeSelf=ctx;ctx=keepDOM;keepDOM=undefined}findDomElem(ctx,".i-bem",excludeSelf).each(function(){$.each(getParams(this),function(blockName,blockParams){if(blockParams.uniqId){var block=uniqIdToBlock[blockParams.uniqId];block&&block.destruct(true)}});cleanupDomNode(this)});keepDOM||(excludeSelf?ctx.empty():ctx.remove())},update:function(ctx,content,callback,callbackCtx){this.destruct(ctx,true);this.init(ctx.html(content),callback,callbackCtx)},_liveClassBind:function(className,e,callback,invokeOnInit){var _this=this;if(e.indexOf(" ")>-1){$.each(e.split(" "),function(i,e){_this._liveClassBind(className,e,callback,invokeOnInit)})}else{var liveE=_this.buildEventName(e),storage=liveClassEventStorage[liveE],uniqId=$.identify(callback);if(!storage){storage=liveClassEventStorage[liveE]={};doc.bind(e,_this.changeThis(_this._liveClassTrigger,_this))}storage=storage[className]||(storage[className]={uniqIds:{},fns:[]});if(!(uniqId in storage.uniqIds)){storage.fns.push({uniqId:uniqId,fn:_this._buildLiveEventFn(callback,invokeOnInit)});storage.uniqIds[uniqId]=storage.fns.length-1}}return this},_liveClassUnbind:function(className,e,callback){var liveE=this.buildEventName(e),storage=liveClassEventStorage[liveE];if(storage){if(callback){if(storage=storage[className]){var uniqId=$.identify(callback);if(uniqId in storage.uniqIds){var i=storage.uniqIds[uniqId],len=storage.fns.length-1;storage.fns.splice(i,1);while(i-1){var j=0,fns=storage[className].fns,fn;while(fn=fns[j++])fn.fn.call($(node),e);classNames.splice(--i,1)}}}while(classNames.length&&(node=node.parentNode))}},_buildLiveEventFn:function(callback,invokeOnInit){var _this=this;return function(e){var args=[_this._name,((e.data||(e.data={})).domElem=$(this)).closest(_this.buildSelector()),true],block=initBlock.apply(null,invokeOnInit?args.concat([callback,e]):args);block&&(invokeOnInit||callback.apply(block,arguments))}},liveInitOnEvent:function(elemName,event,callback){return this.liveBindTo(elemName,event,callback,true)},liveBindTo:function(elemName,event,callback,invokeOnInit){if(!callback){callback=event;event=elemName;elemName=undefined}var _this=this;if(elemName&&elemName.indexOf(" ")>1){$.each(elemName.split(" "),function(i,elemName){_this._liveClassBind(buildClass(_this._name,elemName),event,callback,invokeOnInit)});return _this}return _this._liveClassBind(buildClass(_this._name,elemName),event,callback,invokeOnInit)},liveUnbindFrom:function(elemName,event,callback){var _this=this;if(elemName.indexOf(" ")>1){$.each(elemName.split(" "),function(i,elemName){_this._liveClassUnbind(buildClass(_this._name,elemName),event,callback)});return _this}return _this._liveClassUnbind(buildClass(_this._name,elemName),event,callback)},_liveInitOnBlockInit:function(blockName,callback,findFnName){var name=this._name;blocks[blockName].on("init",function(e){var blocks=e.block[findFnName](name);callback&&$.each(blocks,function(){callback.call(this)})});return this},liveInitOnBlockInit:function(blockName,callback){return this._liveInitOnBlockInit(blockName,callback,"findBlocksOn")},liveInitOnBlockInsideInit:function(blockName,callback){return this._liveInitOnBlockInit(blockName,callback,"findBlocksOutside")},liveCtxBind:function(ctx,e,data,fn,fnCtx){if($.isFunction(data)){fnCtx=fn;fn=data;data=undefined}var _this=this;if(e.indexOf(" ")>-1){$.each(e.split(" "),function(i,e){_this.liveCtxBind(ctx,e,data,fn,fnCtx)})}else{var storage=liveEventCtxStorage[e=_this.buildEventName(e)]||(liveEventCtxStorage[e]={counter:0,ctxs:{}});ctx.each(function(){var ctxId=$.identify(this),ctxStorage=storage.ctxs[ctxId];if(!ctxStorage){ctxStorage=storage.ctxs[ctxId]={};++storage.counter}ctxStorage[$.identify(fn)+(fnCtx?$.identify(fnCtx):"")]={fn:fn,data:data,ctx:fnCtx}})}return _this},liveCtxUnbind:function(ctx,e,fn,fnCtx){var _this=this,storage=liveEventCtxStorage[e=_this.buildEventName(e)];if(storage){ctx.each(function(){var ctxId=$.identify(this,true),ctxStorage;if(ctxId&&(ctxStorage=storage.ctxs[ctxId])){fn&&delete ctxStorage[$.identify(fn)+(fnCtx?$.identify(fnCtx):"")];if(!fn||$.isEmptyObject(ctxStorage)){storage.counter--;delete storage.ctxs[ctxId]}}});storage.counter||delete liveEventCtxStorage[e]}return _this},_extractElemNameFrom:function(elem){var matches=elem[0].className.match(this._buildElemNameRE());return matches?matches[1]:undefined},extractParams:extractParams,_buildModClassPrefix:function(modName,elem){return buildClass(this._name)+(elem?ELEM_DELIM+(typeof elem==="string"?elem:this._extractElemNameFrom(elem)):"")+MOD_DELIM+modName+MOD_DELIM},_buildModValRE:function(modName,elem,quantifiers){return new RegExp("(\\s?)"+this._buildModClassPrefix(modName,elem)+"("+NAME_PATTERN+")(\\s|$)",quantifiers)},_buildElemNameRE:function(){return new RegExp(this._name+ELEM_DELIM+"("+NAME_PATTERN+")(?:\\s|$)")},buildSelector:function(elem,modName,modVal){return"."+buildClass(this._name,elem,modName,modVal)},getWindowSize:function(){var winNode=win[0];if(typeof winNode.innerWidth!="undefined")return{width:winNode.innerWidth,height:winNode.innerHeight};var clientNode=getClientNode();return{width:clientNode.clientWidth,height:clientNode.clientHeight}},buildClass:function(modName,modVal){var mods={};modVal?mods[modName]=modVal:mods=modName;return INTERNAL.buildClasses(this._name,null,mods)},buildElemClass:function(name,modName,modVal){var mods={};modVal?mods[modName]=modVal:mods=modName;return INTERNAL.buildClasses(this._name,name,mods)},buildHtml:function(params){params=params||{};var tag=params.tag||"div",_this=this,result=["<",tag,' class="'],domParams={};$.each([{name:params.name,elem:params.elem,mods:params.mods,params:params.params}].concat(params.mix||[]),function(i,params){var block=params.name?BEM.blocks[params.name]:_this;i&&result.push(" ");result.push(params.elem?block.buildElemClass(params.elem,params.mods):block.buildClass(params.mods));params.elem||(domParams[block.getName()]=params.params||{})});var needJs=!$.isEmptyObject(domParams);result.push(needJs?" i-bem":"",'"');needJs&&result.push(' onclick="return ',$.stringify(domParams).replace(/"/g,"'"),'"');result.push(">",this.buildHtmls(params.content),"");return result.join("")},buildHtmls:function(items){if(!$.isArray(items))return items||"";var _this=this;return $.map(items,function(item){return _this.buildHtml(item)}).join("")}})})(BEM,jQuery);$(function(){BEM.DOM.init()});window.Lego||(window.Lego={block:{}});Lego.block["i-social"]=function(params){function Broker(params){var that=this,handlers={};this.url=params.startUrl+"?";delete params.startUrl;this.popupName=params.popupName;this.yaWindow=null;this.wTimer=null;this.paramsDefault=params;function isClosed(){var closed;if(!that.yaWindow)return true;try{closed=that.yaWindow.closed}catch(e){closed=true}return closed}function windowWatcher(){if(isClosed()){that.wTimer=clearInterval(that.wTimer);that.onFailure({status:"error"})}}function openPopup(paramsOverride){var popupName=that.popupName,width=500,height=280,left=Math.round(((window.opera?window.innerWidth:screen.availWidth)-width)/2),top=Math.round(((window.opera?window.innerHeight:screen.availHeight)-height)/2),popupParams="scrollbars=yes, resizable=1, menubar=0, toolbar=0, status=0, location=0, directories=0"+", left="+left+", top="+top+", width="+width+", height="+height;var myP={};for(var i in that.paramsDefault){myP[i]=that.paramsDefault[i]}for(var i in paramsOverride){myP[i]=paramsOverride[i]}var cbParams=["ddom="+(myP.ddom||(location.hostname==document.domain?"":document.domain))];myP.retpath+=(myP.retpath.match("#")?"&":"#")+cbParams.join("&");var url=that.url;var p=[];for(var j in myP){p.push(encodeURIComponent(j)+"="+encodeURIComponent(myP[j]))}url+=p.join("&");that.yaWindow=window.open(url,popupName,popupParams);that.yaWindow.focus();if(that.yaWindow){that.wTimer=setInterval(windowWatcher,500)}}function cleanup(){this.handlers={onSuccess:null,onFailure:null};that.wTimer=clearInterval(that.wTimer);isClosed()||that.yaWindow.close();that.yaWindow=false}this.start=function(onSuccess,onFailure,paramsOverride){cleanup();that.handlers={onSuccess:onSuccess,onFailure:onFailure};openPopup(paramsOverride)};this.onSuccess=function(data){cleanup();var f=that.handlers.onSuccess;f&&f()};this.onFailure=function(data){cleanup();var f=that.handlers.onFailure;f&&f()}}arguments.callee.Broker=Broker;var defaultParams=arguments.callee.defaultParams={startUrl:Lego.params["social-startUrl"]||Lego.params["social-host"]+"/broker/start",retpath:Lego.params["social-retpath"]||location.protocol+"//"+location.host+Lego.params["lego-path"]+"/blocks/i-social/closer/i-social__closer.html",consumer:Lego.params.id||"morda",popupName:"social_"+(Lego.params.id||"morda"),application:"",action_if_anonymous:"authorize",result_location:"fragment"};var broker=arguments.callee.broker=new Broker($.extend(defaultParams,params));return broker};(function($,Lego){var bHeadTabs=Lego.block["b-head-tabs"]=function(params){var thisHeadTabs=$(this),headSearch=$(".b-head-search"),textInput=headSearch.find(".b-search .b-form-input input:first"),fromServiceId=Lego.params.id,urlParams=unserializeUrl(document.location.search),marketClid={www:505,search:521,images:526}[fromServiceId]||527,noSearchDefParamsMap={market:{cvredirect:1,clid:marketClid}},searchDefParamsMap={news:{rpt:"nnews",grhow:"clutop"},haber:{rpt:"nnews2",grhow:"clutop"},yaca:{rpt:"rs2"},market:{cvredirect:1,clid:marketClid},blogs:{ft:"blog"}},noSearchUrlParamsMap=function(){var res={};$.each(["news","yaca","market","blogs","maps","adresa","video","fotki","slovari","auto","images","music","www","aile","yandex","haber","gorsel"],function(){res[this]=["family"]});return res}(),searchUrlParamsMap=function(){var res={};$.each(["news","yaca","market","blogs","maps","adresa","video","fotki","slovari","auto","images","music","www","aile","yandex","haber","gorsel"],function(){res[this]=["noreask","family"]});return res}(),tabs=thisHeadTabs.find(':not(strong)>a.b-head-tabs__link:not([href$="/all"])').map(function(){var toServiceId=this.host.split(".")[0],tabUrlParams=unserializeUrl(this.search),clid=tabUrlParams.clid,noSearchParams=$.param($.extend(tabUrlParams,getNoSearchParams(toServiceId,clid)),true);return{node:this,clid:clid,toServiceId:toServiceId,path:bHeadTabs.getHostToUrlMap()[toServiceId],host:this.host,searchHost:bHeadTabs.getHostMap()[toServiceId],noSearchParamsUrl:noSearchParams?"?"+noSearchParams:"",searchParams:getSearchParams(toServiceId,clid)}}).filter(function(){return typeof this.path!=="undefined"}),lastTextValue,advancedSearch=headSearch.find(".b-search__advanced")[0];if(advancedSearch){var advUrlParams=unserializeUrl(advancedSearch.search),path=advancedSearch.pathname.replace(/^\/?(.*)/,"$1");advUrlParams.text="";tabs.push({node:advancedSearch,clid:advUrlParams.clid,toServiceId:fromServiceId,path:path,host:advancedSearch.host,noSearchParamsUrl:path+"?"+$.param(advUrlParams,true),searchParams:advUrlParams})}(function(){var textValue=$.trim(textInput.val())||params["default"];if(lastTextValue!=textValue){lastTextValue=textValue;$.each(tabs,function(){textValue&&(this.searchParams[bHeadTabs.getSearchParamName(this.toServiceId)]=textValue);this.node.href=[this.node.protocol+"/",textValue&&this.searchHost?this.searchHost:this.host,textValue?this.path+"?"+$.param(this.searchParams,true):this.noSearchParamsUrl].join("/")})}setTimeout(arguments.callee,200)})();function getNoSearchParams(toServiceId,clid){var params=noSearchDefParamsMap[toServiceId]||{};!params.clid&&clid&&(params.clid=clid);$.each(noSearchUrlParamsMap[toServiceId]||[],function(){urlParams[this]&&(params[this]=urlParams[this])});return params}function getSearchParams(toServiceId,clid){var filterUrlParams=[].concat(searchUrlParamsMap[toServiceId]),toAndFrom=toServiceId+fromServiceId;(toAndFrom=="imageswww"||toAndFrom=="wwwimages")&&filterUrlParams.push("site");var params=searchDefParamsMap[toServiceId]||{};$.each(filterUrlParams,function(){urlParams[this]&&(params[this]=urlParams[this])});!params["clid"]&&clid&&toServiceId!=="www"&&(params.clid=clid);return params}function unserializeUrl(url){var params={};$.each(url.substr(1).split("&"),function(param){var splitted=this.split("="),key=splitted[0],val=splitted[1];if(key)if(params.hasOwnProperty(key)){var vals=params[key];$.isArray(vals)?vals.push(val):params[key]=[vals,val]}else params[key]=val});return $.decodeURIComponent!==undefined?unencodeFields(params):params}function unencodeFields(obj){var fields=["site"];$.each(obj,function(key,value){if($.inArray(key,fields)>-1)obj[key]=$.isArray(value)?value.map(function(v){return $.decodeURIComponent(v)}):$.decodeURIComponent(value)});return obj}};$.extend(bHeadTabs,{getHostToUrlMap:function(){var result={www:"yandsearch",market:"search.xml",maps:"",music:"#/search",video:"#search"};result.harita=result.maps;result.blogs=result.adresa=result.fotki=result.slovari=result.auto=result.market;result.news=result.yaca=result.images=result.gorsel=result.haber=result.aile=result.yandex=result.www;return result},getHostMap:function(){return{}},getSearchParamName:function(serviceId){return"text"}})})(jQuery,window.Lego);(function($,Lego){Lego.block["b-dropdown"]=function(params){var thisDropdown=$(this),thisDropdownList,dropdownPopup,dropdownIframe,dropdownSpacer,hidden=false,inited=false,init=function(){thisDropdownList=thisDropdown.find(".b-dropdown__list");dropdownPopup=$('
                    ');dropdownIframe=$(''+"").submit(function(e){e.preventDefault();thisHolder.find("input[name=login]").val(popup.find("input[name=login]").change().val()).end().find("input[name=passwd]").val(popup.find("input[name=passwd]").change().val()).end().find("input[name=twoweeks]").attr("checked",popup.find("input[name=twoweeks]").attr("checked")).end().append('').attr("action",Lego.block["b-domik"].isHTTPSSupported?thisHolder.attr("action").replace(/^http:/,"https:"):thisHolder.attr("action")).submit()});if(Lego.block["b-domik"]){Lego.block["b-domik"].call(popup)}$("body").append(popup);Lego.blockInit(popup)}arguments.callee.login=function(){var args=arguments;setTimeout(function(){show.apply(this,args)},0)}}})(jQuery,window.Lego);(function($,Lego){var currentPager;function goByHref(el){el[0]&&!!el.attr("href")&&(window.location.href=el.attr("href"))}Lego.block["b-pager"]=function(params){if(currentPager){return params.override&&(currentPager=$(this))}currentPager=$(this);if(params.keydownReaction){$(document).keydown(function(e){if(!e.ctrlKey||$(e.target).is("input, textarea")){return}if(e.keyCode==37){goByHref(currentPager.find(".b-pager__prev"))}else if(e.keyCode==39){goByHref(currentPager.find(".b-pager__next"))}})}}})(jQuery,window.Lego);(function($,Lego){Lego.block["b-button"]=function(){$(this).bind("mousedown mouseup mouseout",function(e){$(this).find(".content").toggleClass("pressed",e.type=="mousedown")}).bind("focus blur",function(e){$(this).find(".content").toggleClass("focus",e.type=="focus")}).bind("click",function(e){if($(this).find(".content").hasClass("disabled")){e.preventDefault()}})}})(jQuery,window.Lego);(function($,Lego){Lego.block["b-domik_type_onpage"]=function(params){if(Lego.block["b-domik"]){Lego.block["b-domik"].call(this,params)}}})(jQuery,window.Lego);(function($,Lego){var iM=Lego.block["i-metrika"]=function(p){p.counter&&iM.newCounter(p.counter)};iM.counters=[];iM.newCounter=function(counter){iM.counters.push(counter)};iM.callback=function(old){return function(){iM.newCounter=function(c){var counter=window["yaCounter"+c]=new Ya.Metrika({id:c,ut:"noindex"});counter.clickmap();counter.trackLinks({external:true})};var c;while(c=iM.counters.shift())iM.newCounter(c);old&&old()}};!(window.Ya&&Ya.Metrika)&&$(function(){var d=document,s=d.createElement("script");s.type="text/javascript";s.src="//mc.yandex.ru/metrika/watch.js";s.setAttribute("async","true");window.yandex_metrika_callback=iM.callback(window.yandex_metrika_callback);d.documentElement.firstChild.appendChild(s)})})(jQuery,window.Lego);(function($,Lego){Lego.block["b-statcounter__gemius"]=function(p){this.append('')}})(jQuery,window.Lego);Lego.block["i-flashcookie"]=function(params){var thisBlock=this,load=arguments.callee.load=function(){location.protocol.indexOf("https")<0&&thisBlock.replaceWith($(''+"").submit(function(e){e.preventDefault();thisHolder.find("input[name=login]").val(popup.find("input[name=login]").change().val()).end().find("input[name=passwd]").val(popup.find("input[name=passwd]").change().val()).end().find("input[name=twoweeks]").attr("checked",!popup.find(".js-not-permanent").attr("checked")).end().append('').attr("action",Lego.block["b-domik"].isHTTPSSupported?thisHolder.attr("action").replace(/^http:/,"https:"):thisHolder.attr("action")).submit()});if(Lego.block["b-domik"]){Lego.block["b-domik"].call(popup)}$("body").append(popup);Lego.blockInit(popup)}arguments.callee.login=function(){var args=arguments;setTimeout(function(){show.apply(this,args)},0)}}})(jQuery,window.Lego);function rd(a,w,l){window.location.href="http://clck.yandex.ru/redir/dtype="+w+"/rnd="+((new Date).getTime()+Math.round(Math.random()*100))+"/*"+(l||a.href||window.location.href);return false}function init(focus){commonInit(focus)}function show_html_code(id){var s=document.getElementById(id);s.style.display=s.style.display=="block"?"none":"block"}function check_all(o){var f=o.form;var checked=o.checked;var inputs=f.getElementsByTagName("input");for(var i=0;i")}jQuery.cookie=function(name,value,options){if(typeof value!="undefined"){options=options||{};if(value===null){value="";options.expires=-1}var expires="";if(options.expires&&(typeof options.expires=="number"||options.expires.toUTCString)){var date;if(typeof options.expires=="number"){date=new Date;date.setTime(date.getTime()+options.expires*24*60*60*1e3)}else{date=options.expires}expires="; expires="+date.toUTCString()}var path=options.path?"; path="+options.path:"";var domain=options.domain?"; domain="+options.domain:"";var secure=options.secure?"; secure":"";document.cookie=[name,"=",encodeURIComponent(value),expires,path,domain,secure].join("")}else{var cookieValue=null;if(document.cookie&&document.cookie!=""){var cookies=document.cookie.split(";");for(var i=0;i$/.exec(tagName);if(matches)return $(document.createElement(matches[1]));var matches=/^([-\w]+):([-\w]+)$/.exec(tagName);var root=this&&this[0];if(!matches)return $(tagName,root);var prefix=matches[1];var name=matches[2];if($.browser.msie)return $(root.getElementsByTagName(name)).filter(function(){return this.scopeName===prefix});return $(root.getElementsByTagName(tagName))};$.tags=function(tagName){return $(document).tags(tagName)}}(jQuery);new function($){$.fn.grep=function(callback){return $($.grep(this,callback||function(x){return x}))}}(jQuery);new function($){$.fn.fold=function(base,callback){for(var index=0;index1){if(!cur.hasOwnProperty(name)||typeof cur[name]!=="object")cur=cur[name]=[];else cur=cur[name];name=chunks.shift()||cur.length}var val=chunks.shift();cur[name]=val});return parsed},serialize:function(state,prefix,noClean){if(typeof state!=="object")return String(state);var accum=[];if(!prefix)prefix="";for(var key in state){if(!state.hasOwnProperty(key))continue;var val=state[key];if(!noClean&&!val&&val!==0)continue;if(key==Number(key))key="";key=prefix+encodeURIComponent(key);if(typeof val==="object")accum.push(this.serialize(val,key+":",noClean));else accum.push(key+":"+encodeURIComponent(val).replace(/%2C/g,","))}return accum.join(";")},merge:function(states){return this.parse($.make.folder(states)(function(state,accum){if(!(Object(state)instanceof String))state=$.appstate.serialize(state,"",true);accum.push(state);return accum},[]).join(";"))},get:function(){return this.state||(this.state=this.parse(this.hash.substring(1)+";"+this.immortal))},set:function(hash){document.location="#"+this.serialize(this.merge([this.get(),hash]));this.update()},update:function(){var hash=String(document.location.href.replace(/^[^#]*/,""));if(hash===this.hash)return this;lastState=this.get();this.hash=hash;this.state=null;newState=this.get();var changed={};for(var key in lastState)changed[key]=true;for(var key in newState)changed[key]=this.serialize(lastState[key])!==this.serialize(newState[key]);$.make.iterator(this.handlers)(function(handler){handler&&handler(changed)});return this},observe:function(func){var alredy=false;$.make.iterator(this.handlers)(function(handler){return!(alredy=handler===func)});if(alredy)return this;this.handlers.push(func);var changed={};for(var key in this.get())changed[key]=true;func(changed);return this},unobserve:function(func){$.make.iterator(this.handlers)(function(handler,i){if(handler===func)delete this[i]})}});var xxx=0;setInterval(function(){$.appstate.update()},50)}(jQuery);new function($){if($.make)throw"jquery-make is alredy defined";$.make=function(data){if(!(this instanceof $.make))return new $.make(data);this.$=data;return this};$.make.iterator=function(data){return{single:$.make.applier(data),list:function(proc){for(var i=0,len=data.length;i
                    ';this.options.popup_container=$(html);this.options.popup_container.css($.extend(pos,o.css));this.options.popup_iframe=$("iframe",this.options.popup_container);this.options.popup_iframe.attr("src",o.link||$this.attr("href"));this.options.popup_iframe.bind("load",evt.data,function(evt){setTimeout(function(){o.onPopupLoaded(evt)},1)});this.options.popup_container.appendTo("body")}else{if(o.alwaysReload){this.options.popup_iframe.attr("src",o.link||$this.attr("href"))}o.popup_container.css(pos);o.popup_container.toggle()}evt.preventDefault()}function hideWindow(evt){var self=evt.data.self;self.options.popup_container.hide();if(evt.type=="submit"){var $this=$(this);$.ajax({type:$this.attr("method"),url:$this.attr("action"),data:$this.serialize(),success:self.options.onsave})}evt.preventDefault()}return this.each(function(i,el){var $this=$(this);var defaults={frameName:"popup-frame-"+(new Date).getTime()+Math.floor(Math.random()*100),alwaysReload:false,open:false,autoclose:true,onPopupLoaded:function(evt){var self_options=evt.data.self.options;var doc=window.frames[self_options.frameName].document;$(".popup-close",doc).unbind("click").attr("onclick","").bind("click",evt.data,hideWindow);if(self_options.autoclose){$("form",doc).bind("submit",evt.data,hideWindow)}self_options.popup_container.css({height:doc.body.offsetHeight+6})}};var o=$.extend(defaults,options);this.options=o;$(this).bind("click",{self:this},showWindow);if(this.options.open){$(this).trigger("click")}})};$.Popup=function(selector,options){return $(selector).Popup(options)}})(jQuery);jQuery.queryArg=function(str){var r={};var s=str||window.location.search;var q=s.substring(s.indexOf("?")+1);q=q.replace(/\&$/,"");jQuery.each(q.split("&"),function(){var splitted=this.split("=");var key=splitted[0];var val=splitted[1];if(/^[0-9.]+$/.test(val))val=parseFloat(val);r[key]=val});return r};(function(a,b){function c(b,c){var e=b.nodeName.toLowerCase();if("area"===e){var f=b.parentNode,g=f.name,h;return!b.href||!g||f.nodeName.toLowerCase()!=="map"?!1:(h=a("img[usemap=#"+g+"]")[0],!!h&&d(h))}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this) +}).length}a.ui=a.ui||{};if(a.ui.version)return;a.extend(a.ui,{version:"1.8.22",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;return a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){var d=a(this[0]),e,f;while(d.length&&d[0]!==document){e=d.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){f=parseInt(d.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}d=d.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a("").outerWidth(1).jquery||a.each(["Width","Height"],function(c,d){function h(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),f&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)}),c}var e=d==="Width"?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?g["inner"+d].call(this):this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return typeof b!="number"?g["outer"+d].call(this,b):this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));c.offsetHeight,a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c.offsetHeight===100,a.support.selectstart="onselectstart"in c,b.removeChild(c).style.display="none"}),a.curCSS||(a.curCSS=a.css),a.extend(a.ui,{plugin:{add:function(b,c,d){var e=a.ui[b].prototype;for(var f in d)e.plugins[f]=e.plugins[f]||[],e.plugins[f].push([c,d[f]])},call:function(a,b,c){var d=a.plugins[b];if(!d||!a.element[0].parentNode)return;for(var e=0;e0?!0:(b[d]=1,e=b[d]>0,b[d]=0,e)},isOverAxis:function(a,b,c){return a>b&&a=9||!!b.button?this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted):this._mouseUp(b)},_mouseUp:function(b){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return!0}})}(jQuery),function(a,b){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function(){if(!this.element.data("draggable"))return;return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(b){var c=this.options;return this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(b),this.handle?(c.iframeFix&&a(c.iframeFix===!0?"iframe":c.iframeFix).each(function(){a('
                    ').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(b){var c=this.options;return this.helper=this._createHelper(b),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),c.containment&&this._setContainment(),this._trigger("start",b)===!1?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this._mouseDrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b),!0)},_mouseDrag:function(b,c){this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute");if(!c){var d=this._uiHash();if(this._trigger("drag",b,d)===!1)return this._mouseUp({}),!1;this.position=d.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";return a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mouseStop:function(b){var c=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(c=a.ui.ddmanager.drop(this,b)),this.dropped&&(c=this.dropped,this.dropped=!1);var d=this.element[0],e=!1;while(d&&(d=d.parentNode))d==document&&(e=!0);if(!e&&this.options.helper==="original")return!1;if(this.options.revert=="invalid"&&!c||this.options.revert=="valid"&&c||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,c)){var f=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",b)!==!1&&f._clear()})}else this._trigger("stop",b)!==!1&&this._clear();return!1},_mouseUp:function(b){return this.options.iframeFix===!0&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?!0:!1;return a(this.options.handle,this.element).find("*").andSelf().each(function(){this==b.target&&(c=!0)}),c},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):c.helper=="clone"?this.element.clone().removeAttr("id"):this.element;return d.parents("body").length||d.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo),d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute"),d},_adjustOffsetFromHelper:function(b){typeof b=="string"&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentNode);if(b.containment=="document"||b.containment=="window")this.containment=[b.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,b.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(b.containment=="document"?0:a(window).scrollLeft())+a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b.containment=="document"?0:a(window).scrollTop())+(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)&&b.containment.constructor!=Array){var c=a(b.containment),d=c[0];if(!d)return;var e=c.offset(),f=a(d).css("overflow")!="hidden";this.containment=[(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0),(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0),(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=c}else b.containment.constructor==Array&&(this.containment=b.containment)},_convertPositionTo:function(b,c){c||(c=this.position);var d=b=="absolute"?1:-1,e=this.options,f=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop())*d),left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())*d)}},_generatePosition:function(b){var c=this.options,d=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName),f=b.pageX,g=b.pageY;if(this.originalPosition){var h;if(this.containment){if(this.relative_container){var i=this.relative_container.offset();h=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]}else h=this.containment;b.pageX-this.offset.click.lefth[2]&&(f=h[2]+this.offset.click.left),b.pageY-this.offset.click.top>h[3]&&(g=h[3]+this.offset.click.top)}if(c.grid){var j=c.grid[1]?this.originalPageY+Math.round((g-this.originalPageY)/c.grid[1])*c.grid[1]:this.originalPageY;g=h?j-this.offset.click.toph[3]?j-this.offset.click.toph[2]?k-this.offset.click.left=0;k--){var l=d.snapElements[k].left,m=l+d.snapElements[k].width,n=d.snapElements[k].top,o=n+d.snapElements[k].height;if(!(l-f=k&&g<=l||h>=k&&h<=l||gl)&&(e>=i&&e<=j||f>=i&&f<=j||ej);default:return!1}},a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(b,c){var d=a.ui.ddmanager.droppables[b.options.scope]||[],e=c?c.type:null,f=(b.currentItem||b.element).find(":data(droppable)").andSelf();g:for(var h=0;h').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=c.handles||(a(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se");if(this.handles.constructor==String){this.handles=="all"&&(this.handles="n,e,s,w,se,sw,ne,nw");var d=this.handles.split(",");this.handles={};for(var e=0;e');h.css({zIndex:c.zIndex}),"se"==f&&h.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[f]=".ui-resizable-"+f,this.element.append(h)}}this._renderAxis=function(b){b=b||this.element;for(var c in this.handles){this.handles[c].constructor==String&&(this.handles[c]=a(this.handles[c],this.element).show());if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var d=a(this.handles[c],this.element),e=0;e=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth();var f=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join("");b.css(f,e),this._proportionallyResize()}if(!a(this.handles[c]).length)continue}},this._renderAxis(this.element),this._handles=a(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!b.resizing){if(this.className)var a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=a&&a[1]?a[1]:"se"}}),c.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").hover(function(){if(c.disabled)return;a(this).removeClass("ui-resizable-autohide"),b._handles.show()},function(){if(c.disabled)return;b.resizing||(a(this).addClass("ui-resizable-autohide"),b._handles.hide())})),this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){b(this.element);var c=this.element;c.after(this.originalElement.css({position:c.css("position"),width:c.outerWidth(),height:c.outerHeight(),top:c.css("top"),left:c.css("left")})).remove()}return this.originalElement.css("resize",this.originalResizeStyle),b(this.originalElement),this},_mouseCapture:function(b){var c=!1;for(var d in this.handles)a(this.handles[d])[0]==b.target&&(c=!0);return!this.options.disabled&&c},_mouseStart:function(b){var d=this.options,e=this.element.position(),f=this.element;this.resizing=!0,this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()},(f.is(".ui-draggable")||/absolute/.test(f.css("position")))&&f.css({position:"absolute",top:e.top,left:e.left}),this._renderProxy();var g=c(this.helper.css("left")),h=c(this.helper.css("top"));d.containment&&(g+=a(d.containment).scrollLeft()||0,h+=a(d.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:g,top:h},this.size=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()},this.originalSize=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()},this.originalPosition={left:g,top:h},this.sizeDiff={width:f.outerWidth()-f.width(),height:f.outerHeight()-f.height()},this.originalMousePosition={left:b.pageX,top:b.pageY},this.aspectRatio=typeof d.aspectRatio=="number"?d.aspectRatio:this.originalSize.width/this.originalSize.height||1;var i=a(".ui-resizable-"+this.axis).css("cursor");return a("body").css("cursor",i=="auto"?this.axis+"-resize":i),f.addClass("ui-resizable-resizing"),this._propagate("start",b),!0},_mouseDrag:function(b){var c=this.helper,d=this.options,e={},f=this,g=this.originalMousePosition,h=this.axis,i=b.pageX-g.left||0,j=b.pageY-g.top||0,k=this._change[h];if(!k)return!1;var l=k.apply(this,[b,i,j]),m=a.browser.msie&&a.browser.version<7,n=this.sizeDiff;this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)l=this._updateRatio(l,b);return l=this._respectSize(l,b),this._propagate("resize",b),c.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(l),this._trigger("resize",b,this.ui()),!1},_mouseStop:function(b){this.resizing=!1;var c=this.options,d=this;if(this._helper){var e=this._proportionallyResizeElements,f=e.length&&/textarea/i.test(e[0].nodeName),g=f&&a.ui.hasScroll(e[0],"left")?0:d.sizeDiff.height,h=f?0:d.sizeDiff.width,i={width:d.helper.width()-h,height:d.helper.height()-g},j=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null,k=parseInt(d.element.css("top"),10)+(d.position.top-d.originalPosition.top)||null;c.animate||this.element.css(a.extend(i,{top:k,left:j})),d.helper.height(d.size.height),d.helper.width(d.size.width),this._helper&&!c.animate&&this._proportionallyResize()}return a("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",b),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(a){var b=this.options,c,e,f,g,h;h={minWidth:d(b.minWidth)?b.minWidth:0,maxWidth:d(b.maxWidth)?b.maxWidth:Infinity,minHeight:d(b.minHeight)?b.minHeight:0,maxHeight:d(b.maxHeight)?b.maxHeight:Infinity};if(this._aspectRatio||a)c=h.minHeight*this.aspectRatio,f=h.minWidth/this.aspectRatio,e=h.maxHeight*this.aspectRatio,g=h.maxWidth/this.aspectRatio,c>h.minWidth&&(h.minWidth=c),f>h.minHeight&&(h.minHeight=f),ea.width,k=d(a.height)&&e.minHeight&&e.minHeight>a.height;j&&(a.width=e.minWidth),k&&(a.height=e.minHeight),h&&(a.width=e.maxWidth),i&&(a.height=e.maxHeight);var l=this.originalPosition.left+this.originalSize.width,m=this.position.top+this.size.height,n=/sw|nw|w/.test(g),o=/nw|ne|n/.test(g);j&&n&&(a.left=l-e.minWidth),h&&n&&(a.left=l-e.maxWidth),k&&o&&(a.top=m-e.minHeight),i&&o&&(a.top=m-e.maxHeight);var p=!a.width&&!a.height;return p&&!a.left&&a.top?a.top=null:p&&!a.top&&a.left&&(a.left=null),a},_proportionallyResize:function(){var b=this.options;if(!this._proportionallyResizeElements.length)return;var c=this.helper||this.element;for(var d=0;d');var d=a.browser.msie&&a.browser.version<7,e=d?1:0,f=d?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+f,height:this.element.outerHeight()+f,position:"absolute",left:this.elementOffset.left-e+"px",top:this.elementOffset.top-e+"px",zIndex:++c.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(a,b,c){return{width:this.originalSize.width+b}},w:function(a,b,c){var d=this.options,e=this.originalSize,f=this.originalPosition;return{left:f.left+b,width:e.width-b}},n:function(a,b,c){var d=this.options,e=this.originalSize,f=this.originalPosition;return{top:f.top+c,height:e.height-c}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]),b!="resize"&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),a.extend(a.ui.resizable,{version:"1.8.22"}),a.ui.plugin.add("resizable","alsoResize",{start:function(b,c){var d=a(this).data("resizable"),e=d.options,f=function(b){a(b).each(function(){var b=a(this);b.data("resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10)})})};typeof e.alsoResize=="object"&&!e.alsoResize.parentNode?e.alsoResize.length?(e.alsoResize=e.alsoResize[0],f(e.alsoResize)):a.each(e.alsoResize,function(a){f(a)}):f(e.alsoResize)},resize:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.originalSize,g=d.originalPosition,h={height:d.size.height-f.height||0,width:d.size.width-f.width||0,top:d.position.top-g.top||0,left:d.position.left-g.left||0},i=function(b,d){a(b).each(function(){var b=a(this),e=a(this).data("resizable-alsoresize"),f={},g=d&&d.length?d:b.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(g,function(a,b){var c=(e[b]||0)+(h[b]||0);c&&c>=0&&(f[b]=c||null)}),b.css(f)})};typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?a.each(e.alsoResize,function(a,b){i(a,b)}):i(e.alsoResize)},stop:function(b,c){a(this).removeData("resizable-alsoresize")}}),a.ui.plugin.add("resizable","animate",{stop:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d._proportionallyResizeElements,g=f.length&&/textarea/i.test(f[0].nodeName),h=g&&a.ui.hasScroll(f[0],"left")?0:d.sizeDiff.height,i=g?0:d.sizeDiff.width,j={width:d.size.width-i,height:d.size.height-h},k=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null,l=parseInt(d.element.css("top"),10)+(d.position.top-d.originalPosition.top)||null;d.element.animate(a.extend(j,l&&k?{top:l,left:k}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var c={width:parseInt(d.element.css("width"),10),height:parseInt(d.element.css("height"),10),top:parseInt(d.element.css("top"),10),left:parseInt(d.element.css("left"),10)};f&&f.length&&a(f[0]).css({width:c.width,height:c.height}),d._updateCache(c),d._propagate("resize",b)}})}}),a.ui.plugin.add("resizable","containment",{start:function(b,d){var e=a(this).data("resizable"),f=e.options,g=e.element,h=f.containment,i=h instanceof a?h.get(0):/parent/.test(h)?g.parent().get(0):h;if(!i)return;e.containerElement=a(i);if(/document/.test(h)||h==document)e.containerOffset={left:0,top:0},e.containerPosition={left:0,top:0},e.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight};else{var j=a(i),k=[];a(["Top","Right","Left","Bottom"]).each(function(a,b){k[a]=c(j.css("padding"+b))}),e.containerOffset=j.offset(),e.containerPosition=j.position(),e.containerSize={height:j.innerHeight()-k[3],width:j.innerWidth()-k[1]};var l=e.containerOffset,m=e.containerSize.height,n=e.containerSize.width,o=a.ui.hasScroll(i,"left")?i.scrollWidth:n,p=a.ui.hasScroll(i)?i.scrollHeight:m;e.parentData={element:i,left:l.left,top:l.top,width:o,height:p}}},resize:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.containerSize,g=d.containerOffset,h=d.size,i=d.position,j=d._aspectRatio||b.shiftKey,k={top:0,left:0},l=d.containerElement;l[0]!=document&&/static/.test(l.css("position"))&&(k=g),i.left<(d._helper?g.left:0)&&(d.size.width=d.size.width+(d._helper?d.position.left-g.left:d.position.left-k.left),j&&(d.size.height=d.size.width/d.aspectRatio),d.position.left=e.helper?g.left:0),i.top<(d._helper?g.top:0)&&(d.size.height=d.size.height+(d._helper?d.position.top-g.top:d.position.top),j&&(d.size.width=d.size.height*d.aspectRatio),d.position.top=d._helper?g.top:0),d.offset.left=d.parentData.left+d.position.left,d.offset.top=d.parentData.top+d.position.top;var m=Math.abs((d._helper?d.offset.left-k.left:d.offset.left-k.left)+d.sizeDiff.width),n=Math.abs((d._helper?d.offset.top-k.top:d.offset.top-g.top)+d.sizeDiff.height),o=d.containerElement.get(0)==d.element.parent().get(0),p=/relative|absolute/.test(d.containerElement.css("position"));o&&p&&(m-=d.parentData.left),m+d.size.width>=d.parentData.width&&(d.size.width=d.parentData.width-m,j&&(d.size.height=d.size.width/d.aspectRatio)),n+d.size.height>=d.parentData.height&&(d.size.height=d.parentData.height-n,j&&(d.size.width=d.size.height*d.aspectRatio))},stop:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.position,g=d.containerOffset,h=d.containerPosition,i=d.containerElement,j=a(d.helper),k=j.offset(),l=j.outerWidth()-d.sizeDiff.width,m=j.outerHeight()-d.sizeDiff.height;d._helper&&!e.animate&&/relative/.test(i.css("position"))&&a(this).css({left:k.left-h.left-g.left,width:l,height:m}),d._helper&&!e.animate&&/static/.test(i.css("position"))&&a(this).css({left:k.left-h.left-g.left,width:l,height:m})}}),a.ui.plugin.add("resizable","ghost",{start:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.size;d.ghost=d.originalElement.clone(),d.ghost.css({opacity:.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof e.ghost=="string"?e.ghost:""),d.ghost.appendTo(d.helper)},resize:function(b,c){var d=a(this).data("resizable"),e=d.options;d.ghost&&d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})},stop:function(b,c){var d=a(this).data("resizable"),e=d.options;d.ghost&&d.helper&&d.helper.get(0).removeChild(d.ghost.get(0))}}),a.ui.plugin.add("resizable","grid",{resize:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.size,g=d.originalSize,h=d.originalPosition,i=d.axis,j=e._aspectRatio||b.shiftKey;e.grid=typeof e.grid=="number"?[e.grid,e.grid]:e.grid;var k=Math.round((f.width-g.width)/(e.grid[0]||1))*(e.grid[0]||1),l=Math.round((f.height-g.height)/(e.grid[1]||1))*(e.grid[1]||1);/^(se|s|e)$/.test(i)?(d.size.width=g.width+k,d.size.height=g.height+l):/^(ne)$/.test(i)?(d.size.width=g.width+k,d.size.height=g.height+l,d.position.top=h.top-l):/^(sw)$/.test(i)?(d.size.width=g.width+k,d.size.height=g.height+l,d.position.left=h.left-k):(d.size.width=g.width+k,d.size.height=g.height+l,d.position.top=h.top-l,d.position.left=h.left-k)}});var c=function(a){return parseInt(a,10)||0},d=function(a){return!isNaN(parseInt(a,10))}}(jQuery),function(a,b){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var b=this;this.element.addClass("ui-selectable"),this.dragged=!1;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]),c.addClass("ui-selectee"),c.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:!1,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=c.addClass("ui-selectee"),this._mouseInit(),this.helper=a("
                    ")},destroy:function(){return this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"),this._mouseDestroy(),this},_mouseStart:function(b){var c=this;this.opos=[b.pageX,b.pageY];if(this.options.disabled)return;var d=this.options;this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.clientX,top:b.clientY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,!b.metaKey&&!b.ctrlKey&&(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().andSelf().each(function(){var d=a.data(this,"selectable-item");if(d){var e=!b.metaKey&&!b.ctrlKey||!d.$element.hasClass("ui-selected");return d.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting"),d.unselecting=!e,d.selecting=e,d.selected=e,e?c._trigger("selecting",b,{selecting:d.element}):c._trigger("unselecting",b,{unselecting:d.element}),!1}})},_mouseDrag:function(b){var c=this;this.dragged=!0;if(this.options.disabled)return;var d=this.options,e=this.opos[0],f=this.opos[1],g=b.pageX,h=b.pageY;if(e>g){var i=g;g=e,e=i}if(f>h){var i=h;h=f,f=i}return this.helper.css({left:e,top:f,width:g-e,height:h-f}),this.selectees.each(function(){var i=a.data(this,"selectable-item");if(!i||i.element==c.element[0])return;var j=!1;d.tolerance=="touch"?j=!(i.left>g||i.righth||i.bottome&&i.rightf&&i.bottom *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var a=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?a.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},destroy:function(){a.Widget.prototype.destroy.call(this),this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--)this.items[b].item.removeData(this.widgetName+"-item");return this},_setOption:function(b,c){b==="disabled"?(this.options[b]=c,this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,c){var d=this;if(this.reverting)return!1;if(this.options.disabled||this.options.type=="static")return!1;this._refreshItems(b);var e=null,f=this,g=a(b.target).parents().each(function(){if(a.data(this,d.widgetName+"-item")==f)return e=a(this),!1});a.data(b.target,d.widgetName+"-item")==f&&(e=a(b.target));if(!e)return!1;if(this.options.handle&&!c){var h=!1;a(this.options.handle,e).find("*").andSelf().each(function(){this==b.target&&(h=!0)});if(!h)return!1}return this.currentItem=e,this._removeCurrentsFromItems(),!0},_mouseStart:function(b,c,d){var e=this.options,f=this;this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),e.containment&&this._setContainment(),e.cursor&&(a("body").css("cursor")&&(this._storedCursor=a("body").css("cursor")),a("body").css("cursor",e.cursor)),e.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",e.opacity)),e.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",e.zIndex)),this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions();if(!d)for(var g=this.containers.length-1;g>=0;g--)this.containers[g]._trigger("activate",b,f._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs);if(this.options.scroll){var c=this.options,d=!1;this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY=0;e--){var f=this.items[e],g=f.item[0],h=this._intersectsWithPointer(f);if(!h)continue;if(g!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=g&&!a.ui.contains(this.placeholder[0],g)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],g):!0)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(f))this._rearrange(b,f);else break;this._trigger("change",b,this._uiHash());break}}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(!b)return;a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b);if(this.options.revert){var d=this,e=d.placeholder.offset();d.reverting=!0,a(this.helper).animate({left:e.left-this.offset.parent.left-d.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-d.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,c);return!1},cancel:function(){var b=this;if(this.dragging){this._mouseUp({target:null}),this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("deactivate",null,b._uiHash(this)),this.containers[c].containerCache.over&&(this.containers[c]._trigger("out",null,b._uiHash(this)),this.containers[c].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);c&&d.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!d.length&&b.key&&d.push(b.key+"="),d.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},c.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")}),d},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l=d+j>h&&d+jf&&b+ka[this.floating?"width":"height"]?l:f0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var c=this,d=[],e=[],f=this._connectWith();if(f&&b)for(var g=f.length-1;g>=0;g--){var h=a(f[g]);for(var i=h.length-1;i>=0;i--){var j=a.data(h[i],this.widgetName);j&&j!=this&&!j.options.disabled&&e.push([a.isFunction(j.options.items)?j.options.items.call(j.element):a(j.options.items,j.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),j])}}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var g=e.length-1;g>=0;g--)e[g][0].each(function(){d.push(this)});return a(d)},_removeCurrentsFromItems:function(){var a=this.currentItem.find(":data("+this.widgetName+"-item)");for(var b=0;b=0;g--){var h=a(f[g]);for(var i=h.length-1;i>=0;i--){var j=a.data(h[i],this.widgetName);j&&j!=this&&!j.options.disabled&&(e.push([a.isFunction(j.options.items)?j.options.items.call(j.element[0],b,{item:this.currentItem}):a(j.options.items,j.element),j]),this.containers.push(j))}}for(var g=e.length-1;g>=0;g--){var k=e[g][1],l=e[g][0];for(var i=0,m=l.length;i=0;c--){var d=this.items[c];if(d.instance!=this.currentContainer&&this.currentContainer&&d.item[0]!=this.currentItem[0])continue;var e=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item;b||(d.width=e.outerWidth(),d.height=e.outerHeight());var f=e.offset();d.left=f.left,d.top=f.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var c=this.containers.length-1;c>=0;c--){var f=this.containers[c].element.offset();this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight()}return this},_createPlaceholder:function(b){var c=b||this,d=c.options;if(!d.placeholder||d.placeholder.constructor==String){var e=d.placeholder;d.placeholder={element:function(){var b=a(document.createElement(c.currentItem[0].nodeName)).addClass(e||c.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return e||(b.style.visibility="hidden"),b},update:function(a,b){if(e&&!d.forcePlaceholderSize)return;b.height()||b.height(c.currentItem.innerHeight()-parseInt(c.currentItem.css("paddingTop")||0,10)-parseInt(c.currentItem.css("paddingBottom")||0,10)),b.width()||b.width(c.currentItem.innerWidth()-parseInt(c.currentItem.css("paddingLeft")||0,10)-parseInt(c.currentItem.css("paddingRight")||0,10))}}}c.placeholder=a(d.placeholder.element.call(c.element,c.currentItem)),c.currentItem.after(c.placeholder),d.placeholder.update(c,c.placeholder)},_contactContainers:function(b){var c=null,d=null;for(var e=this.containers.length-1;e>=0;e--){if(a.ui.contains(this.currentItem[0],this.containers[e].element[0]))continue;if(this._intersectsWith(this.containers[e].containerCache)){if(c&&a.ui.contains(this.containers[e].element[0],c.element[0]))continue;c=this.containers[e],d=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",b,this._uiHash(this)),this.containers[e].containerCache.over=0)}if(!c)return;if(this.containers.length===1)this.containers[d]._trigger("over",b,this._uiHash(this)),this.containers[d].containerCache.over=1;else if(this.currentContainer!=this.containers[d]){var f=1e4,g=null,h=this.positionAbs[this.containers[d].floating?"left":"top"];for(var i=this.items.length-1;i>=0;i--){if(!a.ui.contains(this.containers[d].element[0],this.items[i].item[0]))continue;var j=this.containers[d].floating?this.items[i].item.offset().left:this.items[i].item.offset().top;Math.abs(j-h)0?"down":"up")}if(!g&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[d],g?this._rearrange(b,g,null,!0):this._rearrange(b,null,this.containers[d].element,!0),this._trigger("change",b,this._uiHash()),this.containers[d]._trigger("change",b,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[d]._trigger("over",b,this._uiHash(this)),this.containers[d].containerCache.over=1}},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;return d.parents("body").length||a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]),d[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(d[0].style.width==""||c.forceHelperSize)&&d.width(this.currentItem.width()),(d[0].style.height==""||c.forceHelperSize)&&d.height(this.currentItem.height()),d},_adjustOffsetFromHelper:function(b){typeof b=="string"&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentNode);if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var c=a(b.containment)[0],d=a(b.containment).offset(),e=a(c).css("overflow")!="hidden";this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(e?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(e?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,c){c||(c=this.position);var d=b=="absolute"?1:-1,e=this.options,f=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop())*d),left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())*d)}},_generatePosition:function(b){var c=this.options,d=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName);this.cssPosition=="relative"&&(this.scrollParent[0]==document||this.scrollParent[0]==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset());var f=b.pageX,g=b.pageY;if(this.originalPosition){this.containment&&(b.pageX-this.offset.click.leftthis.containment[2]&&(f=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top));if(c.grid){var h=this.originalPageY+Math.round((g-this.originalPageY)/c.grid[1])*c.grid[1];g=this.containment?h-this.offset.click.topthis.containment[3]?h-this.offset.click.topthis.containment[2]?i-this.offset.click.left=0;f--)a.ui.contains(this.containers[f].element[0],this.currentItem[0])&&!c&&(d.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.containers[f])),d.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.containers[f])))}for(var f=this.containers.length-1;f>=0;f--)c||d.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[f])),this.containers[f].containerCache.over&&(d.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[f])),this.containers[f].containerCache.over=0);this._storedCursor&&a("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex),this.dragging=!1;if(this.cancelHelperRemoval){if(!c){this._trigger("beforeStop",b,this._uiHash());for(var f=0;f").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e=document.activeElement;try{e.id}catch(f){e=document.body}return b.wrap(d),(b[0]===e||a.contains(b[0],e))&&a(e).focus(),d=b.parent(),b.css("position")=="static"?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),d.css(c).show()},removeWrapper:function(b){var c,d=document.activeElement;return b.parent().is(".ui-effects-wrapper")?(c=b.parent().replaceWith(b),(b[0]===d||a.contains(b[0],d))&&a(d).focus(),c):b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(b,c,d,e){var f=k.apply(this,arguments),g={options:f[1],duration:f[2],callback:f[3]},h=g.options.mode,i=a.effects[b];return a.fx.off||!i?h?this[h](g.duration,g.callback):this.each(function(){g.callback&&g.callback.call(this)}):i.call(this,g)},_show:a.fn.show,show:function(a){if(l(a))return this._show.apply(this,arguments);var b=k.apply(this,arguments);return b[1].mode="show",this.effect.apply(this,b)},_hide:a.fn.hide,hide:function(a){if(l(a))return this._hide.apply(this,arguments);var b=k.apply(this,arguments);return b[1].mode="hide",this.effect.apply(this,b)},__toggle:a.fn.toggle,toggle:function(b){if(l(b)||typeof b=="boolean"||a.isFunction(b))return this.__toggle.apply(this,arguments);var c=k.apply(this,arguments);return c[1].mode="toggle",this.effect.apply(this,c)},cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}}),a.easing.jswing=a.easing.swing,a.extend(a.easing,{def:"easeOutQuad",swing:function(b,c,d,e,f){return a.easing[a.easing.def](b,c,d,e,f)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e)==1)return c+d;g||(g=e*.3);if(h").css({position:"absolute",visibility:"visible",left:-j*(g/d),top:-i*(h/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/d,height:h/c,left:f.left+j*(g/d)+(b.options.mode=="show"?(j-Math.floor(d/2))*(g/d):0),top:f.top+i*(h/c)+(b.options.mode=="show"?(i-Math.floor(c/2))*(h/c):0),opacity:b.options.mode=="show"?0:1}).animate({left:f.left+j*(g/d)+(b.options.mode=="show"?0:(j-Math.floor(d/2))*(g/d)),top:f.top+i*(h/c)+(b.options.mode=="show"?0:(i-Math.floor(c/2))*(h/c)),opacity:b.options.mode=="show"?1:0},b.duration||500);setTimeout(function(){b.options.mode=="show"?e.css({visibility:"visible"}):e.css({visibility:"visible"}).hide(),b.callback&&b.callback.apply(e[0]),e.dequeue(),a("div.ui-effects-explode").remove()},b.duration||500)})}}(jQuery),function(a,b){a.effects.fade=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"hide");c.animate({opacity:d},{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}}(jQuery),function(a,b){a.effects.fold=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right"],e=a.effects.setMode(c,b.options.mode||"hide"),f=b.options.size||15,g=!!b.options.horizFirst,h=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(c,d),c.show();var i=a.effects.createWrapper(c).css({overflow:"hidden"}),j=e=="show"!=g,k=j?["width","height"]:["height","width"],l=j?[i.width(),i.height()]:[i.height(),i.width()],m=/([0-9]+)%/.exec(f);m&&(f=parseInt(m[1],10)/100*l[e=="hide"?0:1]),e=="show"&&i.css(g?{height:0,width:f}:{height:f,width:0});var n={},p={};n[k[0]]=e=="show"?l[0]:f,p[k[1]]=e=="show"?l[1]:0,i.animate(n,h,b.options.easing).animate(p,h,b.options.easing,function(){e=="hide"&&c.hide(),a.effects.restore(c,d),a.effects.removeWrapper(c),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()})})}}(jQuery),function(a,b){a.effects.highlight=function(b){return this.queue(function(){var c=a(this),d=["backgroundImage","backgroundColor","opacity"],e=a.effects.setMode(c,b.options.mode||"show"),f={backgroundColor:c.css("backgroundColor")};e=="hide"&&(f.opacity=0),a.effects.save(c,d),c.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(f,{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide(),a.effects.restore(c,d),e=="show"&&!a.support.opacity&&this.style.removeAttribute("filter"),b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}}(jQuery),function(a,b){a.effects.pulsate=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"show"),e=(b.options.times||5)*2-1,f=b.duration?b.duration/2:a.fx.speeds._default/2,g=c.is(":visible"),h=0; +g||(c.css("opacity",0).show(),h=1),(d=="hide"&&g||d=="show"&&!g)&&e--;for(var i=0;i').appendTo(document.body).addClass(b.options.className).css({top:g.top,left:g.left,height:c.innerHeight(),width:c.innerWidth(),position:"absolute"}).animate(f,b.duration,b.options.easing,function(){h.remove(),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()})})}}(jQuery),function(a,b){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:!0,clearStyle:!1,collapsible:!1,event:"click",fillSpace:!1,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var b=this,c=b.options;b.running=0,b.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"),b.headers=b.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){if(c.disabled)return;a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){if(c.disabled)return;a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){if(c.disabled)return;a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){if(c.disabled)return;a(this).removeClass("ui-state-focus")}),b.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(c.navigation){var d=b.element.find("a").filter(c.navigationFilter).eq(0);if(d.length){var e=d.closest(".ui-accordion-header");e.length?b.active=e:b.active=d.closest(".ui-accordion-content").prev()}}b.active=b._findActive(b.active||c.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"),b.active.next().addClass("ui-accordion-content-active"),b._createIcons(),b.resize(),b.element.attr("role","tablist"),b.headers.attr("role","tab").bind("keydown.accordion",function(a){return b._keydown(a)}).next().attr("role","tabpanel"),b.headers.not(b.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide(),b.active.length?b.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):b.headers.eq(0).attr("tabIndex",0),a.browser.safari||b.headers.find("a").attr("tabIndex",-1),c.event&&b.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(a){b._clickHandler.call(b,a,this),a.preventDefault()})},_createIcons:function(){var b=this.options;b.icons&&(a("").addClass("ui-icon "+b.icons.header).prependTo(this.headers),this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected),this.element.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.children(".ui-icon").remove(),this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"),this.headers.find("a").removeAttr("tabIndex"),this._destroyIcons();var c=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");return(b.autoHeight||b.fillHeight)&&c.css("height",""),a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments),b=="active"&&this.activate(c),b=="icons"&&(this._destroyIcons(),c&&this._createIcons()),b=="disabled"&&this.headers.add(this.headers.next())[c?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(b){if(this.options.disabled||b.altKey||b.ctrlKey)return;var c=a.ui.keyCode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keyCode){case c.RIGHT:case c.DOWN:f=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:f=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._clickHandler({target:b.target},b.target),b.preventDefault()}return f?(a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus(),!1):!0},resize:function(){var b=this.options,c;if(b.fillSpace){if(a.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}c=this.element.parent().height(),a.browser.msie&&this.element.parent().css("overflow",d),this.headers.each(function(){c-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else b.autoHeight&&(c=0,this.headers.next().each(function(){c=Math.max(c,a(this).height("").height())}).height(c));return this},activate:function(a){this.options.active=a;var b=this._findActive(a)[0];return this._clickHandler({target:b},b),this},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===!1?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,c){var d=this.options;if(d.disabled)return;if(!b.target){if(!d.collapsible)return;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header),this.active.next().addClass("ui-accordion-content-active");var e=this.active.next(),f={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:e},g=this.active=a([]);this._toggle(g,e,f);return}var h=a(b.currentTarget||c),i=h[0]===this.active[0];d.active=d.collapsible&&i?!1:this.headers.index(h);if(this.running||!d.collapsible&&i)return;var j=this.active,g=h.next(),e=this.active.next(),f={options:d,newHeader:i&&d.collapsible?a([]):h,oldHeader:this.active,newContent:i&&d.collapsible?a([]):g,oldContent:e},k=this.headers.index(this.active[0])>this.headers.index(h[0]);this.active=i?a([]):h,this._toggle(g,e,f,i,k),j.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header),i||(h.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected),h.next().addClass("ui-accordion-content-active"));return},_toggle:function(b,c,d,e,f){var g=this,h=g.options;g.toShow=b,g.toHide=c,g.data=d;var i=function(){if(!g)return;return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data),g.running=c.size()===0?b.size():c.size();if(h.animated){var j={};h.collapsible&&e?j={toShow:a([]),toHide:c,complete:i,down:f,autoHeight:h.autoHeight||h.fillSpace}:j={toShow:b,toHide:c,complete:i,down:f,autoHeight:h.autoHeight||h.fillSpace},h.proxied||(h.proxied=h.animated),h.proxiedDuration||(h.proxiedDuration=h.duration),h.animated=a.isFunction(h.proxied)?h.proxied(j):h.proxied,h.duration=a.isFunction(h.proxiedDuration)?h.proxiedDuration(j):h.proxiedDuration;var k=a.ui.accordion.animations,l=h.duration,m=h.animated;m&&!k[m]&&!a.easing[m]&&(m="slide"),k[m]||(k[m]=function(a){this.slide(a,{easing:m,duration:l||700})}),k[m](j)}else h.collapsible&&e?b.toggle():(c.hide(),b.show()),i(!0);c.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur(),b.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(this.running)return;this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""}),this.toHide.removeClass("ui-accordion-content-active"),this.toHide.length&&(this.toHide.parent()[0].className=this.toHide.parent()[0].className),this._trigger("change",null,this.data)}}),a.extend(a.ui.accordion,{version:"1.8.22",animations:{slide:function(b,c){b=a.extend({easing:"swing",duration:300},b,c);if(!b.toHide.size()){b.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},b);return}if(!b.toShow.size()){b.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},b);return}var d=b.toShow.css("overflow"),e=0,f={},g={},h=["height","paddingTop","paddingBottom"],i,j=b.toShow;i=j[0].style.width,j.width(j.parent().width()-parseFloat(j.css("paddingLeft"))-parseFloat(j.css("paddingRight"))-(parseFloat(j.css("borderLeftWidth"))||0)-(parseFloat(j.css("borderRightWidth"))||0)),a.each(h,function(c,d){g[d]="hide";var e=(""+a.css(b.toShow[0],d)).match(/^([\d+-.]+)(.*)$/);f[d]={value:e[1],unit:e[2]||"px"}}),b.toShow.css({height:0,overflow:"hidden"}).show(),b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(g,{step:function(a,c){c.prop=="height"&&(e=c.end-c.start===0?0:(c.now-c.start)/(c.end-c.start)),b.toShow[0].style[c.prop]=e*f[c.prop].value+f[c.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoHeight||b.toShow.css("height",""),b.toShow.css({width:i,overflow:d}),b.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1e3:200})}}})}(jQuery),function(a,b){var c=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var b=this,c=this.element[0].ownerDocument,d;this.isMultiLine=this.element.is("textarea"),this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(b.options.disabled||b.element.propAttr("readOnly"))return;d=!1;var e=a.ui.keyCode;switch(c.keyCode){case e.PAGE_UP:b._move("previousPage",c);break;case e.PAGE_DOWN:b._move("nextPage",c);break;case e.UP:b._keyEvent("previous",c);break;case e.DOWN:b._keyEvent("next",c);break;case e.ENTER:case e.NUMPAD_ENTER:b.menu.active&&(d=!0,c.preventDefault());case e.TAB:if(!b.menu.active)return;b.menu.select(c);break;case e.ESCAPE:b.element.val(b.term),b.close(c);break;default:clearTimeout(b.searching),b.searching=setTimeout(function(){b.term!=b.element.val()&&(b.selectedItem=null,b.search(null,c))},b.options.delay)}}).bind("keypress.autocomplete",function(a){d&&(d=!1,a.preventDefault())}).bind("focus.autocomplete",function(){if(b.options.disabled)return;b.selectedItem=null,b.previous=b.element.val()}).bind("blur.autocomplete",function(a){if(b.options.disabled)return;clearTimeout(b.searching),b.closing=setTimeout(function(){b.close(a),b._change(a)},150)}),this._initSource(),this.menu=a("
                      ").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",c)[0]).mousedown(function(c){var d=b.menu.element[0];a(c.target).closest(".ui-menu-item").length||setTimeout(function(){a(document).one("mousedown",function(c){c.target!==b.element[0]&&c.target!==d&&!a.ui.contains(d,c.target)&&b.close()})},1),setTimeout(function(){clearTimeout(b.closing)},13)}).menu({focus:function(a,c){var d=c.item.data("item.autocomplete");!1!==b._trigger("focus",a,{item:d})&&/^key/.test(a.originalEvent.type)&&b.element.val(d.value)},selected:function(a,d){var e=d.item.data("item.autocomplete"),f=b.previous;b.element[0]!==c.activeElement&&(b.element.focus(),b.previous=f,setTimeout(function(){b.previous=f,b.selectedItem=e},1)),!1!==b._trigger("select",a,{item:e})&&b.element.val(e.value),b.term=b.element.val(),b.close(a),b.selectedItem=e},blur:function(a,c){b.menu.element.is(":visible")&&b.element.val()!==b.term&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),a.fn.bgiframe&&this.menu.element.bgiframe(),b.beforeunloadHandler=function(){b.element.removeAttr("autocomplete")},a(window).bind("beforeunload",b.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),a(window).unbind("beforeunload",this.beforeunloadHandler),a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments),b==="source"&&this._initSource(),b==="appendTo"&&this.menu.element.appendTo(a(c||"body",this.element[0].ownerDocument)[0]),b==="disabled"&&c&&this.xhr&&this.xhr.abort()},_initSource:function(){var b=this,c,d;a.isArray(this.options.source)?(c=this.options.source,this.source=function(b,d){d(a.ui.autocomplete.filter(c,b.term))}):typeof this.options.source=="string"?(d=this.options.source,this.source=function(c,e){b.xhr&&b.xhr.abort(),b.xhr=a.ajax({url:d,data:c,dataType:"json",success:function(a,b){e(a)},error:function(){e([])}})}):this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val(),this.term=this.element.val();if(a.length").data("item.autocomplete",c).append(a("
                      ").text(c.label)).appendTo(b)},_move:function(a,b){if(!this.menu.element.is(":visible")){this.search(null,b);return}if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term),this.menu.deactivate();return}this.menu[a](b)},widget:function(){return this.menu.element},_keyEvent:function(a,b){if(!this.isMultiLine||this.menu.element.is(":visible"))this._move(a,b),b.preventDefault()}}),a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(b,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(b,function(a){return d.test(a.label||a.value||a)})}})}(jQuery),function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(!a(c.target).closest(".ui-menu-item a").length)return;c.preventDefault(),b.select(c)}),this.refresh()},refresh:function(){var b=this,c=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");c.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasScroll()){var c=b.offset().top-this.element.offset().top,d=this.element.scrollTop(),e=this.element.height();c<0?this.element.scrollTop(d+c):c>=e&&this.element.scrollTop(d+c-e+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trigger("focus",a,{item:b})},deactivate:function(){if(!this.active)return;this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,b,c){if(!this.active){this.activate(c,this.element.children(b));return}var d=this.active[a+"All"](".ui-menu-item").eq(0);d.length?this.activate(c,d):this.activate(c,this.element.children(b))},nextPage:function(b){if(this.hasScroll()){if(!this.active||this.last()){this.activate(b,this.element.children(".ui-menu-item:first"));return}var c=this.active.offset().top,d=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c-d+a(this).height();return b<10&&b>-10});e.length||(e=this.element.children(".ui-menu-item:last")),this.activate(b,e)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(b){if(this.hasScroll()){if(!this.active||this.first()){this.activate(b,this.element.children(".ui-menu-item:last"));return}var c=this.active.offset().top,d=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c+d-a(this).height();return b<10&&b>-10});e.length||(e=this.element.children(".ui-menu-item:first")),this.activate(b,e)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()",this.element[0].ownerDocument).addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary,f=[];d.primary||d.secondary?(this.options.text&&f.push("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary")),d.primary&&b.prepend(""),d.secondary&&b.append(""),this.options.text||(f.push(e?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||b.attr("title",c))):f.push("ui-button-text-only"),b.addClass(f.join(" "))}}),a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c),a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var b=this.element.css("direction")==="rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(b?"ui-corner-left":"ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy"),a.Widget.prototype.destroy.call(this)}})}(jQuery),function($,undefined){function Datepicker(){this.debug=!1,this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},$.extend(this._defaults,this.regional[""]),this.dpDiv=bindHover($('
                      ')) +}function bindHover(a){var b="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return a.bind("mouseout",function(a){var c=$(a.target).closest(b);if(!c.length)return;c.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(c){var d=$(c.target).closest(b);if($.datepicker._isDisabledDatepicker(instActive.inline?a.parent()[0]:instActive.input[0])||!d.length)return;d.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),d.addClass("ui-state-hover"),d.hasClass("ui-datepicker-prev")&&d.addClass("ui-datepicker-prev-hover"),d.hasClass("ui-datepicker-next")&&d.addClass("ui-datepicker-next-hover")})}function extendRemove(a,b){$.extend(a,b);for(var c in b)if(b[c]==null||b[c]==undefined)a[c]=b[c];return a}function isArray(a){return a&&($.browser.safari&&typeof a=="object"&&a.length||a.constructor&&a.constructor.toString().match(/\Array\(\)/))}$.extend($.ui,{datepicker:{version:"1.8.22"}});var PROP_NAME="datepicker",dpuuid=(new Date).getTime(),instActive;$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return extendRemove(this._defaults,a||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline=nodeName=="div"||nodeName=="span";target.id||(this.uuid+=1,target.id="dp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),nodeName=="input"?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(a,b){var c=a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:c,input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:b?bindHover($('
                      ')):this.dpDiv}},_connectDatepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]);if(c.hasClass(this.markerClassName))return;this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(a,c,d){b.settings[c]=d}).bind("getData.datepicker",function(a,c){return this._get(b,c)}),this._autoSize(b),$.data(a,PROP_NAME,b),b.settings.disabled&&this._disableDatepicker(a)},_attachments:function(a,b){var c=this._get(b,"appendText"),d=this._get(b,"isRTL");b.append&&b.append.remove(),c&&(b.append=$(''+c+""),a[d?"before":"after"](b.append)),a.unbind("focus",this._showDatepicker),b.trigger&&b.trigger.remove();var e=this._get(b,"showOn");(e=="focus"||e=="both")&&a.focus(this._showDatepicker);if(e=="button"||e=="both"){var f=this._get(b,"buttonText"),g=this._get(b,"buttonImage");b.trigger=$(this._get(b,"buttonImageOnly")?$("").addClass(this._triggerClass).attr({src:g,alt:f,title:f}):$('').addClass(this._triggerClass).html(g==""?f:$("").attr({src:g,alt:f,title:f}))),a[d?"before":"after"](b.trigger),b.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==a[0]?$.datepicker._hideDatepicker():$.datepicker._datepickerShowing&&$.datepicker._lastInput!=a[0]?($.datepicker._hideDatepicker(),$.datepicker._showDatepicker(a[0])):$.datepicker._showDatepicker(a[0]),!1})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var d=function(a){var b=0,c=0;for(var d=0;db&&(b=a[d].length,c=d);return c};b.setMonth(d(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort"))),b.setDate(d(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=$(a);if(c.hasClass(this.markerClassName))return;c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(a,c,d){b.settings[c]=d}).bind("getData.datepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b),this._setDate(b,this._getDefaultDate(b),!0),this._updateDatepicker(b),this._updateAlternate(b),b.settings.disabled&&this._disableDatepicker(a),b.dpDiv.css("display","block")},_dialogDatepicker:function(a,b,c,d,e){var f=this._dialogInst;if(!f){this.uuid+=1;var g="dp"+this.uuid;this._dialogInput=$(''),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput),f=this._dialogInst=this._newInst(this._dialogInput,!1),f.settings={},$.data(this._dialogInput[0],PROP_NAME,f)}extendRemove(f.settings,d||{}),b=b&&b.constructor==Date?this._formatDate(f,b):b,this._dialogInput.val(b),this._pos=e?e.length?e:[e.pageX,e.pageY]:null;if(!this._pos){var h=document.documentElement.clientWidth,i=document.documentElement.clientHeight,j=document.documentElement.scrollLeft||document.body.scrollLeft,k=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[h/2-100+j,i/2-150+k]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),f.settings.onSelect=c,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,f),this},_destroyDatepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(!b.hasClass(this.markerClassName))return;var d=a.nodeName.toLowerCase();$.removeData(a,PROP_NAME),d=="input"?(c.append.remove(),c.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(d=="div"||d=="span")&&b.removeClass(this.markerClassName).empty()},_enableDatepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(!b.hasClass(this.markerClassName))return;var d=a.nodeName.toLowerCase();if(d=="input")a.disabled=!1,c.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if(d=="div"||d=="span"){var e=b.children("."+this._inlineClass);e.children().removeClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b})},_disableDatepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(!b.hasClass(this.markerClassName))return;var d=a.nodeName.toLowerCase();if(d=="input")a.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if(d=="div"||d=="span"){var e=b.children("."+this._inlineClass);e.children().addClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b}),this._disabledInputs[this._disabledInputs.length]=a},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b-1}},_doKeyUp:function(a){var b=$.datepicker._getInst(a.target);if(b.input.val()!=b.lastVal)try{var c=$.datepicker.parseDate($.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,$.datepicker._getFormatConfig(b));c&&($.datepicker._setDateFromField(b),$.datepicker._updateAlternate(b),$.datepicker._updateDatepicker(b))}catch(d){$.datepicker.log(d)}return!0},_showDatepicker:function(a){a=a.target||a,a.nodeName.toLowerCase()!="input"&&(a=$("input",a.parentNode)[0]);if($.datepicker._isDisabledDatepicker(a)||$.datepicker._lastInput==a)return;var b=$.datepicker._getInst(a);$.datepicker._curInst&&$.datepicker._curInst!=b&&($.datepicker._curInst.dpDiv.stop(!0,!0),b&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var c=$.datepicker._get(b,"beforeShow"),d=c?c.apply(a,[a,b]):{};if(d===!1)return;extendRemove(b.settings,d),b.lastVal=null,$.datepicker._lastInput=a,$.datepicker._setDateFromField(b),$.datepicker._inDialog&&(a.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(a),$.datepicker._pos[1]+=a.offsetHeight);var e=!1;$(a).parents().each(function(){return e|=$(this).css("position")=="fixed",!e}),e&&$.browser.opera&&($.datepicker._pos[0]-=document.documentElement.scrollLeft,$.datepicker._pos[1]-=document.documentElement.scrollTop);var f={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null,b.dpDiv.empty(),b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(b),f=$.datepicker._checkOffset(b,f,e),b.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":e?"fixed":"absolute",display:"none",left:f.left+"px",top:f.top+"px"});if(!b.inline){var g=$.datepicker._get(b,"showAnim"),h=$.datepicker._get(b,"duration"),i=function(){var a=b.dpDiv.find("iframe.ui-datepicker-cover");if(!!a.length){var c=$.datepicker._getBorders(b.dpDiv);a.css({left:-c[0],top:-c[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex($(a).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&$.effects[g]?b.dpDiv.show(g,$.datepicker._get(b,"showOptions"),h,i):b.dpDiv[g||"show"](g?h:null,i),(!g||!h)&&i(),b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus(),$.datepicker._curInst=b}},_updateDatepicker:function(a){var b=this;b.maxRows=4;var c=$.datepicker._getBorders(a.dpDiv);instActive=a,a.dpDiv.empty().append(this._generateHTML(a)),this._attachHandlers(a);var d=a.dpDiv.find("iframe.ui-datepicker-cover");!d.length||d.css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}),a.dpDiv.find("."+this._dayOverClass+" a").mouseover();var e=this._getNumberOfMonths(a),f=e[1],g=17;a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),f>1&&a.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",g*f+"em"),a.dpDiv[(e[0]!=1||e[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi"),a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),a==$.datepicker._curInst&&$.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var h=a.yearshtml;setTimeout(function(){h===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml),h=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var d=a.dpDiv.outerWidth(),e=a.dpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,g=a.input?a.input.outerHeight():0,h=document.documentElement.clientWidth+(c?0:$(document).scrollLeft()),i=document.documentElement.clientHeight+(c?0:$(document).scrollTop());return b.left-=this._get(a,"isRTL")?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollLeft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrollTop():0,b.left-=Math.min(b.left,b.left+d>h&&h>d?Math.abs(b.left+d-h):0),b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+g):0),b},_findPos:function(a){var b=this._getInst(a),c=this._get(b,"isRTL");while(a&&(a.type=="hidden"||a.nodeType!=1||$.expr.filters.hidden(a)))a=a[c?"previousSibling":"nextSibling"];var d=$(a).offset();return[d.left,d.top]},_hideDatepicker:function(a){var b=this._curInst;if(!b||a&&b!=$.data(a,PROP_NAME))return;if(this._datepickerShowing){var c=this._get(b,"showAnim"),d=this._get(b,"duration"),e=function(){$.datepicker._tidyDialog(b)};$.effects&&$.effects[c]?b.dpDiv.hide(c,$.datepicker._get(b,"showOptions"),d,e):b.dpDiv[c=="slideDown"?"slideUp":c=="fadeIn"?"fadeOut":"hide"](c?d:null,e),c||e(),this._datepickerShowing=!1;var f=this._get(b,"onClose");f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(!$.datepicker._curInst)return;var b=$(a.target),c=$.datepicker._getInst(b[0]);(b[0].id!=$.datepicker._mainDivId&&b.parents("#"+$.datepicker._mainDivId).length==0&&!b.hasClass($.datepicker.markerClassName)&&!b.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&(!$.datepicker._inDialog||!$.blockUI)||b.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!=c)&&$.datepicker._hideDatepicker()},_adjustDate:function(a,b,c){var d=$(a),e=this._getInst(d[0]);if(this._isDisabledDatepicker(d[0]))return;this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c),this._updateDatepicker(e)},_gotoToday:function(a){var b=$(a),c=this._getInst(b[0]);if(this._get(c,"gotoCurrent")&&c.currentDay)c.selectedDay=c.currentDay,c.drawMonth=c.selectedMonth=c.currentMonth,c.drawYear=c.selectedYear=c.currentYear;else{var d=new Date;c.selectedDay=d.getDate(),c.drawMonth=c.selectedMonth=d.getMonth(),c.drawYear=c.selectedYear=d.getFullYear()}this._notifyChange(c),this._adjustDate(b)},_selectMonthYear:function(a,b,c){var d=$(a),e=this._getInst(d[0]);e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10),this._notifyChange(e),this._adjustDate(d)},_selectDay:function(a,b,c,d){var e=$(a);if($(d).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0]))return;var f=this._getInst(e[0]);f.selectedDay=f.currentDay=$("a",d).html(),f.selectedMonth=f.currentMonth=b,f.selectedYear=f.currentYear=c,this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))},_clearDate:function(a){var b=$(a),c=this._getInst(b[0]);this._selectDate(b,"")},_selectDate:function(a,b){var c=$(a),d=this._getInst(c[0]);b=b!=null?b:this._formatDate(d),d.input&&d.input.val(b),this._updateAlternate(d);var e=this._get(d,"onSelect");e?e.apply(d.input?d.input[0]:null,[b,d]):d.input&&d.input.trigger("change"),d.inline?this._updateDatepicker(d):(this._hideDatepicker(),this._lastInput=d.input[0],typeof d.input[0]!="object"&&d.input.focus(),this._lastInput=null)},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),d=this._getDate(a),e=this.formatDate(c,d,this._getFormatConfig(a));$(b).each(function(){$(this).val(e)})}},noWeekends:function(a){var b=a.getDay();return[b>0&&b<6,""]},iso8601Week:function(a){var b=new Date(a.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var c=b.getTime();return b.setMonth(0),b.setDate(1),Math.floor(Math.round((c-b)/864e5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"?b.toString():b+"";if(b=="")return null;var d=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;d=typeof d!="string"?d:(new Date).getFullYear()%100+parseInt(d,10);var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=-1,j=-1,k=-1,l=-1,m=!1,n=function(b){var c=s+1-1){j=1,k=l;do{var u=this._getDaysInMonth(i,j-1);if(k<=u)break;j++,k-=u}while(!0)}var t=this._daylightSavingAdjust(new Date(i,j-1,k));if(t.getFullYear()!=i||t.getMonth()+1!=j||t.getDate()!=k)throw"Invalid date";return t},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,e=(c?c.dayNames:null)||this._defaults.dayNames,f=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,h=function(b){var c=m+112?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),(e!=a.selectedMonth||f!=a.selectedYear)&&!c&&this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(a){var b=this._get(a,"stepMonths"),c="#"+a.id;a.dpDiv.find("[data-handler]").map(function(){var a={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(c,-b,"M")},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(c,+b,"M")},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(c)},selectDay:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectDay(c,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(c,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(c,this,"Y"),!1}};$(this).bind(this.getAttribute("data-event"),a[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),d=this._get(a,"showButtonPanel"),e=this._get(a,"hideIfNoPrevNext"),f=this._get(a,"navigationAsDateFormat"),g=this._getNumberOfMonths(a),h=this._get(a,"showCurrentAtPos"),i=this._get(a,"stepMonths"),j=g[0]!=1||g[1]!=1,k=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),l=this._getMinMaxDate(a,"min"),m=this._getMinMaxDate(a,"max"),n=a.drawMonth-h,o=a.drawYear;n<0&&(n+=12,o--);if(m){var p=this._daylightSavingAdjust(new Date(m.getFullYear(),m.getMonth()-g[0]*g[1]+1,m.getDate()));p=l&&pp)n--,n<0&&(n=11,o--)}a.drawMonth=n,a.drawYear=o;var q=this._get(a,"prevText");q=f?this.formatDate(q,this._daylightSavingAdjust(new Date(o,n-i,1)),this._getFormatConfig(a)):q;var r=this._canAdjustMonth(a,-1,o,n)?''+q+"":e?"":''+q+"",s=this._get(a,"nextText");s=f?this.formatDate(s,this._daylightSavingAdjust(new Date(o,n+i,1)),this._getFormatConfig(a)):s;var t=this._canAdjustMonth(a,1,o,n)?''+s+"":e?"":''+s+"",u=this._get(a,"currentText"),v=this._get(a,"gotoCurrent")&&a.currentDay?k:b;u=f?this.formatDate(u,v,this._getFormatConfig(a)):u;var w=a.inline?"":'",x=d?'
                      '+(c?w:"")+(this._isInRange(a,v)?'":"")+(c?"":w)+"
                      ":"",y=parseInt(this._get(a,"firstDay"),10);y=isNaN(y)?0:y;var z=this._get(a,"showWeek"),A=this._get(a,"dayNames"),B=this._get(a,"dayNamesShort"),C=this._get(a,"dayNamesMin"),D=this._get(a,"monthNames"),E=this._get(a,"monthNamesShort"),F=this._get(a,"beforeShowDay"),G=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths"),I=this._get(a,"calculateWeek")||this.iso8601Week,J=this._getDefaultDate(a),K="";for(var L=0;L1)switch(N){case 0:Q+=" ui-datepicker-group-first",P=" ui-corner-"+(c?"right":"left");break;case g[1]-1:Q+=" ui-datepicker-group-last",P=" ui-corner-"+(c?"left":"right");break;default:Q+=" ui-datepicker-group-middle",P=""}Q+='">'}Q+='
                      '+(/all|left/.test(P)&&L==0?c?t:r:"")+(/all|right/.test(P)&&L==0?c?r:t:"")+this._generateMonthYearHeader(a,n,o,l,m,L>0||N>0,D,E)+'
                      '+"";var R=z?'":"";for(var S=0;S<7;S++){var T=(S+y)%7;R+="=5?' class="ui-datepicker-week-end"':"")+">"+''+C[T]+""}Q+=R+"";var U=this._getDaysInMonth(o,n);o==a.selectedYear&&n==a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,U));var V=(this._getFirstDayOfMonth(o,n)-y+7)%7,W=Math.ceil((V+U)/7),X=j?this.maxRows>W?this.maxRows:W:W;this.maxRows=X;var Y=this._daylightSavingAdjust(new Date(o,n,1-V));for(var Z=0;Z";var _=z?'":"";for(var S=0;S<7;S++){var ba=F?F.apply(a.input?a.input[0]:null,[Y]):[!0,""],bb=Y.getMonth()!=n,bc=bb&&!H||!ba[0]||l&&Ym;_+='",Y.setDate(Y.getDate()+1),Y=this._daylightSavingAdjust(Y)}Q+=_+""}n++,n>11&&(n=0,o++),Q+="
                      '+this._get(a,"weekHeader")+"
                      '+this._get(a,"calculateWeek")(Y)+""+(bb&&!G?" ":bc?''+Y.getDate()+"":''+Y.getDate()+"")+"
                      "+(j?""+(g[0]>0&&N==g[1]-1?'
                      ':""):""),M+=Q}K+=M}return K+=x+($.browser.msie&&parseInt($.browser.version,10)<7&&!a.inline?'':""),a._keyEvent=!1,K},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i=this._get(a,"changeMonth"),j=this._get(a,"changeYear"),k=this._get(a,"showMonthAfterYear"),l='
                      ',m="";if(f||!i)m+=''+g[b]+"";else{var n=d&&d.getFullYear()==c,o=e&&e.getFullYear()==c;m+='"}k||(l+=m+(f||!i||!j?" ":""));if(!a.yearshtml){a.yearshtml="";if(f||!j)l+=''+c+"";else{var q=this._get(a,"yearRange").split(":"),r=(new Date).getFullYear(),s=function(a){var b=a.match(/c[+-].*/)?c+parseInt(a.substring(1),10):a.match(/[+-].*/)?r+parseInt(a,10):parseInt(a,10); +return isNaN(b)?r:b},t=s(q[0]),u=Math.max(t,s(q[1]||""));t=d?Math.max(t,d.getFullYear()):t,u=e?Math.min(u,e.getFullYear()):u,a.yearshtml+='",l+=a.yearshtml,a.yearshtml=null}}return l+=this._get(a,"yearSuffix"),k&&(l+=(f||!i||!j?" ":"")+m),l+="
                      ",l},_adjustInstDate:function(a,b,c){var d=a.drawYear+(c=="Y"?b:0),e=a.drawMonth+(c=="M"?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+(c=="D"?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),(c=="M"||c=="Y")&&this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&bd?d:e,e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!d||b.getTime()<=d.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),$.fn.datepicker=function(a){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv),$.datepicker.initialized=!0);var b=Array.prototype.slice.call(arguments,1);return typeof a!="string"||a!="isDisabled"&&a!="getDate"&&a!="widget"?a=="option"&&arguments.length==2&&typeof arguments[1]=="string"?$.datepicker["_"+a+"Datepicker"].apply($.datepicker,[this[0]].concat(b)):this.each(function(){typeof a=="string"?$.datepicker["_"+a+"Datepicker"].apply($.datepicker,[this].concat(b)):$.datepicker._attachDatepicker(this,a)}):$.datepicker["_"+a+"Datepicker"].apply($.datepicker,[this[0]].concat(b))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.8.22",window["DP_jQuery_"+dpuuid]=$}(jQuery),function(a,b){var c="ui-dialog ui-widget ui-widget-content ui-corner-all ",d={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},e={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},f=a.attrFn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0,click:!0};a.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),typeof this.originalTitle!="string"&&(this.originalTitle=""),this.options.title=this.options.title||this.originalTitle;var b=this,d=b.options,e=d.title||" ",f=a.ui.dialog.getTitleId(b.element),g=(b.uiDialog=a("
                      ")).appendTo(document.body).hide().addClass(c+d.dialogClass).css({zIndex:d.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(c){d.closeOnEscape&&!c.isDefaultPrevented()&&c.keyCode&&c.keyCode===a.ui.keyCode.ESCAPE&&(b.close(c),c.preventDefault())}).attr({role:"dialog","aria-labelledby":f}).mousedown(function(a){b.moveToTop(!1,a)}),h=b.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g),i=(b.uiDialogTitlebar=a("
                      ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),j=a('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){j.addClass("ui-state-hover")},function(){j.removeClass("ui-state-hover")}).focus(function(){j.addClass("ui-state-focus")}).blur(function(){j.removeClass("ui-state-focus")}).click(function(a){return b.close(a),!1}).appendTo(i),k=(b.uiDialogTitlebarCloseText=a("")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(j),l=a("").addClass("ui-dialog-title").attr("id",f).html(e).prependTo(i);a.isFunction(d.beforeclose)&&!a.isFunction(d.beforeClose)&&(d.beforeClose=d.beforeclose),i.find("*").add(i).disableSelection(),d.draggable&&a.fn.draggable&&b._makeDraggable(),d.resizable&&a.fn.resizable&&b._makeResizable(),b._createButtons(d.buttons),b._isOpen=!1,a.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;return a.overlay&&a.overlay.destroy(),a.uiDialog.hide(),a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),a.uiDialog.remove(),a.originalTitle&&a.element.attr("title",a.originalTitle),a},widget:function(){return this.uiDialog},close:function(b){var c=this,d,e;if(!1===c._trigger("beforeClose",b))return;return c.overlay&&c.overlay.destroy(),c.uiDialog.unbind("keypress.ui-dialog"),c._isOpen=!1,c.options.hide?c.uiDialog.hide(c.options.hide,function(){c._trigger("close",b)}):(c.uiDialog.hide(),c._trigger("close",b)),a.ui.dialog.overlay.resize(),c.options.modal&&(d=0,a(".ui-dialog").each(function(){this!==c.uiDialog[0]&&(e=a(this).css("z-index"),isNaN(e)||(d=Math.max(d,e)))}),a.ui.dialog.maxZ=d),c},isOpen:function(){return this._isOpen},moveToTop:function(b,c){var d=this,e=d.options,f;return e.modal&&!b||!e.stack&&!e.modal?d._trigger("focus",c):(e.zIndex>a.ui.dialog.maxZ&&(a.ui.dialog.maxZ=e.zIndex),d.overlay&&(a.ui.dialog.maxZ+=1,d.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)),f={scrollTop:d.element.scrollTop(),scrollLeft:d.element.scrollLeft()},a.ui.dialog.maxZ+=1,d.uiDialog.css("z-index",a.ui.dialog.maxZ),d.element.attr(f),d._trigger("focus",c),d)},open:function(){if(this._isOpen)return;var b=this,c=b.options,d=b.uiDialog;return b.overlay=c.modal?new a.ui.dialog.overlay(b):null,b._size(),b._position(c.position),d.show(c.show),b.moveToTop(!0),c.modal&&d.bind("keydown.ui-dialog",function(b){if(b.keyCode!==a.ui.keyCode.TAB)return;var c=a(":tabbable",this),d=c.filter(":first"),e=c.filter(":last");if(b.target===e[0]&&!b.shiftKey)return d.focus(1),!1;if(b.target===d[0]&&b.shiftKey)return e.focus(1),!1}),a(b.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus(),b._isOpen=!0,b._trigger("open"),b},_createButtons:function(b){var c=this,d=!1,e=a("
                      ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=a("
                      ").addClass("ui-dialog-buttonset").appendTo(e);c.uiDialog.find(".ui-dialog-buttonpane").remove(),typeof b=="object"&&b!==null&&a.each(b,function(){return!(d=!0)}),d&&(a.each(b,function(b,d){d=a.isFunction(d)?{click:d,text:b}:d;var e=a('').click(function(){d.click.apply(c.element[0],arguments)}).appendTo(g);a.each(d,function(a,b){if(a==="click")return;a in f?e[a](b):e.attr(a,b)}),a.fn.button&&e.button()}),e.appendTo(c.uiDialog))},_makeDraggable:function(){function f(a){return{position:a.position,offset:a.offset}}var b=this,c=b.options,d=a(document),e;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(d,g){e=c.height==="auto"?"auto":a(this).height(),a(this).height(a(this).height()).addClass("ui-dialog-dragging"),b._trigger("dragStart",d,f(g))},drag:function(a,c){b._trigger("drag",a,f(c))},stop:function(g,h){c.position=[h.position.left-d.scrollLeft(),h.position.top-d.scrollTop()],a(this).removeClass("ui-dialog-dragging").height(e),b._trigger("dragStop",g,f(h)),a.ui.dialog.overlay.resize()}})},_makeResizable:function(c){function h(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}c=c===b?this.options.resizable:c;var d=this,e=d.options,f=d.uiDialog.css("position"),g=typeof c=="string"?c:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:g,start:function(b,c){a(this).addClass("ui-dialog-resizing"),d._trigger("resizeStart",b,h(c))},resize:function(a,b){d._trigger("resize",a,h(b))},stop:function(b,c){a(this).removeClass("ui-dialog-resizing"),e.height=a(this).height(),e.width=a(this).width(),d._trigger("resizeStop",b,h(c)),a.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(b){var c=[],d=[0,0],e;if(b){if(typeof b=="string"||typeof b=="object"&&"0"in b)c=b.split?b.split(" "):[b[0],b[1]],c.length===1&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c.join(" "),at:c.join(" "),offset:d.join(" ")};b=a.extend({},a.ui.dialog.prototype.options.position,b)}else b=a.ui.dialog.prototype.options.position;e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},b)),e||this.uiDialog.hide()},_setOptions:function(b){var c=this,f={},g=!1;a.each(b,function(a,b){c._setOption(a,b),a in d&&(g=!0),a in e&&(f[a]=b)}),g&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",f)},_setOption:function(b,d){var e=this,f=e.uiDialog;switch(b){case"beforeclose":b="beforeClose";break;case"buttons":e._createButtons(d);break;case"closeText":e.uiDialogTitlebarCloseText.text(""+d);break;case"dialogClass":f.removeClass(e.options.dialogClass).addClass(c+d);break;case"disabled":d?f.addClass("ui-dialog-disabled"):f.removeClass("ui-dialog-disabled");break;case"draggable":var g=f.is(":data(draggable)");g&&!d&&f.draggable("destroy"),!g&&d&&e._makeDraggable();break;case"position":e._position(d);break;case"resizable":var h=f.is(":data(resizable)");h&&!d&&f.resizable("destroy"),h&&typeof d=="string"&&f.resizable("option","handles",d),!h&&d!==!1&&e._makeResizable(d);break;case"title":a(".ui-dialog-title",e.uiDialogTitlebar).html(""+(d||" "))}a.Widget.prototype._setOption.apply(e,arguments)},_size:function(){var b=this.options,c,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0}),b.minWidth>b.width&&(b.width=b.minWidth),c=this.uiDialog.css({height:"auto",width:b.width}).height(),d=Math.max(0,b.minHeight-c);if(b.height==="auto")if(a.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();var f=this.element.css("height","auto").height();e||this.uiDialog.hide(),this.element.height(Math.max(f,d))}else this.element.height(Math.max(b.height-c,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),a.extend(a.ui.dialog,{version:"1.8.22",uuid:0,maxZ:0,getTitleId:function(a){var b=a.attr("id");return b||(this.uuid+=1,b=this.uuid),"ui-dialog-title-"+b},overlay:function(b){this.$el=a.ui.dialog.overlay.create(b)}}),a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),create:function(b){this.instances.length===0&&(setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(b){if(a(b.target).zIndex()").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});return a.fn.bgiframe&&c.bgiframe(),this.instances.push(c),c},destroy:function(b){var c=a.inArray(b,this.instances);c!=-1&&this.oldInstances.push(this.instances.splice(c,1)[0]),this.instances.length===0&&a([document,window]).unbind(".dialog-overlay"),b.remove();var d=0;a.each(this.instances,function(){d=Math.max(d,this.css("z-index"))}),this.maxZ=d},height:function(){var b,c;return a.browser.msie&&a.browser.version<7?(b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),b0?b.left-e:Math.max(b.left-c.collisionPosition.left,b.left)},top:function(b,c){var d=a(window),e=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop();b.top=e>0?b.top-e:Math.max(b.top-c.collisionPosition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]===e)return;var d=a(window),f=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft(),g=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,h=c.at[0]==="left"?c.targetWidth:-c.targetWidth,i=-2*c.offset[0];b.left+=c.collisionPosition.left<0?g+h+i:f>0?g+h+i:0},top:function(b,c){if(c.at[1]===e)return;var d=a(window),f=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop(),g=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,h=c.at[1]==="top"?c.targetHeight:-c.targetHeight,i=-2*c.offset[1];b.top+=c.collisionPosition.top<0?g+h+i:f>0?g+h+i:0}}},a.offset.setOffset||(a.offset.setOffset=function(b,c){/static/.test(a.curCSS(b,"position"))&&(b.style.position="relative");var d=a(b),e=d.offset(),f=parseInt(a.curCSS(b,"top",!0),10)||0,g=parseInt(a.curCSS(b,"left",!0),10)||0,h={top:c.top-e.top+f,left:c.left-e.left+g};"using"in c?c.using.call(b,h):d.css(h)},a.fn.offset=function(b){var c=this[0];return!c||!c.ownerDocument?null:b?a.isFunction(b)?this.each(function(c){a(this).offset(b.call(this,c,a(this).offset()))}):this.each(function(){a.offset.setOffset(this,b)}):h.call(this)}),function(){var b=document.getElementsByTagName("body")[0],c=document.createElement("div"),d,e,g,h,i;d=document.createElement(b?"div":"body"),g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},b&&a.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(var j in g)d.style[j]=g[j];d.appendChild(c),e=b||document.documentElement,e.insertBefore(d,e.firstChild),c.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",h=a(c).offset(function(a,b){return b}).offset(),d.innerHTML="",e.removeChild(d),i=h.top+h.left+(b?2e3:0),f.fractions=i>21&&i<22}()}(jQuery),function(a,b){a.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()}),this.valueDiv=a("
                      ").appendTo(this.element),this.oldValue=this._value(),this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove(),a.Widget.prototype.destroy.apply(this,arguments)},value:function(a){return a===b?this._value():(this._setOption("value",a),this)},_setOption:function(b,c){b==="value"&&(this.options.value=c,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete")),a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;return typeof a!="number"&&(a=0),Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var a=this.value(),b=this._percentage();this.oldValue!==a&&(this.oldValue=a,this._trigger("change")),this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(b.toFixed(0)+"%"),this.element.attr("aria-valuenow",a)}}),a.extend(a.ui.progressbar,{version:"1.8.22"})}(jQuery),function(a,b){var c=5;a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var b=this,d=this.options,e=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f="",g=d.values&&d.values.length||1,h=[];this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all"+(d.disabled?" ui-slider-disabled ui-disabled":"")),this.range=a([]),d.range&&(d.range===!0&&(d.values||(d.values=[this._valueMin(),this._valueMin()]),d.values.length&&d.values.length!==2&&(d.values=[d.values[0],d.values[0]])),this.range=a("
                      ").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(d.range==="min"||d.range==="max"?" ui-slider-range-"+d.range:"")));for(var i=e.length;ic&&(f=c,g=a(this),i=b)}),c.range===!0&&this.values(1)===c.min&&(i+=1,g=a(this.handles[i])),j=this._start(b,i),j===!1?!1:(this._mouseSliding=!0,h._handleIndex=i,g.addClass("ui-state-active").focus(),k=g.offset(),l=!a(b.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:b.pageX-k.left-g.width()/2,top:b.pageY-k.top-g.height()/2-(parseInt(g.css("borderTopWidth"),10)||0)-(parseInt(g.css("borderBottomWidth"),10)||0)+(parseInt(g.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,i,e),this._animateOff=!0,!0))},_mouseStart:function(a){return!0},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);return this._slide(a,this._handleIndex,c),!1},_mouseStop:function(a){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b,c,d,e,f;return this.orientation==="horizontal"?(b=this.elementSize.width,c=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(b=this.elementSize.height,c=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),this.orientation==="vertical"&&(d=1-d),e=this._valueMax()-this._valueMin(),f=this._valueMin()+d*e,this._trimAlignValue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),this.options.values.length===2&&this.options.range===!0&&(b===0&&c>d||b===1&&c1){this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),this._change(null,b);return}if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();d=this.options.values,e=arguments[0];for(f=0;f=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b,d=a-c;return Math.abs(c)*2>=b&&(d+=c>0?b:-b),parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b=this.options.range,c=this.options,d=this,e=this._animateOff?!1:c.animate,f,g={},h,i,j,k;this.options.values&&this.options.values.length?this.handles.each(function(b,i){f=(d.values(b)-d._valueMin())/(d._valueMax()-d._valueMin())*100,g[d.orientation==="horizontal"?"left":"bottom"]=f+"%",a(this).stop(1,1)[e?"animate":"css"](g,c.animate),d.options.range===!0&&(d.orientation==="horizontal"?(b===0&&d.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},c.animate),b===1&&d.range[e?"animate":"css"]({width:f-h+"%"},{queue:!1,duration:c.animate})):(b===0&&d.range.stop(1,1)[e?"animate":"css"]({bottom:f+"%"},c.animate),b===1&&d.range[e?"animate":"css"]({height:f-h+"%"},{queue:!1,duration:c.animate}))),h=f}):(i=this.value(),j=this._valueMin(),k=this._valueMax(),f=k!==j?(i-j)/(k-j)*100:0,g[d.orientation==="horizontal"?"left":"bottom"]=f+"%",this.handle.stop(1,1)[e?"animate":"css"](g,c.animate),b==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[e?"animate":"css"]({width:f+"%"},c.animate),b==="max"&&this.orientation==="horizontal"&&this.range[e?"animate":"css"]({width:100-f+"%"},{queue:!1,duration:c.animate}),b==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[e?"animate":"css"]({height:f+"%"},c.animate),b==="max"&&this.orientation==="vertical"&&this.range[e?"animate":"css"]({height:100-f+"%"},{queue:!1,duration:c.animate}))}}),a.extend(a.ui.slider,{version:"1.8.22"})}(jQuery),function(a,b){function e(){return++c}function f(){return++d}var c=0,d=0;a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:!1,cookie:null,collapsible:!1,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"
                      ",remove:null,select:null,show:null,spinner:"Loading…",tabTemplate:"
                    • #{label}
                    • "},_create:function(){this._tabify(!0)},_setOption:function(a,b){if(a=="selected"){if(this.options.collapsible&&b==this.options.selected)return;this.select(b)}else this.options[a]=b,this._tabify()},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+e()},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+f());return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(a,b){return{tab:a,panel:b,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(c){function m(b,c){b.css("display",""),!a.support.opacity&&c.opacity&&b[0].style.removeAttribute("filter")}var d=this,e=this.options,f=/^#.+/;this.list=this.element.find("ol,ul").eq(0),this.lis=a(" > li:has(a[href])",this.list),this.anchors=this.lis.map(function(){return a("a",this)[0]}),this.panels=a([]),this.anchors.each(function(b,c){var g=a(c).attr("href"),h=g.split("#")[0],i;h&&(h===location.toString().split("#")[0]||(i=a("base")[0])&&h===i.href)&&(g=c.hash,c.href=g);if(f.test(g))d.panels=d.panels.add(d.element.find(d._sanitizeSelector(g)));else if(g&&g!=="#"){a.data(c,"href.tabs",g),a.data(c,"load.tabs",g.replace(/#.*$/,""));var j=d._tabId(c);c.href="#"+j;var k=d.element.find("#"+j);k.length||(k=a(e.panelTemplate).attr("id",j).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(d.panels[b-1]||d.list),k.data("destroy.tabs",!0)),d.panels=d.panels.add(k)}else e.disabled.push(b)}),c?(this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"),this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.lis.addClass("ui-state-default ui-corner-top"),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom"),e.selected===b?(location.hash&&this.anchors.each(function(a,b){if(b.hash==location.hash)return e.selected=a,!1 +}),typeof e.selected!="number"&&e.cookie&&(e.selected=parseInt(d._cookie(),10)),typeof e.selected!="number"&&this.lis.filter(".ui-tabs-selected").length&&(e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))),e.selected=e.selected||(this.lis.length?0:-1)):e.selected===null&&(e.selected=-1),e.selected=e.selected>=0&&this.anchors[e.selected]||e.selected<0?e.selected:0,e.disabled=a.unique(e.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(a,b){return d.lis.index(a)}))).sort(),a.inArray(e.selected,e.disabled)!=-1&&e.disabled.splice(a.inArray(e.selected,e.disabled),1),this.panels.addClass("ui-tabs-hide"),this.lis.removeClass("ui-tabs-selected ui-state-active"),e.selected>=0&&this.anchors.length&&(d.element.find(d._sanitizeSelector(d.anchors[e.selected].hash)).removeClass("ui-tabs-hide"),this.lis.eq(e.selected).addClass("ui-tabs-selected ui-state-active"),d.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[e.selected],d.element.find(d._sanitizeSelector(d.anchors[e.selected].hash))[0]))}),this.load(e.selected)),a(window).bind("unload",function(){d.lis.add(d.anchors).unbind(".tabs"),d.lis=d.anchors=d.panels=null})):e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")),this.element[e.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible"),e.cookie&&this._cookie(e.selected,e.cookie);for(var g=0,h;h=this.lis[g];g++)a(h)[a.inArray(g,e.disabled)!=-1&&!a(h).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");e.cache===!1&&this.anchors.removeData("cache.tabs"),this.lis.add(this.anchors).unbind(".tabs");if(e.event!=="mouseover"){var i=function(a,b){b.is(":not(.ui-state-disabled)")&&b.addClass("ui-state-"+a)},j=function(a,b){b.removeClass("ui-state-"+a)};this.lis.bind("mouseover.tabs",function(){i("hover",a(this))}),this.lis.bind("mouseout.tabs",function(){j("hover",a(this))}),this.anchors.bind("focus.tabs",function(){i("focus",a(this).closest("li"))}),this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"))})}var k,l;e.fx&&(a.isArray(e.fx)?(k=e.fx[0],l=e.fx[1]):k=l=e.fx);var n=l?function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active"),c.hide().removeClass("ui-tabs-hide").animate(l,l.duration||"normal",function(){m(c,l),d._trigger("show",null,d._ui(b,c[0]))})}:function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active"),c.removeClass("ui-tabs-hide"),d._trigger("show",null,d._ui(b,c[0]))},o=k?function(a,b){b.animate(k,k.duration||"normal",function(){d.lis.removeClass("ui-tabs-selected ui-state-active"),b.addClass("ui-tabs-hide"),m(b,k),d.element.dequeue("tabs")})}:function(a,b,c){d.lis.removeClass("ui-tabs-selected ui-state-active"),b.addClass("ui-tabs-hide"),d.element.dequeue("tabs")};this.anchors.bind(e.event+".tabs",function(){var b=this,c=a(b).closest("li"),f=d.panels.filter(":not(.ui-tabs-hide)"),g=d.element.find(d._sanitizeSelector(b.hash));if(c.hasClass("ui-tabs-selected")&&!e.collapsible||c.hasClass("ui-state-disabled")||c.hasClass("ui-state-processing")||d.panels.filter(":animated").length||d._trigger("select",null,d._ui(this,g[0]))===!1)return this.blur(),!1;e.selected=d.anchors.index(this),d.abort();if(e.collapsible){if(c.hasClass("ui-tabs-selected"))return e.selected=-1,e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){o(b,f)}).dequeue("tabs"),this.blur(),!1;if(!f.length)return e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this)),this.blur(),!1}e.cookie&&d._cookie(e.selected,e.cookie);if(g.length)f.length&&d.element.queue("tabs",function(){o(b,f)}),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this));else throw"jQuery UI Tabs: Mismatching fragment identifier.";a.browser.msie&&this.blur()}),this.anchors.bind("click.tabs",function(){return!1})},_getIndex:function(a){return typeof a=="string"&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},destroy:function(){var b=this.options;return this.abort(),this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs"),this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.anchors.each(function(){var b=a.data(this,"href.tabs");b&&(this.href=b);var c=a(this).unbind(".tabs");a.each(["href","load","cache"],function(a,b){c.removeData(b+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}),b.cookie&&this._cookie(null,b.cookie),this},add:function(c,d,e){e===b&&(e=this.anchors.length);var f=this,g=this.options,h=a(g.tabTemplate.replace(/#\{href\}/g,c).replace(/#\{label\}/g,d)),i=c.indexOf("#")?this._tabId(a("a",h)[0]):c.replace("#","");h.addClass("ui-state-default ui-corner-top").data("destroy.tabs",!0);var j=f.element.find("#"+i);return j.length||(j=a(g.panelTemplate).attr("id",i).data("destroy.tabs",!0)),j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),e>=this.lis.length?(h.appendTo(this.list),j.appendTo(this.list[0].parentNode)):(h.insertBefore(this.lis[e]),j.insertBefore(this.panels[e])),g.disabled=a.map(g.disabled,function(a,b){return a>=e?++a:a}),this._tabify(),this.anchors.length==1&&(g.selected=0,h.addClass("ui-tabs-selected ui-state-active"),j.removeClass("ui-tabs-hide"),this.element.queue("tabs",function(){f._trigger("show",null,f._ui(f.anchors[0],f.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[e],this.panels[e])),this},remove:function(b){b=this._getIndex(b);var c=this.options,d=this.lis.eq(b).remove(),e=this.panels.eq(b).remove();return d.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(b+(b+1=b?--a:a}),this._tabify(),this._trigger("remove",null,this._ui(d.find("a")[0],e[0])),this},enable:function(b){b=this._getIndex(b);var c=this.options;if(a.inArray(b,c.disabled)==-1)return;return this.lis.eq(b).removeClass("ui-state-disabled"),c.disabled=a.grep(c.disabled,function(a,c){return a!=b}),this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b])),this},disable:function(a){a=this._getIndex(a);var b=this,c=this.options;return a!=c.selected&&(this.lis.eq(a).addClass("ui-state-disabled"),c.disabled.push(a),c.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))),this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;return this.anchors.eq(a).trigger(this.options.event+".tabs"),this},load:function(b){b=this._getIndex(b);var c=this,d=this.options,e=this.anchors.eq(b)[0],f=a.data(e,"load.tabs");this.abort();if(!f||this.element.queue("tabs").length!==0&&a.data(e,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(b).addClass("ui-state-processing");if(d.spinner){var g=a("span",e);g.data("label.tabs",g.html()).html(d.spinner)}return this.xhr=a.ajax(a.extend({},d.ajaxOptions,{url:f,success:function(f,g){c.element.find(c._sanitizeSelector(e.hash)).html(f),c._cleanup(),d.cache&&a.data(e,"cache.tabs",!0),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxOptions.success(f,g)}catch(h){}},error:function(a,f,g){c._cleanup(),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxOptions.error(a,f,b,e)}catch(g){}}})),c.element.dequeue("tabs"),this},abort:function(){return this.element.queue([]),this.panels.stop(!1,!0),this.element.queue("tabs",this.element.queue("tabs").splice(-2,2)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup(),this},url:function(a,b){return this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",b),this},length:function(){return this.anchors.length}}),a.extend(a.ui.tabs,{version:"1.8.22"}),a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(a,b){var c=this,d=this.options,e=c._rotate||(c._rotate=function(b){clearTimeout(c.rotation),c.rotation=setTimeout(function(){var a=d.selected;c.select(++a0?max_value[1]:undefined}var r=max?Number(max.substring(0,max.length-2)):Math.NaN;return isNaN(r)||r<=0?d=="width"?jquery_img.width():jquery_img.height():r}},getCorrectPostfix:function(){return this.options.imageSizesPostfix[this.selectedSizeIndex]},postfixToIndex:function(postfix){var index;jQuery.each(resizer.options.imageSizesPostfix,function(i,el){if(el==postfix){index=i;return true}});return index},replaceImage:function(i,newImg){var oldImg=this.options.objImgs[i];if(newImg.src&&newImg.src!=oldImg.src&&oldImg.parentNode){if(newImg.parentNode){newImg=newImg.cloneNode(false)}oldImg.parentNode.replaceChild(newImg,oldImg);this.options.objImgs[i]=newImg}this.resize(i,this.options.imageSizes[this.selectedSizeIndex])},up:function(){if(this.selectedSizeIndex0){this.slideStop((this.selectedSizeIndex-1)*this.stepsBetween)}}};var resizerInit=function(){var $resizer=$("#resizer");if($resizer.length>0){var options=$resizer.get(0).onclick();var $divs=$(".b-photoArray .h-photoArray-cell1");resizer.init(jQuery.extend({imageSizes:[100,150,300,500],imageSizesPostfix:["XS","S","M","L"],objDivs:$divs,objImgs:$(".image a.photo img",$divs),cookieName:"f_settings_imagesize",obj:$("#border",$resizer),button:{up:$("#btn-up",$resizer),down:$("#btn-down",$resizer)}},options))}$resizer.fadeIn("slow")};resizerInit()});(function($){$.createControl=function(parent_class){var res=function(){if(arguments.length>0){return this.__init__.apply(this,arguments)}};if(parent_class){res.prototype=new parent_class}return res};$.commonControl=$.createControl();$.commonControl.prototype.__init__=function(control,params){this.control=control;this.params=params||{};return this.init()};$.commonControl.prototype.$=function(){return $(this.control)};$.commonControl.prototype.init=function(){};$.commonControl.prototype.modificator=function(cname){this.previous_block=this.previous_block||"";if(cname){this.previous_block=this.params.block.concat("_",cname)}return this.previous_block};$.commonControl.prototype.setModificator=function(mod){var $control=$(this.control);var was=this.modificator();$control.removeClass(was);if(mod){var becomes=this.modificator(mod);$control.addClass(becomes)}}})(jQuery);(function($){$.thread=function(proc){var thread=$.browser.msie?function(){var args=arguments;var res;var body=document.body||document.documentElement;var handler=function(event){if(event.propertyName!==thread.id){return}res=thread.proc.apply(thread,args)};body.attachEvent("onpropertychange",handler);body[thread.id]=void 0;body.detachEvent("onpropertychange",handler);return res}:function(){var args=arguments;var res;var handler=function(event){res=thread.proc.apply(thread,args)};document.addEventListener(thread.id,handler,false);var event=document.createEvent("UIEvents");event.initEvent(thread.id,false,false);document.dispatchEvent(event);document.removeEventListener(thread.id,handler,false);return res};thread.id="thread."+(new Date).getTime()+Math.random();thread.proc=proc;return thread}})(jQuery);(function($){$.component=function(arg){var klass=arguments.callee;if(!(this instanceof klass))return new klass(arg);var id=this.id=arg.id||(new Date).getTime();var latencyCreate=this.latency=arg.latencyCreate||arg.latency||50;var latencyClean=this.latencyClean=arg.latencyClean||arg.laency||100;var fieldName=this.fieldName=arg.fieldName||"jQuery-component-"+id;var prepare=this.prepare=arg.prepare?$.thread(arg.prepare):function(){};var factory=this.factory=$.thread(arg.factory);var tag=this.tag=arg.tag;var chunks=/(?:(\w+):)?([-\w]+)/.exec(tag);var scopeName=this.scoupeName=chunks[1]||"";var tagName=this.tagName=chunks[2]||tag;var key=$.browser.msie?tagName:tag;var all=this.all=[];var index=klass.index[key]||(klass.index[key]=document.getElementsByTagName(key));var attach=this.attach=function(el){prepare(el);var comp=factory(el)||null;el[fieldName]=comp;if(comp)all.push(el);return comp};var attachIfLoaded=this.attachIfLoaded=function(el){prepare(el);var cur=el;do{if(el.nextSibling)return attach(el)}while(cur=cur.parentNode)};var attachIfNot=this.attachIfNot=function(el){var comp=el[fieldName];if(typeof comp==="object")return comp;return attachIfLoaded(el)};var attachWhenScope=this.attachWhenScope=scopeName&&$.browser.msie?function(el){if(el.scopeName===scopeName)return attachIfNot(el)}:attachIfNot;var kill=this.kill=function(el){var comp=el[fieldName];if(comp&&comp.destroy)comp.destroy();el[fieldName]=void 0};var killDead=this.killDead=function(el){var doc=el.ownerDocument.documentElement;var cur=el;do{if(cur===doc)return el}while(cur=cur.parentNode);kill(el)};var find=this.find=function(){for(var i=0,len=index.length;i0}});$.component({tag:"c:Visiblon",factory:Visiblon})});$(function(){var Option=new Fotki.Classes.Widget({create:function(node){var target=$(node).find("input, select, textarea")[0];if(!target)return;var brother=$(target.form.elements[$(target).attr("name")]);return new this({node:node,target:target,brother:brother})}},{init:function(arg){this.node=$(arg.node).click(this.focus.bind(this));this.target=$(arg.target);this.brother=$(arg.brother);return this},focus:function(){var target=this.target[0];this.brother.map(function(){this.checked=false});target.checked=true}});$.component({tag:"c:Option",factory:Option})});$(function(){var tagState=function(state){var tag=$.appstate().tag;var and;if(typeof tag==="object")and=false;else tag=tag&&tag.split(",")||[],and=true;tag.sort();if(arguments.length===0)return{tag:tag.slice(0),and:and};tag=state.tag;if(state.and)tag=tag.join(",");$.appstate({tag:""});$.appstate({tag:tag})};Fotki.Classes.Widget.TagMapItem=Fotki.Classes.Widget({create:function(node){$node=$(node);var text=$node.attr("c:value")||$node.text().trim();if(!text)return;return new this({node:node,text:text})}},{init:function(arg){var updater=this.update.bind(this),swaper=this.swap.bind(this);this.node(arg.node).node().click(swaper);this.text(arg.text);var timer=setInterval(function(){if(!this.node().parent().size())this.destroy()}.bind(this),1e3);this.destroy=function(){$.appstate.unobserve(updater);clearInterval(timer);return this};$.appstate(updater);return this},node:$.Property({name:"node",set:$}),text:$.Property({name:"text",set:String}),swap:function(){var state=tagState();var index=$(state.tag).index(this.text());if(-1===index){state.tag.push(this.text())}else{state.tag.splice(index,1)}tagState(state);return this},update:function(){var state=tagState();if($(state.tag).index(this.text())>=0)this.highlight();else this.lowlight();return this},highlight:function(){this.node().addClass("m-selected");return this},lowlight:function(){this.node().removeClass("m-selected");return this}});$.component({tag:"c:TagMapItem",factory:Fotki.Classes.Widget.TagMapItem});var TagMapClear=Fotki.Classes.Widget({create:function(node){return new this({node:node})}},{init:function(arg){this.node(arg.node).node().click(this.fire.bind(this));$.appstate(this.update.bind(this));return this},node:$.Property({name:"node",set:$}),fire:function(){tagState({tag:[],and:true});return this},update:function(){if(tagState().tag.length)this.lowlight();else this.highlight();return this},highlight:function(){this.node().addClass("m-selected");return this},lowlight:function(){this.node().removeClass("m-selected");return this}});$.component({tag:"c:TagMapClear",factory:TagMapClear});var TagMapModAnd=Fotki.Classes.Widget({create:function(node){var control=$(node).find("input");if(!control.size())return;return new this({node:node,control:control})}},{init:function(arg){this.node(arg.node);this.control(arg.control).control().click(this.swap.bind(this));$.appstate(this.update.bind(this));return this},node:$.Property({name:"node",set:$}),control:$.Property({name:"control",set:$}),swap:function(){var state=tagState();state.and=!state.and;tagState(state);return this},update:function(){var state=tagState();if(state.tag.length>1)this.show();else this.hide();if(state.and)this.highlight();else this.lowlight();return this},highlight:function(){this.control().attr({checked:true});return this},lowlight:function(){this.control().attr({checked:false});return this},show:function(){this.node().show()},hide:function(){this.node().hide()}});$.component({tag:"c:TagMapModAnd",factory:TagMapModAnd})});(function($){$(function(){var count=0;var comments_loaded=false;var reload_count=0;var default_params={type:"horizontal",site_charset:"utf-8",ad_format:"direct",font_size:.9,limit:4,site_bg_color:"FFFFFF",header_bg_color:"F3F3F3",border_type:"block",border_color:"F3F3F3",title_color:"3374DD",url_color:"006600",all_color:"3374DD",text_color:"000000",hover_color:"FF5223",favicon:true};var main_container_id=null;if($("#direct-left").length){main_container_id="direct-left"}else if($("#direct-bottom").length){main_container_id="direct-bottom"}else if($("#direct-right").length){main_container_id="direct-right"}var clear_right_direct=function(){$("#direct-right").addClass("g-hidden")};var settings={main:{container_id:main_container_id,default_params:$.extend({},default_params,{font_size:1,title_font_size:2}),restore:function(){$("#direct-bottom").removeClass("g-hidden")},clear:function(){},container:null,params:null},right:{container_id:"direct-right",default_params:$.extend({},default_params,{favicon:false,title_font_size:1}),restore:function(){$("#direct-right").removeClass("g-hidden")},clear:function(){},container:null,params:null}};var directReady=function(){return"Ya"in window&&Ya.Direct&&Ya.Direct.insertInto};var setRightMinHeight=function(){var $preview=$(".js-preview");var $actions=$("#foto-actions");var $limit=$(".b-limit-comments");var $right=$(".h-page-r:eq(0)");var min_height=$preview.outerHeight(true)+$actions.outerHeight(true)+$limit.outerHeight(true);var correction=-20;$right.css({"min-height":min_height+correction+"px"})};var renderDirect=function(block_type){var options=settings[block_type];var container=options.container||(options.container=document.getElementById(options.container_id));if(container){params=options.params||(options.params=$.extend({},options.default_params,container.onclick()));options.clear();options.restore();if((reload_count>1||location.hash==="#comments")&&setRightMinHeight){setRightMinHeight();setRightMinHeight=false}try{if(!!params.stat_id){window.yandex_stat_id=params.stat_id}else{window.yandex_stat_id=undefined}Ya.Direct.insertInto(params.partnerId,options.container_id,params);reload_count++}catch(ex){}}};var reload=function(evt,comments_count){var params;var block_type="main";if(typeof comments_count!=="undefined"){if(!directReady()){count=comments_count;return}if(comments_count>5){block_type="right"}else{clear_right_direct();return}}renderDirect(block_type)};$(document).one("comments.loaded",function(){comments_loaded=true});$(document).bind("comments.loaded",reload);(function(w,d,n,s,t){w[n]=w[n]||[];w[n].push(function(){var f=window.Fotki||{};var has_comments=!!f.comments_present;renderDirect("main");if(has_comments&&comments_loaded){reload(null,count)}});t=d.documentElement.firstChild;s=d.createElement("script");s.type="text/javascript";s.src="//an.yandex.ru/system/context_test.js";s.setAttribute("async","true");t.insertBefore(s,t.firstChild)})(window,document,"yandexContextAsyncCallbacks")})})(jQuery);(function(){var lastLogin=$.cookie("yandex_login");$(document).bind("fotki.checkLogin",function(evt){if(lastLogin!==$.cookie("yandex_login")){location.reload()}});$(window).bind("focus",function(evt){$(document).trigger("fotki.checkLogin")})})();if(!Array.prototype.every){Array.prototype.every=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var thisp=arguments[1];for(var i=0;i>>0;if(typeof fun!="function"){throw new TypeError}var res=[];var thisp=arguments[1];for(var i=0;i>>0;if(typeof fun!="function"){throw new TypeError}var thisp=arguments[1];for(var i=0;i>>0;var from=Number(arguments[1])||0;from=from<0?Math.ceil(from):Math.floor(from);if(from<0){from+=len}for(;from=len){from=len-1}}for(;from>-1;from--){if(from in this&&this[from]===elt){return from}}return-1}}if(!Array.prototype.map){Array.prototype.map=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var res=new Array(len);var thisp=arguments[1];for(var i=0;i>>0;var rv;if(typeof fun!="function"){throw new TypeError}if(len===0&&arguments.length==1){throw new TypeError}var i=0;if(arguments.length>=2){rv=arguments[1]}else{do{if(i in this){rv=this[i++];break}if(++i>=len){throw new TypeError}}while(true)}for(;i>>0;var rv;if(typeof fun!="function"){throw new TypeError}if(len===0&&arguments.length===1){throw new TypeError}var i=len-1;if(arguments.length>=2){rv=arguments[1]}else{do{if(i in this){rv=this[i--];break}if(--i<0){throw new TypeError}}while(true)}for(;i>=0;i--){if(i in this){rv=fun.call(null,rv,this[i],i,this)}}return rv}}if(!Array.prototype.some){Array.prototype.some=function(fun){var i=0;var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var thisp=arguments[1];for(;i");var Utils={};Utils.plural=function(num,forms,withoutNumber){var res=2;var num_10=num%10;var num_100=num%100;if(num===0){if(forms[3]){return forms[3]}}else{if(num_100<5||num_100>20){if(num_10===1){res=0}else{if(num_10>=2&&num_10<=4){res=1}}}}if(withoutNumber){return forms[res]}else{return num+" "+forms[res]}};Utils.normalizeSpace=function(str){return $.trim(str.replace(normalizeSpaceRegexp," "))};Utils.nc=function(prefix){return this.generateId(prefix)};Utils.generateId=function(prefix){return(prefix||"")+((new Date).getTime()+Math.round(Math.random()*1e4))};Utils.unique=function(array){var newArray=[];for(var i=0;i/g,">").replace(/"/g,""").replace(/'/g,"'")};Utils.unescape=function(str){var result=$ta.html(str||"").text();$ta.html("");return result};Utils.ellipsis=function(str,limit){if(!limit){limit=256}return str.lengthMAX_MSG){data.unread=MAX_MSG+"+ ";$counter.text(data.unread+COUNTER_FORMS[2])}else{$counter.text(Fotki.utils.plural(Number(data.unread),COUNTER_FORMS))}}},complete:function(){setTimeout(function(){refreshCounter()},REFRESH_THROTTLE)}})};$(function(){if(isLoggedIn){initCounter();refreshCounter()}})})();var no={};no.de=typeof window==="undefined";no.inherit=function(ctor,base,mixin){var F=function(){};F.prototype=base.prototype;var proto=ctor.prototype=new F;if(mixin){if(Array.isArray(mixin)){for(var i=0,l=mixin.length;i').insertBefore(this.node)}if(this._type==="popup"&&!this.parent&&!(this.where instanceof Array)){var parent=$(this.where).parentsUntil($holder(),"[data-nb]").last()[0];if(parent){parent=nb.block(parent);if(parent._type==="popup"){this.parent=parent}}}this.$node.detach();nb.trigger("popup-before-open",this);if(this._type==="modal"){$paranja().append(this.node).show()}else{$holder(true).append(this.node);this._move()}this.show();nb.trigger("popup-opened",this)}function onclose(){this.where=null;this.toggler=null;this.parent=null;this.trigger("popup-before-close");nb.trigger("popup-before-close",this);if(this._type==="modal"){$paranja().hide()}this.hide();if(this._placeholder){this._placeholder.after(this.node)}nb.trigger("popup-closed",this);return false}function onmove(){this._move()}function move(){if(this.modal){return}var how=normalizeHow(this.how);var MIN_LEFT=this.options.tail_offset||27;var TAIL_WIDTH=this.options.tail_width||10;var orig_what=nb.rect(this.node);var where=nb.rect(this.where);var adj_what=nb.rect.adjust(orig_what,where,how);var what=adj_what.rect;var tailDir;var needTail=this.hasTail&&(tailDir=tailDirs(how.what,how.where));if(needTail){this.setMod("popup_to",tailDir[1]);var css={left:"",right:"",top:"",bottom:""};if(tailDir[0]!=="center"){var offset2origin=nb.vec.scale(adj_what.point,-1);var transform=transforms[tailDir.join(" ")];var t_what=nb.rect.trans(nb.rect.move(what,offset2origin),transform);var t_where=nb.rect.trans(nb.rect.move(where,offset2origin),transform);var r=Math.min(t_what[1][0]/2,t_where[1][0]/2);var x,y;if(MIN_LEFT<=r){x=r}else{x=MIN_LEFT;t_what=nb.rect.move(t_what,[r-MIN_LEFT,0])}t_what=nb.rect.move(t_what,[0,TAIL_WIDTH]);what=nb.rect.move(nb.rect.trans(nb.rect.trans(nb.rect.trans(t_what,transform),transform),transform),adj_what.point);var tailOffset=nb.vec.mulM(transform,nb.vec.mulM(transform,nb.vec.mulM(transform,[x,0])));x=tailOffset[0];y=tailOffset[1];var AUTO="auto";if(x>0){css.left=x;css.right=AUTO}else if(x<0){css.left=AUTO;css.right=-x}else if(y>0){css.top=y;css.bottom=AUTO}else{css.top=AUTO;css.bottom=-y}}else{what=nb.rect.move(what,nb.vec.scale(nb.vec.dir2vec(how.where),TAIL_WIDTH))}this.$tail.css(css).show()}else{this.$tail.hide()}this.$node.css({left:what[0][0],top:what[0][1]});if(this.size){var sizeCss={};if(this.size.width){sizeCss.width=$(this.size.width).outerWidth()}if(this.size.height){sizeCss.height=$(this.size.height).outerHeight()}this.$node.css(sizeCss)}}function normalizeHow(how){how=how||{dir:"bottom"};var what,where;if(how.dir){what=nb.vec.flipDir[how.dir];where=how.dir}else{what=how.what;where=how.where}return{what:normalizeDir(what),where:normalizeDir(where)}}var transforms={"left bottom":[[1,0],[0,1]],"right bottom":[[-1,0],[0,1]],"top left":[[0,1],[-1,0]],"bottom left":[[0,-1],[-1,0]],"right top":[[-1,0],[0,-1]],"left top":[[1,0],[0,-1]],"bottom right":[[0,-1],[1,0]],"top right":[[0,1],[1,0]]};function normalizeDir(dir){dir=dir||"";var parts;switch(dir){case"":parts=["center","center"];break;case"left":case"right":case"center":parts=[dir,"center"];break;case"top":case"bottom":parts=["center",dir];break;default:parts=dir.split(/\s+/);if(/^(?:left|right)/.test(parts[1])||/^(?:top|bottom)/.test(parts[0])){parts=[parts[1],parts[0]]}}return parts}function tailDirs(what,where){if(what[0]===where[0]&&nb.vec.flipDir[what[1]]===where[1]){return where}if(what[1]===where[1]&&nb.vec.flipDir[what[0]]===where[0]){return[where[1],where[0]]}}function show(){this.$node.removeClass("_hidden");this.trigger("show")}function hide(){this.$node.addClass("_hidden");this.trigger("hide")}function destroy(){this.trigger("close");if(this._placeholder){this._placeholder.remove()}nb.Block.prototype.destroy.call(this)}var base={events:{init:oninit,toggle:ontoggle,open:onopen,close:onclose,move:onmove,"click .popup__close":onclose},getOptions:getOptions,_move:move,show:show,hide:hide,destroy:destroy};base=nb.define(base);var $paranja=function(){var div=$('
                      ').appendTo("body").hide();$paranja=function(){return div};return div};var $holder=function(){var div=$(''].join(""),popup_item:'
                    • {title}
                    • ',popup_item_selected:'
                    • {title}
                    • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                      ','','
                      ','
                      ','','','','
                      {content}',"
                      ","
                      ","
                      ","
                      "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                        {items}
                      ',"
                      "].join(""));a.templates.menuItem=a.template(['
                    • ','
                      ','{title}',"
                      ","
                    • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                      ','',"
                      ",""].join("")),itemResult:a(['
                      ','
                      ','
                      ','
                      ',"
                      {title}",'{count}',"
                      ","
                      "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                      {items}{actions}
                      '),actionLink:a('
                      {title}
                      '),expired:a('
                      {title}
                      ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                      ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                       
                      ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                      обновление...
                      ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                      {(moreAsUpdate)[
                      я в курсе
                      ]}
                      {(allItems)({(moreAsUpdate)()[]})}
                      '),viewportLayout:b('
                      {(titleButton)({titleButton})}
                      показать ещё
                      '),group:b('
                      {timestamp}
                      {items}
                      '),item:b('
                      {user} — {title}
                      '),likeItem:b('
                      {user} {appreciate} запись {title}
                      '),recommendItem:b(''),replyItem:b('
                      {user}{separator} {title}
                      '),photoItem:b('
                      {alt}
                      '),videoItem:b('
                      {duration}
                      '),videoContainer:b('
                      {items}
                      '),albumsContainer:b('
                      {items}
                      '),videoCollection:a.template('
                      {content}
                      ',{content:""}),videoCollectionItem:b('
                      {count} видео
                      '),albumItem:b('
                      {title}
                      {count}
                      '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                      {title}
                      '),wishlistItem:b('
                      {title}
                      {title}
                      '),wishlistPromisedItem:b('
                      {info}
                      {title}
                      отменить
                      '),ratingInfo:b(''),onload:b('
                       
                      '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                      ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                      "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/_post-add-includes.js b/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/_post-add-includes.js new file mode 100644 index 0000000..0ac80c6 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/_post-add-includes.js @@ -0,0 +1,11 @@ +(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                      ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                      ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);window.g_sizePicture=function(){return"normal"};Friends.ClassPictureLoader=function(){};Friends.ClassPictureLoader.prototype={className:"pictureloader-",getElement:function(a){return y5.Dom.getDescendant(this.element,"*",this.className+a)},default_enctype:"",initBase:function(a,b){this.__listeners=[];this.element=a;this.file=this.getElement("file");this.form=this.file.form;this.filename=this.getElement("filename");this.filename.value=y5.Utils.generateId();this.label=this.getElement("label")||document.createElement("label");this.__listeners.push(y5.Events.observe("y5:"+y5.Utils.getUniqueId(this.form),this.change,this.form,true,this));this.__listeners.push(y5.Events.observe("y5:load",this.clearFile,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:error",this.error,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:readyforsend",this.sendPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:send",this.showPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:disableByRename",this.disableByRename,this.form,true,this));y5.Events.create("submit",this.enableByRename,this.form,true,this);return this.form},createFromTag:function(a,b){this.initBase(a,b)},sendPictureBase:function(){this.getElement("filename").value=y5.Utils.generateId()},change:function(){this.sendPicture(this.form);if(!this.delListener){var a=this.getElement("delete");if(a){this.delListener=new y5.AEventListener("click",this.deleteImage,a,false,this)}}if(this.delListener){this.delListener.add()}},error:function(){this.deleteImage(this.filename,this.label);y5.Classes.remove(this.label,"active");y5.Classes.remove(this.label,"load");y5.Classes.add(this.label,"error");this.clearFile();if(this.delListener){this.delListener.remove()}},deleteImage:function(){this.filename.value="";y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");y5.Classes.remove(this.label,"active");y5.Classes.add(this.label,"new");try{Friends.ChangeUserpicControl.Constructor.prototype.instance.activateCurrent()}catch(a){}if(this.delListener){this.delListener.remove()}},clearFile:function(){this.filename.value="";var a=this.file.parentNode;a.innerHTML=a.innerHTML;this.file=a.firstChild},sendForm:function(action){var _this=this;y5.Events.notify("y5:disableByRename",_this.form,true,_this.element);_this.enableByRename();_this.setFormEnctype();function response(result,trace){if(!result||!y5.Strings.trim(result)){y5.Events.notify("y5:error",_this.element,true,null);return}result=eval("("+result+")");if(!result.name){y5.Events.notify("y5:error",_this.element,true,null);return}y5.Events.notify("y5:send",_this.element,true,result);_this.restoreFormEnctype()}function error(result,trace){y5.Events.notify("y5:error",_this.element,true,null);_this.restoreFormEnctype()}if($("input[name='sk']").length){var ticketInput=$(''),utInput=$('');$(this.form).append(ticketInput,utInput)}ya.controls.pictureUpload(action,this.form,{},function(_this){return function(){_this.sendFormHandler.apply(_this,arguments)}}(this),error)},sendFormHandler:function(a,b){if(!a||!a.name){y5.Events.notify("y5:error",this.element,true,null);return}y5.Events.notify("y5:send",this.element,true,a);this.restoreFormEnctype();$("input[name='ticket']",this.form).remove();$("input[name='ut']",this.form).remove()},disableByRename:function(b){if(b==this.element){return}var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(c){if(c.name.indexOf("_disabledByRename")===-1){c.name=c.name+"_disabledByRename"}})},enableByRename:function(){var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(b){if(b.name.indexOf("_disabledByRename")!==-1){b.name=b.name.replace("_disabledByRename","")}})},restoreFormEnctype:function(){if(!y5.is_ie){this.form.enctype=this.default_enctype}},setFormEnctype:function(){this.default_enctype=this.form.enctype;this.form.enctype="multipart/form-data"},dectruct:function(){var b,a;for(b=0,a=this.__listeners.length;b"+b.innerHTML+"";new y5.AEventListener("click",this.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,this);y5.Classes.replace(this.dom_status,"load","new");this.imageURL_input.value=a;y5.Events.notify("y5:load",this.element,true,c)};Friends.ClassPictureLoaderOnePhoto.prototype.showPictureByURL=function(b,d){this.modeLoading();var c=new Image(),a=this;$(c).bind("load",function(){var e=document.createElement("img");e.src=b;a.delPhoto();y5.Classes.add(a.dom_status,"new");y5.Classes.remove(a.dom_status,"error");var h=document.createElement("div");var f=document.createElement("i");f=h.appendChild(f);f.className="del";h.appendChild(e);var g=y5.$("photo-holder");g.innerHTML="
                      "+h.innerHTML+"
                      ";new y5.AEventListener("click",a.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,a);y5.Classes.replace(a.dom_status,"load","new");a.dom_image_link.value=d;a.imageURL_input.value=""});$(c).bind("error",function(){a.modeNormal()});c.src=b};y5.loaded("{Friends}.classes.ClassPictureLoaderOnePhoto")});y5.require(["Ajax","AjaxForm","Dom","Events","Utils","Classes","{Friends}.classes.ClassPictureLoader"],function(){Friends.PictureLoader=new Friends.ClassPictureLoader();y5.loaded("{Friends}.PictureLoader")});y5.require(["Events","Strings","Dom","Classes","{Friends}.PictureLoader"],function(){Friends.PictureLoaderPhoto=function(f,g){this.initBase(f,g);this.list=this.getPhotoList();var d=y5.Dom.getDescendants(y5.$("photo-holder"),"i","del");for(var e=0,c=d.length;ethis.last_id){this.last_id=c}}}}this.last_id+=1;return this.last_id};var b="b-input-empty",a=function(){};Friends.PictureLoaderPhoto.prototype.restore=a;Friends.PictureLoaderPhoto.prototype.normalize=function(){var c=this.form.elements,d,f={},e="";for(d=0;d0){$(this.control).find("div.b-write-submit,div.b-preview-write-submit").find("input.submit").each(function(c){var d=a.previewModeBtns[c];var b=this;if(d){$(d).removeClass("i-hidden");if(!d.onclick&&a.params.comment){$(d).unbind("click").click(function(){$(b).click()})}d.onclick=b.onclick;d.value=b.value}});if(!a.params.comment){$(this.previewModeBtns[0]).unbind("click").click(function(){$(a.control).submit()})}}if(this.previewButton){$(this.previewButton).unbind("click").click(function(){a.togglePreview()})}if(this.editButton){$(this.editButton).unbind("click").click(function(){a.toggleEdit()})}if(!this.params.comment){$(this.control).submit(function(b){a.safeSaving();b.preventDefault()})}},getPostType:function(){return this.postType.value},showMessage:function(a){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible"},togglePreview:function(){if(!this.renderPreviewBtn){return}var _this=this;$(".b-captcha").remove();if(_this.params.comment){$('[name="item_no"]',this.control).attr("name","_item_no");$('[name="access_type"]',this.control).attr("name","_access_type")}var prevewReq=new y5.Request.Form(this.url.Preview,{transport:"XML"});function _restoreInput(){if(_this.params.comment){$('[name="_item_no"]',this.control).attr("name","item_no");$('[name="_access_type"]',this.control).attr("name","access_type")}}prevewReq.onload=function(resp){_restoreInput();var response=resp.responseText;var respJSON=null;try{respJSON=y5.JSON.decode(response)}catch(e){this.onerror(e);return}if(respJSON.status&&respJSON.status=="Success"){_this.stopAjaxAnim();_this.toggleState();_this.noteCurrent=$(_this.previewContainer).find("b.b-note-attention")[0];$(_this.previewContent).html(respJSON.html);y5.Components.init(_this.previewContent);ya.helpers.smileHelper.processSmiles(_this.previewContent);$(_this.previewContent).find(".b-control-vote").each(function(i,e){ya.instances.push(new ya.controls.Vote(e))});$(_this.previewContent).yshow();if($.browser.webkit&&navigator.platform&&navigator.platform.match(/win/i)){ya.forceRedraw($(_this.previewContent)[0])}var match,scriptRe=/]*>((.|\n)+?)<\/script>/img;while((match=scriptRe.exec(response))!==null){eval(match[1])}_this.previewInProgress=false}else{this.onerror(respJSON)}};prevewReq.onerror=function(e){_restoreInput();var error_msg=_this.createErrorMessage(e&&e.reason);_this.stopAjaxAnim();$(_this.noteCurrent).html(error_msg);_this.noteCurrent.style.visibility="visible";_this.previewInProgress=false};prevewReq.onexception=prevewReq.onerror;blogCompose.sanitize();if(!this.previewInProgress){this.startAjaxAnim();prevewReq.send(_this.control);this.previewInProgress=true}},toggleEdit:function(){$(".b-captcha").remove();this.noteCurrent.style.visibility="hidden";this.noteCurrent=this.noteEdit;this.toggleState();$(this.previewContent).addClass("i-hidden");if(g_globals.current_location.page=="posts_add_wishlist"){y5.Events.notify("click",$("div.notfound span.b-inplace-action")[0],true)}if(this.textarea){this.textarea.value=this.textarea.value.replace(//ig,"\n")}},onSubmitEnabled:function(){this.renderPreviewBtn=true;$(this.previewBtnContainer).removeClass("disabled")},onSubmitDisabled:function(){this.renderPreviewBtn=false;$(this.previewBtnContainer).addClass("disabled")},toggleState:function(){$(this.formTable).toggleClass("i-hidden");$(this.previewContainer).toggleClass("i-hidden");this.noteCurrent.style.visibility="hidden"},startAjaxAnim:function(){$(this.noteCurrent).removeClass("b-note-attention").addClass("b-note-loading");this.noteCurrent.innerHTML=" ";this.noteCurrent.style.visibility="visible"},stopAjaxAnim:function(){this.noteCurrent.style.visibility="hidden";$(this.noteCurrent).removeClass("b-note-loading").addClass("b-note-attention")},createErrorMessage:function(b){var a;if(b){a=b}else{a="К сожалению, действие совершить не удалось.
                      Попробуйте ещё раз."}return a},createCaptcha:function(a,b){return'

                      '+this.params.dps["save-error--captcha"]+'

                       

                      '},validate:function(){var a="";if(g_globals.current_location.page=="posts_add_invite"){if(y5.Strings.isVoid($(this.control).find(".FieldValidator-field")[0].value)){a="email не задан."}}return a},successHandler:function(a){y5.Events.notify("Friends:formSaved",this.control);window.location.href=a.url},safeSaving:function(){if(this.savingInProcess){return}var a=this.validate();if(a.length){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible";return}var c=this;c.startAjaxAnim();var b=new y5.Request.Form(friendsURL(this.url.Posting),{method:"post",transport:"XML"});b.onload=function(g){c.stopAjaxAnim();if(window.w5GControl){window.w5GControl.clearLocalStorage()}var d="";try{d=g.json(g.responseText)}catch(f){this.onerror();return}if(d.status&&d.status==="Success"){c.successHandler(d)}else{this.onerror(d)}};b.onerror=function(d){var g=typeof d==="object"?d:{reason:false};if(d&&typeof d.responseText==="string"){try{g=y5.JSON.decode(d.responseText)}catch(j){g={reason:false}}}c.savingInProcess=false;c.stopAjaxAnim();var f=$(".b-captcha");if(g.captcha){var i=c.createCaptcha(g.captcha,g.reason);if(f.length){f.replaceWith(i)}else{$(c.noteCurrent).before(i)}}else{if(f.length){f.remove()}}if(g.dps!="post--captcha_key-NOT_EMPTY"){var h=c.createErrorMessage(g.reason);c.noteCurrent.innerHTML=h;c.noteCurrent.style.visibility="visible"}};b.onexception=function(d){this.onerror(d)};blogCompose.sanitize();if(!this.savingInProcess){this.savingInProcess=true;b.send(this.control);this.startAjaxAnim()}}};y5.require(["Dom","Events","Request.Form","URL"],function(){y5.loaded("{Friends}.PostPreviewAndSaving")});y5.require(["Dom","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(d,e){this.control=d;this.params=e||{};this.whether_loaded=false;var b=y5.Dom.getDescendantOrSelf(this.control,"code","Friends-later-ImageLoadable");var f=b.onclick()||{};this.params.src=f.src;var c=document.createElement("img");y5.Classes.add(c,"i-hidden");y5.Dom.replaceNode(b,c);this.image=c;y5.Events.observe("load",this.onLoadHandler,this.image,true,this)};a.prototype.load=function(){if(!this.whether_loaded){this.image.src=this.params.src;this.whether_loaded=true}};a.prototype.onLoadHandler=function(){y5.Classes.remove(this.image,"i-hidden")};Friends.ImageLoadable=a;y5.loaded("{Friends}.ImageLoadable")});Friends.ChooseUserpicControlCached=function(a){this.control=a;this.radios=null;this.userpics=null;this.active=0;this.chooserText=0;this.prevChooser=0;this.nextChooser=0;this.removeText=0;this.init()};Friends.ChooseUserpicControlCached.prototype.showActive=function(e,d){if(!this.userpics.length){return}var a,c,b;this.active=(this.userpics.length+this.active+d)%this.userpics.length;for(c=0,b=this.userpics.length;c'+this.source.getUserpicContent({id:e,size:"normal",src:h})+"";g.appendChild(f);this.userpics.push(f);this.tbody.appendChild(g);this.showActive(null,this.userpics.length-this.active-1);var d,a;if(this.userpics.length>1){for(d=0,a=this.userpics.length;d'+this.source.getUserpicContent({id:c,size:"normal",src:f})+"";e.appendChild(d);this.tbody.appendChild(e);e.style.display="block";d.style.display="block"};Friends.ChooseUserpicControlCached.prototype.del=function(b){var a=this.active;if(typeof(b)!=="undefined"){a=b}y5.Dom.replaceNode(this.userpics[a].control.parentNode);this.userpics.splice(a,1);this.radios.splice(a,1);this.showActive(null,(this.active==0)?0:-1);this.setChooserText();y5.Events.notify("y5:deleteUploadUserpic",Friends,true,row.getElementsByTagName("input")[0].value)};Friends.ChooseUserpicControlCached.prototype.createSelector=function(e,h,j,f){var b=document.createElement("a"),i="";var c=document.createElement("img");c.src=g_globals.img_base+"control/userpic-"+e+i+".gif";c.alt=j;c.title="";var g=(this.userpics.length<2);y5.Classes.add(b,e);b.appendChild(c);b.title=f;return b};Friends.ChooseUserpicControlCached.prototype.changeSelector=function(f,e,d,b){var a=f.firstChild;if(e){y5.Classes.add(f,"disabled");if(a.src.indexOf("-disabled")===-1){a.src=a.src.replace(/.gif/,"-disabled.gif")}a.parentNode.onclick=null;a.parentNode.onmouseover=null;a.parentNode.onmouseout=null}else{var c=a.src.indexOf("userpic-");y5.Classes.remove(f,"disabled");a.src=a.src.replace(/-disabled/,"");a.parentNode.onclick=associateEventWithObject(this,"showActive",d);a.parentNode.onmouseover=associateEventWithObject(this,"mouseover",b);a.parentNode.onmouseout=associateEventWithObject(this,"mouseout",b)}};Friends.ChooseUserpicControlCached.prototype.setChooserText=function(){if(this.userpics.length===0){this.addDefaultUserpic();y5.Classes.add(this.nextChooser,"i-hidden");y5.Classes.add(this.prevChooser,"i-hidden")}var c,a=this.userpics.length;if(a==0){c="нет картинок"}else{if(a==1){c="1 картинка"}else{c=(this.active+1)+" из "+a}}if(this.removeText){if(!a||this.radios[this.active].value==""){y5.Classes.add(this.removeText,"remove-disabled")}else{y5.Classes.remove(this.removeText,"remove-disabled")}}var b=(a<=1);this.changeSelector(this.prevChooser,b,-1,"prev");this.changeSelector(this.nextChooser,b,+1,"next");this.chooserText.innerHTML=c};Friends.ChooseUserpicControlCached.prototype.init=function(){this.tbody=y5.Dom.getDescendant(this.control,"tbody","*");if(!this.tbody){return}var g=this.tbody.getElementsByTagName("tr");var f=g.length;this.radios=new Array(f);this.userpics=new Array(f);this.source=g_source;for(var c=0;c-6){a(this.userpics,b+this.active);b--}};Friends.ChooseUserpicControlCached.prototype.destruct=function(){this.control.control=null;this.control=null};y5.require(["Dom","Events","Classes","Strings","{Friends}.ImageLoadable"],function(){y5.loaded("{Friends}.ChooseUserpicControlCached")});Friends.SubmitShortcut=function(){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.SubmitShortcut.prototype.init=function(d){this.__listeners=[];this.submit_btn=y5.Dom.getDescendant(d,"input","submit");this.submited=false;var f=this.submit_btn.form;y5.Events.observe("y5:form_destructed",b,f,true,this);this.__listeners.push(y5.Events.observe("submit",a,f,true,this));var c=this,g=function(h){if(h.keyCode=="13"&&h.ctrlKey){e.call(c)}};this.__listeners.push(y5.Events.observe("keydown",g,f,true,c));this.__listeners.push(y5.Events.observe("y5:w5g_ctrlEnter",e,Friends,true,this));this.__listeners.push(y5.Events.observe("y5:enableSubmit",function(){this.submited=false},Friends,true,this));function a(h){if(this.submited){h.preventDefault()}this.submited=true}function e(){new y5.Event("click",this.submit_btn,true);this.submit_btn.click()}function b(){var j,h;for(j=0,h=this.__listeners.length;j');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u)}}}d.style.display="none";document.body.appendChild(d);d.submit();return false},fields:["body","title","userpic","access","tags","item_time_day","item_time_month","item_time_year","item_time_minute","URL","url","uid","id","login"]};y5.require(["Dom","Events"],function(){y5.loaded("{Friends}.SaveStateForm")});y5.require([],function(){var a=function(){};a.prototype.init=function(b){this.params=b;this.next_link=b.next_link;this.prev_link=b.prev_link;this.visible_length=b.visible_length||4;y5.Events.observe("click",this.nextLink,this.next_link,true,this);y5.Events.observe("click",this.prevLink,this.prev_link,true,this);return this};a.prototype.setCollection=function(b){this.collection=b;this.left_index=0;this.setLeftmostIndex(0);return this};a.prototype.setLeftmostIndex=function(d){if(!this.collection){return false}this.collection.items.forEach(function(e){y5.Events.notify("y5:UICarousel:hide",this,true,{item:e})},this);this.left_index=(this.collection.items.length+d)%this.collection.items.length;y5.Events.notify("y5:UICarousel:set_index",this,true,{index:d});var b=function(f){var e=this.collection.items;f=(e.length+f)%e.length;var g=e[f];y5.Events.notify("y5:UICarousel:show",this,true,{item:g})},c;for(c=0;c0){this.init.apply(this,arguments)}};a.prototype.init=function(){};a.prototype.select=function(){};a.prototype.unselect=function(){};a.prototype.selectIf=function(b,c){if(c){this.select(b)}};a.prototype.unselectIf=function(b,c){if(c){this.unselect(b)}};a.prototype.add=function(c,d){var b=y5.Utils.getUniqueId(c);if(!(b in this.uids)){this.items.push(c);this.uids[b]={item:c,index:this.items.length-1,data:d};y5.Events.notify("y5:UICollection:add",this,true,{item:c});this.addEvents(c);return false}return true};a.prototype.get=function(e){var d,c;if(typeof e==="number"){d=this.items[e];if(!d){return false}c=y5.Utils.getUniqueId(d)}else{if(typeof e==="string"){c=e}else{if(typeof e==="object"){c=y5.Utils.getUniqueID(d)}}}if(!(c in this.uids)){return false}var b=this.uids[c];return b};a.prototype.remove=function(c){var b=y5.Utils.getUniqueId(c);if(b in this.uids){var d=this.uids[b];this.items.splice(d.index,1);delete this.uids[b];y5.Events.notify("y5:UICollection:remove",this,true,{item:c});return false}return true};a.prototype.addEvents=function(b){};Friends.UICollection=a;y5.loaded("{Friends}.UICollection")});y5.require(["{Friends}.UICollection"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype=new Friends.UICollection();a.prototype.init=function(b){this.items=[];this.uids={};this.selectedItem=null;this.params=b||{};return this};a.prototype.addEvents=function(b){if(!this.params.noclick){y5.Events.observe("click",function(c){this.select(b)},b,true,this)}};a.prototype.select=function(c){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];this.unselect(this.selectedItem);this.selectedItem=c;y5.Events.notify("y5:UICollection:select",this,true,{item:c,data:d.data})};a.prototype.unselect=function(c){if(c!==null){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];y5.Events.notify("y5:UICollection:unselect",this,true,{item:c,data:d.data})}};Friends.UICollectionRadio=a;y5.loaded("{Friends}.UICollectionRadio")});y5.require(["{Friends}.UICollectionRadio","{Friends}.UICarousel","Widget","Utils"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype.init=function(b,c){y5.Events.observe("y5:make",function(d){this.widget=d;this.initAsControl(d.window,this.params);if(!this.has_been_inited){this.initWidgetEvents();this.has_been_inited=true}y5.Classes.add(d.button_ok,"i-hidden")},b,true,this);y5.Events.observe("y5:show",function(d){if(typeof d.caller==="object"){this.caller=d.caller;this.showWidget(b)}},window,true,this);return this};a.prototype.initWidgetEvents=function(){y5.Events.observe("y5:ok",function(){y5.Events.notify("y5:card:ok",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:esc",function(){y5.Events.notify("y5:card:esc",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:cancel",function(){y5.Events.notify("y5:card:cancel",this.caller,true,{caller:this});return true},this.widget.element,true,this)};a.prototype.initAsControl=function(c,d){this.control=c;this.params=d;var b=y5.Dom.getDescendant(this.control,"b","ff");var e=y5.Dom.getDescendant(this.control,"b","rev");this.carousel=new Friends.UICarousel().init({next_link:b,prev_link:e});y5.Events.observe("y5:UICarousel:prev",this.carouselPrev,this.carousel,true,this);y5.Events.observe("y5:UICarousel:next",this.carouselNext,this.carousel,true,this);y5.Events.observe("y5:UICarousel:hide",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.add(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:show",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.remove(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:set_index",function(g){var h=g.index;var f=this.carousel.collection.items.length;var i=this.carousel.visible_length;var j=(i+h-f);if(h==0){y5.Classes.add(this.carousel.prev_link,"i-hidden")}else{y5.Classes.remove(this.carousel.prev_link,"i-hidden")}if(h+i>=f){y5.Classes.add(this.carousel.next_link,"i-hidden")}else{y5.Classes.remove(this.carousel.next_link,"i-hidden")}},this.carousel,true,this);this.holiday_links=new Friends.UICollectionRadio().init();y5.cssQuery("ul.b-list-links li",this.control).forEach(function(f){var h=f.onclick().holiday;var g=y5.Dom.getDescendant(this.control,"tr","holiday_".concat(h));var i=this.initCardsCollection(g);this.holiday_links.add(f,{holiday_id:h,dom_cards:g,cards_collection:i})},this);y5.Events.observe("y5:UICollection:select",this.selectHoliday,this.holiday_links,true,this);y5.Events.observe("y5:UICollection:unselect",this.unselectHoliday,this.holiday_links,true,this);this.holiday_links.select(this.holiday_links.items[0])};a.prototype.showWidget=function(b){y5.Widget.make(b,"Widget.Dialog.Standard",{title:"Вставить открытку",valign:"30%"})};a.prototype.carouselPrev=function(b){};a.prototype.carouselNext=function(b){};a.prototype.initCardsCollection=function(b){var c=new Friends.UICollectionRadio().init();y5.cssQuery("img.postcard",b).forEach(function(d){c.add(d)});y5.Events.observe("y5:UICollection:select",this.choosePostcard,c,true,this);return c};a.prototype.choosePostcard=function(b){this.selected_card=b.item.onclick();this.widget.fireOk()};a.prototype.selectHoliday=function(b){var c=b.item;y5.Classes.add(c,"active");y5.Classes.remove(b.data.dom_cards,"i-hidden");var d=b.data.cards_collection;this.carousel.setCollection(d)};a.prototype.unselectHoliday=function(b){var c=b.item;y5.Classes.remove(c,"active");y5.Classes.add(b.data.dom_cards,"i-hidden")};Friends.Postcard=a;y5.loaded("{Friends}.Postcard")});Friends.ChangeUserpicControl=function(a){if(arguments.length>0){var b=new Friends.ChangeUserpicControl();b.init.apply(this,arguments);return b}};Friends.ChangeUserpicControl.prototype.init=function(a){var b=this;this.control=a;this.current=null;this.pointer=null;this.selected_span=0;this.form=y5.Dom.getAncestorOrSelf(this.control,"form");this.submit=y5.cssQuery('input[type="submit"]',this.form)[0];y5.Events.observe("y5:choose_userpic",this.chooseUserpic,this,true,this);Friends.ChangeUserpicControl.lastCreatedInstance=this};Friends.ChangeUserpicControl.prototype.chooseUserpic=function(a){if(this.pointer!=null){this.pointer.modeUnchoosed()}this.pointer=a.userpic};y5.loaded("{Friends}.ChangeUserpicControl");y5.require(["{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(c,d){this.control=c;this.params=d;this.options=y5.cssQuery("li.answer",this.control);this.options.forEach(function(e,f){y5.cssQuery("input",e).forEach(function(g){this.disableSubmit(g)},this)},this);this.dom_options_holder=y5.Dom.getAncestor(this.options[0],"ul");this.dom_add_option=y5.cssQuery("div.add span",this.control)[0];y5.Events.observe("click",this.addOption,this.dom_add_option,true,this);this.dom_remove_option=y5.cssQuery("span.js-remove",this.control);this.dom_remove_option.forEach(function(f){b(f)})};a.prototype.disableSubmit=function(c){y5.Events.observe("keypress",function(d){var e=d.keyCode;if(e==13){d.stopPropagation();d.preventDefault()}},c,true,this)};a.prototype.addOption=function(){y5.cssQuery(".answer .js-remove",this.control).forEach(function(g){y5.Classes.add(g,"i-hidden")});var c=document.createElement("span");c.innerHTML="";c.className="remove js-remove";b(c);var d=this.options[0].cloneNode(true);var f=y5.cssQuery("li.answer input",this.control);var e=Number(f[f.length-1].id)+1;y5.cssQuery("input",d).forEach(function(g){g.id=e;g.value="";g.name="option".concat(e);this.disableSubmit(g);y5.Dom.insertAfter(c,g)},this);this.dom_options_holder.appendChild(d);this.options.push(d)};var b=function(c){y5.Events.observe("click",function(){y5.Dom.removeNode(y5.Dom.getAncestors(c,"li","answer")[0]);var d=y5.cssQuery("li.answer .js-remove",this.control);if(d.length-1>=0){y5.Classes.remove(d[d.length-1],"i-hidden")}},c,true,this)};Friends.Poll=a;y5.loaded("{Friends}.Poll")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);var b=a.prototype;b.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initUrlBlock();this.initMarketSearchBlock();return this};b.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};b.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};b.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};b.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};b.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};b.initUrlBlock=function(){this.dom_url_block_switcher=y5.Dom.getDescendant(this.control,"span","action-link");this.dom_url_block=y5.Dom.getDescendant(this.control,"div","b-write-link");this.dom_input_url=y5.Dom.getDescendant(this.dom_url_block,"input","*");var c=y5.Dom.getDescendant(this.dom_url_block,"a","*");if(this.dom_input_url.value!=""){this.showURLBlock("nofocus")}y5.Events.observe("click",this.followURL,c,true,this);y5.Events.observe("click",this.showURLBlock,this.dom_url_block_switcher,true,this)};b.showURLBlock=function(){y5.Classes.remove(this.dom_url_block,"i-hidden");if(this.dom_url_block_switcher){y5.Classes.add(this.dom_url_block_switcher,"i-hidden")}if(arguments.length==0){this.dom_input_url.focus()}};b.fillURL=function(c){this.showURLBlock();this.dom_input_url.value=this.processURL(c)};b.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};b.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};b.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};b.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};b.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};b.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};b.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};b.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};b.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};b.notFoundMessage=function(){this.modeNotFound()};b.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};b.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_input_url);this.inputOff(this.dom_title);this.photoloader.disable()};b.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearch:select",a,true);this.modeNormal();this.fillURL(c.model_url);this.server_market_id.value=c.model_id;this.server_market_url.value=c.model_url;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};b.cancelWishcard=function(){this.photoloader.delPhoto();this.dom_input_url.value="";this.server_market_id.value="";this.server_market_url.value="";this.inputOn(this.dom_input_url);this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearch:unselect",a,true)};b.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};b.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.Wishlist=a;y5.loaded("{Friends}.Wishlist")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor","{Friends}.CheckChangesSaved"],function(){var b=Friends.CommonConstructor(Friends.BasicControl);var a=b.prototype;a.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initMarketSearchBlock();return this};a.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};a.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};a.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};a.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};a.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};a.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};a.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};a.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};a.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.dom_changemind=this.dom_changemind||document.createElement("div");this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};a.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};a.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};a.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};a.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};a.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};a.notFoundMessage=function(){this.modeNotFound()};a.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};a.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_title);this.photoloader.disable()};a.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearchGrades:fillWishcard",b,true);this.modeNormal();this.server_market_id.value=c.model_id;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};a.cancelWishcard=function(){this.photoloader.delPhoto();this.server_market_id.value="";this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearchGrades:cancelWishcard",b,true)};a.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};a.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.MarketSearchGrades=b;y5.loaded("{Friends}.MarketSearchGrades")});y5.require(["{Friends}.CommonConstructor","{Friends}.UICollectionRadio","{Friends}.MarketSearchGrades"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(d,e){this.control=d;this.params=e;this.whether_editing_post=!y5.Strings.isVoid(y5.cssQuery('input[name="market_id"]',this.control)[0].value);var c=y5.Dom.getDescendant(this.control,"*","js-major-grades");this.major_smiles=new Friends.UICollectionRadio().init();this.additional_smiles=[];this.dom_all_grades=y5.Dom.getDescendant(this.control,"*","js-all-grades");this.grades_table=y5.Dom.getDescendant(this.control,"*","js-all-grades-table");y5.cssQuery("tr",this.grades_table).forEach(function(f){this.createGradesLine(f)},this);this.on("click",function(){if(this.whether_advanced_grades){this.hideAdvancedGrades()}else{this.showAdvancedGrades()}},this.dom_all_grades);var b=y5.cssQuery("div.active",this.grades_table).length>0;b=b||y5.cssQuery(".js-advanced-grades input").some(function(f){return f.value.length>0});if(b){this.showAdvancedGrades()}y5.Events.observe("y5:UICollection:select",function(f){var g=f.data;y5.Classes.add(f.item,"active");this.show(f.data.dom);g.server.value=g.value},this.major_smiles,true,this);y5.Events.observe("y5:UICollection:unselect",function(f){y5.Classes.remove(f.item,"active");this.hide(f.data.dom)},this.major_smiles,true,this);y5.cssQuery("div.smile",c).forEach(function(f){var g=f.onclick();var h=y5.cssQuery(g.server_selector,this.control)[0];var i=y5.cssQuery(g.selector,c)[0];this.major_smiles.add(f,{dom:i,server:h,value:g.value});var j=y5.Classes.test(f,"active");this.major_smiles.selectIf(f,j)},this);this.on("y5:MarketSearch:select",this.modeAdvanced,Friends.MarketSearchGrades);this.on("y5:MarketSearch:unselect",this.modeSimple,Friends.MarketSearchGrades);if(this.whether_editing_post){this.modeAdvanced(".js-mode-advanced:not(.js-not-editable)")}};a.prototype.enable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.show(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.removeAttribute("disabled")},this)},this)};a.prototype.disable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.hide(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.setAttribute("disabled","disabled")},this)},this)};a.prototype.modeAdvanced=function(b){b=b||".js-mode-advanced";this.enable(b)};a.prototype.modeSimple=function(b){b=b||".js-mode-advanced";this.disable(b);this.hideAdvancedGrades()};a.prototype.showAdvancedGrades=function(){this.whether_advanced_grades=true;y5.Classes.add(this.dom_all_grades,"open");this.enable(".js-advanced-grades")};a.prototype.hideAdvancedGrades=function(){this.whether_advanced_grades=false;y5.Classes.remove(this.dom_all_grades,"open");this.disable(".js-advanced-grades")};a.prototype.createGradesLine=function(c){var b=new Friends.UICollectionRadio().init();y5.Events.observe("y5:UICollection:select",function(d){var e=d.data;y5.Classes.add(d.item,"active");e.server.value=e.value},b,true,this);y5.Events.observe("y5:UICollection:unselect",function(d){y5.Classes.remove(d.item,"active")},b,true,this);y5.cssQuery("div.smile",c).forEach(function(d){var e=d.onclick();var f=y5.cssQuery(e.server_selector,this.control)[0];b.add(d,{server:f,value:e.value});var g=y5.Classes.test(d,"active");b.selectIf(d,g)});this.additional_smiles.push(b)};Friends.MarketGrades=a;y5.loaded("{Friends}.MarketGrades")});Friends.KeywordsControl=new function(){this.createFromTag=function(a,b){new Friends.KeywordsControl.Constructor(a,b)}};Friends.KeywordsControl.Constructor=function(a,b){this.control=a;this.max=b.tagsCount||5;this.keywords=[];this.init()};Friends.KeywordsControl.Constructor.prototype=new function(){this.addKeyword=function(b){var a=y5.Strings.trim(this.input.value);if(a==y5.Strings.EMPTY){return}this.input.value=this.pushTags(a,true).join(", ")};this.delKeyword=function(a,b){y5.Dom.removeNode(a);this.keywords.splice(this.keywords.indexOf(b,0),1);this.saveKeywords();this.showKeywordsLine();this.input.focus()};this.getPreviewKeywords=function(){var c=[],b,a;for(b=0,a=this.keywords.length;b'+y5.Strings.escapeHTML(this.keywords[b])+""}return c.join(", ")};this.addUserTag=function(b){var a=y5.Strings.unescapeHTML(b.target.innerHTML);if(this.pushTag(a)){this.addKeywordElem(a)}};this.pushTags=function(f,g){var e=[],b=f.split(/[,;]/g),c,a;for(c=0,a=b.length;c=this.max){if(!j){var j=document.createElement("span");d.appendChild(j);y5.Classes.add(j,"all-tags");j.appendChild(document.createTextNode(", "))}d=j}var h=d.appendChild(b);new y5.AEventListener("click",this.addUserTag,h,true,this);if((e!=this.max-1)&&(e0){var a=new Friends.UserpicCurrent();a.createFromTag.apply(this,arguments);return a}};Friends.UserpicCurrent.prototype.createFromTag=function(a,b){this.control=a;this.params=b;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.dom_mode=y5.Dom.getDescendant(this.control,"div");y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);this.modeChoosed()};Friends.UserpicCurrent.prototype.modeChoosed=function(){this.is_choosed=true;y5.Classes.remove(this.dom_mode,"unselected");y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});y5.cssQuery('input[name="userpic"]:checked').forEach(function(a){a.checked=false});y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.remove(a,"i-hidden")})};Friends.UserpicCurrent.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.add(this.dom_mode,"unselected");y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.add(a,"i-hidden")})};y5.loaded("{Friends}.UserpicCurrent")});y5.require(["Events","{Friends}.ChangeUserpicControl","{Friends}.CommonConstructor"],function(){Friends.UserpicDeletable=function(){if(arguments.length>0){var a=new Friends.UserpicDeletable();a.createFromTag.apply(a,arguments);return a}};Friends.UserpicDeletable.prototype.createFromTag=function(b,c){this.control=b;this.control_label=y5.Dom.getDescendant(this.control,"label");this.params=c;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.createDrawButton();this.server=new y5.Request.XML("ajax/userpic_do_delete.xml",{method:"POST",callbackContext:this});this.server.onload=this.deleteUserpicHandler;this.server.onerror=this.deleteUserpicHandlerError;y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);var a=y5.Classes.test(this.control_label,"active");if(a){this.modeChoosed()}else{this.modeUnchoosed()}};Friends.UserpicDeletable.prototype.modeChoosed=function(){if(this.is_choosed){return}y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});this.is_choosed=true;y5.Classes.add(this.control_label,"active");y5.Classes.add(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0];a.checked=true};Friends.UserpicDeletable.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.remove(this.control_label,"active");y5.Classes.remove(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0]};Friends.UserpicDeletable.prototype.createDrawButton=function(){this.delete_button=y5.Elements.create(' ');y5.Classes.add(this.userpic.parentNode,"delete-userpic-holder");this.userpic.parentNode.appendChild(this.delete_button);y5.Events.observe("click",this.clickDeleteButton,this.delete_button,true,this)};Friends.UserpicDeletable.prototype.clickDeleteButton=function(a){a.stopPropagation();a.preventDefault();this.deleteUserpic()};Friends.UserpicDeletable.prototype.deleteUserpic=function(){y5.Classes.add(this.userpic,"faded");this.server.send({name:this.params.userpic,host_id:this.params.host_id})};Friends.UserpicDeletable.prototype.deleteUserpicHandler=function(a){var b=y5.JSON.decode(a.responseText);if(b.status==="Success"){y5.Dom.removeNode(this.control)}else{this.deleteUserpicHandlerError()}};Friends.UserpicDeletable.prototype.deleteUserpicHandlerError=function(){y5.Classes.remove(this.userpic,"faded")};y5.loaded("{Friends}.UserpicDeletable")});y5.require(["Events","Strings","Dom","Classes","{Friends}.classes.ClassPictureLoader","{Friends}.UserpicDeletable"],function(){Friends.PictureLoaderAvatar=function(a,c){if(arguments.length>0){var b=new Friends.PictureLoaderAvatar();b.init.apply(b,arguments);return b}};Friends.PictureLoaderAvatar.prototype=new Friends.ClassPictureLoader();Friends.PictureLoaderAvatar.prototype.showPicture=function(a){var g=this;var b=a.name;var e=g_globals.userpic_base+g_source.id+"/"+b+"-"+this.size;var d=this.image;d.onerror=function(h){d.onerror=null;y5.Events.notify("y5:error",g.element,true,null)};y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");d.src=e;this.response=a;y5.Events.notify("y5:load",this.element,true,b);if(!this.params.simpleForm){var f=this.element.cloneNode(true);var c=new Friends.UserpicDeletable(f,{userpic:b,host_id:this.params.host_id});y5.Dom.insertBefore(c.control,this.element);y5.cssQuery('input[type="file"]',c.control).forEach(function(h){y5.Dom.removeNode(h)});y5.cssQuery('input[name="userpic"]',c.control).forEach(function(h){h.value=b});this.deleteImage();c.modeChoosed()}};Friends.PictureLoaderAvatar.prototype.saveUserpic=function(a){};Friends.PictureLoaderAvatar.prototype.saveUserpicHandler=function(c){var b=c.responseText;var a=y5.JSON.decode(b);if(a.name===false){y5.Events.notify("y5:error",this.element,true,null);return false}};Friends.PictureLoaderAvatar.prototype.saveUserpicErrorHandler=function(){y5.Events.notify("y5:error",this.element,true,null)};Friends.PictureLoaderAvatar.prototype.init=function(a,b){this.initBase(a,b);this.image=this.getElement("image");y5.Events.observe("click",function(){y5.Events.notify("y5:userpic_clicked",this,true)},this.image,true,this);this.size=b.size||"normal";this.params=b};Friends.PictureLoaderAvatar.prototype.urlModify=function(){return g_globals.upics_simple_upload};Friends.PictureLoaderAvatar.prototype.sendPicture=function(){this.sendPictureBase();y5.Classes.swap(this.label,"new","load");y5.Classes.remove(this.label,"error");this.sendForm(this.urlModify())};y5.loaded("{Friends}.PictureLoaderAvatar")});var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                      У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                      '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                      "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                      /ig,"
                      ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b=0)&&b(f,!g)}});e(function(){var f=document.body,c=f.appendChild(c=document.createElement("div"));e.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=c.offsetHeight===100;e.support.selectstart="onselectstart" in c;f.removeChild(c).style.display="none"});e.extend(e.ui,{plugin:{add:function(f,c,h){f=e.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g0){return true}f[c]=1;g=f[c]>0;f[c]=0;return g},isOverAxis:function(f,c,g){return f>c&&f'))}function N(a){return a.bind("mouseout",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==C){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.15"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('
                      '))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f==""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]}a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b){b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";if(b==""){return null}var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l){throw"Invalid date"}return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}if(c=this._get(a,"onSelect")){e=this._formatDate(a);c.apply(a.input?a.input[0]:null,[e,a])}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+n+"";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+s+"":f?"":''+s+"";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
                      '+(c?h:"")+(this._isInRange(a,s)?'":"")+(c?"":h)+"
                      ":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x1){switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}}y+='">'}y+='
                      '+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'
                      ';var z=j?'":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="=5?' class="ui-datepicker-week-end"':"")+'>'+q[r]+""}y+=z+"";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,z)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q";var R=!j?"":'";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&ro;R+='";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+""}g++;if(g>11){g=0;m++}y+="
                      '+this._get(a,"weekHeader")+"
                      '+this._get(a,"calculateWeek")(r)+""+(F&&!D?" ":L?''+r.getDate()+"":''+r.getDate()+"")+"
                      "+(l?""+(i[0]>0&&G==i[1]-1?'
                      ':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'':"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='
                      ',o="";if(h||!j){o+=''+i[b]+""}else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(k+=o+(h||!(j&&l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l){k+=''+c+""}else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u){k+=(h||!(j&&l)?" ":"")+o}k+="
                      ";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.15";window["DP_jQuery_"+B]=d})(jQuery);jQuery(function(a){a.datepicker.regional.ru={closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.ru)});(function(a,b){a.namespace("locales.ru");a.locales.ru.chooseDate="выберите дату";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){b(document).ready(function(){b.datepicker.setDefaults(b.datepicker.regional.ru);var f=b(".b-control-datepicker"),h="yy-mm-dd",e="dd.mm.yy";f.datepicker({showOn:"button",buttonImage:g_globals.img_base+"b-calendar-button.png ",buttonImageOnly:true,dateFormat:e,buttonText:a.locale.chooseDate});var d=f[0];if(d&&d.form){b(d.form).bind("submit",function(){d.value=b.datepicker.formatDate(h,f.datepicker("getDate"))})}var c=f[0]?f[0].value:null;if(c){f.datepicker("setDate",b.datepicker.parseDate(h,c))}var g=b(".other-list");if(!a.support_columns(g)){g.columnize({width:200})}})})(window.ya,jQuery); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/_y.js b/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/_y.js new file mode 100644 index 0000000..4f3ce8c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/_y.js @@ -0,0 +1,8 @@ +(function(b){var a={};a.imageError=function(c){var d=c.parentNode,e=d.parentNode.childNodes.length>2?d:d.parentNode;e.innerHTML='
                      Картинка недоступна
                      '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                      ${content}
                      ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                      '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                      ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                      #{title}
                      ');b.setFooter('
                       
                      ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                      a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                      "+""+"
                      ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                      t
                      ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                      ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                      ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                      ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                      ","
                      "],thead:[1,"","
                      "],tr:[2,"","
                      "],td:[3,"","
                      "],col:[2,"","
                      "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                      ","
                      "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                      ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Найти новых друзей — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Написать отзыв — я.ру
                      + + + +
                      ПоискПочтаДискКалендарьДеньгиМой КругФотки
                      + + Выход

                      Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                      1 из 11
                      портрет для этой записи

                      Кто увидит запись:

                      Написать отзыв

                      К сожалению, заданным условиям не соответствует ни один товар.
                      +Вы можете воспользоваться каталогом товаров на Маркете.
                      закрыть
                      Желание не введено
                      Мы нашли много вариантов и не можем сделать выбор за вас. Вы можете ознакомиться с предложением здесь.
                      закрыть
                      Если вы передумали, начните заново.
                      Кажется вы уже писали отзыв на этот товар на Яндекс.маркете. Вы можете отредактировать свой отзыв на iPhone 3g
                      закрыть
                      Прикрепить фото

                      Вставить изображение

                      Ошибка загрузки изображения
                      Добавить ссылку
                      :-((
                      :-(
                      :-|
                      :-)
                      :-))
                      • полное разочарование
                      • не самый лучший выбор
                      • не хуже и не лучше других
                      • вполне достойный выбор
                      • всем рекомендую
                      подробный отзыв
                      Качество изготовления
                      :-((
                      :-(
                      :-|
                      :-)
                      :-))
                      Адекватность цены
                      :-((
                      :-(
                      :-|
                      :-)
                      :-))
                      Удобство эксплуатации
                      :-((
                      :-(
                      :-|
                      :-)
                      :-))

                      Добавить метки
                      Метки
                      Основные: Debian, EVE, Linux, Windows, Геленджик, Интернет, Книги, Музыка, Я, Яндекс
                      или посмотреть, что получится
                       
                      или продолжить редактирование

                      + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_opinion.xml b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_opinion.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_opinion.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                        {popup_items}
                      '].join(""),popup_item:'
                    • {title}
                    • ',popup_item_selected:'
                    • {title}
                    • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                      ','','
                      ','
                      ','','','','
                      {content}',"
                      ","
                      ","
                      ","
                      "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                        {items}
                      ',""].join(""));a.templates.menuItem=a.template(['
                    • ','
                      ','{title}',"
                      ","
                    • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                      ','',"
                      ",""].join("")),itemResult:a(['
                      ','
                      ','
                      ','
                      ',"
                      {title}",'{count}',"
                      ","
                      "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                      {items}{actions}
                      '),actionLink:a('
                      {title}
                      '),expired:a('
                      {title}
                      ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                      ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                       
                      ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                      обновление...
                      ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                      {(moreAsUpdate)[
                      я в курсе
                      ]}
                      {(allItems)({(moreAsUpdate)()[]})}
                      '),viewportLayout:b('
                      {(titleButton)({titleButton})}
                      показать ещё
                      '),group:b('
                      {timestamp}
                      {items}
                      '),item:b('
                      {user} — {title}
                      '),likeItem:b('
                      {user} {appreciate} запись {title}
                      '),recommendItem:b(''),replyItem:b('
                      {user}{separator} {title}
                      '),photoItem:b('
                      {alt}
                      '),videoItem:b('
                      {duration}
                      '),videoContainer:b('
                      {items}
                      '),albumsContainer:b('
                      {items}
                      '),videoCollection:a.template('
                      {content}
                      ',{content:""}),videoCollectionItem:b('
                      {count} видео
                      '),albumItem:b('
                      {title}
                      {count}
                      '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                      {title}
                      '),wishlistItem:b('
                      {title}
                      {title}
                      '),wishlistPromisedItem:b('
                      {info}
                      {title}
                      отменить
                      '),ratingInfo:b(''),onload:b('
                       
                      '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                      ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                      "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/_post-add-includes.js b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/_post-add-includes.js new file mode 100644 index 0000000..0ac80c6 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/_post-add-includes.js @@ -0,0 +1,11 @@ +(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                      ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                      ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);window.g_sizePicture=function(){return"normal"};Friends.ClassPictureLoader=function(){};Friends.ClassPictureLoader.prototype={className:"pictureloader-",getElement:function(a){return y5.Dom.getDescendant(this.element,"*",this.className+a)},default_enctype:"",initBase:function(a,b){this.__listeners=[];this.element=a;this.file=this.getElement("file");this.form=this.file.form;this.filename=this.getElement("filename");this.filename.value=y5.Utils.generateId();this.label=this.getElement("label")||document.createElement("label");this.__listeners.push(y5.Events.observe("y5:"+y5.Utils.getUniqueId(this.form),this.change,this.form,true,this));this.__listeners.push(y5.Events.observe("y5:load",this.clearFile,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:error",this.error,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:readyforsend",this.sendPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:send",this.showPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:disableByRename",this.disableByRename,this.form,true,this));y5.Events.create("submit",this.enableByRename,this.form,true,this);return this.form},createFromTag:function(a,b){this.initBase(a,b)},sendPictureBase:function(){this.getElement("filename").value=y5.Utils.generateId()},change:function(){this.sendPicture(this.form);if(!this.delListener){var a=this.getElement("delete");if(a){this.delListener=new y5.AEventListener("click",this.deleteImage,a,false,this)}}if(this.delListener){this.delListener.add()}},error:function(){this.deleteImage(this.filename,this.label);y5.Classes.remove(this.label,"active");y5.Classes.remove(this.label,"load");y5.Classes.add(this.label,"error");this.clearFile();if(this.delListener){this.delListener.remove()}},deleteImage:function(){this.filename.value="";y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");y5.Classes.remove(this.label,"active");y5.Classes.add(this.label,"new");try{Friends.ChangeUserpicControl.Constructor.prototype.instance.activateCurrent()}catch(a){}if(this.delListener){this.delListener.remove()}},clearFile:function(){this.filename.value="";var a=this.file.parentNode;a.innerHTML=a.innerHTML;this.file=a.firstChild},sendForm:function(action){var _this=this;y5.Events.notify("y5:disableByRename",_this.form,true,_this.element);_this.enableByRename();_this.setFormEnctype();function response(result,trace){if(!result||!y5.Strings.trim(result)){y5.Events.notify("y5:error",_this.element,true,null);return}result=eval("("+result+")");if(!result.name){y5.Events.notify("y5:error",_this.element,true,null);return}y5.Events.notify("y5:send",_this.element,true,result);_this.restoreFormEnctype()}function error(result,trace){y5.Events.notify("y5:error",_this.element,true,null);_this.restoreFormEnctype()}if($("input[name='sk']").length){var ticketInput=$(''),utInput=$('');$(this.form).append(ticketInput,utInput)}ya.controls.pictureUpload(action,this.form,{},function(_this){return function(){_this.sendFormHandler.apply(_this,arguments)}}(this),error)},sendFormHandler:function(a,b){if(!a||!a.name){y5.Events.notify("y5:error",this.element,true,null);return}y5.Events.notify("y5:send",this.element,true,a);this.restoreFormEnctype();$("input[name='ticket']",this.form).remove();$("input[name='ut']",this.form).remove()},disableByRename:function(b){if(b==this.element){return}var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(c){if(c.name.indexOf("_disabledByRename")===-1){c.name=c.name+"_disabledByRename"}})},enableByRename:function(){var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(b){if(b.name.indexOf("_disabledByRename")!==-1){b.name=b.name.replace("_disabledByRename","")}})},restoreFormEnctype:function(){if(!y5.is_ie){this.form.enctype=this.default_enctype}},setFormEnctype:function(){this.default_enctype=this.form.enctype;this.form.enctype="multipart/form-data"},dectruct:function(){var b,a;for(b=0,a=this.__listeners.length;b"+b.innerHTML+"";new y5.AEventListener("click",this.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,this);y5.Classes.replace(this.dom_status,"load","new");this.imageURL_input.value=a;y5.Events.notify("y5:load",this.element,true,c)};Friends.ClassPictureLoaderOnePhoto.prototype.showPictureByURL=function(b,d){this.modeLoading();var c=new Image(),a=this;$(c).bind("load",function(){var e=document.createElement("img");e.src=b;a.delPhoto();y5.Classes.add(a.dom_status,"new");y5.Classes.remove(a.dom_status,"error");var h=document.createElement("div");var f=document.createElement("i");f=h.appendChild(f);f.className="del";h.appendChild(e);var g=y5.$("photo-holder");g.innerHTML="
                      "+h.innerHTML+"
                      ";new y5.AEventListener("click",a.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,a);y5.Classes.replace(a.dom_status,"load","new");a.dom_image_link.value=d;a.imageURL_input.value=""});$(c).bind("error",function(){a.modeNormal()});c.src=b};y5.loaded("{Friends}.classes.ClassPictureLoaderOnePhoto")});y5.require(["Ajax","AjaxForm","Dom","Events","Utils","Classes","{Friends}.classes.ClassPictureLoader"],function(){Friends.PictureLoader=new Friends.ClassPictureLoader();y5.loaded("{Friends}.PictureLoader")});y5.require(["Events","Strings","Dom","Classes","{Friends}.PictureLoader"],function(){Friends.PictureLoaderPhoto=function(f,g){this.initBase(f,g);this.list=this.getPhotoList();var d=y5.Dom.getDescendants(y5.$("photo-holder"),"i","del");for(var e=0,c=d.length;ethis.last_id){this.last_id=c}}}}this.last_id+=1;return this.last_id};var b="b-input-empty",a=function(){};Friends.PictureLoaderPhoto.prototype.restore=a;Friends.PictureLoaderPhoto.prototype.normalize=function(){var c=this.form.elements,d,f={},e="";for(d=0;d0){$(this.control).find("div.b-write-submit,div.b-preview-write-submit").find("input.submit").each(function(c){var d=a.previewModeBtns[c];var b=this;if(d){$(d).removeClass("i-hidden");if(!d.onclick&&a.params.comment){$(d).unbind("click").click(function(){$(b).click()})}d.onclick=b.onclick;d.value=b.value}});if(!a.params.comment){$(this.previewModeBtns[0]).unbind("click").click(function(){$(a.control).submit()})}}if(this.previewButton){$(this.previewButton).unbind("click").click(function(){a.togglePreview()})}if(this.editButton){$(this.editButton).unbind("click").click(function(){a.toggleEdit()})}if(!this.params.comment){$(this.control).submit(function(b){a.safeSaving();b.preventDefault()})}},getPostType:function(){return this.postType.value},showMessage:function(a){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible"},togglePreview:function(){if(!this.renderPreviewBtn){return}var _this=this;$(".b-captcha").remove();if(_this.params.comment){$('[name="item_no"]',this.control).attr("name","_item_no");$('[name="access_type"]',this.control).attr("name","_access_type")}var prevewReq=new y5.Request.Form(this.url.Preview,{transport:"XML"});function _restoreInput(){if(_this.params.comment){$('[name="_item_no"]',this.control).attr("name","item_no");$('[name="_access_type"]',this.control).attr("name","access_type")}}prevewReq.onload=function(resp){_restoreInput();var response=resp.responseText;var respJSON=null;try{respJSON=y5.JSON.decode(response)}catch(e){this.onerror(e);return}if(respJSON.status&&respJSON.status=="Success"){_this.stopAjaxAnim();_this.toggleState();_this.noteCurrent=$(_this.previewContainer).find("b.b-note-attention")[0];$(_this.previewContent).html(respJSON.html);y5.Components.init(_this.previewContent);ya.helpers.smileHelper.processSmiles(_this.previewContent);$(_this.previewContent).find(".b-control-vote").each(function(i,e){ya.instances.push(new ya.controls.Vote(e))});$(_this.previewContent).yshow();if($.browser.webkit&&navigator.platform&&navigator.platform.match(/win/i)){ya.forceRedraw($(_this.previewContent)[0])}var match,scriptRe=/]*>((.|\n)+?)<\/script>/img;while((match=scriptRe.exec(response))!==null){eval(match[1])}_this.previewInProgress=false}else{this.onerror(respJSON)}};prevewReq.onerror=function(e){_restoreInput();var error_msg=_this.createErrorMessage(e&&e.reason);_this.stopAjaxAnim();$(_this.noteCurrent).html(error_msg);_this.noteCurrent.style.visibility="visible";_this.previewInProgress=false};prevewReq.onexception=prevewReq.onerror;blogCompose.sanitize();if(!this.previewInProgress){this.startAjaxAnim();prevewReq.send(_this.control);this.previewInProgress=true}},toggleEdit:function(){$(".b-captcha").remove();this.noteCurrent.style.visibility="hidden";this.noteCurrent=this.noteEdit;this.toggleState();$(this.previewContent).addClass("i-hidden");if(g_globals.current_location.page=="posts_add_wishlist"){y5.Events.notify("click",$("div.notfound span.b-inplace-action")[0],true)}if(this.textarea){this.textarea.value=this.textarea.value.replace(//ig,"\n")}},onSubmitEnabled:function(){this.renderPreviewBtn=true;$(this.previewBtnContainer).removeClass("disabled")},onSubmitDisabled:function(){this.renderPreviewBtn=false;$(this.previewBtnContainer).addClass("disabled")},toggleState:function(){$(this.formTable).toggleClass("i-hidden");$(this.previewContainer).toggleClass("i-hidden");this.noteCurrent.style.visibility="hidden"},startAjaxAnim:function(){$(this.noteCurrent).removeClass("b-note-attention").addClass("b-note-loading");this.noteCurrent.innerHTML=" ";this.noteCurrent.style.visibility="visible"},stopAjaxAnim:function(){this.noteCurrent.style.visibility="hidden";$(this.noteCurrent).removeClass("b-note-loading").addClass("b-note-attention")},createErrorMessage:function(b){var a;if(b){a=b}else{a="К сожалению, действие совершить не удалось.
                      Попробуйте ещё раз."}return a},createCaptcha:function(a,b){return'

                      '+this.params.dps["save-error--captcha"]+'

                       

                      '},validate:function(){var a="";if(g_globals.current_location.page=="posts_add_invite"){if(y5.Strings.isVoid($(this.control).find(".FieldValidator-field")[0].value)){a="email не задан."}}return a},successHandler:function(a){y5.Events.notify("Friends:formSaved",this.control);window.location.href=a.url},safeSaving:function(){if(this.savingInProcess){return}var a=this.validate();if(a.length){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible";return}var c=this;c.startAjaxAnim();var b=new y5.Request.Form(friendsURL(this.url.Posting),{method:"post",transport:"XML"});b.onload=function(g){c.stopAjaxAnim();if(window.w5GControl){window.w5GControl.clearLocalStorage()}var d="";try{d=g.json(g.responseText)}catch(f){this.onerror();return}if(d.status&&d.status==="Success"){c.successHandler(d)}else{this.onerror(d)}};b.onerror=function(d){var g=typeof d==="object"?d:{reason:false};if(d&&typeof d.responseText==="string"){try{g=y5.JSON.decode(d.responseText)}catch(j){g={reason:false}}}c.savingInProcess=false;c.stopAjaxAnim();var f=$(".b-captcha");if(g.captcha){var i=c.createCaptcha(g.captcha,g.reason);if(f.length){f.replaceWith(i)}else{$(c.noteCurrent).before(i)}}else{if(f.length){f.remove()}}if(g.dps!="post--captcha_key-NOT_EMPTY"){var h=c.createErrorMessage(g.reason);c.noteCurrent.innerHTML=h;c.noteCurrent.style.visibility="visible"}};b.onexception=function(d){this.onerror(d)};blogCompose.sanitize();if(!this.savingInProcess){this.savingInProcess=true;b.send(this.control);this.startAjaxAnim()}}};y5.require(["Dom","Events","Request.Form","URL"],function(){y5.loaded("{Friends}.PostPreviewAndSaving")});y5.require(["Dom","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(d,e){this.control=d;this.params=e||{};this.whether_loaded=false;var b=y5.Dom.getDescendantOrSelf(this.control,"code","Friends-later-ImageLoadable");var f=b.onclick()||{};this.params.src=f.src;var c=document.createElement("img");y5.Classes.add(c,"i-hidden");y5.Dom.replaceNode(b,c);this.image=c;y5.Events.observe("load",this.onLoadHandler,this.image,true,this)};a.prototype.load=function(){if(!this.whether_loaded){this.image.src=this.params.src;this.whether_loaded=true}};a.prototype.onLoadHandler=function(){y5.Classes.remove(this.image,"i-hidden")};Friends.ImageLoadable=a;y5.loaded("{Friends}.ImageLoadable")});Friends.ChooseUserpicControlCached=function(a){this.control=a;this.radios=null;this.userpics=null;this.active=0;this.chooserText=0;this.prevChooser=0;this.nextChooser=0;this.removeText=0;this.init()};Friends.ChooseUserpicControlCached.prototype.showActive=function(e,d){if(!this.userpics.length){return}var a,c,b;this.active=(this.userpics.length+this.active+d)%this.userpics.length;for(c=0,b=this.userpics.length;c'+this.source.getUserpicContent({id:e,size:"normal",src:h})+"";g.appendChild(f);this.userpics.push(f);this.tbody.appendChild(g);this.showActive(null,this.userpics.length-this.active-1);var d,a;if(this.userpics.length>1){for(d=0,a=this.userpics.length;d'+this.source.getUserpicContent({id:c,size:"normal",src:f})+"";e.appendChild(d);this.tbody.appendChild(e);e.style.display="block";d.style.display="block"};Friends.ChooseUserpicControlCached.prototype.del=function(b){var a=this.active;if(typeof(b)!=="undefined"){a=b}y5.Dom.replaceNode(this.userpics[a].control.parentNode);this.userpics.splice(a,1);this.radios.splice(a,1);this.showActive(null,(this.active==0)?0:-1);this.setChooserText();y5.Events.notify("y5:deleteUploadUserpic",Friends,true,row.getElementsByTagName("input")[0].value)};Friends.ChooseUserpicControlCached.prototype.createSelector=function(e,h,j,f){var b=document.createElement("a"),i="";var c=document.createElement("img");c.src=g_globals.img_base+"control/userpic-"+e+i+".gif";c.alt=j;c.title="";var g=(this.userpics.length<2);y5.Classes.add(b,e);b.appendChild(c);b.title=f;return b};Friends.ChooseUserpicControlCached.prototype.changeSelector=function(f,e,d,b){var a=f.firstChild;if(e){y5.Classes.add(f,"disabled");if(a.src.indexOf("-disabled")===-1){a.src=a.src.replace(/.gif/,"-disabled.gif")}a.parentNode.onclick=null;a.parentNode.onmouseover=null;a.parentNode.onmouseout=null}else{var c=a.src.indexOf("userpic-");y5.Classes.remove(f,"disabled");a.src=a.src.replace(/-disabled/,"");a.parentNode.onclick=associateEventWithObject(this,"showActive",d);a.parentNode.onmouseover=associateEventWithObject(this,"mouseover",b);a.parentNode.onmouseout=associateEventWithObject(this,"mouseout",b)}};Friends.ChooseUserpicControlCached.prototype.setChooserText=function(){if(this.userpics.length===0){this.addDefaultUserpic();y5.Classes.add(this.nextChooser,"i-hidden");y5.Classes.add(this.prevChooser,"i-hidden")}var c,a=this.userpics.length;if(a==0){c="нет картинок"}else{if(a==1){c="1 картинка"}else{c=(this.active+1)+" из "+a}}if(this.removeText){if(!a||this.radios[this.active].value==""){y5.Classes.add(this.removeText,"remove-disabled")}else{y5.Classes.remove(this.removeText,"remove-disabled")}}var b=(a<=1);this.changeSelector(this.prevChooser,b,-1,"prev");this.changeSelector(this.nextChooser,b,+1,"next");this.chooserText.innerHTML=c};Friends.ChooseUserpicControlCached.prototype.init=function(){this.tbody=y5.Dom.getDescendant(this.control,"tbody","*");if(!this.tbody){return}var g=this.tbody.getElementsByTagName("tr");var f=g.length;this.radios=new Array(f);this.userpics=new Array(f);this.source=g_source;for(var c=0;c-6){a(this.userpics,b+this.active);b--}};Friends.ChooseUserpicControlCached.prototype.destruct=function(){this.control.control=null;this.control=null};y5.require(["Dom","Events","Classes","Strings","{Friends}.ImageLoadable"],function(){y5.loaded("{Friends}.ChooseUserpicControlCached")});Friends.SubmitShortcut=function(){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.SubmitShortcut.prototype.init=function(d){this.__listeners=[];this.submit_btn=y5.Dom.getDescendant(d,"input","submit");this.submited=false;var f=this.submit_btn.form;y5.Events.observe("y5:form_destructed",b,f,true,this);this.__listeners.push(y5.Events.observe("submit",a,f,true,this));var c=this,g=function(h){if(h.keyCode=="13"&&h.ctrlKey){e.call(c)}};this.__listeners.push(y5.Events.observe("keydown",g,f,true,c));this.__listeners.push(y5.Events.observe("y5:w5g_ctrlEnter",e,Friends,true,this));this.__listeners.push(y5.Events.observe("y5:enableSubmit",function(){this.submited=false},Friends,true,this));function a(h){if(this.submited){h.preventDefault()}this.submited=true}function e(){new y5.Event("click",this.submit_btn,true);this.submit_btn.click()}function b(){var j,h;for(j=0,h=this.__listeners.length;j');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u)}}}d.style.display="none";document.body.appendChild(d);d.submit();return false},fields:["body","title","userpic","access","tags","item_time_day","item_time_month","item_time_year","item_time_minute","URL","url","uid","id","login"]};y5.require(["Dom","Events"],function(){y5.loaded("{Friends}.SaveStateForm")});y5.require([],function(){var a=function(){};a.prototype.init=function(b){this.params=b;this.next_link=b.next_link;this.prev_link=b.prev_link;this.visible_length=b.visible_length||4;y5.Events.observe("click",this.nextLink,this.next_link,true,this);y5.Events.observe("click",this.prevLink,this.prev_link,true,this);return this};a.prototype.setCollection=function(b){this.collection=b;this.left_index=0;this.setLeftmostIndex(0);return this};a.prototype.setLeftmostIndex=function(d){if(!this.collection){return false}this.collection.items.forEach(function(e){y5.Events.notify("y5:UICarousel:hide",this,true,{item:e})},this);this.left_index=(this.collection.items.length+d)%this.collection.items.length;y5.Events.notify("y5:UICarousel:set_index",this,true,{index:d});var b=function(f){var e=this.collection.items;f=(e.length+f)%e.length;var g=e[f];y5.Events.notify("y5:UICarousel:show",this,true,{item:g})},c;for(c=0;c0){this.init.apply(this,arguments)}};a.prototype.init=function(){};a.prototype.select=function(){};a.prototype.unselect=function(){};a.prototype.selectIf=function(b,c){if(c){this.select(b)}};a.prototype.unselectIf=function(b,c){if(c){this.unselect(b)}};a.prototype.add=function(c,d){var b=y5.Utils.getUniqueId(c);if(!(b in this.uids)){this.items.push(c);this.uids[b]={item:c,index:this.items.length-1,data:d};y5.Events.notify("y5:UICollection:add",this,true,{item:c});this.addEvents(c);return false}return true};a.prototype.get=function(e){var d,c;if(typeof e==="number"){d=this.items[e];if(!d){return false}c=y5.Utils.getUniqueId(d)}else{if(typeof e==="string"){c=e}else{if(typeof e==="object"){c=y5.Utils.getUniqueID(d)}}}if(!(c in this.uids)){return false}var b=this.uids[c];return b};a.prototype.remove=function(c){var b=y5.Utils.getUniqueId(c);if(b in this.uids){var d=this.uids[b];this.items.splice(d.index,1);delete this.uids[b];y5.Events.notify("y5:UICollection:remove",this,true,{item:c});return false}return true};a.prototype.addEvents=function(b){};Friends.UICollection=a;y5.loaded("{Friends}.UICollection")});y5.require(["{Friends}.UICollection"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype=new Friends.UICollection();a.prototype.init=function(b){this.items=[];this.uids={};this.selectedItem=null;this.params=b||{};return this};a.prototype.addEvents=function(b){if(!this.params.noclick){y5.Events.observe("click",function(c){this.select(b)},b,true,this)}};a.prototype.select=function(c){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];this.unselect(this.selectedItem);this.selectedItem=c;y5.Events.notify("y5:UICollection:select",this,true,{item:c,data:d.data})};a.prototype.unselect=function(c){if(c!==null){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];y5.Events.notify("y5:UICollection:unselect",this,true,{item:c,data:d.data})}};Friends.UICollectionRadio=a;y5.loaded("{Friends}.UICollectionRadio")});y5.require(["{Friends}.UICollectionRadio","{Friends}.UICarousel","Widget","Utils"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype.init=function(b,c){y5.Events.observe("y5:make",function(d){this.widget=d;this.initAsControl(d.window,this.params);if(!this.has_been_inited){this.initWidgetEvents();this.has_been_inited=true}y5.Classes.add(d.button_ok,"i-hidden")},b,true,this);y5.Events.observe("y5:show",function(d){if(typeof d.caller==="object"){this.caller=d.caller;this.showWidget(b)}},window,true,this);return this};a.prototype.initWidgetEvents=function(){y5.Events.observe("y5:ok",function(){y5.Events.notify("y5:card:ok",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:esc",function(){y5.Events.notify("y5:card:esc",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:cancel",function(){y5.Events.notify("y5:card:cancel",this.caller,true,{caller:this});return true},this.widget.element,true,this)};a.prototype.initAsControl=function(c,d){this.control=c;this.params=d;var b=y5.Dom.getDescendant(this.control,"b","ff");var e=y5.Dom.getDescendant(this.control,"b","rev");this.carousel=new Friends.UICarousel().init({next_link:b,prev_link:e});y5.Events.observe("y5:UICarousel:prev",this.carouselPrev,this.carousel,true,this);y5.Events.observe("y5:UICarousel:next",this.carouselNext,this.carousel,true,this);y5.Events.observe("y5:UICarousel:hide",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.add(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:show",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.remove(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:set_index",function(g){var h=g.index;var f=this.carousel.collection.items.length;var i=this.carousel.visible_length;var j=(i+h-f);if(h==0){y5.Classes.add(this.carousel.prev_link,"i-hidden")}else{y5.Classes.remove(this.carousel.prev_link,"i-hidden")}if(h+i>=f){y5.Classes.add(this.carousel.next_link,"i-hidden")}else{y5.Classes.remove(this.carousel.next_link,"i-hidden")}},this.carousel,true,this);this.holiday_links=new Friends.UICollectionRadio().init();y5.cssQuery("ul.b-list-links li",this.control).forEach(function(f){var h=f.onclick().holiday;var g=y5.Dom.getDescendant(this.control,"tr","holiday_".concat(h));var i=this.initCardsCollection(g);this.holiday_links.add(f,{holiday_id:h,dom_cards:g,cards_collection:i})},this);y5.Events.observe("y5:UICollection:select",this.selectHoliday,this.holiday_links,true,this);y5.Events.observe("y5:UICollection:unselect",this.unselectHoliday,this.holiday_links,true,this);this.holiday_links.select(this.holiday_links.items[0])};a.prototype.showWidget=function(b){y5.Widget.make(b,"Widget.Dialog.Standard",{title:"Вставить открытку",valign:"30%"})};a.prototype.carouselPrev=function(b){};a.prototype.carouselNext=function(b){};a.prototype.initCardsCollection=function(b){var c=new Friends.UICollectionRadio().init();y5.cssQuery("img.postcard",b).forEach(function(d){c.add(d)});y5.Events.observe("y5:UICollection:select",this.choosePostcard,c,true,this);return c};a.prototype.choosePostcard=function(b){this.selected_card=b.item.onclick();this.widget.fireOk()};a.prototype.selectHoliday=function(b){var c=b.item;y5.Classes.add(c,"active");y5.Classes.remove(b.data.dom_cards,"i-hidden");var d=b.data.cards_collection;this.carousel.setCollection(d)};a.prototype.unselectHoliday=function(b){var c=b.item;y5.Classes.remove(c,"active");y5.Classes.add(b.data.dom_cards,"i-hidden")};Friends.Postcard=a;y5.loaded("{Friends}.Postcard")});Friends.ChangeUserpicControl=function(a){if(arguments.length>0){var b=new Friends.ChangeUserpicControl();b.init.apply(this,arguments);return b}};Friends.ChangeUserpicControl.prototype.init=function(a){var b=this;this.control=a;this.current=null;this.pointer=null;this.selected_span=0;this.form=y5.Dom.getAncestorOrSelf(this.control,"form");this.submit=y5.cssQuery('input[type="submit"]',this.form)[0];y5.Events.observe("y5:choose_userpic",this.chooseUserpic,this,true,this);Friends.ChangeUserpicControl.lastCreatedInstance=this};Friends.ChangeUserpicControl.prototype.chooseUserpic=function(a){if(this.pointer!=null){this.pointer.modeUnchoosed()}this.pointer=a.userpic};y5.loaded("{Friends}.ChangeUserpicControl");y5.require(["{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(c,d){this.control=c;this.params=d;this.options=y5.cssQuery("li.answer",this.control);this.options.forEach(function(e,f){y5.cssQuery("input",e).forEach(function(g){this.disableSubmit(g)},this)},this);this.dom_options_holder=y5.Dom.getAncestor(this.options[0],"ul");this.dom_add_option=y5.cssQuery("div.add span",this.control)[0];y5.Events.observe("click",this.addOption,this.dom_add_option,true,this);this.dom_remove_option=y5.cssQuery("span.js-remove",this.control);this.dom_remove_option.forEach(function(f){b(f)})};a.prototype.disableSubmit=function(c){y5.Events.observe("keypress",function(d){var e=d.keyCode;if(e==13){d.stopPropagation();d.preventDefault()}},c,true,this)};a.prototype.addOption=function(){y5.cssQuery(".answer .js-remove",this.control).forEach(function(g){y5.Classes.add(g,"i-hidden")});var c=document.createElement("span");c.innerHTML="";c.className="remove js-remove";b(c);var d=this.options[0].cloneNode(true);var f=y5.cssQuery("li.answer input",this.control);var e=Number(f[f.length-1].id)+1;y5.cssQuery("input",d).forEach(function(g){g.id=e;g.value="";g.name="option".concat(e);this.disableSubmit(g);y5.Dom.insertAfter(c,g)},this);this.dom_options_holder.appendChild(d);this.options.push(d)};var b=function(c){y5.Events.observe("click",function(){y5.Dom.removeNode(y5.Dom.getAncestors(c,"li","answer")[0]);var d=y5.cssQuery("li.answer .js-remove",this.control);if(d.length-1>=0){y5.Classes.remove(d[d.length-1],"i-hidden")}},c,true,this)};Friends.Poll=a;y5.loaded("{Friends}.Poll")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);var b=a.prototype;b.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initUrlBlock();this.initMarketSearchBlock();return this};b.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};b.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};b.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};b.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};b.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};b.initUrlBlock=function(){this.dom_url_block_switcher=y5.Dom.getDescendant(this.control,"span","action-link");this.dom_url_block=y5.Dom.getDescendant(this.control,"div","b-write-link");this.dom_input_url=y5.Dom.getDescendant(this.dom_url_block,"input","*");var c=y5.Dom.getDescendant(this.dom_url_block,"a","*");if(this.dom_input_url.value!=""){this.showURLBlock("nofocus")}y5.Events.observe("click",this.followURL,c,true,this);y5.Events.observe("click",this.showURLBlock,this.dom_url_block_switcher,true,this)};b.showURLBlock=function(){y5.Classes.remove(this.dom_url_block,"i-hidden");if(this.dom_url_block_switcher){y5.Classes.add(this.dom_url_block_switcher,"i-hidden")}if(arguments.length==0){this.dom_input_url.focus()}};b.fillURL=function(c){this.showURLBlock();this.dom_input_url.value=this.processURL(c)};b.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};b.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};b.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};b.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};b.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};b.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};b.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};b.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};b.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};b.notFoundMessage=function(){this.modeNotFound()};b.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};b.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_input_url);this.inputOff(this.dom_title);this.photoloader.disable()};b.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearch:select",a,true);this.modeNormal();this.fillURL(c.model_url);this.server_market_id.value=c.model_id;this.server_market_url.value=c.model_url;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};b.cancelWishcard=function(){this.photoloader.delPhoto();this.dom_input_url.value="";this.server_market_id.value="";this.server_market_url.value="";this.inputOn(this.dom_input_url);this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearch:unselect",a,true)};b.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};b.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.Wishlist=a;y5.loaded("{Friends}.Wishlist")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor","{Friends}.CheckChangesSaved"],function(){var b=Friends.CommonConstructor(Friends.BasicControl);var a=b.prototype;a.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initMarketSearchBlock();return this};a.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};a.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};a.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};a.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};a.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};a.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};a.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};a.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};a.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.dom_changemind=this.dom_changemind||document.createElement("div");this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};a.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};a.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};a.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};a.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};a.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};a.notFoundMessage=function(){this.modeNotFound()};a.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};a.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_title);this.photoloader.disable()};a.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearchGrades:fillWishcard",b,true);this.modeNormal();this.server_market_id.value=c.model_id;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};a.cancelWishcard=function(){this.photoloader.delPhoto();this.server_market_id.value="";this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearchGrades:cancelWishcard",b,true)};a.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};a.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.MarketSearchGrades=b;y5.loaded("{Friends}.MarketSearchGrades")});y5.require(["{Friends}.CommonConstructor","{Friends}.UICollectionRadio","{Friends}.MarketSearchGrades"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(d,e){this.control=d;this.params=e;this.whether_editing_post=!y5.Strings.isVoid(y5.cssQuery('input[name="market_id"]',this.control)[0].value);var c=y5.Dom.getDescendant(this.control,"*","js-major-grades");this.major_smiles=new Friends.UICollectionRadio().init();this.additional_smiles=[];this.dom_all_grades=y5.Dom.getDescendant(this.control,"*","js-all-grades");this.grades_table=y5.Dom.getDescendant(this.control,"*","js-all-grades-table");y5.cssQuery("tr",this.grades_table).forEach(function(f){this.createGradesLine(f)},this);this.on("click",function(){if(this.whether_advanced_grades){this.hideAdvancedGrades()}else{this.showAdvancedGrades()}},this.dom_all_grades);var b=y5.cssQuery("div.active",this.grades_table).length>0;b=b||y5.cssQuery(".js-advanced-grades input").some(function(f){return f.value.length>0});if(b){this.showAdvancedGrades()}y5.Events.observe("y5:UICollection:select",function(f){var g=f.data;y5.Classes.add(f.item,"active");this.show(f.data.dom);g.server.value=g.value},this.major_smiles,true,this);y5.Events.observe("y5:UICollection:unselect",function(f){y5.Classes.remove(f.item,"active");this.hide(f.data.dom)},this.major_smiles,true,this);y5.cssQuery("div.smile",c).forEach(function(f){var g=f.onclick();var h=y5.cssQuery(g.server_selector,this.control)[0];var i=y5.cssQuery(g.selector,c)[0];this.major_smiles.add(f,{dom:i,server:h,value:g.value});var j=y5.Classes.test(f,"active");this.major_smiles.selectIf(f,j)},this);this.on("y5:MarketSearch:select",this.modeAdvanced,Friends.MarketSearchGrades);this.on("y5:MarketSearch:unselect",this.modeSimple,Friends.MarketSearchGrades);if(this.whether_editing_post){this.modeAdvanced(".js-mode-advanced:not(.js-not-editable)")}};a.prototype.enable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.show(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.removeAttribute("disabled")},this)},this)};a.prototype.disable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.hide(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.setAttribute("disabled","disabled")},this)},this)};a.prototype.modeAdvanced=function(b){b=b||".js-mode-advanced";this.enable(b)};a.prototype.modeSimple=function(b){b=b||".js-mode-advanced";this.disable(b);this.hideAdvancedGrades()};a.prototype.showAdvancedGrades=function(){this.whether_advanced_grades=true;y5.Classes.add(this.dom_all_grades,"open");this.enable(".js-advanced-grades")};a.prototype.hideAdvancedGrades=function(){this.whether_advanced_grades=false;y5.Classes.remove(this.dom_all_grades,"open");this.disable(".js-advanced-grades")};a.prototype.createGradesLine=function(c){var b=new Friends.UICollectionRadio().init();y5.Events.observe("y5:UICollection:select",function(d){var e=d.data;y5.Classes.add(d.item,"active");e.server.value=e.value},b,true,this);y5.Events.observe("y5:UICollection:unselect",function(d){y5.Classes.remove(d.item,"active")},b,true,this);y5.cssQuery("div.smile",c).forEach(function(d){var e=d.onclick();var f=y5.cssQuery(e.server_selector,this.control)[0];b.add(d,{server:f,value:e.value});var g=y5.Classes.test(d,"active");b.selectIf(d,g)});this.additional_smiles.push(b)};Friends.MarketGrades=a;y5.loaded("{Friends}.MarketGrades")});Friends.KeywordsControl=new function(){this.createFromTag=function(a,b){new Friends.KeywordsControl.Constructor(a,b)}};Friends.KeywordsControl.Constructor=function(a,b){this.control=a;this.max=b.tagsCount||5;this.keywords=[];this.init()};Friends.KeywordsControl.Constructor.prototype=new function(){this.addKeyword=function(b){var a=y5.Strings.trim(this.input.value);if(a==y5.Strings.EMPTY){return}this.input.value=this.pushTags(a,true).join(", ")};this.delKeyword=function(a,b){y5.Dom.removeNode(a);this.keywords.splice(this.keywords.indexOf(b,0),1);this.saveKeywords();this.showKeywordsLine();this.input.focus()};this.getPreviewKeywords=function(){var c=[],b,a;for(b=0,a=this.keywords.length;b'+y5.Strings.escapeHTML(this.keywords[b])+""}return c.join(", ")};this.addUserTag=function(b){var a=y5.Strings.unescapeHTML(b.target.innerHTML);if(this.pushTag(a)){this.addKeywordElem(a)}};this.pushTags=function(f,g){var e=[],b=f.split(/[,;]/g),c,a;for(c=0,a=b.length;c=this.max){if(!j){var j=document.createElement("span");d.appendChild(j);y5.Classes.add(j,"all-tags");j.appendChild(document.createTextNode(", "))}d=j}var h=d.appendChild(b);new y5.AEventListener("click",this.addUserTag,h,true,this);if((e!=this.max-1)&&(e0){var a=new Friends.UserpicCurrent();a.createFromTag.apply(this,arguments);return a}};Friends.UserpicCurrent.prototype.createFromTag=function(a,b){this.control=a;this.params=b;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.dom_mode=y5.Dom.getDescendant(this.control,"div");y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);this.modeChoosed()};Friends.UserpicCurrent.prototype.modeChoosed=function(){this.is_choosed=true;y5.Classes.remove(this.dom_mode,"unselected");y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});y5.cssQuery('input[name="userpic"]:checked').forEach(function(a){a.checked=false});y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.remove(a,"i-hidden")})};Friends.UserpicCurrent.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.add(this.dom_mode,"unselected");y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.add(a,"i-hidden")})};y5.loaded("{Friends}.UserpicCurrent")});y5.require(["Events","{Friends}.ChangeUserpicControl","{Friends}.CommonConstructor"],function(){Friends.UserpicDeletable=function(){if(arguments.length>0){var a=new Friends.UserpicDeletable();a.createFromTag.apply(a,arguments);return a}};Friends.UserpicDeletable.prototype.createFromTag=function(b,c){this.control=b;this.control_label=y5.Dom.getDescendant(this.control,"label");this.params=c;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.createDrawButton();this.server=new y5.Request.XML("ajax/userpic_do_delete.xml",{method:"POST",callbackContext:this});this.server.onload=this.deleteUserpicHandler;this.server.onerror=this.deleteUserpicHandlerError;y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);var a=y5.Classes.test(this.control_label,"active");if(a){this.modeChoosed()}else{this.modeUnchoosed()}};Friends.UserpicDeletable.prototype.modeChoosed=function(){if(this.is_choosed){return}y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});this.is_choosed=true;y5.Classes.add(this.control_label,"active");y5.Classes.add(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0];a.checked=true};Friends.UserpicDeletable.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.remove(this.control_label,"active");y5.Classes.remove(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0]};Friends.UserpicDeletable.prototype.createDrawButton=function(){this.delete_button=y5.Elements.create(' ');y5.Classes.add(this.userpic.parentNode,"delete-userpic-holder");this.userpic.parentNode.appendChild(this.delete_button);y5.Events.observe("click",this.clickDeleteButton,this.delete_button,true,this)};Friends.UserpicDeletable.prototype.clickDeleteButton=function(a){a.stopPropagation();a.preventDefault();this.deleteUserpic()};Friends.UserpicDeletable.prototype.deleteUserpic=function(){y5.Classes.add(this.userpic,"faded");this.server.send({name:this.params.userpic,host_id:this.params.host_id})};Friends.UserpicDeletable.prototype.deleteUserpicHandler=function(a){var b=y5.JSON.decode(a.responseText);if(b.status==="Success"){y5.Dom.removeNode(this.control)}else{this.deleteUserpicHandlerError()}};Friends.UserpicDeletable.prototype.deleteUserpicHandlerError=function(){y5.Classes.remove(this.userpic,"faded")};y5.loaded("{Friends}.UserpicDeletable")});y5.require(["Events","Strings","Dom","Classes","{Friends}.classes.ClassPictureLoader","{Friends}.UserpicDeletable"],function(){Friends.PictureLoaderAvatar=function(a,c){if(arguments.length>0){var b=new Friends.PictureLoaderAvatar();b.init.apply(b,arguments);return b}};Friends.PictureLoaderAvatar.prototype=new Friends.ClassPictureLoader();Friends.PictureLoaderAvatar.prototype.showPicture=function(a){var g=this;var b=a.name;var e=g_globals.userpic_base+g_source.id+"/"+b+"-"+this.size;var d=this.image;d.onerror=function(h){d.onerror=null;y5.Events.notify("y5:error",g.element,true,null)};y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");d.src=e;this.response=a;y5.Events.notify("y5:load",this.element,true,b);if(!this.params.simpleForm){var f=this.element.cloneNode(true);var c=new Friends.UserpicDeletable(f,{userpic:b,host_id:this.params.host_id});y5.Dom.insertBefore(c.control,this.element);y5.cssQuery('input[type="file"]',c.control).forEach(function(h){y5.Dom.removeNode(h)});y5.cssQuery('input[name="userpic"]',c.control).forEach(function(h){h.value=b});this.deleteImage();c.modeChoosed()}};Friends.PictureLoaderAvatar.prototype.saveUserpic=function(a){};Friends.PictureLoaderAvatar.prototype.saveUserpicHandler=function(c){var b=c.responseText;var a=y5.JSON.decode(b);if(a.name===false){y5.Events.notify("y5:error",this.element,true,null);return false}};Friends.PictureLoaderAvatar.prototype.saveUserpicErrorHandler=function(){y5.Events.notify("y5:error",this.element,true,null)};Friends.PictureLoaderAvatar.prototype.init=function(a,b){this.initBase(a,b);this.image=this.getElement("image");y5.Events.observe("click",function(){y5.Events.notify("y5:userpic_clicked",this,true)},this.image,true,this);this.size=b.size||"normal";this.params=b};Friends.PictureLoaderAvatar.prototype.urlModify=function(){return g_globals.upics_simple_upload};Friends.PictureLoaderAvatar.prototype.sendPicture=function(){this.sendPictureBase();y5.Classes.swap(this.label,"new","load");y5.Classes.remove(this.label,"error");this.sendForm(this.urlModify())};y5.loaded("{Friends}.PictureLoaderAvatar")});var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                      У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                      '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                      "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                      /ig,"
                      ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b=0)&&b(f,!g)}});e(function(){var f=document.body,c=f.appendChild(c=document.createElement("div"));e.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=c.offsetHeight===100;e.support.selectstart="onselectstart" in c;f.removeChild(c).style.display="none"});e.extend(e.ui,{plugin:{add:function(f,c,h){f=e.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g0){return true}f[c]=1;g=f[c]>0;f[c]=0;return g},isOverAxis:function(f,c,g){return f>c&&f'))}function N(a){return a.bind("mouseout",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==C){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.15"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('
                      '))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f==""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]}a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b){b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";if(b==""){return null}var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l){throw"Invalid date"}return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}if(c=this._get(a,"onSelect")){e=this._formatDate(a);c.apply(a.input?a.input[0]:null,[e,a])}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+n+"";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+s+"":f?"":''+s+"";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
                      '+(c?h:"")+(this._isInRange(a,s)?'":"")+(c?"":h)+"
                      ":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x1){switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}}y+='">'}y+='
                      '+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'
                      ';var z=j?'":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="=5?' class="ui-datepicker-week-end"':"")+'>'+q[r]+""}y+=z+"";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,z)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q";var R=!j?"":'";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&ro;R+='";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+""}g++;if(g>11){g=0;m++}y+="
                      '+this._get(a,"weekHeader")+"
                      '+this._get(a,"calculateWeek")(r)+""+(F&&!D?" ":L?''+r.getDate()+"":''+r.getDate()+"")+"
                      "+(l?""+(i[0]>0&&G==i[1]-1?'
                      ':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'':"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='
                      ',o="";if(h||!j){o+=''+i[b]+""}else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(k+=o+(h||!(j&&l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l){k+=''+c+""}else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u){k+=(h||!(j&&l)?" ":"")+o}k+="
                      ";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.15";window["DP_jQuery_"+B]=d})(jQuery);jQuery(function(a){a.datepicker.regional.ru={closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.ru)});(function(a,b){a.namespace("locales.ru");a.locales.ru.chooseDate="выберите дату";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){b(document).ready(function(){b.datepicker.setDefaults(b.datepicker.regional.ru);var f=b(".b-control-datepicker"),h="yy-mm-dd",e="dd.mm.yy";f.datepicker({showOn:"button",buttonImage:g_globals.img_base+"b-calendar-button.png ",buttonImageOnly:true,dateFormat:e,buttonText:a.locale.chooseDate});var d=f[0];if(d&&d.form){b(d.form).bind("submit",function(){d.value=b.datepicker.formatDate(h,f.datepicker("getDate"))})}var c=f[0]?f[0].value:null;if(c){f.datepicker("setDate",b.datepicker.parseDate(h,c))}var g=b(".other-list");if(!a.support_columns(g)){g.columnize({width:200})}})})(window.ya,jQuery); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/_y.js b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/_y.js new file mode 100644 index 0000000..4f3ce8c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/_y.js @@ -0,0 +1,8 @@ +(function(b){var a={};a.imageError=function(c){var d=c.parentNode,e=d.parentNode.childNodes.length>2?d:d.parentNode;e.innerHTML='
                      Картинка недоступна
                      '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                      ${content}
                      ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                      '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                      ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                      #{title}
                      ');b.setFooter('
                       
                      ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/delete.gif b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/delete.gif new file mode 100644 index 0000000..f5e84ad Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/delete.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                      a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                      "+""+"
                      ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                      t
                      ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                      ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                      ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                      ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                      ","
                      "],thead:[1,"","
                      "],tr:[2,"","
                      "],td:[3,"","
                      "],col:[2,"","
                      "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                      ","
                      "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                      ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Написать отзыв — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Настройка блоков — я.ру
                      + + + +
                      ПоискПочтаДискКалендарьДеньгиМой КругФотки
                      + + Выход

                      Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                      Настройка блоков

                      Вернуться к настройкам моей страницы.

                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить
                        •  
                        • Включить
                        • Выключить

                       

                      Что получается:  +   + изменить  +
                      Подписаться на комментарии к записи

                      Получать уведомления о всех ответах в этом обсуждении.

                       
                      Отписаться от комментарев к записи

                      Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                       
                      К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                      + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_style_widgetscatalog.xml b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_style_widgetscatalog.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_style_widgetscatalog.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/WidgetsCatalog.js b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/WidgetsCatalog.js new file mode 100644 index 0000000..b4d7ff7 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/WidgetsCatalog.js @@ -0,0 +1,137 @@ +/** + * Добавляет/удаляет виджет из каталога + */ +Friends.WidgetsCatalog = function(element, params) { + /** control container */ + this.control = element; + this.params = params; + + this.init(); +} + +Friends.WidgetsCatalog.prototype = { + init: function() { + // табы и соответствующие им картинки страниц с виджетами + var tab_my = y5.Dom.getDescendant(this.control, 'li', 'tab-my'); + var widgets_my = y5.Dom.getDescendant(this.control, 'ul', 'b-widgets-catalog-my'); + var tab_i = y5.Dom.getDescendant(this.control, 'li', 'tab-i'); + var widgets_i = y5.Dom.getDescendant(this.control, 'ul', 'b-widgets-catalog-i'); + + var mode_whatsnew = function() { + y5.Classes.remove(tab_i, 'active'); + y5.Classes.add(tab_my, 'active'); + y5.Classes.add(widgets_i, 'i-hidden'); + y5.Classes.remove(widgets_my, 'i-hidden'); + } + + var mode_profile = function() { + y5.Classes.remove(tab_my, 'active'); + y5.Classes.add(tab_i, 'active'); + y5.Classes.add(widgets_my, 'i-hidden'); + y5.Classes.remove(widgets_i, 'i-hidden'); + } + + // переключение табов + y5.Events.observe('click', function() { + mode_whatsnew(); + }, tab_my, true, this); + y5.Events.observe('click', function() { + mode_profile(); + }, tab_i, true, this); + + // виджеты + var widgets = y5.Dom.getDescendants(this.control, 'div', 'widget'); + widgets.forEach(function(widget) { + this.initWidget(widget); + }, this); + + var url = new y5.URL(document.location); + if (url.Query.tab == "whatsnew") { + mode_whatsnew(); + } + }, + + initWidget: function(widget) { + // включить/выключить виджет + y5.Events.observe('click', function() { + this.addRemoveWidget(widget); + }, widget, true, this); + + // контейнер виджета + var controlContainer = y5.Dom.getAncestor(widget, 'li', 'item'); + // при наведении навешиваем подсветку + y5.Events.observe('mouseover', function(e, element) { + y5.Classes.add(element, 'hover'); + }, controlContainer, true ); + // при уведении мыши убираем подсветку + y5.Events.observe('mouseout', function(e, element) { + y5.Classes.remove(element, 'hover'); + }, controlContainer, true); + }, + + addRemoveWidget: function(widget) { + var toShow, btnFromContainer, btnToContainer; + var params = widget.onclick(); + + // прогрессбар + var block_progress = y5.Dom.getDescendant(widget, 'li', 'progress'); + + if (y5.Classes.test(widget, 'active')) { + toShow = 'no'; + btnFromContainer = y5.Dom.getDescendant(widget, 'li', 'status-remove'); + btnToContainer = y5.Dom.getDescendant(widget, 'li', 'status-add'); + } else { + toShow = 'yes'; + btnFromContainer = y5.Dom.getDescendant(widget, 'li', 'status-add'); + btnToContainer = y5.Dom.getDescendant(widget, 'li', 'status-remove'); + } + + y5.Classes.add(btnFromContainer, 'i-hidden'); + // на время ajax-запроса показываем прогрессбар + y5.Classes.remove(block_progress, 'i-hidden'); + + var data = { + id: params.id, + show: params.id + '=' + toShow, + sk: this.params.sk + }; + + // функция на успех запроса + function responceOK(html, trace) { + // скрываем прогреесбар + y5.Classes.add(block_progress, 'i-hidden'); + // показываем кнопку + if (html != 'Error') { + y5.Classes.remove(btnToContainer, 'i-hidden'); + y5.Classes.toggle(widget, 'active'); + } else { + y5.Classes.remove(btnFromContainer, 'i-hidden'); + } + } + + // функция на неудачу запроса + function responceError(trace) { + // скрываем прогреесбар + y5.Classes.add(block_progress, 'i-hidden'); + // показываем прежнюю кнопку + y5.Classes.remove(btnFromContainer, 'i-hidden'); + }; + + jQuery.ajax({ + url: friendsURL('ajax/widgets_options_do_catalog'), + data: data, + dataType: 'json', + type: 'post', + success: function( response ){ + responceOK( response.html); + }, + error: responceError + }); + } +} + + +y5.require ( + ['Ajax', 'AjaxObject', 'Dom', 'Events', 'Classes'], + function() {y5.loaded('{Friends}.WidgetsCatalog')} +); diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                        {popup_items}
                      '].join(""),popup_item:'
                    • {title}
                    • ',popup_item_selected:'
                    • {title}
                    • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                      ','','
                      ','
                      ','','','','
                      {content}',"
                      ","
                      ","
                      ","
                      "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                        {items}
                      ',""].join(""));a.templates.menuItem=a.template(['
                    • ','
                      ','{title}',"
                      ","
                    • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                      ','',"
                      ",""].join("")),itemResult:a(['
                      ','
                      ','
                      ','
                      ',"
                      {title}",'{count}',"
                      ","
                      "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                      {items}{actions}
                      '),actionLink:a('
                      {title}
                      '),expired:a('
                      {title}
                      ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                      ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                       
                      ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                      обновление...
                      ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                      {(moreAsUpdate)[
                      я в курсе
                      ]}
                      {(allItems)({(moreAsUpdate)()[]})}
                      '),viewportLayout:b('
                      {(titleButton)({titleButton})}
                      показать ещё
                      '),group:b('
                      {timestamp}
                      {items}
                      '),item:b('
                      {user} — {title}
                      '),likeItem:b('
                      {user} {appreciate} запись {title}
                      '),recommendItem:b(''),replyItem:b('
                      {user}{separator} {title}
                      '),photoItem:b('
                      {alt}
                      '),videoItem:b('
                      {duration}
                      '),videoContainer:b('
                      {items}
                      '),albumsContainer:b('
                      {items}
                      '),videoCollection:a.template('
                      {content}
                      ',{content:""}),videoCollectionItem:b('
                      {count} видео
                      '),albumItem:b('
                      {title}
                      {count}
                      '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                      {title}
                      '),wishlistItem:b('
                      {title}
                      {title}
                      '),wishlistPromisedItem:b('
                      {info}
                      {title}
                      отменить
                      '),ratingInfo:b(''),onload:b('
                       
                      '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                      ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                      "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                      ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                      ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                      Поделится с друзьями!
                      {items}
                      '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                        ',"
                      ","",'
                      ','

                      Метки

                      ','
                        ','
                      • ','
                        ','','',"
                        ","
                      • ",'
                      • добавлять метки могут только модераторы клуба
                      • ',"
                      ","
                      ",'
                      ','

                      Основные:

                      ','
                        ',"
                      ","
                      "].join(""),keyword:['
                    • ','
                      ','{title}',"
                      ","
                    • "].join(""),active:['
                    • ','
                      ','{title} x',"","
                      ","
                    • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                      {prev}{next}
                      ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                      ','
                      ',"{userpics}","
                      ",'
                      ','◄','►',"
                      ","
                      "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                      ','
                      ','

                      Запись будет опубликована в вашем дневнике.

                      ','
                        ','
                      • ','
                        ','Опубликовать в клубе?',"
                        ","
                      • ","
                      ","
                      ",'",'","
                      "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                      ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                      ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                      ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                      ','',"
                      ",'
                      {buttonOK}
                      ','
                      {buttonNOK}
                      ',"{(checkbox)(",'
                      ','','',"
                      ",")[",'',"]}","{(noPreview)[",'
                      ','посмотреть, что получится',"
                      ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                      '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                      ','
                        ','
                      • ','
                        ','','
                        ','с оформлением','HTML-режим',"
                        ","
                        ","
                      • ","
                      ","
                      "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                      {items}
                      ',item:['
                      ','
                      ','{title}',"
                      ","
                      "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                      ','
                        ',"
                        ",'
                        ','
                          ','
                        • ','
                          ','','',"
                          ","
                        • ",'
                        • ','
                          ','','',"
                          ","
                        • ","
                        ","
                        "].join("");this.item=['
                      • ','
                        ','','x',"
                        ","
                      • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                        '+g.templates.popupLoader()+"
                        ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                        ','
                        Найти или выбрать из списка друзей',"
                        ",'',"",'",'","","
                        ','','','',"",'',"","','',"
                        ","
                        ",'
                        ','
                        ','
                          ','
                        • ','
                          ','','',"
                          ","
                        • ","
                        ","
                        "].join("");this.emptyResults=['
                        ',"Не найдено ни одного человека с именем или логином «{request}».
                        ","Попробуйте уточнить запрос.
                        "].join("");this.emptyPageResults=g.template('
                        Пользователи не найдены.
                        ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                        ','
                          ','
                        • ','',"
                          ","
                        • ","
                        ","
                        "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                        ','
                          ','
                        • ','
                          ','','',"
                          ","
                        • ","
                        ","
                        "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                          ','
                        • ','
                          ','',"
                          ","
                        • ","
                        ","",'
                        ','

                        Предыдущие:

                        ',"Загрузка…","
                        ",'
                        ','
                          ','
                        • ','
                          ','','',"
                          ","
                        • ","
                        ","
                        "].join("");this.list='
                          {items}
                        ';this.item=['
                      • ','
                        ','{title}',"
                        ","
                      • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                        ','
                          ','
                        • ','
                          ','',"
                          ","
                        • ","
                        ","
                        ",'
                        ','

                        Предыдущие:

                        ',"Загрузка…","
                        "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                          {items}
                        ',"",'
                        ','
                          ','
                        • ','
                          ','','',"
                          ","
                        • ",'
                        • ','
                          ','','","
                          ","
                        • ","
                        ","
                        "].join("");this.item=['
                      • ','","
                      • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                        ','
                          ','
                        • ','',"
                        • ","
                        ","
                        ",'
                        ','
                          ','
                        • ','
                          ','',"
                          ","
                        • ","
                        ","
                        "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                        ','
                          ','
                        • ','
                          ','
                          как сильно хочу:
                          ','','','',"",'','','',"",'','','',"","
                          ","
                        • ","
                        ","
                        ",'
                        ','
                          ','
                        • ','
                          ','',"
                          ","
                        • ","
                        ","
                        ",'
                        '].join("");this.quoteEnabled=['
                        ','','',"{(cut)(",'
                        под врезкой
                        ',")}","
                        "].join("");this.quoteDisabled=['
                        ','
                        ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                        ","
                        "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                        ','
                          ','
                        • ',"{quote}","
                        • ","
                        ","
                        ",'
                        ','
                          ','
                        • ','
                          ','','
                          ','с оформлением','HTML-режим',"
                          ","
                          ","
                        • ","
                        ","
                        ",'
                        '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                        ','
                          ','
                        • ','
                          ',"
                        • ","
                        ","
                        ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                        ','
                          ','
                        • ','
                          ','',"
                          ","
                        • ","
                        ","
                        "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                        ','
                          ','
                        • ','
                          ','','',"
                          ","
                        • ","
                        ","
                        "].join("")}function d(){this.title="Принять эту запись";this.content=['
                        ',"
                        "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                          {items}
                        '),item:a.template('
                      • {title}
                      • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                        Редактирование ответа
                        {content}
                        {buttonOK}
                        {buttonNOK}
                        Текст не написан.
                        '),hidden:a.template(''),text:a.template('
                        '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                        ','
                        {title}
                        ','',"","",'",'",'',"","","
                        ','
                        ',"
                        ',"
                        ",'
                        ','
                        Текст не написан.
                        ',"
                        ","
                        ",'
                        ',"
                        ","
                        ",'
                        ','
                        ','
                        ','
                        ','',"
                        ",'
                        {buttonOK}
                        ','
                        {buttonNOK}
                        ','
                        ','или продолжить редактирование',"
                        ","
                        ","
                        ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                        ','
                        ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                        ",'
                        ',' ','',"
                        ","
                        "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                        "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                        ','','','',"{user}","
                        "].join("")),usersList:a('
                        {users}
                        '),userSocial:a(['
                        ','',"{user}","
                        "].join("")),pager:a(['
                        ','{prev} ','{next}',"
                        "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                        {contents}
                        '),promise:ya.template('
                        пообещать
                        '),cancel:ya.template('
                        отменить
                        '),happens:ya.template('
                        пометить как сбывшееся
                        '),happened:ya.template('
                        пожелание сбылось отменить
                        '),promised:ya.template('
                        обещано
                        ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                        {text}
                        '].join(""));a.templates.postDeleteForm=a.template(['
                        ','','','','',"
                        "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                        У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                        '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                        "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                        /ig,"
                        ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                        Картинка недоступна
                        '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                        ${content}
                        ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                        '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                        ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                        #{title}
                        ');b.setFooter('
                         
                        ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                        a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                        "+""+"
                        ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                        t
                        ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                        ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                        ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                        ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                        ","
                        "],thead:[1,"","
                        "],tr:[2,"","
                        "],td:[3,"","
                        "],col:[2,"","
                        "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                        ","
                        "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                        ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройка блоков — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Настройки:  — я.ру
                        + + + +
                        ПоискПочтаДискКалендарьДеньгиМой КругФотки
                        + + Выход

                        Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                        Возможность чтения rss-потоков в Я.ру отключена. + Используйте сервис Яндекс.Подписки. +

                         

                        Что получается:  +   + изменить  +
                        Подписаться на комментарии к записи

                        Получать уведомления о всех ответах в этом обсуждении.

                         
                        Отписаться от комментарев к записи

                        Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                         
                        К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                        + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Foptions_ext-friends.xml b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Foptions_ext-friends.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Foptions_ext-friends.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                          {popup_items}
                        '].join(""),popup_item:'
                      • {title}
                      • ',popup_item_selected:'
                      • {title}
                      • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                        ','','
                        ','
                        ','','','','
                        {content}',"
                        ","
                        ","
                        ","
                        "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                          {items}
                        ',""].join(""));a.templates.menuItem=a.template(['
                      • ','
                        ','{title}',"
                        ","
                      • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                        ','',"
                        ",""].join("")),itemResult:a(['
                        ','
                        ','
                        ','
                        ',"
                        {title}",'{count}',"
                        ","
                        "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                        {items}{actions}
                        '),actionLink:a('
                        {title}
                        '),expired:a('
                        {title}
                        ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                        ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                         
                        ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                        обновление...
                        ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                        {(moreAsUpdate)[
                        я в курсе
                        ]}
                        {(allItems)({(moreAsUpdate)()[]})}
                        '),viewportLayout:b('
                        {(titleButton)({titleButton})}
                        показать ещё
                        '),group:b('
                        {timestamp}
                        {items}
                        '),item:b('
                        {user} — {title}
                        '),likeItem:b('
                        {user} {appreciate} запись {title}
                        '),recommendItem:b(''),replyItem:b('
                        {user}{separator} {title}
                        '),photoItem:b('
                        {alt}
                        '),videoItem:b('
                        {duration}
                        '),videoContainer:b('
                        {items}
                        '),albumsContainer:b('
                        {items}
                        '),videoCollection:a.template('
                        {content}
                        ',{content:""}),videoCollectionItem:b('
                        {count} видео
                        '),albumItem:b('
                        {title}
                        {count}
                        '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                        {title}
                        '),wishlistItem:b('
                        {title}
                        {title}
                        '),wishlistPromisedItem:b('
                        {info}
                        {title}
                        отменить
                        '),ratingInfo:b(''),onload:b('
                         
                        '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                        ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                        "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                        ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                        ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                        Поделится с друзьями!
                        {items}
                        '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                          ',"
                        ","",'
                        ','

                        Метки

                        ','
                          ','
                        • ','
                          ','','',"
                          ","
                        • ",'
                        • добавлять метки могут только модераторы клуба
                        • ',"
                        ","
                        ",'
                        ','

                        Основные:

                        ','
                          ',"
                        ","
                        "].join(""),keyword:['
                      • ','
                        ','{title}',"
                        ","
                      • "].join(""),active:['
                      • ','
                        ','{title} x',"","
                        ","
                      • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                        {prev}{next}
                        ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                        ','
                        ',"{userpics}","
                        ",'
                        ','◄','►',"
                        ","
                        "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                        ','
                        ','

                        Запись будет опубликована в вашем дневнике.

                        ','
                          ','
                        • ','
                          ','Опубликовать в клубе?',"
                          ","
                        • ","
                        ","
                        ",'",'","
                        "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                        ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                        ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                        ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                        ','',"
                        ",'
                        {buttonOK}
                        ','
                        {buttonNOK}
                        ',"{(checkbox)(",'
                        ','','',"
                        ",")[",'',"]}","{(noPreview)[",'
                        ','посмотреть, что получится',"
                        ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                        '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                        ','
                          ','
                        • ','
                          ','','
                          ','с оформлением','HTML-режим',"
                          ","
                          ","
                        • ","
                        ","
                        "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                        {items}
                        ',item:['
                        ','
                        ','{title}',"
                        ","
                        "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                        ','
                          ',"
                          ",'
                          ','
                            ','
                          • ','
                            ','','',"
                            ","
                          • ",'
                          • ','
                            ','','',"
                            ","
                          • ","
                          ","
                          "].join("");this.item=['
                        • ','
                          ','','x',"
                          ","
                        • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                          '+g.templates.popupLoader()+"
                          ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                          ','
                          Найти или выбрать из списка друзей',"
                          ",'',"",'",'","","
                          ','','','',"",'',"","','',"
                          ","
                          ",'
                          ','
                          ','
                            ','
                          • ','
                            ','','',"
                            ","
                          • ","
                          ","
                          "].join("");this.emptyResults=['
                          ',"Не найдено ни одного человека с именем или логином «{request}».
                          ","Попробуйте уточнить запрос.
                          "].join("");this.emptyPageResults=g.template('
                          Пользователи не найдены.
                          ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                          ','
                            ','
                          • ','',"
                            ","
                          • ","
                          ","
                          "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                          ','
                            ','
                          • ','
                            ','','',"
                            ","
                          • ","
                          ","
                          "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                            ','
                          • ','
                            ','',"
                            ","
                          • ","
                          ","",'
                          ','

                          Предыдущие:

                          ',"Загрузка…","
                          ",'
                          ','
                            ','
                          • ','
                            ','','',"
                            ","
                          • ","
                          ","
                          "].join("");this.list='
                            {items}
                          ';this.item=['
                        • ','
                          ','{title}',"
                          ","
                        • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                          ','
                            ','
                          • ','
                            ','',"
                            ","
                          • ","
                          ","
                          ",'
                          ','

                          Предыдущие:

                          ',"Загрузка…","
                          "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                            {items}
                          ',"",'
                          ','
                            ','
                          • ','
                            ','','',"
                            ","
                          • ",'
                          • ','
                            ','','","
                            ","
                          • ","
                          ","
                          "].join("");this.item=['
                        • ','","
                        • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                          ','
                            ','
                          • ','',"
                          • ","
                          ","
                          ",'
                          ','
                            ','
                          • ','
                            ','',"
                            ","
                          • ","
                          ","
                          "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                          ','
                            ','
                          • ','
                            ','
                            как сильно хочу:
                            ','','','',"",'','','',"",'','','',"","
                            ","
                          • ","
                          ","
                          ",'
                          ','
                            ','
                          • ','
                            ','',"
                            ","
                          • ","
                          ","
                          ",'
                          '].join("");this.quoteEnabled=['
                          ','','',"{(cut)(",'
                          под врезкой
                          ',")}","
                          "].join("");this.quoteDisabled=['
                          ','
                          ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                          ","
                          "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                          ','
                            ','
                          • ',"{quote}","
                          • ","
                          ","
                          ",'
                          ','
                            ','
                          • ','
                            ','','
                            ','с оформлением','HTML-режим',"
                            ","
                            ","
                          • ","
                          ","
                          ",'
                          '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                          ','
                            ','
                          • ','
                            ',"
                          • ","
                          ","
                          ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                          ','
                            ','
                          • ','
                            ','',"
                            ","
                          • ","
                          ","
                          "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                          ','
                            ','
                          • ','
                            ','','',"
                            ","
                          • ","
                          ","
                          "].join("")}function d(){this.title="Принять эту запись";this.content=['
                          ',"
                          "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                            {items}
                          '),item:a.template('
                        • {title}
                        • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                          Редактирование ответа
                          {content}
                          {buttonOK}
                          {buttonNOK}
                          Текст не написан.
                          '),hidden:a.template(''),text:a.template('
                          '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                          ','
                          {title}
                          ','',"","",'",'",'',"","","
                          ','
                          ',"
                          ',"
                          ",'
                          ','
                          Текст не написан.
                          ',"
                          ","
                          ",'
                          ',"
                          ","
                          ",'
                          ','
                          ','
                          ','
                          ','',"
                          ",'
                          {buttonOK}
                          ','
                          {buttonNOK}
                          ','
                          ','или продолжить редактирование',"
                          ","
                          ","
                          ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                          ','
                          ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                          ",'
                          ',' ','',"
                          ","
                          "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                          "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                          ','','','',"{user}","
                          "].join("")),usersList:a('
                          {users}
                          '),userSocial:a(['
                          ','',"{user}","
                          "].join("")),pager:a(['
                          ','{prev} ','{next}',"
                          "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                          {contents}
                          '),promise:ya.template('
                          пообещать
                          '),cancel:ya.template('
                          отменить
                          '),happens:ya.template('
                          пометить как сбывшееся
                          '),happened:ya.template('
                          пожелание сбылось отменить
                          '),promised:ya.template('
                          обещано
                          ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                          {text}
                          '].join(""));a.templates.postDeleteForm=a.template(['
                          ','','','','',"
                          "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                          У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                          '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                          "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                          /ig,"
                          ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                          Картинка недоступна
                          '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                          ${content}
                          ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                          '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                          ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                          #{title}
                          ');b.setFooter('
                           
                          ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                          a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                          "+""+"
                          ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                          t
                          ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                          ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                          ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                          ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                          ","
                          "],thead:[1,"","
                          "],tr:[2,"","
                          "],td:[3,"","
                          "],col:[2,"","
                          "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                          ","
                          "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                          ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки  — я.ру Типы записей Внешние дневники в Что нового_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Настройки: Моя страница — я.ру
                          + + + +
                          ПоискПочтаДискКалендарьДеньгиМой КругФотки
                          + + Выход

                          Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.


                          Стиль:

                          Фон шапки:


                          Василий сменил настроение +
                          вчера, 21:58
                          + Дядя жил на втором этаже нашего дома вместе с тетей, бабушкой и остальной родней. Существовали две фамильные версии, объясняющие его не вполне обычное состояние. +
                          ответить42 ответа
                          оценить17
                          ещё
                          Василий поделился ссылкой +
                          вчера, 21:58
                          Но удовольствие для человека - это постижение благодати и духовное развитие
                          ответить42 ответа
                          оценить17
                          ещё
                          Василий нашёл друга +
                          вчера, 21:58
                          Но удовольствие для человека - это постижение благодати и духовное развитие
                          ответить42 ответа
                          оценить17
                          ещё
                          Василий поздравил друга +
                          вчера, 21:58
                          + Ура! +
                          ответить42 ответа
                          оценить17
                          ещё
                          Василий записал мысль
                          вчера, 21:58
                          Почему конкурентоспособен рейтинг?
                          + По мнению ведущих маркетологов, потребительский рынок основан на тщательном анализе. Метод изучения рынка существенно упорядочивает product placement, невзирая на действия конкурентов. Привлечение аудитории без оглядки на авторитеты уравновешивает презентационный материал, используя опыт предыдущих кампаний. +
                          ответить42 ответа
                          оценить17
                          ещё
                          Запись в клубе
                          Денщик подал яичницу. Приятели…
                          [Без заголовка]
                          + Обращение к гостям +
                          О клубе
                          + Онтогенез речи интегрирует кризис, Гоббс одним из первых осветил эту проблему с позиций психологии. Самоактуализация отчуждает интеллект, что лишний раз подтверждает правоту З. Фрейда. +
                          ответить42 ответа
                          оценить17
                          ещё
                          Антон сменил настроение +
                          вчера, 21:58
                          + Дядя жил на втором этаже нашего дома вместе с тетей, бабушкой и остальной родней. Существовали две фамильные версии, объясняющие его не вполне обычное состояние. +
                          ответить42 ответа
                          оценить17
                          ещё
                          Алёна поделилась ссылкой +
                          вчера, 21:58
                          Но удовольствие для человека - это постижение благодати и духовное развитие
                          ответить42 ответа
                          оценить17
                          ещё
                          Кондрат нашёл друга +
                          вчера, 21:58
                          Но удовольствие для человека - это постижение благодати и духовное развитие
                          ответить42 ответа
                          оценить17
                          ещё
                          Андрей поздравил друга +
                          вчера, 21:58
                          + Ура! +
                          ответить42 ответа
                          оценить17
                          ещё
                          Цвет фона шапки
                            
                          Цвет фона страницы
                            
                          Имя пользователя в шапке
                            
                          Цвет меню в шапке
                            

                           

                          Что получается:  +   + изменить  +
                          Подписаться на комментарии к записи

                          Получать уведомления о всех ответах в этом обсуждении.

                           
                          Отписаться от комментарев к записи

                          Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                           
                          К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                          + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_style.xml b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_style.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_style.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/ColorPikker(1).js b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/ColorPikker(1).js new file mode 100644 index 0000000..dd0a9d9 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/ColorPikker(1).js @@ -0,0 +1,674 @@ +/************************************** + + colorpicker ultd. + + v.0.2 + + (c) 2006 Pixel Apes, *Labs & design.ru. + + **************************************/ + +/* + + USAGE: + (new Colorpikker()).init( { input:"input_id", preview:"preview_id" } ); + + SAMPLE INPUT-PREVIEW BLOCK: +     + + + CONSTANTS from Colorpikker.prototype.* + + * defaultSingleWindow = true -- не строить под каждый пикер отдельное окно, а использовать одно для всех + * samples = [ [ "ff9933", ... ], [ "fcff00", ... ] ] -- массив цветов. Строчками и столбиками управляет тоже + * windowWidth = 260 -- ширина контрола. Нужна потому, что я быстро не сделал, чтобы он сам её на лету мерял. + * customImg : "z.gif" -- где лежит картинка-пустышка. Она используется везде, где распорки + + + FRAMEWORK DUMMY: + Внизу класса есть ещё один объект, FW. Это заглушка для фреймворка (мета-фреймворк). + Он умеет следующее: + + * FW.nextId() -- возвращает новый id для html элемента + * addEvent( what, event, func ) -- налепляет функцию "func" на ивент "event" на объект "what" + можно давать массив events + * XY( what ) -- возвращает массив [x,y] координат объекта. + Сейчас наблюдаются баги для position:absolute + * Event( oEvt ) -- унифицирует вид объекта event для разных браузеров + * toHex( val ) -- переводит число в двузначный hex-код + + + COPYRIGHTS: + Оригинальная идея ускорения colorpicking придумана Ромой Воронежским (http://narisoval.ru) и Leechy (http://leechy.design.ru) + Код выбора цвета разработан в Студии Лебедева (http://artlebedev.ru) + Обёртка и всё прочее сделано Николаем "Kuso Mendokusee" Яремко (http://pixel-apes.com) + +*/ + +Colorpikker = function() {} +Colorpikker.prototype = +{ + // получить объект по коды из массива ид-шников + _ : function(id) + { return document.getElementById(this.ids[id]) }, + + // инициализация: построить окна, привязаться к document.body.onclick + defaultSingleWindow : true, + init : function( ids ) + { + if (ids.singleWindow == this.undef()) { + ids.singleWindow = this.defaultSingleWindow; + } + Colorpikker.activeInstance = this; + this.initMode = true; + this.ids = ids; + this.build(); + this.initMode = false; + + FW.addEvent( document.body, "onclick", + function(evt) { Colorpikker.prototype.onDocumentClick(evt) } ); + }, + + // собственно построение всего необходимого. вызывается из init + build : function() + { + var that = this; + + this.ids["button" ] = FW.nextId(); + + // init button + var btn = document.createElement("input"); + btn.type = "button"; + btn.className = "colorpikker-button"; + btn.id = this.ids["button"]; + this._("input").parentNode.appendChild(btn); + + FW.addEvent( this._("button"), "onclick", + function() { that.onButtonClick(); } ); + + // init window + if (this.ids.singleWindow) + { + if (Colorpikker.singleWindowIds == this.undef()) + { + this.initWindow(); + Colorpikker.singleWindowIds = this.ids; + } + else + { + var unique = {"input":1, "preview":1, "button":1}; + for(var i in Colorpikker.singleWindowIds) + if (!unique[i]) this.ids[i] = Colorpikker.singleWindowIds[i]; + } + } + else + this.initWindow(); + + // init preview + FW.addEvent( this._("input"), [ "onchange", "onkeyup", "onclick" ], + function() { that.redrawPreview(true) } ); + this.redrawPreview(false); + + }, + // в частности, построение окна. вызывается из build + // для singleWindow вызывается только один раз на странице + initWindow : function() + { + var that = this; + + this.ids["window" ] = FW.nextId(); + this.ids["grid" ] = FW.nextId(); + this.ids["gridbase" ] = FW.nextId(); + this.ids["slider" ] = FW.nextId(); + this.ids["slidbase" ] = FW.nextId(); + this.ids["bar" ] = FW.nextId(); + + // init window + var win = document.createElement("div"); + win.id = this.ids["window"]; + win.innerHTML = this.buildWindow(); + win.style.position = "absolute"; + win.style.display = "none"; + win.style.zIndex = "1000"; + win.style.width = this.windowWidth+"px"; + win.style.backgroundColor = "#ffffff"; + document.body.appendChild(win); + + FW.addEvent( this._("grid"), [ "onmousedown" ], + function(evt) { that.onGridStart(evt); return false } ); + FW.addEvent( this._("grid"), [ "onmouseup", "onmouseout" ], + function(evt) { that.onGridStop(evt); return false } ); + FW.addEvent( this._("grid"), [ "onmousemove" ], + function(evt) { that.onGridMove(evt); return false } ); + FW.addEvent( this._("grid"), [ "onselectstart" ], + function(evt) { return false } ); + + FW.addEvent( this._("bar"), "onclick", + function() { that.onSampleClick(this); Colorpikker.activeInstance.hide() } ); + + FW.addEvent( this._("window"), "onclick", + function() { Colorpikker.prototype.onWindowClick(); } ); + + // init slider + this.buildSlider(); + + FW.addEvent( this._("slidbase"), [ "onmousedown" ], + function(evt) { that.onSliderStart(evt); return false } ); + FW.addEvent( this._("slidbase"), [ "onmouseup", "onmouseout" ], + function(evt) { that.onSliderStop(evt); return false } ); + FW.addEvent( this._("slidbase"), [ "onmousemove" ], + function(evt) { that.onSliderMove(evt); return false } ); + FW.addEvent( this._("slidbase"), [ "onselectstart" ], + function(evt) { return false } ); + FW.addEvent( this._("slidbase"), [ "onselectstart" ], + function(evt) { return false } ); + + // init color samples + this.initSamples(); + }, + + // конвертируем цвет и прописываем его в + setModel : function( newColor ) + { + if (m = newColor.match( /rgb\(([0-9]+)\s?,\s?([0-9]+)\s?,\s?([0-9]+)\)/i)) + newColor = "#"+FW.toHex(m[1])+FW.toHex(m[2])+FW.toHex(m[3]); + this._("input").value = newColor; + this.redrawPreview(true); + }, + + // генерация HTML-кода окна. Вызывается из построения окна + samples : [ [ "ff9933", "ff0000", "000000", "ff0089", "0084ff", "00ff84" ], + [ "fcff00", "06207c", "2900c3", "626500", "a5f840", "ffffff" ] ], + windowWidth : 260, + customImg : "/i/colorpikker/z.gif", + buildWindow : function() + { + var html = ""; + html += "
                          "; + html += this.buildSamples(); + html += "
                          "; + html += ""; + html += ""; + html += ""; + html += ""; + html += ""; + html += ""; + html += ""; + html += "
                          "+ + "
                          "+ + "
                          "; + html += "
                          "; + html += "
                          "; + return html; + }, + // внутри окна генерируется код для примеров цветов + buildSamples : function() + { + var colorids = []; + var html = ""; + html += "
                          "; + html += ""; + for(var i=0; i"; + } + html+=""; + } + html += "
                          "; + html += "
                          "; + this.ids["colorids"] = colorids; + return html; + }, + // провязывание примерам цветов обработчиков onclick + // происходит в инициализации окна после построения + initSamples : function() + { + var that = this; + for(var i=0; i< this.ids["colorids"].length; i++) + { + this.ids["colorid"] = this.ids["colorids"][i]; + FW.addEvent( this._("colorid"), "onclick", + function() { that.onSampleClick(this); Colorpikker.activeInstance.syncTargets(); + Colorpikker.activeInstance.hide() } ); + } + }, + // построение вертикального слайдера (идёт в процессе построения окна) + buildSlider : function() + { + var row; + var a = 128; + + for(var i=0; i с нужным фоновым цветом + selectSample : function(sample) + { + if (this.ids.singleWindow) + this.ids["coloridSelected"] = Colorpikker.singleWindowIds["coloridSelected"]; + + if (this.ids["coloridSelected"] !== this.undef()) + this._("coloridSelected").parentNode.className = ""; + sample.parentNode.className = "selected- "; + this.ids["coloridSelected"] = sample.id; + if (sample.title) + Colorpikker.activeInstance.setModel( sample.title ); + else + Colorpikker.activeInstance.setModel( sample.style.backgroundColor ); + + if (this.ids.singleWindow) + Colorpikker.singleWindowIds["coloridSelected"] = this.ids["coloridSelected"]; + }, + // перерисовывание одноцветного квадратика в custom picker + // на вход принимает положение слайдера + // в конце концов двигает точку слайдера и + redrawBar : function( pos, noclick ) + { + var color; + var a = 64; + var i = a-pos%a; + var m = this.sliderColor; + + if (pos < a) + color = "rgb(" + + Math.floor(m.r+((255-m.r)/a)*i) + "," + + Math.floor(m.g+((255-m.g)/a)*i) + "," + + Math.floor(m.b+((255-m.b)/a)*i) + ")"; + else + color = "rgb(" + + Math.floor((m.r/a)*i) + "," + + Math.floor((m.g/a)*i) + "," + + Math.floor((m.b/a)*i) + ")"; + + this._("bar").style.backgroundColor = color; + this.barPos = pos; + this.moveTarget2( pos ); + if (!noclick) + this.onSampleClick( this._("bar") ); + }, + // перерисовывание слайдера в custom picker + // на вход принимает координаты в гриде + // в конце концов двигает точку грида и перерисовывает бар + redrawSlider : function(x,y, noclick) + { + var a = 128; + var a2 = a / 2; + var m = this.Color(x,y); + + var rows = this._("slider").rows; + + var get_cell = function(index) { + var res = rows.item(index).cells.item(0); + return res; + } + + var color_transform = function(c, step) { + var res = Math.floor((c/a2)*step); + return res; + } + + for(var i=0; i 132) return; + if (offsetY < 5) return; + if (offsetY > 132) return; + this.redrawSlider(offsetX-5, offsetY-5); + } + }, + // блок драга и дропа по слайдеру, аналогичные 4 метода + onSliderStart : function(evt) + { + this.sliderMode = true; + return this.onSliderClick(evt); + }, + onSliderStop : function(evt) + { + if(!this.sliderMode) return; + this.sliderMode = false; + return this.onSliderClick(evt); + }, + onSliderMove : function(evt) + { + if (this.sliderMode) return this.onSliderClick(evt); + }, + onSliderClick : function(evt) + { + if((evt=FW.Event(evt))) + { + var xy = FW.XY(evt.target); + var offsetY = evt.clientY+document.documentElement.scrollTop-xy[1]; + if (offsetY < 5) return; + if (offsetY > 132) return; + this.redrawBar(offsetY-5); + } + }, + // клик по квадратику с цветом -- надо выбрать цвет + onSampleClick : function( sample ) + { + if (this.initMode) return false; + this.selectSample(sample); + }, + // ------- Обработчики событий на уровне прототипа ------------------------ + // клик по документу + onDocumentClick : function( evt ) + { + if((evt=FW.Event(evt))) + { + var i = Colorpikker.activeInstance; + if (!Colorpikker.dontHide) + if (i.isOpen) + if (evt.target != i._("window")) + if (evt.target != i._("button")) + i.hide(); + } + Colorpikker.dontHide = false; + }, + // клик по окну + onWindowClick : function( evt ) + { + Colorpikker.dontHide = true; + }, + + + // ------------------------------------------------------------------- + // ------ Алгоритмы подсчёта цветов (с) Студия Лебедева -------------- + // посчитать цвет по гриду + Color : function(x,y) + { + var a=128; + return this.HSBtoRGB(x/a,(a-y)/a,(a-y)/a*127+127); + }, + // Перевести из HSB в RGB + HSBtoRGB : function(Hue, Saturation, Britness) + { + var r,g,b; + if(Saturation == 0) r = g = b = Britness; + else + { + var hue6 = (Hue - Math.floor(Hue)) * 6; + var hue_rise = hue6 - Math.floor(hue6); + + var darkness = Britness * (1 - Saturation); + shrink = Britness * (1 - Saturation * hue_rise); + grow = Britness * (1 - Saturation * (1 - hue_rise)); + + switch(Math.floor(hue6)) + { + default: + break; + case 0: + r = Britness; + g = grow; + b = darkness; + break; + case 1: + r = shrink; + g = Britness; + b = darkness; + break; + case 2: + r = darkness; + g = Britness; + b = grow; + break; + case 3: + r = darkness; + g = shrink; + b = Britness; + break; + case 4: + r = grow; + g = darkness; + b = Britness; + break; + case 5: + r = Britness; + g = darkness; + b = shrink; + break; + } + } + return { r: Math.round(r), g: Math.round(g), b:Math.round(b) }; + }, + // Перевести из RGB в HSB + RGBtoHSB : function(r, g, b) + { + var Britness, Saturation, Hue; + + var light = r<=g ? g : r; + if(b > light) light = b; + + var dark = r >= g ? g : r; + if(b < dark) dark = b; + + Britness = light; + + if(light != 0) Saturation = (light - dark) / Britness; + else Saturation = 0; + + if(Saturation == 0) Hue = 0; + else + { + var rd = (light - r) / (light - dark); + var gd = (light - g) / (light - dark); + var bd = (light - b) / (light - dark); + + if(r == light) Hue = bd - gd; + else + if(g == light) Hue = (2 + rd) - bd; + else Hue = (4 + gd) - rd; + + Hue /= 6; + if(Hue < 0) Hue++; + } + Britness = light/2; + if (r==g && r==b) + Britness = light; + return { h: Hue, s: Saturation, b: Britness }; + }, + + + // А это мой любимый метод-заглушка. Очень полезный, indeed + undef : function(param) { return param; } +} + + +// ============================================================== +// Framework Dummy starts here. +// ============================================================== +FW = { + + idCount : 0, + nextId : function() { return "FWid_"+(this.idCount++); }, + + addEvent : function( what, event, func ) + { + if (typeof(event) == "string") + what[event] = func; + else + for(var i=0; i>4]+this.hexDigit[val&15]); + }, + toDec : function( val ) + { + return parseInt( val, 16 ); + }, + + undef : function(param) { return param; } +} +y5.loaded('{External}.ColorPikker.ColorPikker'); diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/ColorPikker.js b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/ColorPikker.js new file mode 100644 index 0000000..7736fa3 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/ColorPikker.js @@ -0,0 +1,11 @@ +External.ColorPikker = new function(){ + + this.createFromTag = function(element, params){ + new Friends.ClassColorPicker().createFromTag(element,params); + } + +} + +y5.require(['Events', 'Dom', '{Friends}.classes.ClassColorPicker', 'Utils'], function(){ + y5.loaded('{External}.ColorPikker') +}); diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                            {popup_items}
                          '].join(""),popup_item:'
                        • {title}
                        • ',popup_item_selected:'
                        • {title}
                        • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                          ','','
                          ','
                          ','','','','
                          {content}',"
                          ","
                          ","
                          ","
                          "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                            {items}
                          ',""].join(""));a.templates.menuItem=a.template(['
                        • ','
                          ','{title}',"
                          ","
                        • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                          ','',"
                          ",""].join("")),itemResult:a(['
                          ','
                          ','
                          ','
                          ',"
                          {title}",'{count}',"
                          ","
                          "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                          {items}{actions}
                          '),actionLink:a('
                          {title}
                          '),expired:a('
                          {title}
                          ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                          ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                           
                          ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                          обновление...
                          ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                          {(moreAsUpdate)[
                          я в курсе
                          ]}
                          {(allItems)({(moreAsUpdate)()[]})}
                          '),viewportLayout:b('
                          {(titleButton)({titleButton})}
                          показать ещё
                          '),group:b('
                          {timestamp}
                          {items}
                          '),item:b('
                          {user} — {title}
                          '),likeItem:b('
                          {user} {appreciate} запись {title}
                          '),recommendItem:b(''),replyItem:b('
                          {user}{separator} {title}
                          '),photoItem:b('
                          {alt}
                          '),videoItem:b('
                          {duration}
                          '),videoContainer:b('
                          {items}
                          '),albumsContainer:b('
                          {items}
                          '),videoCollection:a.template('
                          {content}
                          ',{content:""}),videoCollectionItem:b('
                          {count} видео
                          '),albumItem:b('
                          {title}
                          {count}
                          '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                          {title}
                          '),wishlistItem:b('
                          {title}
                          {title}
                          '),wishlistPromisedItem:b('
                          {info}
                          {title}
                          отменить
                          '),ratingInfo:b(''),onload:b('
                           
                          '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                          ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                          "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/_options-style-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/_options-style-includes.js new file mode 100644 index 0000000..91d4bc3 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/_options-style-includes.js @@ -0,0 +1 @@ +y5.require(["Classes","Events"],function(){var a=function(){};a.prototype.register=function(){var d,c,b;for(b=0;b0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                          ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                          ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                          ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});Friends.ChangeUserpicControl=function(a){if(arguments.length>0){var b=new Friends.ChangeUserpicControl();b.init.apply(this,arguments);return b}};Friends.ChangeUserpicControl.prototype.init=function(a){var b=this;this.control=a;this.current=null;this.pointer=null;this.selected_span=0;this.form=y5.Dom.getAncestorOrSelf(this.control,"form");this.submit=y5.cssQuery('input[type="submit"]',this.form)[0];y5.Events.observe("y5:choose_userpic",this.chooseUserpic,this,true,this);Friends.ChangeUserpicControl.lastCreatedInstance=this};Friends.ChangeUserpicControl.prototype.chooseUserpic=function(a){if(this.pointer!=null){this.pointer.modeUnchoosed()}this.pointer=a.userpic};y5.loaded("{Friends}.ChangeUserpicControl");y5.require(["Events","{Friends}.ChangeUserpicControl","{Friends}.CommonConstructor"],function(){Friends.UserpicDeletable=function(){if(arguments.length>0){var a=new Friends.UserpicDeletable();a.createFromTag.apply(a,arguments);return a}};Friends.UserpicDeletable.prototype.createFromTag=function(b,c){this.control=b;this.control_label=y5.Dom.getDescendant(this.control,"label");this.params=c;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.createDrawButton();this.server=new y5.Request.XML("ajax/userpic_do_delete.xml",{method:"POST",callbackContext:this});this.server.onload=this.deleteUserpicHandler;this.server.onerror=this.deleteUserpicHandlerError;y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);var a=y5.Classes.test(this.control_label,"active");if(a){this.modeChoosed()}else{this.modeUnchoosed()}};Friends.UserpicDeletable.prototype.modeChoosed=function(){if(this.is_choosed){return}y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});this.is_choosed=true;y5.Classes.add(this.control_label,"active");y5.Classes.add(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0];a.checked=true};Friends.UserpicDeletable.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.remove(this.control_label,"active");y5.Classes.remove(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0]};Friends.UserpicDeletable.prototype.createDrawButton=function(){this.delete_button=y5.Elements.create(' ');y5.Classes.add(this.userpic.parentNode,"delete-userpic-holder");this.userpic.parentNode.appendChild(this.delete_button);y5.Events.observe("click",this.clickDeleteButton,this.delete_button,true,this)};Friends.UserpicDeletable.prototype.clickDeleteButton=function(a){a.stopPropagation();a.preventDefault();this.deleteUserpic()};Friends.UserpicDeletable.prototype.deleteUserpic=function(){y5.Classes.add(this.userpic,"faded");this.server.send({name:this.params.userpic,host_id:this.params.host_id})};Friends.UserpicDeletable.prototype.deleteUserpicHandler=function(a){var b=y5.JSON.decode(a.responseText);if(b.status==="Success"){y5.Dom.removeNode(this.control)}else{this.deleteUserpicHandlerError()}};Friends.UserpicDeletable.prototype.deleteUserpicHandlerError=function(){y5.Classes.remove(this.userpic,"faded")};y5.loaded("{Friends}.UserpicDeletable")});window.g_sizePicture=function(){return"normal"};Friends.ClassPictureLoader=function(){};Friends.ClassPictureLoader.prototype={className:"pictureloader-",getElement:function(a){return y5.Dom.getDescendant(this.element,"*",this.className+a)},default_enctype:"",initBase:function(a,b){this.__listeners=[];this.element=a;this.file=this.getElement("file");this.form=this.file.form;this.filename=this.getElement("filename");this.filename.value=y5.Utils.generateId();this.label=this.getElement("label")||document.createElement("label");this.__listeners.push(y5.Events.observe("y5:"+y5.Utils.getUniqueId(this.form),this.change,this.form,true,this));this.__listeners.push(y5.Events.observe("y5:load",this.clearFile,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:error",this.error,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:readyforsend",this.sendPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:send",this.showPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:disableByRename",this.disableByRename,this.form,true,this));y5.Events.create("submit",this.enableByRename,this.form,true,this);return this.form},createFromTag:function(a,b){this.initBase(a,b)},sendPictureBase:function(){this.getElement("filename").value=y5.Utils.generateId()},change:function(){this.sendPicture(this.form);if(!this.delListener){var a=this.getElement("delete");if(a){this.delListener=new y5.AEventListener("click",this.deleteImage,a,false,this)}}if(this.delListener){this.delListener.add()}},error:function(){this.deleteImage(this.filename,this.label);y5.Classes.remove(this.label,"active");y5.Classes.remove(this.label,"load");y5.Classes.add(this.label,"error");this.clearFile();if(this.delListener){this.delListener.remove()}},deleteImage:function(){this.filename.value="";y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");y5.Classes.remove(this.label,"active");y5.Classes.add(this.label,"new");try{Friends.ChangeUserpicControl.Constructor.prototype.instance.activateCurrent()}catch(a){}if(this.delListener){this.delListener.remove()}},clearFile:function(){this.filename.value="";var a=this.file.parentNode;a.innerHTML=a.innerHTML;this.file=a.firstChild},sendForm:function(action){var _this=this;y5.Events.notify("y5:disableByRename",_this.form,true,_this.element);_this.enableByRename();_this.setFormEnctype();function response(result,trace){if(!result||!y5.Strings.trim(result)){y5.Events.notify("y5:error",_this.element,true,null);return}result=eval("("+result+")");if(!result.name){y5.Events.notify("y5:error",_this.element,true,null);return}y5.Events.notify("y5:send",_this.element,true,result);_this.restoreFormEnctype()}function error(result,trace){y5.Events.notify("y5:error",_this.element,true,null);_this.restoreFormEnctype()}if($("input[name='sk']").length){var ticketInput=$(''),utInput=$('');$(this.form).append(ticketInput,utInput)}ya.controls.pictureUpload(action,this.form,{},function(_this){return function(){_this.sendFormHandler.apply(_this,arguments)}}(this),error)},sendFormHandler:function(a,b){if(!a||!a.name){y5.Events.notify("y5:error",this.element,true,null);return}y5.Events.notify("y5:send",this.element,true,a);this.restoreFormEnctype();$("input[name='ticket']",this.form).remove();$("input[name='ut']",this.form).remove()},disableByRename:function(b){if(b==this.element){return}var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(c){if(c.name.indexOf("_disabledByRename")===-1){c.name=c.name+"_disabledByRename"}})},enableByRename:function(){var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(b){if(b.name.indexOf("_disabledByRename")!==-1){b.name=b.name.replace("_disabledByRename","")}})},restoreFormEnctype:function(){if(!y5.is_ie){this.form.enctype=this.default_enctype}},setFormEnctype:function(){this.default_enctype=this.form.enctype;this.form.enctype="multipart/form-data"},dectruct:function(){var b,a;for(b=0,a=this.__listeners.length;b0){var b=new Friends.PictureLoaderAvatar();b.init.apply(b,arguments);return b}};Friends.PictureLoaderAvatar.prototype=new Friends.ClassPictureLoader();Friends.PictureLoaderAvatar.prototype.showPicture=function(a){var g=this;var b=a.name;var e=g_globals.userpic_base+g_source.id+"/"+b+"-"+this.size;var d=this.image;d.onerror=function(h){d.onerror=null;y5.Events.notify("y5:error",g.element,true,null)};y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");d.src=e;this.response=a;y5.Events.notify("y5:load",this.element,true,b);if(!this.params.simpleForm){var f=this.element.cloneNode(true);var c=new Friends.UserpicDeletable(f,{userpic:b,host_id:this.params.host_id});y5.Dom.insertBefore(c.control,this.element);y5.cssQuery('input[type="file"]',c.control).forEach(function(h){y5.Dom.removeNode(h)});y5.cssQuery('input[name="userpic"]',c.control).forEach(function(h){h.value=b});this.deleteImage();c.modeChoosed()}};Friends.PictureLoaderAvatar.prototype.saveUserpic=function(a){};Friends.PictureLoaderAvatar.prototype.saveUserpicHandler=function(c){var b=c.responseText;var a=y5.JSON.decode(b);if(a.name===false){y5.Events.notify("y5:error",this.element,true,null);return false}};Friends.PictureLoaderAvatar.prototype.saveUserpicErrorHandler=function(){y5.Events.notify("y5:error",this.element,true,null)};Friends.PictureLoaderAvatar.prototype.init=function(a,b){this.initBase(a,b);this.image=this.getElement("image");y5.Events.observe("click",function(){y5.Events.notify("y5:userpic_clicked",this,true)},this.image,true,this);this.size=b.size||"normal";this.params=b};Friends.PictureLoaderAvatar.prototype.urlModify=function(){return g_globals.upics_simple_upload};Friends.PictureLoaderAvatar.prototype.sendPicture=function(){this.sendPictureBase();y5.Classes.swap(this.label,"new","load");y5.Classes.remove(this.label,"error");this.sendForm(this.urlModify())};y5.loaded("{Friends}.PictureLoaderAvatar")});y5.require(["Events","Strings","Dom","Classes","{Friends}.PictureLoaderAvatar"],function(){Friends.OptionsBGImageLoader=Friends.PictureLoaderAvatar;Friends.OptionsBGImageLoader.prototype=Friends.PictureLoaderAvatar.prototype;Friends.OptionsBGImageLoader.prototype.showPicture=function(a){var b=g_globals.pictures_base+g_source.login+"/"+a.name;y5.Events.notify("y5:OptionsBGImageLoaded",this.element,true,b);y5.Events.notify("y5:load",this.element,true,b)};Friends.OptionsBGImageLoader.prototype.urlModify=function(){return g_globals.pictures_modify};y5.loaded("{Friends}.OptionsBGImageLoader")});Friends.OptionsBGImageUser=new function(){this.createFromTag=function(a,b){new Friends.OptionsBGImageUser.Constructor(a,b)}};Friends.OptionsBGImageUser.Constructor=function(a,b){this.element=a;this.input=y5.cssQuery("input[type=hidden]",a)[0];this.radio=y5.cssQuery("input[type=radio]",a)[0];this.i=y5.cssQuery("i",a)[0];this.label=y5.cssQuery("label",a)[1];this.init()};Friends.OptionsBGImageUser.Constructor.prototype=new function(){this.init=function(){var b=this;function a(c){b.click(c)}y5.Events.create("click",a,this.radio,true);y5.Events.observe("y5:show",this.show,this.element,true,this);y5.Events.observe("y5:clear",this.clear,this.element,true,this)};this.click=function(a){y5.Classes.add(this.label,"active");y5.Events.notify("y5:OptionsBGImageUser",this.element,true,this.input.value)};this.clear=function(){y5.Classes.remove(this.label,"active")};this.show=function(a){this.i.style.backgroundImage=a.replace(/src/,"middle");this.radio.checked=true;y5.Classes.remove(this.element,"i-hidden");this.input.value=a;this.click()}};y5.require(["Dom","Events","cssQuery","Classes"],function(){y5.loaded("{Friends}.OptionsBGImageUser")});Friends.OptionsBGImageNone=new function(){this.createFromTag=function(a,b){new Friends.OptionsBGImageNone.Constructor(a,b)}};Friends.OptionsBGImageNone.Constructor=function(a,b){this.element=a;this.input=y5.cssQuery("input",a)[0];this.init()};Friends.OptionsBGImageNone.Constructor.prototype=new function(){this.init=function(){var b=this;function a(c){b.click(c)}y5.Events.create("click",a,this.input,true)};this.click=function(a){if(this.input.checked){y5.Events.notify("y5:OptionsBGImageNone",this.element,true,"none")}}};y5.require(["Dom","Events","cssQuery"],function(){y5.loaded("{Friends}.OptionsBGImageNone")});Friends.OptionsBGImagePreset=new function(){this.createFromTag=function(a,b){new Friends.OptionsBGImagePreset.Constructor(a,b)}};Friends.OptionsBGImagePreset.Constructor=function(a,b){this.element=a;this.active=this.getActive();this.init()};Friends.OptionsBGImagePreset.Constructor.prototype=new function(){this.init=function(){var b=this;function a(c){b.click(c)}y5.Events.create("click",a,this.element,true);y5.Events.observe("y5:clear",this.clear,this.element,true,this)};this.getActive=function(){var a=y5.cssQuery("label.active",this.element);return a&&a.length?a[0]:null};this.click=function(h){var g=h.target;if(!y5.Dom.testTagName(g,"i")){return}var c=(g.nodeName=="label")?g:g.parentNode;this.setActive(c);var b=y5.cssQuery("input[type=radio]",g.parentNode.parentNode)[0];y5.Events.notify("y5:OptionsBGImagePreset",this.element,true,b.value);b.checked=true;var f=y5.cssQuery("input[type=hidden]",g.parentNode.parentNode)[0];var a=this.getColors(f),d;for(d in a){y5.Events.notify("y5:colorPikkerSetColor",External,true,{name:d,value:a[d]})}};this.getColors=function(a){return a.onclick()};this.clear=function(){this.setActive(null)};this.setActive=function(a){if(this.active==a){return}if(this.active){y5.Classes.remove(this.active,"active")}if(a){y5.Classes.add(a,"active")}this.active=a}};y5.require(["Dom","cssQuery","Events","Classes"],function(){y5.loaded("{Friends}.OptionsBGImagePreset")});y5.require(["{External}.ColorPikker.ColorPikker"],function(){Friends.ClassColorPicker=function(){};Friends.ClassColorPicker.prototype=new Colorpikker();Friends.ClassColorPicker.prototype.customImg="http://img.yandex.net/i/zero.gif";Friends.ClassColorPicker.prototype.collection={};Friends.ClassColorPicker.prototype.createFromTag=function(a,b){this.defaultSingleWindow=false;this.input=this.generateID(y5.Dom.getDescendant(a,"input","ColorPikker-Input"));this.preview=this.generateID(y5.Dom.getDescendant(a,"*","ColorPikker-Preview"));this.init({input:this.input.id,preview:this.preview.id});y5.Events.observe("y5:changeColor",this.changeColor,this,true,this);this.collection[this.input.name]=this;y5.Events.observe("y5:colorPikkerSetColor",this.setColor,External,true,this);return};Friends.ClassColorPicker.prototype.setColor=function(a){var b=this.collection[a.name];if(b){b.setModel(a.value)}};Friends.ClassColorPicker.prototype.generateID=function(a){if(!a.id){a.id=y5.Utils.generateId("ColorPikker_")}return a};Friends.ClassColorPicker.prototype.changeColor=function(a){y5.Events.notify("y5:colorPikkerChangeColor",y5,true,{name:this.input.name||"",color:a})};y5.loaded("{Friends}.classes.ClassColorPicker")});Friends.OptionsMainPage=new function(){this.createFromTag=function(a,b){new Friends.OptionsMainPage.Constructor(a,b)}};Friends.OptionsMainPage.Constructor=function(a,b){this.element=a;this.params=b;this.init()};Friends.OptionsMainPage.Constructor.prototype=new function(){this.init=function(){var b=this;function a(c){b.change(c)}y5.Events.observe("y5:OptionsSwitcherChange"+this.params.name,a,Friends,true)};this.change=function(b){var a,c;if(y5.Strings.startsWith(b.name,"show-")){a=y5.cssQuery("."+b.name,this.element)[0];c=!(b.value=="no"&&b.checked)}else{a=this.element;c=(b.value==this.params.value&&b.checked)}if(a){y5.Classes.assign(a,"i-hidden",!c)}}};y5.require(["Events","Classes","Strings"],function(){y5.loaded("{Friends}.OptionsMainPage")});Friends.OptionsStyle=new function(){this.createFromTag=function(a,b){new Friends.OptionsStyle.Constructor(a,b)}};Friends.OptionsStyle.Constructor=function(a,b){this.element=a;this.params=b;this.init()};Friends.OptionsStyle.Constructor.prototype=new function(){this.init=function(){this.elements=new Friends.OptionsStyle.Elements(this.element);var d=this,c=d.elements.elements;function b(f){if(c[f.name]){d.changeStyle(c[f.name],f.color)}}y5.Events.observe("y5:colorPikkerChangeColor",b,y5,true);function a(f){if(c[f.name]){d.changeStyle(c[f.name],f.className)}}y5.Events.observe("y5:ChangeBGImage",a,Friends,true)};this.changeStyle=function(g,f){var d,a;for(d=0,a=g.length;d *",a),"color"]],"header-image":[[y5.cssQuery("div.b-page-head",a),"className"]],"header-user-image":[[y5.cssQuery("div.b-page-head",a),"backgroundImage"]]}};y5.require(["Events","Dom","Arrays","cssQuery","Classes"],function(){y5.loaded("{Friends}.OptionsStyle")});Friends.OptionsBGImage=new function(){this.createFromTag=function(a,b){new Friends.OptionsBGImage.Constructor(a,b)}};Friends.OptionsBGImage.Constructor=function(a,b){this.element=a;this.init()};Friends.OptionsBGImage.Constructor.prototype=new function(){this.init=function(){this.initPreset();this.initNone();this.initUser();this.initLoader()};this.initPreset=function(){this.preset=y5.cssQuery(".Friends-c-OptionsBGImagePreset",this.element)[0];y5.Components.createComponents([this.preset]);y5.Events.observe("y5:OptionsBGImagePreset",this.getPreset,this.preset,true,this)};this.initNone=function(){this.none=y5.cssQuery(".Friends-c-OptionsBGImageNone",this.element)[0];y5.Components.createComponents([this.none]);y5.Events.observe("y5:OptionsBGImageNone",this.getNone,this.none,true,this)};this.initUser=function(){this.user=y5.cssQuery(".Friends-c-OptionsBGImageUser",this.element)[0];y5.Components.createComponents([this.user]);y5.Events.observe("y5:OptionsBGImageUser",this.getUser,this.user,true,this)};this.initLoader=function(){this.loader=y5.cssQuery(".Friends-c-OptionsBGImageLoader",this.element)[0];y5.Components.createComponents([this.loader]);y5.Events.observe("y5:OptionsBGImageLoaded",this.getLoaded,this.loader,true,this)};this.getPreset=function(a){this.clearUser();this.clearView();y5.Events.notify("y5:ChangeBGImage",Friends,true,{name:"header-image",className:a})};this.getNone=function(a){this.clearPreset();this.clearUser();this.clearView()};this.getLoaded=function(a){a="url("+a+")";y5.Events.notify("y5:show",this.user,true,a)};this.getUser=function(a){this.clearPreset();this.clearView();y5.Events.notify("y5:ChangeBGImage",Friends,true,{name:"header-user-image",className:a})};this.clearPreset=function(){y5.Events.notify("y5:clear",this.preset,true,null)};this.clearUser=function(){y5.Events.notify("y5:clear",this.user,true,null)};this.clearView=function(){y5.Events.notify("y5:ChangeBGImage",Friends,true,{name:"header-user-image",className:"none"});y5.Events.notify("y5:ChangeBGImage",Friends,true,{name:"header-image",className:"none"})}};y5.require(["Events","cssQuery"],function(){y5.loaded("{Friends}.OptionsBGImage")});(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                          ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                          ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/_y.js b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/_y.js new file mode 100644 index 0000000..4f3ce8c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/_y.js @@ -0,0 +1,8 @@ +(function(b){var a={};a.imageError=function(c){var d=c.parentNode,e=d.parentNode.childNodes.length>2?d:d.parentNode;e.innerHTML='
                          Картинка недоступна
                          '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                          ${content}
                          ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                          '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                          ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                          #{title}
                          ');b.setFooter('
                           
                          ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/female01-middle.png b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/female01-middle.png new file mode 100644 index 0000000..7d441dc Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/female01-middle.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                          a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                          "+""+"
                          ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                          t
                          ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                          ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                          ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                          ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                          ","
                          "],thead:[1,"","
                          "],tr:[2,"","
                          "],td:[3,"","
                          "],col:[2,"","
                          "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                          ","
                          "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                          ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/male00-middle.png b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/male00-middle.png new file mode 100644 index 0000000..6ec4748 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/male00-middle.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/male01-middle.png b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/male01-middle.png new file mode 100644 index 0000000..e51b217 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/male01-middle.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки Моя страница — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1 + Настройки: анкета — я.ру +
                          + + + +
                          ПоискПочтаДискКалендарьДеньгиМой КругФотки
                          + + Выход

                          Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                          Лично я

                          Подпись: Кразя

                          Знаю и умею

                          Любимое

                          Особенное

                           

                          Что получается:  +   + изменить  +
                          Подписаться на комментарии к записи

                          Получать уведомления о всех ответах в этом обсуждении.

                           
                          Отписаться от комментарев к записи

                          Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                           
                          К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                          + + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_profile.xml b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_profile.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_profile.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/Calendar.js b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/Calendar.js new file mode 100644 index 0000000..ddf8455 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/Calendar.js @@ -0,0 +1 @@ +y5.require(["Dom","Classes","Events","ShortCuts","Components","Styles","Elements","Dates","Strings"],function(){y5.Styles.createStyle(y5.moduleURL("Components.Calendar.y5-calendar","css"),true);y5.Components.Calendar=function(A){this.status="date";this.selectedDate=null;this.limitDates=A.limitDates||{min:null,max:null};if(A.date1&&A.date2){this.period=true;this.dateFrom=A.date1;this.dateTo=A.date2}if(A.date){this.date=new Date(A.date)}if(!y5.Types.date(this.date)){this.date=new Date()}this.params=A;this.HTML=new y5.Components.Calendar.HTML(this.params);this.init(this.params);return this.element};y5.Components.Calendar.prototype=new function(){this.init=function(){var C;switch(this.params.style){case"vista":C=[y5.Dates.monthNames[this.date.getMonth()]+" "+this.date.getFullYear(),this.createHTML()];break;default:C=[this.date.getFullYear(),y5.Dates.monthNames[this.date.getMonth()],this.createHTML()];break}C.push(A(this.date));this.element=y5.Elements.create(y5.Strings.printf(this.HTML.calendar,C));y5.Events.observe("click",this.eventHandler,this.element,true,this);var H=y5.Dom.getDescendant(this.element,"tr","y5-calendar-time");if(H){var E=y5.Dom.getDescendant(H,"input");y5.Events.observe("change",this.changeTime,E,true,this);y5.ShortCut.press([{key:y5.ShortCut.ENTER}],this.changeTime,E,{checkTarget:false,context:this,preventDefault:true});y5.ShortCut.press([{key:y5.ShortCut.ESC}],this.revertTime,E,{checkTarget:false,context:this,preventDefault:false})}y5.Events.observe("y5:Calendar:setDate",G,this.element,true,this);function F(I){this.selectedDate=y5.Types.date(I)?y5.Dates.clone(I):null;this.redraw()}y5.Events.observe("y5:Calendar:setSelectedDate",F,this.element,true,this);function G(I){this.date=new Date(I);this.redraw()}if(this.period){function D(I){if(I[0]&&I[1]){this.period=true;this.dateFrom=new Date(I[0]);this.dateTo=new Date(I[1]);this.redraw();if(!this.inPeriod(this.date)&&(this.date.getTime()!=this.dateFrom.getTime())&&(this.date.getTime()!=this.dateTo.getTime())){this.removeSelectedClass()}}else{this.period=false;this.redraw()}}y5.Events.observe("y5:Calendar:setPeriodDates",D,this.element,true,this)}y5.Events.observe("y5:Calendar:setLimitDates",function(I){if(y5.Types.date(I.min)){this.limitDates.min=y5.Dates.clone(min)}if(y5.Types.date(I.max)){this.limitDates.max=y5.Dates.clone(max)}},this.element,true,this);this.calendarCell=y5.Dom.getDescendant(this.element,"td","y5-calendar-fixed")};this.createHTML=function(){var I=new Date(this.date);I.setDate(1);I=I.getDay();I=y5.Dates.getDayOffset(I,this.params.firstDay+1);var K=y5.Dates.getMonthDays(this.date.getMonth(),this.date.getFullYear());var F="",G,J=new Date(),E,L,D;var C=false,M=y5.Types.date(this.limitDates.min),H=y5.Types.date(this.limitDates.max),N;if(y5.Types.date(this.selectedDate)){if(B(this.date,this.selectedDate)){C=true;G=this.selectedDate.getDate()}}else{C=true;G=this.date.getDate()}J.setHours(this.date.getHours());J.setMinutes(this.date.getMinutes());J.setSeconds(this.date.getSeconds());J.setMilliseconds(0);J=J.getTime();D=new Date(this.date);if(I!=0){D.setMonth(D.getMonth()-1);D=y5.Dates.getMonthDays(D.getMonth(),D.getFullYear());for(E=1;E<=I;E++){F+=y5.Strings.printf(this.HTML.otherMonthDay,D-I+E)}}D=new Date(this.date);for(E=1;E<=K;E++){if(I==0){F+=""}D.setDate(E);L="";if(C){L+=(G==E)?"y5-calendar-selected":""}L+=(D.getTime()==J)?" y5-calendar-today":"";L+=((I+this.params.firstDay)%7>=5)?" y5-calendar-weekend":"";if(this.period){L+=this.inPeriod(D)?" y5-calendar-period":""}if((M&&D.getTime()this.limitDates.max.getTime())){F+=y5.Strings.printf(this.HTML.disabledDay,E)}else{F+=y5.Strings.printf(this.HTML.day,[L,E])}if(++I>=7){F+="";I=0}}if(I!=0){for(E=I;E<7;E++){F+=y5.Strings.printf(this.HTML.otherMonthDay,E-I+1)}F+=""}if(this.period){if(!this.inPeriod(this.date)&&(this.date.getTime()!=this.dateFrom.getTime())&&(this.date.getTime()!=this.dateTo.getTime())){F=F.replace("y5-calendar-selected","")}}return y5.Strings.printf(this.HTML.calendarTable,F)};this.eventHandler=function(H){H.preventDefault();if(y5.Classes.test(H.target,this.HTML.classes.date)){this.removeSelectedClass();y5.Classes.add(H.target.parentNode,"y5-calendar-selected");this.date.setDate(H.target.innerHTML);this.redraw();y5.Events.notify("y5:Calendar:selectDate",this.element,true,this.date)}else{if(y5.Classes.test(H.target,this.HTML.classes.today)){H.target.blur();this.status="date";this.date=new Date();this.redraw();if(this.params.closeOnTodayLink){y5.Events.notify("y5:Calendar:selectDate",this.element,true,this.date)}}else{if(y5.Dom.testTagName(H.target,"a")&&y5.Classes.test(H.target,this.HTML.classes.info)){switch(this.status){case"date":this.status="month";this.redraw();break;case"month":this.status="year";this.redraw();break}}else{if(y5.Classes.test(H.target,this.HTML.classes.monthSelector)){this.status="date";this.updateDate("month",y5.Dates.monthNames.indexOf(H.target.innerHTML))}else{if(y5.Classes.test(H.target,this.HTML.classes.yearSelector)){this.status="month";this.updateDate("year",H.target.innerHTML)}else{if(y5.Dom.testTagName(H.target,"a")&&y5.Classes.test(H.target,this.HTML.classes.yearInfo)){var E=H.target.parentNode.innerHTML;H.target.parentNode.innerHTML=y5.Strings.printf(this.HTML.yearInput,this.date.getFullYear());var D=y5.Dom.getDescendant(this.element,"input",this.HTML.classes.yearInput);D.focus();function J(K){G.remove();F.remove();D.parentNode.innerHTML=E;this.updateDate("year",K.target.value)}var G=y5.Events.observe("change",J,D,true,this);var F=y5.Events.observe("blur",J,D,true,this);y5.ShortCut.press([{key:y5.ShortCut.ENTER}],J,D,{checkTarget:false,context:this,preventDefault:true,once:true})}else{if(y5.Classes.test(H.target,this.HTML.classes.yearPrev)){this.updateDate("year",-1,true)}else{if(y5.Classes.test(H.target,this.HTML.classes.yearNext)){this.updateDate("year",1,true)}else{if(y5.Classes.test(H.target,this.HTML.classes.monthPrev)){this.updateDate("month",-1,true)}else{if(y5.Classes.test(H.target,this.HTML.classes.monthNext)){this.updateDate("month",1,true)}else{if(y5.Dom.testTagName(H.target,"a")&&y5.Classes.test(H.target,this.HTML.classes.monthInfo)){var E=H.target.parentNode.innerHTML;H.target.parentNode.innerHTML=this.HTML.monthSelect;var C=y5.Dom.getDescendant(this.element,"select",this.HTML.classes.monthSelect);C.value=this.date.getMonth();C.focus();function I(L){G.remove();F.remove();var K=C.value;C.parentNode.innerHTML=E;this.updateDate("month",K)}var G=y5.Events.observe("change",I,C,true,this);var F=y5.Events.observe("blur",I,C,true,this);y5.ShortCut.press([{key:y5.ShortCut.ENTER}],I,C,{checkTarget:false,context:this,preventDefault:true,once:true})}}}}}}}}}}}};this.changeTime=function(G,D){var F=G.target.value,E,C,H;if(y5.Strings.isEmpty(F)||isNaN(parseInt(F,10))){G.target.value=A(this.date);return false}F=F.split(":");if(F.length==2){E=parseInt(F[0],10);C=parseInt(F[1],10)}else{F=F[0];if(F.length==4){E=parseInt(F.substr(0,2),10);C=parseInt(F.substr(2),10)}else{E=parseInt(F,10)%24;C=0}}H=A(this.date);if(!isNaN(E)){this.date.setHours(E)}if(!isNaN(C)){this.date.setMinutes(C)}G.target.value=A(this.date);if(A(this.date)!=H){y5.Events.notify("y5:Calendar:changeTime",this.element,true,this.date);return true}return false};this.revertTime=function(C){C.target.value=A(this.date)};this.redraw=function(){switch(this.status){case"date":this.calendarCell.innerHTML=this.createHTML();var D=y5.Dom.getElementByClass("y5-calendar-info",this.element);if(D){D.innerHTML=y5.Dates.monthNames[this.date.getMonth()]+" "+this.date.getFullYear()}D=y5.Dom.getElementByClass("y5-calendar-month-info",this.element);if(D){D.innerHTML=y5.Dates.monthNames[this.date.getMonth()]}D=y5.Dom.getElementByClass("y5-calendar-year-info",this.element);if(D){D.innerHTML=this.date.getFullYear()}D=y5.Dom.getDescendant(this.element,"input","y5-calendar-time-input");if(D){D.value=A(this.date)}break;case"month":var G=y5.Elements.create(this.HTML.monthSelector);y5.Dom.replaceNode(y5.Dom.getDescendant(this.calendarCell,"table"),G);y5.Classes.add(y5.Dom.getDescendants(G,"td")[this.date.getMonth()],"y5-calendar-selected");y5.Dom.getDescendant(this.element,"a",this.HTML.classes.info).innerHTML=this.date.getFullYear();break;case"year":var H=[];var J=this.date.getFullYear();for(var F=J-6;F<=J+6;F++){H.push(F)}var L=y5.Elements.create(y5.Strings.printf(this.HTML.yearSelector,H));y5.Classes.add(y5.Dom.getDescendants(L,"td")[6],"y5-calendar-selected");y5.Dom.replaceNode(y5.Dom.getDescendant(this.calendarCell,"table"),L);y5.Dom.getDescendant(this.element,"a",this.HTML.classes.info).innerHTML=y5.Strings.printf(this.HTML.yearInput,J);var K=y5.Dom.getDescendant(this.element,"input",this.HTML.classes.yearInput);K.focus();function C(M){I.remove();this.status="month";this.updateDate("year",M.target.value)}var I=y5.Events.observe("change",C,K,true,this);y5.ShortCut.press([{key:y5.ShortCut.ENTER}],C,K,{checkTarget:false,context:this,preventDefault:true,once:true});break}var E=y5.Dom.getDescendant(this.element,"tr","y5-calendar-time");if(E){if(this.status=="date"){E.style.display=""}else{E.style.display="none"}}};this.updateDate=function(D,E,F){var G,C;if(D=="year"){G="getFullYear";C="setYear"}else{G="getMonth";C="setMonth"}if(F){E=this.date[G]()+E}this.date[C](E);this.redraw()};this.inPeriod=function(C){return this.dateFrom<=C&&C<=this.dateTo};this.removeSelectedClass=function(){var C=y5.Dom.getDescendant(this.element,"td","y5-calendar-selected");if(C){y5.Classes.remove(C,"y5-calendar-selected")}};function A(C){return y5.Strings.printf("%02d:%02d",C.getHours(),C.getMinutes())}function B(D,C){return(D.getFullYear()==C.getFullYear())&&(D.getMonth()==C.getMonth())}};y5.require(["Components.Calendar.HTML"],function(){y5.loaded("Components.Calendar")})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/HTML.js b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/HTML.js new file mode 100644 index 0000000..ad1b530 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/HTML.js @@ -0,0 +1 @@ +(function(){var A=[y5.moduleURL("Components.Calendar.calendar-prev-prev","gif"),y5.moduleURL("Components.Calendar.calendar-next-next","gif"),y5.moduleURL("Components.Calendar.calendar-prev","gif"),y5.moduleURL("Components.Calendar.calendar-next","gif")];y5.Components.Calendar.HTML=function(C){var E,H,J,D,G,F,B,K;C.firstDay=y5.Dates.getDayOffset(y5.Dates.days[C.firstDay]||1,"Monday");C.style=C.style||"classic";C.todayLink=C.todayLink||false;C.time=C.time||false;C.removeControls=C.removeControls||false;if(C.removeControls){H=J=D=G="";F='%s';B='%s';K='%s'}else{F='%s';B='%s';K='%s';H='«';J='»';D='←';G='→'}this.classes={date:"y5-calendar-date",today:"y5-calendar-go-today",yearPrev:"y5-calendar-year-prev",yearInfo:"y5-calendar-year-info",yearNext:"y5-calendar-year-next",yearInput:"y5-calendar-year-input",monthPrev:"y5-calendar-month-prev",monthInfo:"y5-calendar-month-info",monthNext:"y5-calendar-month-next",monthSelect:"y5-calendar-month-select",info:"y5-calendar-info",monthSelector:"y5-calendar-selector-month",yearSelector:"y5-calendar-selector-year",time:"y5-calendar-time-input"};this.day='%s';this.otherMonthDay='%s';this.disabledDay='%s';this.yearInput='';switch(C.style){case"classic":if(!C.removeControls){H='«';J='»'}var I=''+H+F+J+''+D+B+G+"";this.monthSelect='";break;case"vista":var I=''+H+D+K+G+J+"";this.yearSelector='
                          %s%s%s
                          %s%s%s
                          %s%s%s
                          %s%s%s
                          ';this.monthSelector='
                          %s%s%s
                          %s%s%s
                          %s%s%s
                          %s%s%s
                          ';this.monthSelector=y5.Strings.printf(this.monthSelector,y5.Dates.monthNames)}this.calendar='";if(C.todayLink){this.calendar+=''}this.calendar+=' ';if(C.time){this.calendar+=''}this.calendar+="
                          '+I+"
                          \u0441\u0435\u0433\u043E\u0434\u043D\u044F
                          %s
                          ";this.calendarTable='';for(E=C.firstDay;E<7+C.firstDay;E++){this.calendarTable+='%s
                          "}this.calendarTable+="
                          "};y5.require(["Dates","Strings"],function(){y5.loaded("Components.Calendar.HTML")})})(); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                            {popup_items}
                          '].join(""),popup_item:'
                        • {title}
                        • ',popup_item_selected:'
                        • {title}
                        • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                          ','','
                          ','
                          ','','','','
                          {content}',"
                          ","
                          ","
                          ","
                          "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                            {items}
                          ',""].join(""));a.templates.menuItem=a.template(['
                        • ','
                          ','{title}',"
                          ","
                        • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                          ','',"
                          ",""].join("")),itemResult:a(['
                          ','
                          ','
                          ','
                          ',"
                          {title}",'{count}',"
                          ","
                          "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                          {items}{actions}
                          '),actionLink:a('
                          {title}
                          '),expired:a('
                          {title}
                          ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                          ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                           
                          ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                          обновление...
                          ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                          {(moreAsUpdate)[
                          я в курсе
                          ]}
                          {(allItems)({(moreAsUpdate)()[]})}
                          '),viewportLayout:b('
                          {(titleButton)({titleButton})}
                          показать ещё
                          '),group:b('
                          {timestamp}
                          {items}
                          '),item:b('
                          {user} — {title}
                          '),likeItem:b('
                          {user} {appreciate} запись {title}
                          '),recommendItem:b(''),replyItem:b('
                          {user}{separator} {title}
                          '),photoItem:b('
                          {alt}
                          '),videoItem:b('
                          {duration}
                          '),videoContainer:b('
                          {items}
                          '),albumsContainer:b('
                          {items}
                          '),videoCollection:a.template('
                          {content}
                          ',{content:""}),videoCollectionItem:b('
                          {count} видео
                          '),albumItem:b('
                          {title}
                          {count}
                          '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                          {title}
                          '),wishlistItem:b('
                          {title}
                          {title}
                          '),wishlistPromisedItem:b('
                          {info}
                          {title}
                          отменить
                          '),ratingInfo:b(''),onload:b('
                           
                          '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                          ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                          "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/_options-profile-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/_options-profile-includes.js new file mode 100644 index 0000000..24464d9 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/_options-profile-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                          ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                          ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});y5.jsonT=function(self,rules){var T={output:false,init:function(){for(var rule in rules){if(rule.substr(0,4)!="self"){rules["self."+rule]=rules[rule]}}return this},apply:function(expr){var trf=function(s){return s.replace(/{([A-Za-z0-9_\$\.\[\]\'@\(\)]+)}/g,function($0,$1){return T.processArg($1,expr)})};var x=expr.replace(/\[[0-9]+\]/g,"[*]");var res;if(x in rules){if(typeof(rules[x])=="string"){res=trf(rules[x])}else{if(typeof(rules[x])=="function"){res=trf(rules[x](eval(expr)).toString())}}}else{res=T.eval(expr)}return res},processArg:function(arg,parentExpr){var expand=function(a,e){return(e=a.replace(/^\$/,e)).substr(0,4)!="self"?("self."+e):e};var res="";T.output=true;if(arg.charAt(0)=="@"){res=eval(arg.replace(/@([A-za-z0-9_]+)\(([A-Za-z0-9_\$\.\[\]\']+)\)/,function($0,$1,$2){return"rules['self."+$1+"']("+expand($2,parentExpr)+")"}))}else{if(arg!="$"){res=T.apply(expand(arg,parentExpr))}else{res=T.eval(parentExpr)}}T.output=false;return res},eval:function(expr){var v=eval(expr),res="";if(typeof(v)!="undefined"){if(v instanceof Array){for(var i=0;i0){try{h.focus()}catch(v){}}}function f(){s.autocomplete.down()}y5.ShortCut.press([{key:y5.ShortCut.DOWN_ARROW}],f,h,false);y5.ShortCut.down([{key:y5.ShortCut.DOWN_ARROW}],y5.NULL,h,false);function e(){s.autocomplete.up()}y5.ShortCut.press([{key:y5.ShortCut.UP_ARROW}],e,h,false);y5.ShortCut.down([{key:y5.ShortCut.UP_ARROW}],y5.NULL,h,false);function p(){var x=y5.Strings.trim(h.value);var w=x.length?s.string.match(x):null;if(!w){s.autocomplete.reload(null,x);var v={value:null,parent:null};y5.CallBacks.dispatch("change",h,v);return}s.autocomplete.reload(w,x)}new y5.InputObserver(p,h,true);function d(v){u=(v.keyCode==y5.ShortCut.TAB);if(l&&v.keyCode==y5.ShortCut.ENTER){v.preventDefault()}else{l=false}}y5.Events.observe("keypress",d,h,true);function o(v){s.autocomplete.change()}new y5.AEventListener("blur",o,h,true);function c(w){var v=w.target;while(v&&v!=y5.Dom.getBody()){if(v==a){return}v=v.parentNode}s.autocomplete.close()}var b=y5.Events.create("click",c,document,false)}};y5.Components.AutoComplete.Strings=function(a){this.setString=function(b){this.string=b};this.setString(a);this.match=function(c,b){return this.string.match(this.getRegExp(c,b))};this.getRegExp=function(c,b){switch(b){case"full":return new RegExp("<[^>]*>"+y5.Strings.escapeRegexp(c)+"]*>","ig");case"value":return new RegExp('<[^v]*v="'+y5.Strings.escapeRegexp(c)+'"[^>]*>[^<]*]*>',"i");case"parent":return new RegExp('<[^p]*p="'+y5.Strings.escapeRegexp(c)+'"[^>]*>[^<]*]*>',"ig");case"gettext":return new RegExp("<[^>]*>([^<]*)]*>","i");case"getvalue":return new RegExp('<[^v]*v="([^"]*)[^>]*>[^<]*]*>',"i");case"getstyle":return new RegExp('<[^s]*s="([^"]*)[^>]*>[^<]*]*>',"i");case"getparent":return new RegExp('<[^p]*p="([^"]*)[^>]*>[^<]*]*>',"i");case"node":return new RegExp('<[^v]*v="([^"]*)[^p]*p="([^"]*)[^>]*>([^<]*)]*>',"i");default:return new RegExp("<[^/>]*>"+y5.Strings.escapeRegexp(c)+"[^<]*]*>","ig")}return new RegExp("","")};this.getText=function(b){return b.match(this.getRegExp("","gettext"))[1]};this.getValue=function(b){return b.match(this.getRegExp("","getvalue"))[1]};this.getParent=function(b){var c=b.match(this.getRegExp("","getparent"));return c?c[1]:""};this.getStyle=function(b){var c=b.match(this.getRegExp("","getstyle"));return c?c[1]:""};this.createDataForNode=function(b){return{value:this.getValue(b),text:this.getText(b),parent:this.getParent(b),style:this.getStyle(b)}}};y5.require(["Strings","CallBacks","ShortCuts","Dom","Events","EventsExt"],function(){y5.loaded("Components.AutoComplete")});y5.Components.AutoComplete.Divs=function(a){this.input=a;this.init=function(c,d,b){this.noDefaultSelect=b;this.templates=d?new d():new y5.Components.AutoComplete.Divs.Templates();this.select=this.templates.apply({},"select");this.platform=this.select.length?this.select[0]:this.select;this.setEvents(this.platform);y5.Dom.getBody().appendChild(this.platform);this.select=this.select.length?this.select[1]:this.select;return this.select};this.setEvents=function(b){var f=this;function e(g){f.setActive(g.target.index,true);y5.CallBacks.dispatch("change",f,f.getEvent())}function d(g){e(g);y5.CallBacks.dispatch("click",f)}y5.Events.create("click",d,b,true);function c(g){f.setActive(g.target.index,true)}y5.Events.create("mouseover",c,b,true)};this.reload=function(b,c){if(this.timeout){window.clearTimeout(this.timeout)}if(!b||!b.length){this.close();return}this._reload(b,c)};this._reload=function(c,h){y5.Dom.clearNode(this.select);this.setSize(c.length);this.select.options=[];for(var d=0,b=c.length;dthis.select.scrollTop+this.select.offsetHeight){this.select.scrollTop=b-this.select.offsetHeight}b=null};this.setSize=function(b){this.select.style.height=this.templates.getSize(b)}};y5.Components.AutoComplete.Divs.Templates=function(){y5.Styles.createStyle(y5.constructURL("{y5}.Components.AutoComplete.divs","css"),true);var a={prefix:"y5-autocomplete-",autocomplete:"autocomplete",selected:"selected"};this.classes=new y5.Components.Classes(a).getClasses();this.apply=function(d,c){var b=y5.jsonT(d,this.templates(c));return y5.Elements.createElementFromHTML(b)};this.templates=function(c){var b=this.classes;var d={};switch(c){case"select":d={self:''};break;case"option":d={self:'{$.text}'};break}return d};this.getSize=function(d){var b=10,c=1;return(Math.min(b,Math.max(c,d))*1.4+(y5.is_opera||y5.is_ie?0.5:0))+"em"}};y5.require(["Utils","Events","Classes","ShortCuts","Elements","Styles","jsonT","Components.Classes","Strings","Dom","cssQuery"],function(){y5.loaded("Components.AutoComplete.Divs")});Friends.AutoCompleteTemplate=function(){var a={prefix:"y5-autocomplete-",autocomplete:"autocomplete",selected:"selected"};this.classes=new y5.Components.Classes(a).getClasses();this.apply=function(d,c){var b=y5.jsonT(d,this.templates(c));if(c=="select"){b=y5.Elements.createFromHTML(b);return[b,b.firstChild]}return y5.Elements.createFromHTML(b)};this.templates=function(c){var b=this.classes;var d={};switch(c){case"select":d={self:''};break;case"option":d={self:'{$.text}'};break}return d};this.getSize=function(d){var b=10,c=1;return(Math.min(b,Math.max(c,d))*1.93+(y5.Vars.is_opera||y5.Vars.is_ie?0.1:0))+"em"}};y5.require(["Components","Elements","jsonT"],function(){y5.loaded("{Friends}.AutoCompleteTemplate")});y5.Components.MultiAutoComplete=new function(){this.createFromTag=function(e,g){var b=y5.Dom.getElementsByClass(new RegExp(y5.Components.AutoComplete.className+"\\w+",""),e);function f(h){function i(k){var m=h.getAttribute("id");var j=g.parents[m]?y5.$(g.parents[m]):null;if(j&&typeof(j.setById)=="function"){j.setById(k.parent)}var l=g.childs[m]?y5.$(g.childs[m]):null;if(l&&typeof(l.specify)=="function"){l.specify(k.value)}}y5.CallBacks.add("change",i,h)}for(var d=0,a=b.length;d0){var d=c[e.eventTargetName];new y5.AEventListener(e.eventType,function(g){if(f.check()==f.ERROR){g.preventDefault()}},d,true)}}else{y5.Events.create("change",a,this.field,true);y5.Events.observe("y5:change",a,this.field,true)}this.email=function(g){return/^[\w-]+([\.+][\w-]+)*@([\w-]+\.)+[a-z]{2,7}$/i.test(g)};this.check=function(j){var g=this.NOT_PROVED;var h=this.field.value;var i=this.field.getAttribute("placeholder");if((h==""||i&&h==i)&&j){g=this.EMPTY}else{if(new RegExp("\\|"+h+"\\|").test(this.validated)){g=this.PROVED}else{if(!this.email(h)){g=this.ERROR}}}y5.Events.notify("y5:validationState",this.field,true,{state:g,element:this.field});this.showNote(this.notes,g);return g};this.getValidatedEmails=function(g){return g.replace(/<[^>]*>/ig,"|").replace(/\|\|/ig,"|")};this.validated=e.data?this.getValidatedEmails(e.data):"";this.check(true)};Friends.FieldValidator.Email.prototype=Friends.FieldValidator;y5.require(["Events"],function(){y5.loaded("{Friends}.FieldValidator")});Friends.MetroRegion=new function(){this.createFromTag=function(b,e){var a=y5.Dom.getDescendant(b,"*","profile-fields-city");var d=y5.$("title-metro");var c=y5.$("title-region");function f(g){if(g.value=="213"){y5.Classes.add(c,"i-hidden");y5.Classes.remove(d,"i-hidden")}else{y5.Classes.add(d,"i-hidden");y5.Classes.remove(c,"i-hidden")}}y5.Events.observe("y5:change",f,a,true)}};y5.require(["Dom","Events","Classes"],function(){y5.loaded("{Friends}.MetroRegion")});y5.require(["Strings","Types"],function(){var f=/\%e[^\%]*\%B/,b=/((\d+):(\d+):?(\d+)?)?\s?((\d+)[-.\/,](\d+)[-.,\/,](\d+))\s?((\d+):(\d+):?(\d+)?)?/,a=["Y","y","m","n","B","b","d","e","H","M","S"],e={},d,g=a.length;for(d=0;d0?k%12:(k+(12*Math.ceil(Math.abs(k/12))))%12;j.setMonth(k);if(i!=j.getMonth()){j.setDate(0)}return j},changeYear:function(i,h){i=this.clone(i);var j=i.getMonth();i.setFullYear(i.getFullYear()+h);if(j!=i.getMonth()){i.setDate(0)}return i},strToTime:function(p){var q=this,j=NaN,t=0,k=0,r=0,o=0,l=0,v=0,n=p.match(b);if(n&&n[5]){if(n[6].length==4){t=parseInt(n[6],10);if(1<=n[7]&&n[7]<=12){k=parseInt(n[7],10);r=parseInt(n[8],10)}else{k=parseInt(n[8],10);r=parseInt(n[7],10)}}else{if(n[8].length==4){t=parseInt(n[8],10);if(1<=n[7]&&n[7]<=12){k=parseInt(n[7],10);r=parseInt(n[6],10)}else{k=parseInt(n[6],10);r=parseInt(n[7],10)}}else{if(1<=n[6]&&n[6]<=31){r=parseInt(n[6],10);k=parseInt(n[7],10);t=parseInt(n[8],10)}else{r=parseInt(n[8],10);k=parseInt(n[7],10);t=parseInt(n[6],10)}t=t<70?2000+t:1900+t}}if(n[1]){o=parseInt(n[2],10);l=parseInt(n[3],10);v=parseInt(n[4],10)}else{if(n[9]){o=parseInt(n[10],10);l=parseInt(n[11],10);v=parseInt(n[12],10)}}v=isNaN(v)?0:v;j=new Date(t,k-1,r,o,l,v)}else{if((n=p.match(/(\d+)\s+(.*)\s+(\d+)/))){r=parseInt(n[1],10);t=parseInt(n[3],10);k=u(n[2],10);if(!isNaN(r)&&!isNaN(t)&&k!=-1){j=new Date();j.setDate(r);j.setMonth(k);j.setYear(t)}}else{if((n=p.match(/(\d+)\s+(.*)/))){r=parseInt(n[1],10);k=u(n[2]);if(!isNaN(r)&&k!=-1){j=new Date();j.setDate(r);j.setMonth(k)}}}}function u(m){m=m.toLowerCase();var w=["monthNamesPartitive","monthShortNames","monthNames"],s,x=-1,h;for(s=0;s<3;s++){for(h=0;h<12;h++){if(m==q[w[s]][h].toLowerCase()){x=h;break}}if(x!=-1){break}}return x}return j},getMonthDays:function(i,h){if(y5.Types.date(i)){h=i.getYear();i=i.getMonth()}var j=[31,((h%4==0)?29:28),31,30,31,30,31,31,30,31,30,31];return j[i]},getDayOffset:function(i,h){if(this.days[h]){h=this.days[h]}else{h=parseInt(h,10)}if(isNaN(h)){h=1}if(this.days[i]){i=this.days[i]}else{i=parseInt(i,10)}if(isNaN(i)){i=1}if(i0){if(this.saveAllButton){this.saveAllButton.disabled=true}return this.saveButton.disabled=true}var d=this.tracker.controlsState()!=this.tracker.initialState;this.saveButton.disabled=!d;if(d){y5.Classes.add(this.control,this.BLOCKCLASSNAME+"-changed");if(this.saveAllButton){this.saveAllButton.value="Сохранить сделанные изменения";this.saveAllButton.disabled=false}}else{y5.Classes.remove(this.control,this.BLOCKCLASSNAME+"-changed");var a=y5.Dom.getDescendants(this.control.parentNode.parentNode,this.TAGNAME,this.BLOCKCLASSNAME);for(var c=0,b=a.length;c"}var k="m"+Math.round(Math.random()*1000000000);var g='
                          ';var a=y5.Strings.escapeHTML(n[3].value);var e=y5.Strings.escapeHTML(n[4].value);var m=n[5].value;var s=n[6].value;var b=y5.Strings.escapeHTML(n[7].value);for(var d in n){if(y5.TYPES.def(n[d].value)){g+=""}}g+="";g+=' ';if(m.length||s.length){g+=prettyDate(m,s)}g+="
                          ";this.story++;switch(p){case 0:g+="Школа №"+a;if(b.length){g+=" ("+b+")"}if(e.length){g+=", "+e}break;case 1:g+="ВУЗ ";g+=a;if(b.length){g+=" ("+b+")"}if(e.length){g+=", "+e}break;case 2:g+=""+a+"";if(b.length||e.length){g+=" —"}if(b.length){g+=" "+b}if(e.length){g+=", "+e}break}n[3].value=n[4].value=n[5].value=n[6].value=n[7].value="";var q=getByTagName("dl",f)[0];q.innerHTML+=g+"
                          ";this.createSchoolDelButtons(f);this.checkChanges();new y5.Event("click",f);return true},delStory:function(a,c){var b=a.parentNode.parentNode;b.parentNode.removeChild(getNextElement(b,"dd"));b.parentNode.removeChild(b);this.noSpecialEntries(c,"dt");this.checkChanges();new y5.Event("click",c)},save:function(){var c=this;var b=function(d,e){c.checkChanges()};var a=function(d){};return false},getSwitcher:function(a){return a.getElementsByTagName("img")[0]},setSwitcherState:function(a){var b=this.getSwitcher(a);if(y5.Classes.test(a,this.BLOCKCLASSNAME+"-closed")){b.alt="+";b.src=g_globals.img_base+"control/profile-block-closed.gif"}else{b.alt=String.fromCharCode(8722);if(y5.Classes.test(a,this.BLOCKCLASSNAME+"-active")){b.src=g_globals.img_base+"control/profile-block-active.gif"}else{b.src=g_globals.img_base+"control/profile-block-opened.gif"}}},deactivateOtherBlocks:function(){if(!this.other){this.other=y5.Dom.getDescendants(getParentOrSelfByTagName(this.control,"table"),this.TAGNAME,this.BLOCKCLASSNAME)}for(var b=0,a=this.other.length;bПока вы ещё ничего не добавили.
                          '}},createSchoolSwitcher:function(f,e,d,c){var h=this;var g="i"+new Date().getTime()+d;var a=document.createElement("span");a.innerHTML='";f.appendChild(a);var b=getById(g);b.checked=c;new y5.AEventListener("click",function(i){h.changeSchoolType(d)},b,true,this)},createSchoolDelButtons:function(g){var h=this;var f=g.getElementsByTagName("dt");for(var e=0,c=f.length;eне сохр.";b.style.paddingRight="0";var q=d.getElementsByTagName("a")[0];new y5.AEventListener("click",function(i){s.trigger(i)},q,true,this);this.switcher=document.createElement("img");new y5.AEventListener("click",function(i){s.trigger(i)},this.switcher,true,this);var a=document.createElement("td");a.className="switcher";this.switcher=a.appendChild(this.switcher);d.appendChild(a);this.setSwitcherState(this.control);this.saveAllButton=document.getElementById("saveAll");var s=this;var g=y5.Dom.getDescendants(this.control,"*","b-note");for(var u=0,r=g.length;u';var n=getPrevElement(k,"p");this.v_input=getByTagName("input",n)[0];this.n_input=getByTagName("input",getPrevElement(n,"p"))[0];new y5.AEventListener("click",function(i){s.addSpecial(k)},y5.Dom.getDescendant(o,"input","*"),true,this);k.parentNode.insertBefore(o,k);this.noSpecialEntries(k,"p");this.createSpecialDelButtons(k)}if(this.category=="CV"){var k=y5.Dom.getDescendant(this.control,"div","exist-fields");var o=document.createElement("p");o.innerHTML="Добавляйте места учёбы или работы по одному. Начните со школы.";insertAfter(o,c);var w=document.createElement("p");w.className="list";insertAfter(w,o);this.createSchoolSwitcher(w,"школа или колледж",0,1);this.createSchoolSwitcher(w,"университет или институт (ВУЗ)",1,0);this.createSchoolSwitcher(w,"место работы",2,0);this.changeSchoolType(null,0);o=document.createElement("p");o.style.clear="both";o.innerHTML='';new y5.AEventListener("click",function(i){s.addStory(k)},y5.Dom.getDescendant(o,"input","*"),true,this);k.parentNode.insertBefore(o,k);this.noSpecialEntries(k,"dt");this.createSchoolDelButtons(k)}this.tracker=new FormTracker(this.control);this.tracker.addOnchangeListener(associateEventWithObject(this,"checkChanges"));this.checkChanges();this.tracker.addListener("focus",associateEventWithObject(this,"activate"));for(var u in this.tracker.controls){for(var t=0;t-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0?1:0};this.getCustom=function(a){return this.getList(a,1)};this.getList=function(g,d){if(!g.fields){g.fields=this.collectFields(g)}var b=0;for(var c=0,a=g.fields.length;c2?d:d.parentNode;e.innerHTML='
                          Картинка недоступна
                          '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                          ${content}
                          ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                          '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                          ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                          #{title}
                          ');b.setFooter('
                           
                          ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                          a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                          "+""+"
                          ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                          t
                          ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                          ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                          ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                          ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                          ","
                          "],thead:[1,"","
                          "],tr:[2,"","
                          "],td:[3,"","
                          "],col:[2,"","
                          "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                          ","
                          "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                          ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки анкета — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Настройки: доступ — я.ру
                          + + + +
                          ПоискПочтаДискКалендарьДеньгиМой КругФотки
                          + + Выход

                          Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                          Показывать мою анкету (кроме контактных данных)

                          Показывать почту и ICQ

                          Показывать моих друзей

                           

                           

                          Что получается:  +   + изменить  +
                          Подписаться на комментарии к записи

                          Получать уведомления о всех ответах в этом обсуждении.

                           
                          Отписаться от комментарев к записи

                          Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                           
                          К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                          + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_access.xml b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_access.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_access.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                            {popup_items}
                          '].join(""),popup_item:'
                        • {title}
                        • ',popup_item_selected:'
                        • {title}
                        • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                          ','','
                          ','
                          ','','','','
                          {content}',"
                          ","
                          ","
                          ","
                          "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                            {items}
                          ',""].join(""));a.templates.menuItem=a.template(['
                        • ','
                          ','{title}',"
                          ","
                        • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                          ','',"
                          ",""].join("")),itemResult:a(['
                          ','
                          ','
                          ','
                          ',"
                          {title}",'{count}',"
                          ","
                          "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                          {items}{actions}
                          '),actionLink:a('
                          {title}
                          '),expired:a('
                          {title}
                          ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                          ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                           
                          ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                          обновление...
                          ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                          {(moreAsUpdate)[
                          я в курсе
                          ]}
                          {(allItems)({(moreAsUpdate)()[]})}
                          '),viewportLayout:b('
                          {(titleButton)({titleButton})}
                          показать ещё
                          '),group:b('
                          {timestamp}
                          {items}
                          '),item:b('
                          {user} — {title}
                          '),likeItem:b('
                          {user} {appreciate} запись {title}
                          '),recommendItem:b(''),replyItem:b('
                          {user}{separator} {title}
                          '),photoItem:b('
                          {alt}
                          '),videoItem:b('
                          {duration}
                          '),videoContainer:b('
                          {items}
                          '),albumsContainer:b('
                          {items}
                          '),videoCollection:a.template('
                          {content}
                          ',{content:""}),videoCollectionItem:b('
                          {count} видео
                          '),albumItem:b('
                          {title}
                          {count}
                          '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                          {title}
                          '),wishlistItem:b('
                          {title}
                          {title}
                          '),wishlistPromisedItem:b('
                          {info}
                          {title}
                          отменить
                          '),ratingInfo:b(''),onload:b('
                           
                          '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                          ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                          "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                          ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                          ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                          Поделится с друзьями!
                          {items}
                          '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                            ',"
                          ","",'
                          ','

                          Метки

                          ','
                            ','
                          • ','
                            ','','',"
                            ","
                          • ",'
                          • добавлять метки могут только модераторы клуба
                          • ',"
                          ","
                          ",'
                          ','

                          Основные:

                          ','
                            ',"
                          ","
                          "].join(""),keyword:['
                        • ','
                          ','{title}',"
                          ","
                        • "].join(""),active:['
                        • ','
                          ','{title} x',"","
                          ","
                        • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                          {prev}{next}
                          ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                          ','
                          ',"{userpics}","
                          ",'
                          ','◄','►',"
                          ","
                          "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                          ','
                          ','

                          Запись будет опубликована в вашем дневнике.

                          ','
                            ','
                          • ','
                            ','Опубликовать в клубе?',"
                            ","
                          • ","
                          ","
                          ",'",'","
                          "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                          ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                          ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                          ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                          ','',"
                          ",'
                          {buttonOK}
                          ','
                          {buttonNOK}
                          ',"{(checkbox)(",'
                          ','','',"
                          ",")[",'',"]}","{(noPreview)[",'
                          ','посмотреть, что получится',"
                          ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                          '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                          ','
                            ','
                          • ','
                            ','','
                            ','с оформлением','HTML-режим',"
                            ","
                            ","
                          • ","
                          ","
                          "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                          {items}
                          ',item:['
                          ','
                          ','{title}',"
                          ","
                          "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                          ','
                            ',"
                            ",'
                            ','
                              ','
                            • ','
                              ','','',"
                              ","
                            • ",'
                            • ','
                              ','','',"
                              ","
                            • ","
                            ","
                            "].join("");this.item=['
                          • ','
                            ','','x',"
                            ","
                          • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                            '+g.templates.popupLoader()+"
                            ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                            ','
                            Найти или выбрать из списка друзей',"
                            ",'',"",'",'","","
                            ','','','',"",'',"","','',"
                            ","
                            ",'
                            ','
                            ','
                              ','
                            • ','
                              ','','',"
                              ","
                            • ","
                            ","
                            "].join("");this.emptyResults=['
                            ',"Не найдено ни одного человека с именем или логином «{request}».
                            ","Попробуйте уточнить запрос.
                            "].join("");this.emptyPageResults=g.template('
                            Пользователи не найдены.
                            ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                            ','
                              ','
                            • ','',"
                              ","
                            • ","
                            ","
                            "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                            ','
                              ','
                            • ','
                              ','','',"
                              ","
                            • ","
                            ","
                            "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                              ','
                            • ','
                              ','',"
                              ","
                            • ","
                            ","",'
                            ','

                            Предыдущие:

                            ',"Загрузка…","
                            ",'
                            ','
                              ','
                            • ','
                              ','','',"
                              ","
                            • ","
                            ","
                            "].join("");this.list='
                              {items}
                            ';this.item=['
                          • ','
                            ','{title}',"
                            ","
                          • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                            ','
                              ','
                            • ','
                              ','',"
                              ","
                            • ","
                            ","
                            ",'
                            ','

                            Предыдущие:

                            ',"Загрузка…","
                            "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                              {items}
                            ',"",'
                            ','
                              ','
                            • ','
                              ','','',"
                              ","
                            • ",'
                            • ','
                              ','','","
                              ","
                            • ","
                            ","
                            "].join("");this.item=['
                          • ','","
                          • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                            ','
                              ','
                            • ','',"
                            • ","
                            ","
                            ",'
                            ','
                              ','
                            • ','
                              ','',"
                              ","
                            • ","
                            ","
                            "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                            ','
                              ','
                            • ','
                              ','
                              как сильно хочу:
                              ','','','',"",'','','',"",'','','',"","
                              ","
                            • ","
                            ","
                            ",'
                            ','
                              ','
                            • ','
                              ','',"
                              ","
                            • ","
                            ","
                            ",'
                            '].join("");this.quoteEnabled=['
                            ','','',"{(cut)(",'
                            под врезкой
                            ',")}","
                            "].join("");this.quoteDisabled=['
                            ','
                            ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                            ","
                            "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                            ','
                              ','
                            • ',"{quote}","
                            • ","
                            ","
                            ",'
                            ','
                              ','
                            • ','
                              ','','
                              ','с оформлением','HTML-режим',"
                              ","
                              ","
                            • ","
                            ","
                            ",'
                            '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                            ','
                              ','
                            • ','
                              ',"
                            • ","
                            ","
                            ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                            ','
                              ','
                            • ','
                              ','',"
                              ","
                            • ","
                            ","
                            "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                            ','
                              ','
                            • ','
                              ','','',"
                              ","
                            • ","
                            ","
                            "].join("")}function d(){this.title="Принять эту запись";this.content=['
                            ',"
                            "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                              {items}
                            '),item:a.template('
                          • {title}
                          • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                            Редактирование ответа
                            {content}
                            {buttonOK}
                            {buttonNOK}
                            Текст не написан.
                            '),hidden:a.template(''),text:a.template('
                            '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                            ','
                            {title}
                            ','',"","",'",'",'',"","","
                            ','
                            ',"
                            ',"
                            ",'
                            ','
                            Текст не написан.
                            ',"
                            ","
                            ",'
                            ',"
                            ","
                            ",'
                            ','
                            ','
                            ','
                            ','',"
                            ",'
                            {buttonOK}
                            ','
                            {buttonNOK}
                            ','
                            ','или продолжить редактирование',"
                            ","
                            ","
                            ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                            ','
                            ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                            ",'
                            ',' ','',"
                            ","
                            "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',""].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                            ','','','',"{user}","
                            "].join("")),usersList:a('
                            {users}
                            '),userSocial:a(['
                            ','',"{user}","
                            "].join("")),pager:a(['
                            ','{prev} ','{next}',"
                            "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                            {contents}
                            '),promise:ya.template('
                            пообещать
                            '),cancel:ya.template('
                            отменить
                            '),happens:ya.template('
                            пометить как сбывшееся
                            '),happened:ya.template('
                            пожелание сбылось отменить
                            '),promised:ya.template('
                            обещано
                            ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                            {text}
                            '].join(""));a.templates.postDeleteForm=a.template(['
                            ','','','','',"
                            "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                            У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                            '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                            "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                            /ig,"
                            ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                            Картинка недоступна
                            '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                            ${content}
                            ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                            '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                            ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                            #{title}
                            ');b.setFooter('
                             
                            ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                            a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                            "+""+"
                            ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                            t
                            ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                            ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                            ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                            ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                            ","
                            "],thead:[1,"","
                            "],tr:[2,"","
                            "],td:[3,"","
                            "],col:[2,"","
                            "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                            ","
                            "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                            ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки доступ — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Настройки: друзья — я.ру
                            + + + +
                            ПоискПочтаДискКалендарьДеньгиМой КругФотки
                            + + Выход

                            Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                            Я добавил в друзья 6 человек
                            НикНастроениеВзаимноНачалиПол
                            (^_^)
                            Владимир ВладимировВиртуализация и отказоустойчивость на VMware ESXi29 апреля
                            (^_^)
                            mandrovkolya3 апреля
                            (^_^)
                            Блог Яндекс.Почты10 декабря 2013 года
                            (^_^)
                            Блог Яндекс.МузыкиМузыка нас связала21 февраля 2012 года
                            (^_^)
                            Мануэла да КостаЯрушечку закрывают! Зачем??? + 20 ноября 2011 года
                            (^_^)
                            Елена Ищенко + 18 апреля 2011 года

                             

                            Что получается:  +   + изменить  +
                            Подписаться на комментарии к записи

                            Получать уведомления о всех ответах в этом обсуждении.

                             
                            Отписаться от комментарев к записи

                            Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                             
                            К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                            + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_friends.xml b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_friends.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_friends.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/FriendsList.js b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/FriendsList.js new file mode 100644 index 0000000..fcd36c0 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/FriendsList.js @@ -0,0 +1,143 @@ +Friends.FriendsList = new function() { + this.createFromTag = function(element) { + new Friends.FriendsList.Constructor(element); + }; +}; + +Friends.FriendsList.Constructor = function(element) { + /** control container. */ + this.control = element; + + /** + * Чекбоксы. Если чекбокс выбран, то над этим пользователей будет + * производиться действие. + */ + this.checkboxes = 0; + + /** Кнопки "Сохранить". */ + this.submits = 0; + + /** Начальные тексты НА кнопках "Сохранить" */ + this.submitsInitial = 0; + + /** Тексты справа от кнопок "Сохранить". */ + this.submitTexts = 0; + + /** Начальные тексты справа от кнопок "Сохранить". */ + this.submitTextsInitial = 0; + + /** Количество отмеченых чекбоксов. */ + this.checked = 0; + + /** Это страница регистрации? */ + this.isRegPage = 0; + + this.init(); +}; + +Friends.FriendsList.Constructor.prototype = new function() { +//public + this.checkAll = function(_checkbox) { + var checked = _checkbox.checked; + this.checked = checked ? 0 : this.checkboxes.length; + for (var i = 0, l = this.checkboxes.length; i < l; i++) + this.check(this.checkboxes[i], checked); + }; + + this.check = function(_checkbox, _checked) { + var row = _checkbox.parentNode.parentNode; + + var checked; + if (_checked != -1 && !_checkbox.disabled){ + checked = _checkbox.checked = _checked; + } else { + checked = !y5.Classes.test(row, "checked"); + } + + this.checkIt(row, checked); + + var cell = y5.Dom.getDescendant(row, 'td', 'mutually'); //y5.cssQuery("td.mutually", row)[0]; + if (cell) + y5.Classes.assign(cell, "mutually-checked", checked); + + this.disable(); + + return true; + }; + +//private + this.checkIt = function(_row, _checked) { + if (_checked) + { + this.checked++; + addClass(_row, "checked"); + } + else + { + this.checked--; + delClass(_row, "checked"); + } + }; + + + //TODO:may be we should rename this function - since its toggles state, not just disabling + //TODO:write this in russian + this.disable = function() { + var _this = this; + if (this.checked == 0) + { + if (this.isRegPage) + { + this.submits.forEach(function(s, i) { s.disabled = false}); + } + this.submits.forEach(function(s, i) { s.value = _this.submitsInitial[i] }); + this.submitTexts.forEach(function(s, i) { + s.innerHTML = _this.submitTextsInitial[i]; + }); + } + else + { + var submitTextsNew = y5.Strings.plural(this.checked, + ["пользователь", "пользователя", "пользователей"]); + this.submitTexts.forEach(function(s, i) { + s.innerHTML = submitTextsNew; + }); + + if (!this.isRegPage) + { + this.submits.forEach(function(s, i) { s.disabled = false }); + } + else + { + this.submits.forEach(function(s, i) { s.value = 'Добавить в друзья' }); + } + } + }; + +//constructor + this.init = function() { + var checkAllInput = y5.Dom.getDescendant(this.control, 'input', 'all'); + + if (checkAllInput) { + checkAllInput.onclick = associateEventWithObject(this, "checkAll"); + } + + this.checkboxes = getByTagName("input", getByTagName("tbody", this.control)[0]); + for (var i = 0, l = this.checkboxes.length; i < l; i++) { + this.checkboxes[i].onclick = associateEventWithObject(this, "check", -1); + } + + this.submits = y5.cssQuery("div.b-submit input[type='submit']", this.control.parentNode); + this.submitsInitial = this.submits.map(function(s) { return s.value }); + + this.submitTexts = y5.cssQuery('div.b-submit p span', this.control.parentNode); + this.submitTextsInitial = this.submits.map(function(s) { return s.innerHTML }); + + this.isRegPage = y5.Dom.getDescendants(document, 'table', 'b-page-reg').length; + + this.disable(); + }; +} + +y5.require(['cssQuery', 'Dom', 'Strings'], function() {y5.loaded('{Friends}.FriendsList')}); + diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                              {popup_items}
                            '].join(""),popup_item:'
                          • {title}
                          • ',popup_item_selected:'
                          • {title}
                          • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                            ','','
                            ','
                            ','','','','
                            {content}',"
                            ","
                            ","
                            ","
                            "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                              {items}
                            ',""].join(""));a.templates.menuItem=a.template(['
                          • ','
                            ','{title}',"
                            ","
                          • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                            ','',"
                            ",""].join("")),itemResult:a(['
                            ','
                            ','
                            ','
                            ',"
                            {title}",'{count}',"
                            ","
                            "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                            {items}{actions}
                            '),actionLink:a('
                            {title}
                            '),expired:a('
                            {title}
                            ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                            ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                             
                            ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                            обновление...
                            ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                            {(moreAsUpdate)[
                            я в курсе
                            ]}
                            {(allItems)({(moreAsUpdate)()[]})}
                            '),viewportLayout:b('
                            {(titleButton)({titleButton})}
                            показать ещё
                            '),group:b('
                            {timestamp}
                            {items}
                            '),item:b('
                            {user} — {title}
                            '),likeItem:b('
                            {user} {appreciate} запись {title}
                            '),recommendItem:b(''),replyItem:b('
                            {user}{separator} {title}
                            '),photoItem:b('
                            {alt}
                            '),videoItem:b('
                            {duration}
                            '),videoContainer:b('
                            {items}
                            '),albumsContainer:b('
                            {items}
                            '),videoCollection:a.template('
                            {content}
                            ',{content:""}),videoCollectionItem:b('
                            {count} видео
                            '),albumItem:b('
                            {title}
                            {count}
                            '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                            {title}
                            '),wishlistItem:b('
                            {title}
                            {title}
                            '),wishlistPromisedItem:b('
                            {info}
                            {title}
                            отменить
                            '),ratingInfo:b(''),onload:b('
                             
                            '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                            ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                            "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                            ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                            ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                            Поделится с друзьями!
                            {items}
                            '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                              ',"
                            ","",'
                            ','

                            Метки

                            ','
                              ','
                            • ','
                              ','','',"
                              ","
                            • ",'
                            • добавлять метки могут только модераторы клуба
                            • ',"
                            ","
                            ",'
                            ','

                            Основные:

                            ','
                              ',"
                            ","
                            "].join(""),keyword:['
                          • ','
                            ','{title}',"
                            ","
                          • "].join(""),active:['
                          • ','
                            ','{title} x',"","
                            ","
                          • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                            {prev}{next}
                            ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                            ','
                            ',"{userpics}","
                            ",'
                            ','◄','►',"
                            ","
                            "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                            ','
                            ','

                            Запись будет опубликована в вашем дневнике.

                            ','
                              ','
                            • ','
                              ','Опубликовать в клубе?',"
                              ","
                            • ","
                            ","
                            ",'",'","
                            "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                            ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                            ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                            ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                            ','',"
                            ",'
                            {buttonOK}
                            ','
                            {buttonNOK}
                            ',"{(checkbox)(",'
                            ','','',"
                            ",")[",'',"]}","{(noPreview)[",'
                            ','посмотреть, что получится',"
                            ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                            '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                            ','
                              ','
                            • ','
                              ','','
                              ','с оформлением','HTML-режим',"
                              ","
                              ","
                            • ","
                            ","
                            "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                            {items}
                            ',item:['
                            ','
                            ','{title}',"
                            ","
                            "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                            ','
                              ',"
                              ",'
                              ','
                                ','
                              • ','
                                ','','',"
                                ","
                              • ",'
                              • ','
                                ','','',"
                                ","
                              • ","
                              ","
                              "].join("");this.item=['
                            • ','
                              ','','x',"
                              ","
                            • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                              '+g.templates.popupLoader()+"
                              ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                              ','
                              Найти или выбрать из списка друзей',"
                              ",'',"",'",'","","
                              ','','','',"",'',"","','',"
                              ","
                              ",'
                              ','
                              ','
                                ','
                              • ','
                                ','','',"
                                ","
                              • ","
                              ","
                              "].join("");this.emptyResults=['
                              ',"Не найдено ни одного человека с именем или логином «{request}».
                              ","Попробуйте уточнить запрос.
                              "].join("");this.emptyPageResults=g.template('
                              Пользователи не найдены.
                              ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                              ','
                                ','
                              • ','',"
                                ","
                              • ","
                              ","
                              "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                              ','
                                ','
                              • ','
                                ','','',"
                                ","
                              • ","
                              ","
                              "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                                ','
                              • ','
                                ','',"
                                ","
                              • ","
                              ","",'
                              ','

                              Предыдущие:

                              ',"Загрузка…","
                              ",'
                              ','
                                ','
                              • ','
                                ','','',"
                                ","
                              • ","
                              ","
                              "].join("");this.list='
                                {items}
                              ';this.item=['
                            • ','
                              ','{title}',"
                              ","
                            • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                              ','
                                ','
                              • ','
                                ','',"
                                ","
                              • ","
                              ","
                              ",'
                              ','

                              Предыдущие:

                              ',"Загрузка…","
                              "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                                {items}
                              ',"",'
                              ','
                                ','
                              • ','
                                ','','',"
                                ","
                              • ",'
                              • ','
                                ','','","
                                ","
                              • ","
                              ","
                              "].join("");this.item=['
                            • ','","
                            • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                              ','
                                ','
                              • ','',"
                              • ","
                              ","
                              ",'
                              ','
                                ','
                              • ','
                                ','',"
                                ","
                              • ","
                              ","
                              "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                              ','
                                ','
                              • ','
                                ','
                                как сильно хочу:
                                ','','','',"",'','','',"",'','','',"","
                                ","
                              • ","
                              ","
                              ",'
                              ','
                                ','
                              • ','
                                ','',"
                                ","
                              • ","
                              ","
                              ",'
                              '].join("");this.quoteEnabled=['
                              ','','',"{(cut)(",'
                              под врезкой
                              ',")}","
                              "].join("");this.quoteDisabled=['
                              ','
                              ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                              ","
                              "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                              ','
                                ','
                              • ',"{quote}","
                              • ","
                              ","
                              ",'
                              ','
                                ','
                              • ','
                                ','','
                                ','с оформлением','HTML-режим',"
                                ","
                                ","
                              • ","
                              ","
                              ",'
                              '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                              ','
                                ','
                              • ','
                                ',"
                              • ","
                              ","
                              ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                              ','
                                ','
                              • ','
                                ','',"
                                ","
                              • ","
                              ","
                              "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                              ','
                                ','
                              • ','
                                ','','',"
                                ","
                              • ","
                              ","
                              "].join("")}function d(){this.title="Принять эту запись";this.content=['
                              ',"
                              "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                                {items}
                              '),item:a.template('
                            • {title}
                            • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                              Редактирование ответа
                              {content}
                              {buttonOK}
                              {buttonNOK}
                              Текст не написан.
                              '),hidden:a.template(''),text:a.template('
                              '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                              ','
                              {title}
                              ','',"","",'",'",'',"","","
                              ','
                              ',"
                              ',"
                              ",'
                              ','
                              Текст не написан.
                              ',"
                              ","
                              ",'
                              ',"
                              ","
                              ",'
                              ','
                              ','
                              ','
                              ','',"
                              ",'
                              {buttonOK}
                              ','
                              {buttonNOK}
                              ','
                              ','или продолжить редактирование',"
                              ","
                              ","
                              ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                              ','
                              ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                              ",'
                              ',' ','',"
                              ","
                              "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                              "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                              ','','','',"{user}","
                              "].join("")),usersList:a('
                              {users}
                              '),userSocial:a(['
                              ','',"{user}","
                              "].join("")),pager:a(['
                              ','{prev} ','{next}',"
                              "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                              {contents}
                              '),promise:ya.template('
                              пообещать
                              '),cancel:ya.template('
                              отменить
                              '),happens:ya.template('
                              пометить как сбывшееся
                              '),happened:ya.template('
                              пожелание сбылось отменить
                              '),promised:ya.template('
                              обещано
                              ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                              {text}
                              '].join(""));a.templates.postDeleteForm=a.template(['
                              ','','','','',"
                              "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                              У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                              '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                              "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                              /ig,"
                              ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                              Картинка недоступна
                              '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                              ${content}
                              ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                              '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                              ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                              #{title}
                              ');b.setFooter('
                               
                              ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                              a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                              "+""+"
                              ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                              t
                              ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                              ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                              ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                              ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                              ","
                              "],thead:[1,"","
                              "],tr:[2,"","
                              "],td:[3,"","
                              "],col:[2,"","
                              "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                              ","
                              "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                              ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки друзья — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Настройки: мои дневники — я.ру
                              + + + +
                              ПоискПочтаДискКалендарьДеньгиМой КругФотки
                              + + Выход

                              Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                              Добавление блога с другого сервиса, шаг 1 из 2

                              Если у вас уже есть блог или дневник на другом сайте, то вы можете перенести сюда все публичные записи, профиль и вашу картинку из этого дневника.

                              На каком сайте размещён ваш дневник?

                              + Вы не ввели ваш логин +

                              + Вы не ввели название вашего дневника +

                              + Вы не ввели ваш домашний каталог +

                              + Чтобы подключить Twitter к вашей учетной записи, нажмите кнопку «Дальше». Затем, на открывшейся после нажатия на «Дальше» странице, подтвердите доступ («Allow»). +

                              + Записи из Twitter импортируются в Я.ру как настроения. +

                              + Вы не ввели адрес RSS +

                              + Если ваш дневник поддерживает систему авторизации OpenID, то проверка авторства блога пройдёт гораздо быстрее (вы должны быть залогинены в вашем дневнике, чтобы это произошло). +

                              Шаг 2: + + Проверка авторства. +

                               

                              Что получается:  +   + изменить  +
                              Подписаться на комментарии к записи

                              Получать уведомления о всех ответах в этом обсуждении.

                               
                              Отписаться от комментарев к записи

                              Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                               
                              К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                              + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_blogs_import_site.xml b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_blogs_import_site.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_blogs_import_site.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/RegImportSiteControl.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/RegImportSiteControl.js new file mode 100644 index 0000000..b256db7 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/RegImportSiteControl.js @@ -0,0 +1,113 @@ +/** + * Контрол выбора сайта для импорта. + * Вывод user-friendly сообщение об ошибке + */ +Friends.RegImportSiteControl = function(element, params) { + // инициируем некоторые переменные + + this.control = element; + this.params = params; + this.__listeners = []; + this.sheets = {}; + this.init(); +}; + + +Friends.RegImportSiteControl.prototype = { + init: function() { + _this = this; + + var sheets_list = y5.Dom.getDescendants(this.control, 'div', 'sheet'); + + for (var i = 0, l = sheets_list.length; i < l; i++) { + var sheetName = getParams(sheets_list[i])[0]; + this.sheets[sheetName] = sheets_list[i]; + }; + + this._currentSheet = {}; + + var selector = y5.Dom.getDescendant(this.control, 'ul', 'selector'); + var selectors = selector.getElementsByTagName('input'); + + this.__listeners.push(new y5.AEventListener('submit', checkInput, this.control, true, this)); + + onSelect = []; + + for (var i = 0, l = selectors.length; i < l; i++) { + var currentSheetName = getParams(selectors[i])[0]; + onSelect[i] = function(sheetName) { + return function(e) { + if (e.target.checked) { + showSheet(sheetName); + } + }; + }(currentSheetName); + if (selectors[i].checked) { + showSheet(currentSheetName); + } + + y5.Events.create('click', onSelect[i], selectors[i], true); + y5.Events.create('change', onSelect[i], selectors[i], true); + }; + + /** + * Показывает лист с выбранным именем, остальные скрывает. + * @memberOf friends.RegImportSiteControl + * @param {String} sheetName + */ + function showSheet(sheetName) { + for (var i in _this.sheets) { + var sheet = _this.sheets[i]; + var sheetElements = y5.FormCollector.getTagsArray(sheet); + + var needShow = (i == sheetName); + y5.Classes[needShow ? 'remove' : 'add'](sheet, 'i-hidden'); + + if (needShow) { + _this._currentSheet.sheet = sheet; + _this._currentSheet.input = null; + _this._currentSheet.message = y5.Dom.getDescendant(_this._currentSheet.sheet, 'b', 'b-note b-note-attention'); + } + + for (var j = sheetElements.length - 1; j >= 0 ; j--) { + var input = sheetElements[j]; + input.disabled = !needShow; + if (needShow && input.type && input.type == 'text') { + input.focus(); + _this._currentSheet.input = input; + } + } + } + }; + + function checkInput(e) { + if (this._currentSheet.input && y5.Strings.isVoid(this._currentSheet.input.value)) { + e.preventDefault(); + //показываем ноду с ошибкой + y5.Classes.remove(this._currentSheet.message, 'i-hidden'); + this._currentSheet.input.focus(); + // начинаем следить, не изменилось содержание поля + this.__listeners.push(new y5.InputObserver(createToggleMessage(this._currentSheet), this._currentSheet.input, true, this)); + } + }; + + function createToggleMessage(oSheet) { + return function() { + if (!y5.Strings.isVoid(oSheet.input.value)) { + y5.Classes.add(oSheet.message, 'i-hidden') + } + } + }; + }, + + destruct: function() { + for (var i = 0, l = this.__listeners.length; i < l; i++) { + this.__listeners[i].remove(); + } + } +} + +y5.require(['Dom', 'Events', 'Classes', 'FormCollector', 'EventsExt'], function() { + y5.loaded('{Friends}.RegImportSiteControl'); + }); + diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                {popup_items}
                              '].join(""),popup_item:'
                            • {title}
                            • ',popup_item_selected:'
                            • {title}
                            • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                              ','','
                              ','
                              ','','','','
                              {content}',"
                              ","
                              ","
                              ","
                              "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                {items}
                              ',""].join(""));a.templates.menuItem=a.template(['
                            • ','
                              ','{title}',"
                              ","
                            • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                              ','',"
                              ",""].join("")),itemResult:a(['
                              ','
                              ','
                              ','
                              ',"
                              {title}",'{count}',"
                              ","
                              "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                              {items}{actions}
                              '),actionLink:a('
                              {title}
                              '),expired:a('
                              {title}
                              ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                              ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                               
                              ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                              обновление...
                              ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                              {(moreAsUpdate)[
                              я в курсе
                              ]}
                              {(allItems)({(moreAsUpdate)()[]})}
                              '),viewportLayout:b('
                              {(titleButton)({titleButton})}
                              показать ещё
                              '),group:b('
                              {timestamp}
                              {items}
                              '),item:b('
                              {user} — {title}
                              '),likeItem:b('
                              {user} {appreciate} запись {title}
                              '),recommendItem:b(''),replyItem:b('
                              {user}{separator} {title}
                              '),photoItem:b('
                              {alt}
                              '),videoItem:b('
                              {duration}
                              '),videoContainer:b('
                              {items}
                              '),albumsContainer:b('
                              {items}
                              '),videoCollection:a.template('
                              {content}
                              ',{content:""}),videoCollectionItem:b('
                              {count} видео
                              '),albumItem:b('
                              {title}
                              {count}
                              '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                              {title}
                              '),wishlistItem:b('
                              {title}
                              {title}
                              '),wishlistPromisedItem:b('
                              {info}
                              {title}
                              отменить
                              '),ratingInfo:b(''),onload:b('
                               
                              '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                              ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                              "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                              ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                              ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                              Поделится с друзьями!
                              {items}
                              '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                                ',"
                              ","",'
                              ','

                              Метки

                              ','
                                ','
                              • ','
                                ','','',"
                                ","
                              • ",'
                              • добавлять метки могут только модераторы клуба
                              • ',"
                              ","
                              ",'
                              ','

                              Основные:

                              ','
                                ',"
                              ","
                              "].join(""),keyword:['
                            • ','
                              ','{title}',"
                              ","
                            • "].join(""),active:['
                            • ','
                              ','{title} x',"","
                              ","
                            • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                              {prev}{next}
                              ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                              ','
                              ',"{userpics}","
                              ",'
                              ','◄','►',"
                              ","
                              "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                              ','
                              ','

                              Запись будет опубликована в вашем дневнике.

                              ','
                                ','
                              • ','
                                ','Опубликовать в клубе?',"
                                ","
                              • ","
                              ","
                              ",'",'","
                              "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                              ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                              ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                              ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                              ','',"
                              ",'
                              {buttonOK}
                              ','
                              {buttonNOK}
                              ',"{(checkbox)(",'
                              ','','',"
                              ",")[",'',"]}","{(noPreview)[",'
                              ','посмотреть, что получится',"
                              ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                              '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                              ','
                                ','
                              • ','
                                ','','
                                ','с оформлением','HTML-режим',"
                                ","
                                ","
                              • ","
                              ","
                              "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                              {items}
                              ',item:['
                              ','
                              ','{title}',"
                              ","
                              "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                              ','
                                ',"
                                ",'
                                ','
                                  ','
                                • ','
                                  ','','',"
                                  ","
                                • ",'
                                • ','
                                  ','','',"
                                  ","
                                • ","
                                ","
                                "].join("");this.item=['
                              • ','
                                ','','x',"
                                ","
                              • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                                '+g.templates.popupLoader()+"
                                ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                                ','
                                Найти или выбрать из списка друзей',"
                                ",'',"",'",'","","
                                ','','','',"",'',"","','',"
                                ","
                                ",'
                                ','
                                ','
                                  ','
                                • ','
                                  ','','',"
                                  ","
                                • ","
                                ","
                                "].join("");this.emptyResults=['
                                ',"Не найдено ни одного человека с именем или логином «{request}».
                                ","Попробуйте уточнить запрос.
                                "].join("");this.emptyPageResults=g.template('
                                Пользователи не найдены.
                                ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                                ','
                                  ','
                                • ','',"
                                  ","
                                • ","
                                ","
                                "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                                ','
                                  ','
                                • ','
                                  ','','',"
                                  ","
                                • ","
                                ","
                                "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                                  ','
                                • ','
                                  ','',"
                                  ","
                                • ","
                                ","",'
                                ','

                                Предыдущие:

                                ',"Загрузка…","
                                ",'
                                ','
                                  ','
                                • ','
                                  ','','',"
                                  ","
                                • ","
                                ","
                                "].join("");this.list='
                                  {items}
                                ';this.item=['
                              • ','
                                ','{title}',"
                                ","
                              • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                                ','
                                  ','
                                • ','
                                  ','',"
                                  ","
                                • ","
                                ","
                                ",'
                                ','

                                Предыдущие:

                                ',"Загрузка…","
                                "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                                  {items}
                                ',"",'
                                ','
                                  ','
                                • ','
                                  ','','',"
                                  ","
                                • ",'
                                • ','
                                  ','','","
                                  ","
                                • ","
                                ","
                                "].join("");this.item=['
                              • ','","
                              • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                                ','
                                  ','
                                • ','',"
                                • ","
                                ","
                                ",'
                                ','
                                  ','
                                • ','
                                  ','',"
                                  ","
                                • ","
                                ","
                                "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                                ','
                                  ','
                                • ','
                                  ','
                                  как сильно хочу:
                                  ','','','',"",'','','',"",'','','',"","
                                  ","
                                • ","
                                ","
                                ",'
                                ','
                                  ','
                                • ','
                                  ','',"
                                  ","
                                • ","
                                ","
                                ",'
                                '].join("");this.quoteEnabled=['
                                ','','',"{(cut)(",'
                                под врезкой
                                ',")}","
                                "].join("");this.quoteDisabled=['
                                ','
                                ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                                ","
                                "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                                ','
                                  ','
                                • ',"{quote}","
                                • ","
                                ","
                                ",'
                                ','
                                  ','
                                • ','
                                  ','','
                                  ','с оформлением','HTML-режим',"
                                  ","
                                  ","
                                • ","
                                ","
                                ",'
                                '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                                ','
                                  ','
                                • ','
                                  ',"
                                • ","
                                ","
                                ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                                ','
                                  ','
                                • ','
                                  ','',"
                                  ","
                                • ","
                                ","
                                "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                                ','
                                  ','
                                • ','
                                  ','','',"
                                  ","
                                • ","
                                ","
                                "].join("")}function d(){this.title="Принять эту запись";this.content=['
                                ',"
                                "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                                  {items}
                                '),item:a.template('
                              • {title}
                              • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                                Редактирование ответа
                                {content}
                                {buttonOK}
                                {buttonNOK}
                                Текст не написан.
                                '),hidden:a.template(''),text:a.template('
                                '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                                ','
                                {title}
                                ','',"","",'",'",'',"","","
                                ','
                                ',"
                                ',"
                                ",'
                                ','
                                Текст не написан.
                                ',"
                                ","
                                ",'
                                ',"
                                ","
                                ",'
                                ','
                                ','
                                ','
                                ','',"
                                ",'
                                {buttonOK}
                                ','
                                {buttonNOK}
                                ','
                                ','или продолжить редактирование',"
                                ","
                                ","
                                ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                                ','
                                ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                                ",'
                                ',' ','',"
                                ","
                                "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                                "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                                ','','','',"{user}","
                                "].join("")),usersList:a('
                                {users}
                                '),userSocial:a(['
                                ','',"{user}","
                                "].join("")),pager:a(['
                                ','{prev} ','{next}',"
                                "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                                {contents}
                                '),promise:ya.template('
                                пообещать
                                '),cancel:ya.template('
                                отменить
                                '),happens:ya.template('
                                пометить как сбывшееся
                                '),happened:ya.template('
                                пожелание сбылось отменить
                                '),promised:ya.template('
                                обещано
                                ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                                {text}
                                '].join(""));a.templates.postDeleteForm=a.template(['
                                ','','','','',"
                                "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                /ig,"
                                ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                                Картинка недоступна
                                '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                ${content}
                                ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                #{title}
                                ');b.setFooter('
                                 
                                ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                "+""+"
                                ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                t
                                ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                ","
                                "],thead:[1,"","
                                "],tr:[2,"","
                                "],td:[3,"","
                                "],col:[2,"","
                                "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                ","
                                "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1 другой блог_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Настройки: мои дневники — я.ру
                                + + + +
                                ПоискПочтаДискКалендарьДеньгиМой КругФотки
                                + + Выход

                                Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                                Добавление блога с другого сервиса, шаг 1 из 2

                                Если у вас уже есть блог или дневник на другом сайте, то вы можете перенести сюда все публичные записи, профиль и вашу картинку из этого дневника.

                                На каком сайте размещён ваш дневник?

                                + Вы не ввели ваш логин +

                                + Вы не ввели название вашего дневника +

                                + Вы не ввели ваш домашний каталог +

                                + Чтобы подключить Twitter к вашей учетной записи, нажмите кнопку «Дальше». Затем, на открывшейся после нажатия на «Дальше» странице, подтвердите доступ («Allow»). +

                                + Записи из Twitter импортируются в Я.ру как настроения. +

                                + Вы не ввели адрес RSS +

                                + Если ваш дневник поддерживает систему авторизации OpenID, то проверка авторства блога пройдёт гораздо быстрее (вы должны быть залогинены в вашем дневнике, чтобы это произошло). +

                                Шаг 2: + + Проверка авторства. +

                                 

                                Что получается:  +   + изменить  +
                                Подписаться на комментарии к записи

                                Получать уведомления о всех ответах в этом обсуждении.

                                 
                                Отписаться от комментарев к записи

                                Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                                 
                                К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                                + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_blogs_import_site.xml b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_blogs_import_site.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_blogs_import_site.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/RegImportSiteControl.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/RegImportSiteControl.js new file mode 100644 index 0000000..b256db7 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/RegImportSiteControl.js @@ -0,0 +1,113 @@ +/** + * Контрол выбора сайта для импорта. + * Вывод user-friendly сообщение об ошибке + */ +Friends.RegImportSiteControl = function(element, params) { + // инициируем некоторые переменные + + this.control = element; + this.params = params; + this.__listeners = []; + this.sheets = {}; + this.init(); +}; + + +Friends.RegImportSiteControl.prototype = { + init: function() { + _this = this; + + var sheets_list = y5.Dom.getDescendants(this.control, 'div', 'sheet'); + + for (var i = 0, l = sheets_list.length; i < l; i++) { + var sheetName = getParams(sheets_list[i])[0]; + this.sheets[sheetName] = sheets_list[i]; + }; + + this._currentSheet = {}; + + var selector = y5.Dom.getDescendant(this.control, 'ul', 'selector'); + var selectors = selector.getElementsByTagName('input'); + + this.__listeners.push(new y5.AEventListener('submit', checkInput, this.control, true, this)); + + onSelect = []; + + for (var i = 0, l = selectors.length; i < l; i++) { + var currentSheetName = getParams(selectors[i])[0]; + onSelect[i] = function(sheetName) { + return function(e) { + if (e.target.checked) { + showSheet(sheetName); + } + }; + }(currentSheetName); + if (selectors[i].checked) { + showSheet(currentSheetName); + } + + y5.Events.create('click', onSelect[i], selectors[i], true); + y5.Events.create('change', onSelect[i], selectors[i], true); + }; + + /** + * Показывает лист с выбранным именем, остальные скрывает. + * @memberOf friends.RegImportSiteControl + * @param {String} sheetName + */ + function showSheet(sheetName) { + for (var i in _this.sheets) { + var sheet = _this.sheets[i]; + var sheetElements = y5.FormCollector.getTagsArray(sheet); + + var needShow = (i == sheetName); + y5.Classes[needShow ? 'remove' : 'add'](sheet, 'i-hidden'); + + if (needShow) { + _this._currentSheet.sheet = sheet; + _this._currentSheet.input = null; + _this._currentSheet.message = y5.Dom.getDescendant(_this._currentSheet.sheet, 'b', 'b-note b-note-attention'); + } + + for (var j = sheetElements.length - 1; j >= 0 ; j--) { + var input = sheetElements[j]; + input.disabled = !needShow; + if (needShow && input.type && input.type == 'text') { + input.focus(); + _this._currentSheet.input = input; + } + } + } + }; + + function checkInput(e) { + if (this._currentSheet.input && y5.Strings.isVoid(this._currentSheet.input.value)) { + e.preventDefault(); + //показываем ноду с ошибкой + y5.Classes.remove(this._currentSheet.message, 'i-hidden'); + this._currentSheet.input.focus(); + // начинаем следить, не изменилось содержание поля + this.__listeners.push(new y5.InputObserver(createToggleMessage(this._currentSheet), this._currentSheet.input, true, this)); + } + }; + + function createToggleMessage(oSheet) { + return function() { + if (!y5.Strings.isVoid(oSheet.input.value)) { + y5.Classes.add(oSheet.message, 'i-hidden') + } + } + }; + }, + + destruct: function() { + for (var i = 0, l = this.__listeners.length; i < l; i++) { + this.__listeners[i].remove(); + } + } +} + +y5.require(['Dom', 'Events', 'Classes', 'FormCollector', 'EventsExt'], function() { + y5.loaded('{Friends}.RegImportSiteControl'); + }); + diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                  {popup_items}
                                '].join(""),popup_item:'
                              • {title}
                              • ',popup_item_selected:'
                              • {title}
                              • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                                ','','
                                ','
                                ','','','','
                                {content}',"
                                ","
                                ","
                                ","
                                "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                  {items}
                                ',""].join(""));a.templates.menuItem=a.template(['
                              • ','
                                ','{title}',"
                                ","
                              • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                                ','',"
                                ",""].join("")),itemResult:a(['
                                ','
                                ','
                                ','
                                ',"
                                {title}",'{count}',"
                                ","
                                "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                                {items}{actions}
                                '),actionLink:a('
                                {title}
                                '),expired:a('
                                {title}
                                ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                                ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                                 
                                ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                                обновление...
                                ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                                {(moreAsUpdate)[
                                я в курсе
                                ]}
                                {(allItems)({(moreAsUpdate)()[]})}
                                '),viewportLayout:b('
                                {(titleButton)({titleButton})}
                                показать ещё
                                '),group:b('
                                {timestamp}
                                {items}
                                '),item:b('
                                {user} — {title}
                                '),likeItem:b('
                                {user} {appreciate} запись {title}
                                '),recommendItem:b(''),replyItem:b('
                                {user}{separator} {title}
                                '),photoItem:b('
                                {alt}
                                '),videoItem:b('
                                {duration}
                                '),videoContainer:b('
                                {items}
                                '),albumsContainer:b('
                                {items}
                                '),videoCollection:a.template('
                                {content}
                                ',{content:""}),videoCollectionItem:b('
                                {count} видео
                                '),albumItem:b('
                                {title}
                                {count}
                                '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                                {title}
                                '),wishlistItem:b('
                                {title}
                                {title}
                                '),wishlistPromisedItem:b('
                                {info}
                                {title}
                                отменить
                                '),ratingInfo:b(''),onload:b('
                                 
                                '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                                ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                                "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                                ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                                ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                                Поделится с друзьями!
                                {items}
                                '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                                  ',"
                                ","",'
                                ','

                                Метки

                                ','
                                  ','
                                • ','
                                  ','','',"
                                  ","
                                • ",'
                                • добавлять метки могут только модераторы клуба
                                • ',"
                                ","
                                ",'
                                ','

                                Основные:

                                ','
                                  ',"
                                ","
                                "].join(""),keyword:['
                              • ','
                                ','{title}',"
                                ","
                              • "].join(""),active:['
                              • ','
                                ','{title} x',"","
                                ","
                              • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                                {prev}{next}
                                ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                                ','
                                ',"{userpics}","
                                ",'
                                ','◄','►',"
                                ","
                                "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                                ','
                                ','

                                Запись будет опубликована в вашем дневнике.

                                ','
                                  ','
                                • ','
                                  ','Опубликовать в клубе?',"
                                  ","
                                • ","
                                ","
                                ",'",'","
                                "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                                ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                                ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                                ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                                ','',"
                                ",'
                                {buttonOK}
                                ','
                                {buttonNOK}
                                ',"{(checkbox)(",'
                                ','','',"
                                ",")[",'',"]}","{(noPreview)[",'
                                ','посмотреть, что получится',"
                                ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                                '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                                ','
                                  ','
                                • ','
                                  ','','
                                  ','с оформлением','HTML-режим',"
                                  ","
                                  ","
                                • ","
                                ","
                                "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                                {items}
                                ',item:['
                                ','
                                ','{title}',"
                                ","
                                "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                                ','
                                  ',"
                                  ",'
                                  ','
                                    ','
                                  • ','
                                    ','','',"
                                    ","
                                  • ",'
                                  • ','
                                    ','','',"
                                    ","
                                  • ","
                                  ","
                                  "].join("");this.item=['
                                • ','
                                  ','','x',"
                                  ","
                                • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                                  '+g.templates.popupLoader()+"
                                  ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                                  ','
                                  Найти или выбрать из списка друзей',"
                                  ",'',"",'",'","","
                                  ','','','',"",'',"","','',"
                                  ","
                                  ",'
                                  ','
                                  ','
                                    ','
                                  • ','
                                    ','','',"
                                    ","
                                  • ","
                                  ","
                                  "].join("");this.emptyResults=['
                                  ',"Не найдено ни одного человека с именем или логином «{request}».
                                  ","Попробуйте уточнить запрос.
                                  "].join("");this.emptyPageResults=g.template('
                                  Пользователи не найдены.
                                  ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                                  ','
                                    ','
                                  • ','',"
                                    ","
                                  • ","
                                  ","
                                  "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                                  ','
                                    ','
                                  • ','
                                    ','','',"
                                    ","
                                  • ","
                                  ","
                                  "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                                    ','
                                  • ','
                                    ','',"
                                    ","
                                  • ","
                                  ","",'
                                  ','

                                  Предыдущие:

                                  ',"Загрузка…","
                                  ",'
                                  ','
                                    ','
                                  • ','
                                    ','','',"
                                    ","
                                  • ","
                                  ","
                                  "].join("");this.list='
                                    {items}
                                  ';this.item=['
                                • ','
                                  ','{title}',"
                                  ","
                                • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                                  ','
                                    ','
                                  • ','
                                    ','',"
                                    ","
                                  • ","
                                  ","
                                  ",'
                                  ','

                                  Предыдущие:

                                  ',"Загрузка…","
                                  "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                                    {items}
                                  ',"",'
                                  ','
                                    ','
                                  • ','
                                    ','','',"
                                    ","
                                  • ",'
                                  • ','
                                    ','','","
                                    ","
                                  • ","
                                  ","
                                  "].join("");this.item=['
                                • ','","
                                • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                                  ','
                                    ','
                                  • ','',"
                                  • ","
                                  ","
                                  ",'
                                  ','
                                    ','
                                  • ','
                                    ','',"
                                    ","
                                  • ","
                                  ","
                                  "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                                  ','
                                    ','
                                  • ','
                                    ','
                                    как сильно хочу:
                                    ','','','',"",'','','',"",'','','',"","
                                    ","
                                  • ","
                                  ","
                                  ",'
                                  ','
                                    ','
                                  • ','
                                    ','',"
                                    ","
                                  • ","
                                  ","
                                  ",'
                                  '].join("");this.quoteEnabled=['
                                  ','','',"{(cut)(",'
                                  под врезкой
                                  ',")}","
                                  "].join("");this.quoteDisabled=['
                                  ','
                                  ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                                  ","
                                  "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                                  ','
                                    ','
                                  • ',"{quote}","
                                  • ","
                                  ","
                                  ",'
                                  ','
                                    ','
                                  • ','
                                    ','','
                                    ','с оформлением','HTML-режим',"
                                    ","
                                    ","
                                  • ","
                                  ","
                                  ",'
                                  '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                                  ','
                                    ','
                                  • ','
                                    ',"
                                  • ","
                                  ","
                                  ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                                  ','
                                    ','
                                  • ','
                                    ','',"
                                    ","
                                  • ","
                                  ","
                                  "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                                  ','
                                    ','
                                  • ','
                                    ','','',"
                                    ","
                                  • ","
                                  ","
                                  "].join("")}function d(){this.title="Принять эту запись";this.content=['
                                  ',"
                                  "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                                    {items}
                                  '),item:a.template('
                                • {title}
                                • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                                  Редактирование ответа
                                  {content}
                                  {buttonOK}
                                  {buttonNOK}
                                  Текст не написан.
                                  '),hidden:a.template(''),text:a.template('
                                  '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                                  ','
                                  {title}
                                  ','',"","",'",'",'',"","","
                                  ','
                                  ',"
                                  ',"
                                  ",'
                                  ','
                                  Текст не написан.
                                  ',"
                                  ","
                                  ",'
                                  ',"
                                  ","
                                  ",'
                                  ','
                                  ','
                                  ','
                                  ','',"
                                  ",'
                                  {buttonOK}
                                  ','
                                  {buttonNOK}
                                  ','
                                  ','или продолжить редактирование',"
                                  ","
                                  ","
                                  ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                                  ','
                                  ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                                  ",'
                                  ',' ','',"
                                  ","
                                  "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                                  "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                                  ','','','',"{user}","
                                  "].join("")),usersList:a('
                                  {users}
                                  '),userSocial:a(['
                                  ','',"{user}","
                                  "].join("")),pager:a(['
                                  ','{prev} ','{next}',"
                                  "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                                  {contents}
                                  '),promise:ya.template('
                                  пообещать
                                  '),cancel:ya.template('
                                  отменить
                                  '),happens:ya.template('
                                  пометить как сбывшееся
                                  '),happened:ya.template('
                                  пожелание сбылось отменить
                                  '),promised:ya.template('
                                  обещано
                                  ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                                  {text}
                                  '].join(""));a.templates.postDeleteForm=a.template(['
                                  ','','','','',"
                                  "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                  У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                  '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                  "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                  /ig,"
                                  ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                                  Картинка недоступна
                                  '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                  ${content}
                                  ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                  '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                  ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                  #{title}
                                  ');b.setFooter('
                                   
                                  ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                  a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                  "+""+"
                                  ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                  t
                                  ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                  ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                  ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                  ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                  ","
                                  "],thead:[1,"","
                                  "],tr:[2,"","
                                  "],td:[3,"","
                                  "],col:[2,"","
                                  "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                  ","
                                  "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                  ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру добавить шаг 1_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Настройки: мои дневники — я.ру
                                  + + + +
                                  ПоискПочтаДискКалендарьДеньгиМой КругФотки
                                  + + Выход

                                  Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                                   

                                  Что получается:  +   + изменить  +
                                  Подписаться на комментарии к записи

                                  Получать уведомления о всех ответах в этом обсуждении.

                                   
                                  Отписаться от комментарев к записи

                                  Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                                   
                                  К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                                  + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_blogs.xml b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_blogs.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_blogs.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                    {popup_items}
                                  '].join(""),popup_item:'
                                • {title}
                                • ',popup_item_selected:'
                                • {title}
                                • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                                  ','','
                                  ','
                                  ','','','','
                                  {content}',"
                                  ","
                                  ","
                                  ","
                                  "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                    {items}
                                  ',""].join(""));a.templates.menuItem=a.template(['
                                • ','
                                  ','{title}',"
                                  ","
                                • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                                  ','',"
                                  ",""].join("")),itemResult:a(['
                                  ','
                                  ','
                                  ','
                                  ',"
                                  {title}",'{count}',"
                                  ","
                                  "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                                  {items}{actions}
                                  '),actionLink:a('
                                  {title}
                                  '),expired:a('
                                  {title}
                                  ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                                  ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                                   
                                  ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                                  обновление...
                                  ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                                  {(moreAsUpdate)[
                                  я в курсе
                                  ]}
                                  {(allItems)({(moreAsUpdate)()[]})}
                                  '),viewportLayout:b('
                                  {(titleButton)({titleButton})}
                                  показать ещё
                                  '),group:b('
                                  {timestamp}
                                  {items}
                                  '),item:b('
                                  {user} — {title}
                                  '),likeItem:b('
                                  {user} {appreciate} запись {title}
                                  '),recommendItem:b(''),replyItem:b('
                                  {user}{separator} {title}
                                  '),photoItem:b('
                                  {alt}
                                  '),videoItem:b('
                                  {duration}
                                  '),videoContainer:b('
                                  {items}
                                  '),albumsContainer:b('
                                  {items}
                                  '),videoCollection:a.template('
                                  {content}
                                  ',{content:""}),videoCollectionItem:b('
                                  {count} видео
                                  '),albumItem:b('
                                  {title}
                                  {count}
                                  '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                                  {title}
                                  '),wishlistItem:b('
                                  {title}
                                  {title}
                                  '),wishlistPromisedItem:b('
                                  {info}
                                  {title}
                                  отменить
                                  '),ratingInfo:b(''),onload:b('
                                   
                                  '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                                  ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                                  "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                                  ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                                  ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                                  Поделится с друзьями!
                                  {items}
                                  '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                                    ',"
                                  ","",'
                                  ','

                                  Метки

                                  ','
                                    ','
                                  • ','
                                    ','','',"
                                    ","
                                  • ",'
                                  • добавлять метки могут только модераторы клуба
                                  • ',"
                                  ","
                                  ",'
                                  ','

                                  Основные:

                                  ','
                                    ',"
                                  ","
                                  "].join(""),keyword:['
                                • ','
                                  ','{title}',"
                                  ","
                                • "].join(""),active:['
                                • ','
                                  ','{title} x',"","
                                  ","
                                • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                                  {prev}{next}
                                  ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                                  ','
                                  ',"{userpics}","
                                  ",'
                                  ','◄','►',"
                                  ","
                                  "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                                  ','
                                  ','

                                  Запись будет опубликована в вашем дневнике.

                                  ','
                                    ','
                                  • ','
                                    ','Опубликовать в клубе?',"
                                    ","
                                  • ","
                                  ","
                                  ",'",'","
                                  "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                                  ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                                  ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                                  ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                                  ','',"
                                  ",'
                                  {buttonOK}
                                  ','
                                  {buttonNOK}
                                  ',"{(checkbox)(",'
                                  ','','',"
                                  ",")[",'',"]}","{(noPreview)[",'
                                  ','посмотреть, что получится',"
                                  ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                                  '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                                  ','
                                    ','
                                  • ','
                                    ','','
                                    ','с оформлением','HTML-режим',"
                                    ","
                                    ","
                                  • ","
                                  ","
                                  "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                                  {items}
                                  ',item:['
                                  ','
                                  ','{title}',"
                                  ","
                                  "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                                  ','
                                    ',"
                                    ",'
                                    ','
                                      ','
                                    • ','
                                      ','','',"
                                      ","
                                    • ",'
                                    • ','
                                      ','','',"
                                      ","
                                    • ","
                                    ","
                                    "].join("");this.item=['
                                  • ','
                                    ','','x',"
                                    ","
                                  • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                                    '+g.templates.popupLoader()+"
                                    ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                                    ','
                                    Найти или выбрать из списка друзей',"
                                    ",'',"",'",'","","
                                    ','','','',"",'',"","','',"
                                    ","
                                    ",'
                                    ','
                                    ','
                                      ','
                                    • ','
                                      ','','',"
                                      ","
                                    • ","
                                    ","
                                    "].join("");this.emptyResults=['
                                    ',"Не найдено ни одного человека с именем или логином «{request}».
                                    ","Попробуйте уточнить запрос.
                                    "].join("");this.emptyPageResults=g.template('
                                    Пользователи не найдены.
                                    ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                                    ','
                                      ','
                                    • ','',"
                                      ","
                                    • ","
                                    ","
                                    "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                                    ','
                                      ','
                                    • ','
                                      ','','',"
                                      ","
                                    • ","
                                    ","
                                    "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                                      ','
                                    • ','
                                      ','',"
                                      ","
                                    • ","
                                    ","",'
                                    ','

                                    Предыдущие:

                                    ',"Загрузка…","
                                    ",'
                                    ','
                                      ','
                                    • ','
                                      ','','',"
                                      ","
                                    • ","
                                    ","
                                    "].join("");this.list='
                                      {items}
                                    ';this.item=['
                                  • ','
                                    ','{title}',"
                                    ","
                                  • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                                    ','
                                      ','
                                    • ','
                                      ','',"
                                      ","
                                    • ","
                                    ","
                                    ",'
                                    ','

                                    Предыдущие:

                                    ',"Загрузка…","
                                    "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                                      {items}
                                    ',"",'
                                    ','
                                      ','
                                    • ','
                                      ','','',"
                                      ","
                                    • ",'
                                    • ','
                                      ','','","
                                      ","
                                    • ","
                                    ","
                                    "].join("");this.item=['
                                  • ','","
                                  • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                                    ','
                                      ','
                                    • ','',"
                                    • ","
                                    ","
                                    ",'
                                    ','
                                      ','
                                    • ','
                                      ','',"
                                      ","
                                    • ","
                                    ","
                                    "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                                    ','
                                      ','
                                    • ','
                                      ','
                                      как сильно хочу:
                                      ','','','',"",'','','',"",'','','',"","
                                      ","
                                    • ","
                                    ","
                                    ",'
                                    ','
                                      ','
                                    • ','
                                      ','',"
                                      ","
                                    • ","
                                    ","
                                    ",'
                                    '].join("");this.quoteEnabled=['
                                    ','','',"{(cut)(",'
                                    под врезкой
                                    ',")}","
                                    "].join("");this.quoteDisabled=['
                                    ','
                                    ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                                    ","
                                    "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                                    ','
                                      ','
                                    • ',"{quote}","
                                    • ","
                                    ","
                                    ",'
                                    ','
                                      ','
                                    • ','
                                      ','','
                                      ','с оформлением','HTML-режим',"
                                      ","
                                      ","
                                    • ","
                                    ","
                                    ",'
                                    '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                                    ','
                                      ','
                                    • ','
                                      ',"
                                    • ","
                                    ","
                                    ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                                    ','
                                      ','
                                    • ','
                                      ','',"
                                      ","
                                    • ","
                                    ","
                                    "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                                    ','
                                      ','
                                    • ','
                                      ','','',"
                                      ","
                                    • ","
                                    ","
                                    "].join("")}function d(){this.title="Принять эту запись";this.content=['
                                    ',"
                                    "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                                      {items}
                                    '),item:a.template('
                                  • {title}
                                  • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                                    Редактирование ответа
                                    {content}
                                    {buttonOK}
                                    {buttonNOK}
                                    Текст не написан.
                                    '),hidden:a.template(''),text:a.template('
                                    '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                                    ','
                                    {title}
                                    ','',"","",'",'",'',"","","
                                    ','
                                    ',"
                                    ',"
                                    ",'
                                    ','
                                    Текст не написан.
                                    ',"
                                    ","
                                    ",'
                                    ',"
                                    ","
                                    ",'
                                    ','
                                    ','
                                    ','
                                    ','',"
                                    ",'
                                    {buttonOK}
                                    ','
                                    {buttonNOK}
                                    ','
                                    ','или продолжить редактирование',"
                                    ","
                                    ","
                                    ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                                    ','
                                    ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                                    ",'
                                    ',' ','',"
                                    ","
                                    "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                                    "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                                    ','','','',"{user}","
                                    "].join("")),usersList:a('
                                    {users}
                                    '),userSocial:a(['
                                    ','',"{user}","
                                    "].join("")),pager:a(['
                                    ','{prev} ','{next}',"
                                    "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                                    {contents}
                                    '),promise:ya.template('
                                    пообещать
                                    '),cancel:ya.template('
                                    отменить
                                    '),happens:ya.template('
                                    пометить как сбывшееся
                                    '),happened:ya.template('
                                    пожелание сбылось отменить
                                    '),promised:ya.template('
                                    обещано
                                    ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                                    {text}
                                    '].join(""));a.templates.postDeleteForm=a.template(['
                                    ','','','','',"
                                    "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                    У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                    '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                    "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                    /ig,"
                                    ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                                    Картинка недоступна
                                    '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                    ${content}
                                    ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                    '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                    ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                    #{title}
                                    ');b.setFooter('
                                     
                                    ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/delete.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/delete.gif new file mode 100644 index 0000000..f5e84ad Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/delete.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                    a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                    "+""+"
                                    ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                    t
                                    ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                    ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                    ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                    ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                    ","
                                    "],thead:[1,"","
                                    "],tr:[2,"","
                                    "],td:[3,"","
                                    "],col:[2,"","
                                    "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                    ","
                                    "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                    ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки мои дневники — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Настройки: почтовые уведомления — я.ру
                                    + + + +
                                    ПоискПочтаДискКалендарьДеньгиМой КругФотки
                                    + + Выход

                                    Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                                    Уведомлять о новых записях друзей

                                    Уведомлять об ответах

                                    Уведомлять о событиях

                                    Уведомления высылаются на адрес — kpa39l@yandex.ru.

                                    Вы можете указать другой адрес, по которому будут высылаться уведомления, этот адрес никому не будет виден.

                                     

                                    Что получается:  +   + изменить  +
                                    Подписаться на комментарии к записи

                                    Получать уведомления о всех ответах в этом обсуждении.

                                     
                                    Отписаться от комментарев к записи

                                    Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                                     
                                    К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                                    + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Foptions_notification.xml b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Foptions_notification.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/-data=url=http%3A%2F%2Fkpa39l.ya.ru%2Foptions_notification.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/CheckboxLabel.js b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/CheckboxLabel.js new file mode 100644 index 0000000..6db12d2 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/CheckboxLabel.js @@ -0,0 +1,14 @@ +Friends.CheckboxLabel = new function() { + this.prefix = 'CheckboxLabel-'; + this.createFromTag = function(element, params) { + var checkbox = y5.Dom.getDescendant(element, '*', this.prefix + 'Checkbox'); + var text = y5.Dom.getDescendant(element, '*', this.prefix + 'Text'); + + function check(e) { + checkbox.checked = (y5.Strings.trim(text.value).length > 0); + } + y5.Events.create('keyup', check, text, true); + }; +} + +y5.require(['Dom', 'Events', 'Strings'], function() {y5.loaded('{Friends}.CheckboxLabel')}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/FieldValidator.js b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/FieldValidator.js new file mode 100644 index 0000000..7fe4501 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/FieldValidator.js @@ -0,0 +1,120 @@ +Friends.FieldValidator = new function() { + this.prefix = 'FieldValidator-'; + this.createFromTag = function(element, params) { + new Friends.FieldValidator[params.type](element, params); + } + this.getNotes = function(element) { + var notes = {__visible__: null}; + var tags = y5.Dom.getDescendants(element, '*', new RegExp( this.prefix + 'note-\\w+', 'ig')); + for(var i = 0, l = tags.length; i < l; i++) { + var name = y5.Components.getName(tags[i].className, this.prefix + 'note-') + notes[name] = tags[i]; + if (notes[name].style.display != 'none') { + notes.__visible__ = notes[name]; + } + } + return notes; + } + this.showNote = function(notes, note) { + if (notes.__visible__) { + notes.__visible__.style.display = 'none'; + } + if (notes[note]) { + notes[note].style.display = 'block'; + notes.__visible__ = notes[note]; + }else{ + notes.__visible__ = null; + } + }; + this.onlyNumbers = function(string) { + return /^\d+$/.test(string); + }; + + /** + * input states + */ + this.ERROR = "error"; + this.SUCCESS = "success"; + this.EMPTY = "empty"; + this.PROVED = "proved"; + this.NOT_PROVED = "notProved"; +}; + +Friends.FieldValidator.ICQ = function(element, params) { + var _this = this; + this.field = y5.Dom.getDescendant(element, '*', this.prefix + 'field'); + this.notes = this.getNotes(element); + function check() { + _this.check(); + } + y5.Events.create('keyup', check, element, true); + + this.check = function() { + var result = this.SUCCESS; + if (this.field.value.length && !this.onlyNumbers(this.field.value)) { + result = this.ERROR; + } + y5.Events.notify('y5:validationState', this.field, true, {state: result, element: this.field}); + this.showNote(this.notes, result); + }; +}; +Friends.FieldValidator.ICQ.prototype = Friends.FieldValidator; + +Friends.FieldValidator.Email = function(element, params){ + var _this = this; + this.field = y5.Dom.getDescendant(element, '*', this.prefix + 'field'); + this.notes = this.getNotes(element); + function check(e) { + if (typeof(e.value) != y5.Vars.UNDEF && e.value === null){ + return; + } + _this.check(true); + } + if (params.eventType) { + var elements = document.getElementsByTagName(params.eventTargetTagName); + if (elements.length > 0) { + var obj = elements[params.eventTargetName]; + new y5.AEventListener(params.eventType, + function(e) { + if (_this.check() == _this.ERROR) { + e.preventDefault(); + } + }, obj, true); + } + } + else { + y5.Events.create('change', check, this.field, true); + y5.Events.observe('y5:change', check, this.field, true); + } + + this.email = function(string){ + return /^[\w-]+([\.+][\w-]+)*@([\w-]+\.)+[a-z]{2,7}$/i.test(string); + }; + + this.check = function(init) { + var result = this.NOT_PROVED; + var email = this.field.value; + var placeholder = this.field.getAttribute('placeholder'); + + if ((email == '' || placeholder && email == placeholder) && init){ + result = this.EMPTY; + }else if (new RegExp('\\|' + email + '\\|').test(this.validated)){ + result = this.PROVED; + }else if(!this.email(email)) { + result = this.ERROR; + } + y5.Events.notify('y5:validationState', this.field, true, {state:result,element:this.field}); + this.showNote(this.notes, result); + return result; + }; + + this.getValidatedEmails = function(string) { + return string.replace(/<[^>]*>/ig, '|').replace(/\|\|/ig, '|'); + }; + + this.validated = params.data ? this.getValidatedEmails(params.data) : ''; + this.check(true); +} +Friends.FieldValidator.Email.prototype = Friends.FieldValidator; + +y5.require(['Events'], function() {y5.loaded('{Friends}.FieldValidator')}) diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                      {popup_items}
                                    '].join(""),popup_item:'
                                  • {title}
                                  • ',popup_item_selected:'
                                  • {title}
                                  • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                                    ','','
                                    ','
                                    ','','','','
                                    {content}',"
                                    ","
                                    ","
                                    ","
                                    "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                      {items}
                                    ',""].join(""));a.templates.menuItem=a.template(['
                                  • ','
                                    ','{title}',"
                                    ","
                                  • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                                    ','',"
                                    ",""].join("")),itemResult:a(['
                                    ','
                                    ','
                                    ','
                                    ',"
                                    {title}",'{count}',"
                                    ","
                                    "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                                    {items}{actions}
                                    '),actionLink:a('
                                    {title}
                                    '),expired:a('
                                    {title}
                                    ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                                    ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                                     
                                    ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                                    обновление...
                                    ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                                    {(moreAsUpdate)[
                                    я в курсе
                                    ]}
                                    {(allItems)({(moreAsUpdate)()[]})}
                                    '),viewportLayout:b('
                                    {(titleButton)({titleButton})}
                                    показать ещё
                                    '),group:b('
                                    {timestamp}
                                    {items}
                                    '),item:b('
                                    {user} — {title}
                                    '),likeItem:b('
                                    {user} {appreciate} запись {title}
                                    '),recommendItem:b(''),replyItem:b('
                                    {user}{separator} {title}
                                    '),photoItem:b('
                                    {alt}
                                    '),videoItem:b('
                                    {duration}
                                    '),videoContainer:b('
                                    {items}
                                    '),albumsContainer:b('
                                    {items}
                                    '),videoCollection:a.template('
                                    {content}
                                    ',{content:""}),videoCollectionItem:b('
                                    {count} видео
                                    '),albumItem:b('
                                    {title}
                                    {count}
                                    '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                                    {title}
                                    '),wishlistItem:b('
                                    {title}
                                    {title}
                                    '),wishlistPromisedItem:b('
                                    {info}
                                    {title}
                                    отменить
                                    '),ratingInfo:b(''),onload:b('
                                     
                                    '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                                    ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                                    "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                                    ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                                    ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                                    Поделится с друзьями!
                                    {items}
                                    '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                                      ',"
                                    ","",'
                                    ','

                                    Метки

                                    ','
                                      ','
                                    • ','
                                      ','','',"
                                      ","
                                    • ",'
                                    • добавлять метки могут только модераторы клуба
                                    • ',"
                                    ","
                                    ",'
                                    ','

                                    Основные:

                                    ','
                                      ',"
                                    ","
                                    "].join(""),keyword:['
                                  • ','
                                    ','{title}',"
                                    ","
                                  • "].join(""),active:['
                                  • ','
                                    ','{title} x',"","
                                    ","
                                  • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                                    {prev}{next}
                                    ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                                    ','
                                    ',"{userpics}","
                                    ",'
                                    ','◄','►',"
                                    ","
                                    "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                                    ','
                                    ','

                                    Запись будет опубликована в вашем дневнике.

                                    ','
                                      ','
                                    • ','
                                      ','Опубликовать в клубе?',"
                                      ","
                                    • ","
                                    ","
                                    ",'",'","
                                    "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                                    ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                                    ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                                    ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                                    ','',"
                                    ",'
                                    {buttonOK}
                                    ','
                                    {buttonNOK}
                                    ',"{(checkbox)(",'
                                    ','','',"
                                    ",")[",'',"]}","{(noPreview)[",'
                                    ','посмотреть, что получится',"
                                    ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                                    '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                                    ','
                                      ','
                                    • ','
                                      ','','
                                      ','с оформлением','HTML-режим',"
                                      ","
                                      ","
                                    • ","
                                    ","
                                    "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                                    {items}
                                    ',item:['
                                    ','
                                    ','{title}',"
                                    ","
                                    "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                                    ','
                                      ',"
                                      ",'
                                      ','
                                        ','
                                      • ','
                                        ','','',"
                                        ","
                                      • ",'
                                      • ','
                                        ','','',"
                                        ","
                                      • ","
                                      ","
                                      "].join("");this.item=['
                                    • ','
                                      ','','x',"
                                      ","
                                    • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                                      '+g.templates.popupLoader()+"
                                      ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                                      ','
                                      Найти или выбрать из списка друзей',"
                                      ",'',"",'",'","","
                                      ','','','',"",'',"","','',"
                                      ","
                                      ",'
                                      ','
                                      ','
                                        ','
                                      • ','
                                        ','','',"
                                        ","
                                      • ","
                                      ","
                                      "].join("");this.emptyResults=['
                                      ',"Не найдено ни одного человека с именем или логином «{request}».
                                      ","Попробуйте уточнить запрос.
                                      "].join("");this.emptyPageResults=g.template('
                                      Пользователи не найдены.
                                      ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                                      ','
                                        ','
                                      • ','',"
                                        ","
                                      • ","
                                      ","
                                      "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                                      ','
                                        ','
                                      • ','
                                        ','','',"
                                        ","
                                      • ","
                                      ","
                                      "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                                        ','
                                      • ','
                                        ','',"
                                        ","
                                      • ","
                                      ","",'
                                      ','

                                      Предыдущие:

                                      ',"Загрузка…","
                                      ",'
                                      ','
                                        ','
                                      • ','
                                        ','','',"
                                        ","
                                      • ","
                                      ","
                                      "].join("");this.list='
                                        {items}
                                      ';this.item=['
                                    • ','
                                      ','{title}',"
                                      ","
                                    • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                                      ','
                                        ','
                                      • ','
                                        ','',"
                                        ","
                                      • ","
                                      ","
                                      ",'
                                      ','

                                      Предыдущие:

                                      ',"Загрузка…","
                                      "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                                        {items}
                                      ',"",'
                                      ','
                                        ','
                                      • ','
                                        ','','',"
                                        ","
                                      • ",'
                                      • ','
                                        ','','","
                                        ","
                                      • ","
                                      ","
                                      "].join("");this.item=['
                                    • ','","
                                    • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                                      ','
                                        ','
                                      • ','',"
                                      • ","
                                      ","
                                      ",'
                                      ','
                                        ','
                                      • ','
                                        ','',"
                                        ","
                                      • ","
                                      ","
                                      "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                                      ','
                                        ','
                                      • ','
                                        ','
                                        как сильно хочу:
                                        ','','','',"",'','','',"",'','','',"","
                                        ","
                                      • ","
                                      ","
                                      ",'
                                      ','
                                        ','
                                      • ','
                                        ','',"
                                        ","
                                      • ","
                                      ","
                                      ",'
                                      '].join("");this.quoteEnabled=['
                                      ','','',"{(cut)(",'
                                      под врезкой
                                      ',")}","
                                      "].join("");this.quoteDisabled=['
                                      ','
                                      ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                                      ","
                                      "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                                      ','
                                        ','
                                      • ',"{quote}","
                                      • ","
                                      ","
                                      ",'
                                      ','
                                        ','
                                      • ','
                                        ','','
                                        ','с оформлением','HTML-режим',"
                                        ","
                                        ","
                                      • ","
                                      ","
                                      ",'
                                      '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                                      ','
                                        ','
                                      • ','
                                        ',"
                                      • ","
                                      ","
                                      ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                                      ','
                                        ','
                                      • ','
                                        ','',"
                                        ","
                                      • ","
                                      ","
                                      "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                                      ','
                                        ','
                                      • ','
                                        ','','',"
                                        ","
                                      • ","
                                      ","
                                      "].join("")}function d(){this.title="Принять эту запись";this.content=['
                                      ',"
                                      "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                                        {items}
                                      '),item:a.template('
                                    • {title}
                                    • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                                      Редактирование ответа
                                      {content}
                                      {buttonOK}
                                      {buttonNOK}
                                      Текст не написан.
                                      '),hidden:a.template(''),text:a.template('
                                      '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                                      ','
                                      {title}
                                      ','',"","",'",'",'',"","","
                                      ','
                                      ',"
                                      ',"
                                      ",'
                                      ','
                                      Текст не написан.
                                      ',"
                                      ","
                                      ",'
                                      ',"
                                      ","
                                      ",'
                                      ','
                                      ','
                                      ','
                                      ','',"
                                      ",'
                                      {buttonOK}
                                      ','
                                      {buttonNOK}
                                      ','
                                      ','или продолжить редактирование',"
                                      ","
                                      ","
                                      ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                                      ','
                                      ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                                      ",'
                                      ',' ','',"
                                      ","
                                      "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                                      "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                                      ','','','',"{user}","
                                      "].join("")),usersList:a('
                                      {users}
                                      '),userSocial:a(['
                                      ','',"{user}","
                                      "].join("")),pager:a(['
                                      ','{prev} ','{next}',"
                                      "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                                      {contents}
                                      '),promise:ya.template('
                                      пообещать
                                      '),cancel:ya.template('
                                      отменить
                                      '),happens:ya.template('
                                      пометить как сбывшееся
                                      '),happened:ya.template('
                                      пожелание сбылось отменить
                                      '),promised:ya.template('
                                      обещано
                                      ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                                      {text}
                                      '].join(""));a.templates.postDeleteForm=a.template(['
                                      ','','','','',"
                                      "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                      У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                      '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                      "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                      /ig,"
                                      ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                                      Картинка недоступна
                                      '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                      ${content}
                                      ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                      '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                      ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                      #{title}
                                      ');b.setFooter('
                                       
                                      ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                      a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                      "+""+"
                                      ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                      t
                                      ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                      ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                      ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                      ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                      ","
                                      "],thead:[1,"","
                                      "],tr:[2,"","
                                      "],td:[3,"","
                                      "],col:[2,"","
                                      "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                      ","
                                      "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                      ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки почтовые уведомления — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Настройки: прочее — я.ру
                                      + + + +
                                      ПоискПочтаДискКалендарьДеньгиМой КругФотки
                                      + + Выход

                                      Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                                      Смайлы

                                      Выберите тему смайлов:

                                      Метки

                                      Все метки: 1C, 1С, 2 из 5, 3 из 5, 4 из 5, 5 из 5, Active Directory, AD, APC, APT, ATI, Avaya, Backup, Bacula, Barsum, Bash, Blues, CIFS, D-Link, Debian, Debian Project News, DevBlog, Dlink, DnB, Dovecot, DVD, Ebooks, elSafe, Epson, EVE, eve online, Exchange, fetchmail, Fidelio 8, Firefox, freetalk, fstab, GHP, Google, GSSAPI, GTD, Hafele, Hotspot, HRS, Incursion, IP, IT, ITSM, Jabber, Linux, LPI, Mail, mcabber, Micros 9700, Microsoft, Mozilla, MS SQL, Music, MySQL, News, NTFS, Oracle, Patch, Performance, PHP, Postfix, PostgreSQL, PowerShell, Rkeeper, Samsung, Serial, SharePoint, SMB, SMS, SQL, Terminal Server, The Scope, USB, v, Virtualbox, Wi-Fi адаптеры и точки доступа, Winbind, Windows, Windows 7, Windows Vista, Wine, Worklog, wsus, Zabbix, Zend, Авто, Администрирование, Ангел, Аниме, Анимэ, Безопасность, блог, Видеонаблюдение, Виртуализация, Вирус, Волкова, ВТО, Геленджик, ГОСТ, Государство, Диктофоны, документация, Железо, жизнь, Задача, Закон, ИБ, Игры, Интернет, Интуит, ИСПДн, Исправления, ИТ, Кабардинка, Калина, Квартира, Кино, ККВ, Клиент, Книги, Конкуренты, Консоль, Контакт, Космос, Культура, Лицензии, Люди, Маркетинг, Музыка, Навыки, Настройка, НАШИ, Оборудование, Общество, Отдых, Панк, Пароль, ПДн, Перевод, ПО, Позитив, Политика, пользователи, Поэзия, ППрог, Принтеры и МФУ, Психология, Работа, Радио, Регби, Ремонт, Репозиторий, Роботы, Рок, Ростелеком, Серийные номера, Сертификат, Сеть, Ска, События, Спорт, ТВ, Телефон, Устройства, Учёба, Фильмы, Фото, ФСТЭК, Фэнтази, Фэнтези, Хобби, Хроники, Экскурсия, Этти, ЮТК, Я, Яндекс, Яндекс.Бар, Япониявсе  + изменить

                                      Активность на других сервисах

                                      Удаление дневника

                                      Удалить

                                       

                                       

                                      Что получается:  +   + изменить  +
                                      Подписаться на комментарии к записи

                                      Получать уведомления о всех ответах в этом обсуждении.

                                       
                                      Отписаться от комментарев к записи

                                      Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                                       
                                      К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                                      + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_others.xml b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_others.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_others.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                        {popup_items}
                                      '].join(""),popup_item:'
                                    • {title}
                                    • ',popup_item_selected:'
                                    • {title}
                                    • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                                      ','','
                                      ','
                                      ','','','','
                                      {content}',"
                                      ","
                                      ","
                                      ","
                                      "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                        {items}
                                      ',""].join(""));a.templates.menuItem=a.template(['
                                    • ','
                                      ','{title}',"
                                      ","
                                    • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                                      ','',"
                                      ",""].join("")),itemResult:a(['
                                      ','
                                      ','
                                      ','
                                      ',"
                                      {title}",'{count}',"
                                      ","
                                      "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                                      {items}{actions}
                                      '),actionLink:a('
                                      {title}
                                      '),expired:a('
                                      {title}
                                      ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                                      ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                                       
                                      ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                                      обновление...
                                      ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                                      {(moreAsUpdate)[
                                      я в курсе
                                      ]}
                                      {(allItems)({(moreAsUpdate)()[]})}
                                      '),viewportLayout:b('
                                      {(titleButton)({titleButton})}
                                      показать ещё
                                      '),group:b('
                                      {timestamp}
                                      {items}
                                      '),item:b('
                                      {user} — {title}
                                      '),likeItem:b('
                                      {user} {appreciate} запись {title}
                                      '),recommendItem:b(''),replyItem:b('
                                      {user}{separator} {title}
                                      '),photoItem:b('
                                      {alt}
                                      '),videoItem:b('
                                      {duration}
                                      '),videoContainer:b('
                                      {items}
                                      '),albumsContainer:b('
                                      {items}
                                      '),videoCollection:a.template('
                                      {content}
                                      ',{content:""}),videoCollectionItem:b('
                                      {count} видео
                                      '),albumItem:b('
                                      {title}
                                      {count}
                                      '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                                      {title}
                                      '),wishlistItem:b('
                                      {title}
                                      {title}
                                      '),wishlistPromisedItem:b('
                                      {info}
                                      {title}
                                      отменить
                                      '),ratingInfo:b(''),onload:b('
                                       
                                      '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                                      ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                                      "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                                      ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                                      ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                                      Поделится с друзьями!
                                      {items}
                                      '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                                        ',"
                                      ","",'
                                      ','

                                      Метки

                                      ','
                                        ','
                                      • ','
                                        ','','',"
                                        ","
                                      • ",'
                                      • добавлять метки могут только модераторы клуба
                                      • ',"
                                      ","
                                      ",'
                                      ','

                                      Основные:

                                      ','
                                        ',"
                                      ","
                                      "].join(""),keyword:['
                                    • ','
                                      ','{title}',"
                                      ","
                                    • "].join(""),active:['
                                    • ','
                                      ','{title} x',"","
                                      ","
                                    • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                                      {prev}{next}
                                      ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                                      ','
                                      ',"{userpics}","
                                      ",'
                                      ','◄','►',"
                                      ","
                                      "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                                      ','
                                      ','

                                      Запись будет опубликована в вашем дневнике.

                                      ','
                                        ','
                                      • ','
                                        ','Опубликовать в клубе?',"
                                        ","
                                      • ","
                                      ","
                                      ",'",'","
                                      "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                                      ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                                      ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                                      ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                                      ','',"
                                      ",'
                                      {buttonOK}
                                      ','
                                      {buttonNOK}
                                      ',"{(checkbox)(",'
                                      ','','',"
                                      ",")[",'',"]}","{(noPreview)[",'
                                      ','посмотреть, что получится',"
                                      ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                                      '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                                      ','
                                        ','
                                      • ','
                                        ','','
                                        ','с оформлением','HTML-режим',"
                                        ","
                                        ","
                                      • ","
                                      ","
                                      "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                                      {items}
                                      ',item:['
                                      ','
                                      ','{title}',"
                                      ","
                                      "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                                      ','
                                        ',"
                                        ",'
                                        ','
                                          ','
                                        • ','
                                          ','','',"
                                          ","
                                        • ",'
                                        • ','
                                          ','','',"
                                          ","
                                        • ","
                                        ","
                                        "].join("");this.item=['
                                      • ','
                                        ','','x',"
                                        ","
                                      • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                                        '+g.templates.popupLoader()+"
                                        ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                                        ','
                                        Найти или выбрать из списка друзей',"
                                        ",'',"",'",'","","
                                        ','','','',"",'',"","','',"
                                        ","
                                        ",'
                                        ','
                                        ','
                                          ','
                                        • ','
                                          ','','',"
                                          ","
                                        • ","
                                        ","
                                        "].join("");this.emptyResults=['
                                        ',"Не найдено ни одного человека с именем или логином «{request}».
                                        ","Попробуйте уточнить запрос.
                                        "].join("");this.emptyPageResults=g.template('
                                        Пользователи не найдены.
                                        ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                                        ','
                                          ','
                                        • ','',"
                                          ","
                                        • ","
                                        ","
                                        "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                                        ','
                                          ','
                                        • ','
                                          ','','',"
                                          ","
                                        • ","
                                        ","
                                        "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                                          ','
                                        • ','
                                          ','',"
                                          ","
                                        • ","
                                        ","",'
                                        ','

                                        Предыдущие:

                                        ',"Загрузка…","
                                        ",'
                                        ','
                                          ','
                                        • ','
                                          ','','',"
                                          ","
                                        • ","
                                        ","
                                        "].join("");this.list='
                                          {items}
                                        ';this.item=['
                                      • ','
                                        ','{title}',"
                                        ","
                                      • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                                        ','
                                          ','
                                        • ','
                                          ','',"
                                          ","
                                        • ","
                                        ","
                                        ",'
                                        ','

                                        Предыдущие:

                                        ',"Загрузка…","
                                        "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                                          {items}
                                        ',"",'
                                        ','
                                          ','
                                        • ','
                                          ','','',"
                                          ","
                                        • ",'
                                        • ','
                                          ','','","
                                          ","
                                        • ","
                                        ","
                                        "].join("");this.item=['
                                      • ','","
                                      • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                                        ','
                                          ','
                                        • ','',"
                                        • ","
                                        ","
                                        ",'
                                        ','
                                          ','
                                        • ','
                                          ','',"
                                          ","
                                        • ","
                                        ","
                                        "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                                        ','
                                          ','
                                        • ','
                                          ','
                                          как сильно хочу:
                                          ','','','',"",'','','',"",'','','',"","
                                          ","
                                        • ","
                                        ","
                                        ",'
                                        ','
                                          ','
                                        • ','
                                          ','',"
                                          ","
                                        • ","
                                        ","
                                        ",'
                                        '].join("");this.quoteEnabled=['
                                        ','','',"{(cut)(",'
                                        под врезкой
                                        ',")}","
                                        "].join("");this.quoteDisabled=['
                                        ','
                                        ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                                        ","
                                        "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                                        ','
                                          ','
                                        • ',"{quote}","
                                        • ","
                                        ","
                                        ",'
                                        ','
                                          ','
                                        • ','
                                          ','','
                                          ','с оформлением','HTML-режим',"
                                          ","
                                          ","
                                        • ","
                                        ","
                                        ",'
                                        '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                                        ','
                                          ','
                                        • ','
                                          ',"
                                        • ","
                                        ","
                                        ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                                        ','
                                          ','
                                        • ','
                                          ','',"
                                          ","
                                        • ","
                                        ","
                                        "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                                        ','
                                          ','
                                        • ','
                                          ','','',"
                                          ","
                                        • ","
                                        ","
                                        "].join("")}function d(){this.title="Принять эту запись";this.content=['
                                        ',"
                                        "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                                          {items}
                                        '),item:a.template('
                                      • {title}
                                      • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                                        Редактирование ответа
                                        {content}
                                        {buttonOK}
                                        {buttonNOK}
                                        Текст не написан.
                                        '),hidden:a.template(''),text:a.template('
                                        '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                                        ','
                                        {title}
                                        ','',"","",'",'",'',"","","
                                        ','
                                        ',"
                                        ',"
                                        ",'
                                        ','
                                        Текст не написан.
                                        ',"
                                        ","
                                        ",'
                                        ',"
                                        ","
                                        ",'
                                        ','
                                        ','
                                        ','
                                        ','',"
                                        ",'
                                        {buttonOK}
                                        ','
                                        {buttonNOK}
                                        ','
                                        ','или продолжить редактирование',"
                                        ","
                                        ","
                                        ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                                        ','
                                        ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                                        ",'
                                        ',' ','',"
                                        ","
                                        "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                                        "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                                        ','','','',"{user}","
                                        "].join("")),usersList:a('
                                        {users}
                                        '),userSocial:a(['
                                        ','',"{user}","
                                        "].join("")),pager:a(['
                                        ','{prev} ','{next}',"
                                        "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                                        {contents}
                                        '),promise:ya.template('
                                        пообещать
                                        '),cancel:ya.template('
                                        отменить
                                        '),happens:ya.template('
                                        пометить как сбывшееся
                                        '),happened:ya.template('
                                        пожелание сбылось отменить
                                        '),promised:ya.template('
                                        обещано
                                        ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                                        {text}
                                        '].join(""));a.templates.postDeleteForm=a.template(['
                                        ','','','','',"
                                        "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                        У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                        '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                        "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                        /ig,"
                                        ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                                        Картинка недоступна
                                        '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                        ${content}
                                        ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                        '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                        ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                        #{title}
                                        ');b.setFooter('
                                         
                                        ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                        a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                        "+""+"
                                        ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                        t
                                        ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                        ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                        ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                        ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                        ","
                                        "],thead:[1,"","
                                        "],tr:[2,"","
                                        "],td:[3,"","
                                        "],col:[2,"","
                                        "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                        ","
                                        "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                        ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру 1_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Настройки: прочее — я.ру
                                        + + + +
                                        ПоискПочтаДискКалендарьДеньгиМой КругФотки
                                        + + Выход

                                        Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                                        Смайлы

                                        Выберите тему смайлов:

                                        Метки

                                        Все метки: 1C, 1С, 2 из 5, 3 из 5, 4 из 5, 5 из 5, Active Directory, AD, APC, APT, ATI, Avaya, Backup, Bacula, Barsum, Bash, Blues, CIFS, D-Link, Debian, Debian Project News, DevBlog, Dlink, DnB, Dovecot, DVD, Ebooks, elSafe, Epson, EVE, eve online, Exchange, fetchmail, Fidelio 8, Firefox, freetalk, fstab, GHP, Google, GSSAPI, GTD, Hafele, Hotspot, HRS, Incursion, IP, IT, ITSM, Jabber, Linux, LPI, Mail, mcabber, Micros 9700, Microsoft, Mozilla, MS SQL, Music, MySQL, News, NTFS, Oracle, Patch, Performance, PHP, Postfix, PostgreSQL, PowerShell, Rkeeper, Samsung, Serial, SharePoint, SMB, SMS, SQL, Terminal Server, The Scope, USB, v, Virtualbox, Wi-Fi адаптеры и точки доступа, Winbind, Windows, Windows 7, Windows Vista, Wine, Worklog, wsus, Zabbix, Zend, Авто, Администрирование, Ангел, Аниме, Анимэ, Безопасность, блог, Видеонаблюдение, Виртуализация, Вирус, Волкова, ВТО, Геленджик, ГОСТ, Государство, Диктофоны, документация, Железо, жизнь, Задача, Закон, ИБ, Игры, Интернет, Интуит, ИСПДн, Исправления, ИТ, Кабардинка, Калина, Квартира, Кино, ККВ, Клиент, Книги, Конкуренты, Консоль, Контакт, Космос, Культура, Лицензии, Люди, Маркетинг, Музыка, Навыки, Настройка, НАШИ, Оборудование, Общество, Отдых, Панк, Пароль, ПДн, Перевод, ПО, Позитив, Политика, пользователи, Поэзия, ППрог, Принтеры и МФУ, Психология, Работа, Радио, Регби, Ремонт, Репозиторий, Роботы, Рок, Ростелеком, Серийные номера, Сертификат, Сеть, Ска, События, Спорт, ТВ, Телефон, Устройства, Учёба, Фильмы, Фото, ФСТЭК, Фэнтази, Фэнтези, Хобби, Хроники, Экскурсия, Этти, ЮТК, Я, Яндекс, Яндекс.Бар, Япониявсе  + изменить

                                        Активность на других сервисах

                                        Удаление дневника

                                        Удалить

                                         

                                         

                                        Что получается:  +   + изменить  +
                                        Подписаться на комментарии к записи

                                        Получать уведомления о всех ответах в этом обсуждении.

                                         
                                        Отписаться от комментарев к записи

                                        Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                                         
                                        К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                                        + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_others.xml b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_others.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_others.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                          {popup_items}
                                        '].join(""),popup_item:'
                                      • {title}
                                      • ',popup_item_selected:'
                                      • {title}
                                      • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                                        ','','
                                        ','
                                        ','','','','
                                        {content}',"
                                        ","
                                        ","
                                        ","
                                        "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                          {items}
                                        ',""].join(""));a.templates.menuItem=a.template(['
                                      • ','
                                        ','{title}',"
                                        ","
                                      • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                                        ','',"
                                        ",""].join("")),itemResult:a(['
                                        ','
                                        ','
                                        ','
                                        ',"
                                        {title}",'{count}',"
                                        ","
                                        "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                                        {items}{actions}
                                        '),actionLink:a('
                                        {title}
                                        '),expired:a('
                                        {title}
                                        ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                                        ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                                         
                                        ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                                        обновление...
                                        ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                                        {(moreAsUpdate)[
                                        я в курсе
                                        ]}
                                        {(allItems)({(moreAsUpdate)()[]})}
                                        '),viewportLayout:b('
                                        {(titleButton)({titleButton})}
                                        показать ещё
                                        '),group:b('
                                        {timestamp}
                                        {items}
                                        '),item:b('
                                        {user} — {title}
                                        '),likeItem:b('
                                        {user} {appreciate} запись {title}
                                        '),recommendItem:b(''),replyItem:b('
                                        {user}{separator} {title}
                                        '),photoItem:b('
                                        {alt}
                                        '),videoItem:b('
                                        {duration}
                                        '),videoContainer:b('
                                        {items}
                                        '),albumsContainer:b('
                                        {items}
                                        '),videoCollection:a.template('
                                        {content}
                                        ',{content:""}),videoCollectionItem:b('
                                        {count} видео
                                        '),albumItem:b('
                                        {title}
                                        {count}
                                        '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                                        {title}
                                        '),wishlistItem:b('
                                        {title}
                                        {title}
                                        '),wishlistPromisedItem:b('
                                        {info}
                                        {title}
                                        отменить
                                        '),ratingInfo:b(''),onload:b('
                                         
                                        '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                                        ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                                        "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                                        ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                                        ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                                        Поделится с друзьями!
                                        {items}
                                        '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                                          ',"
                                        ","",'
                                        ','

                                        Метки

                                        ','
                                          ','
                                        • ','
                                          ','','',"
                                          ","
                                        • ",'
                                        • добавлять метки могут только модераторы клуба
                                        • ',"
                                        ","
                                        ",'
                                        ','

                                        Основные:

                                        ','
                                          ',"
                                        ","
                                        "].join(""),keyword:['
                                      • ','
                                        ','{title}',"
                                        ","
                                      • "].join(""),active:['
                                      • ','
                                        ','{title} x',"","
                                        ","
                                      • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                                        {prev}{next}
                                        ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                                        ','
                                        ',"{userpics}","
                                        ",'
                                        ','◄','►',"
                                        ","
                                        "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                                        ','
                                        ','

                                        Запись будет опубликована в вашем дневнике.

                                        ','
                                          ','
                                        • ','
                                          ','Опубликовать в клубе?',"
                                          ","
                                        • ","
                                        ","
                                        ",'",'","
                                        "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                                        ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                                        ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                                        ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                                        ','',"
                                        ",'
                                        {buttonOK}
                                        ','
                                        {buttonNOK}
                                        ',"{(checkbox)(",'
                                        ','','',"
                                        ",")[",'',"]}","{(noPreview)[",'
                                        ','посмотреть, что получится',"
                                        ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                                        '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                                        ','
                                          ','
                                        • ','
                                          ','','
                                          ','с оформлением','HTML-режим',"
                                          ","
                                          ","
                                        • ","
                                        ","
                                        "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                                        {items}
                                        ',item:['
                                        ','
                                        ','{title}',"
                                        ","
                                        "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                                        ','
                                          ',"
                                          ",'
                                          ','
                                            ','
                                          • ','
                                            ','','',"
                                            ","
                                          • ",'
                                          • ','
                                            ','','',"
                                            ","
                                          • ","
                                          ","
                                          "].join("");this.item=['
                                        • ','
                                          ','','x',"
                                          ","
                                        • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                                          '+g.templates.popupLoader()+"
                                          ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                                          ','
                                          Найти или выбрать из списка друзей',"
                                          ",'',"",'",'","","
                                          ','','','',"",'',"","','',"
                                          ","
                                          ",'
                                          ','
                                          ','
                                            ','
                                          • ','
                                            ','','',"
                                            ","
                                          • ","
                                          ","
                                          "].join("");this.emptyResults=['
                                          ',"Не найдено ни одного человека с именем или логином «{request}».
                                          ","Попробуйте уточнить запрос.
                                          "].join("");this.emptyPageResults=g.template('
                                          Пользователи не найдены.
                                          ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                                          ','
                                            ','
                                          • ','',"
                                            ","
                                          • ","
                                          ","
                                          "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                                          ','
                                            ','
                                          • ','
                                            ','','',"
                                            ","
                                          • ","
                                          ","
                                          "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                                            ','
                                          • ','
                                            ','',"
                                            ","
                                          • ","
                                          ","",'
                                          ','

                                          Предыдущие:

                                          ',"Загрузка…","
                                          ",'
                                          ','
                                            ','
                                          • ','
                                            ','','',"
                                            ","
                                          • ","
                                          ","
                                          "].join("");this.list='
                                            {items}
                                          ';this.item=['
                                        • ','
                                          ','{title}',"
                                          ","
                                        • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                                          ','
                                            ','
                                          • ','
                                            ','',"
                                            ","
                                          • ","
                                          ","
                                          ",'
                                          ','

                                          Предыдущие:

                                          ',"Загрузка…","
                                          "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                                            {items}
                                          ',"",'
                                          ','
                                            ','
                                          • ','
                                            ','','',"
                                            ","
                                          • ",'
                                          • ','
                                            ','','","
                                            ","
                                          • ","
                                          ","
                                          "].join("");this.item=['
                                        • ','","
                                        • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                                          ','
                                            ','
                                          • ','',"
                                          • ","
                                          ","
                                          ",'
                                          ','
                                            ','
                                          • ','
                                            ','',"
                                            ","
                                          • ","
                                          ","
                                          "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                                          ','
                                            ','
                                          • ','
                                            ','
                                            как сильно хочу:
                                            ','','','',"",'','','',"",'','','',"","
                                            ","
                                          • ","
                                          ","
                                          ",'
                                          ','
                                            ','
                                          • ','
                                            ','',"
                                            ","
                                          • ","
                                          ","
                                          ",'
                                          '].join("");this.quoteEnabled=['
                                          ','','',"{(cut)(",'
                                          под врезкой
                                          ',")}","
                                          "].join("");this.quoteDisabled=['
                                          ','
                                          ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                                          ","
                                          "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                                          ','
                                            ','
                                          • ',"{quote}","
                                          • ","
                                          ","
                                          ",'
                                          ','
                                            ','
                                          • ','
                                            ','','
                                            ','с оформлением','HTML-режим',"
                                            ","
                                            ","
                                          • ","
                                          ","
                                          ",'
                                          '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                                          ','
                                            ','
                                          • ','
                                            ',"
                                          • ","
                                          ","
                                          ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                                          ','
                                            ','
                                          • ','
                                            ','',"
                                            ","
                                          • ","
                                          ","
                                          "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                                          ','
                                            ','
                                          • ','
                                            ','','',"
                                            ","
                                          • ","
                                          ","
                                          "].join("")}function d(){this.title="Принять эту запись";this.content=['
                                          ',"
                                          "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                                            {items}
                                          '),item:a.template('
                                        • {title}
                                        • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                                          Редактирование ответа
                                          {content}
                                          {buttonOK}
                                          {buttonNOK}
                                          Текст не написан.
                                          '),hidden:a.template(''),text:a.template('
                                          '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                                          ','
                                          {title}
                                          ','',"","",'",'",'',"","","
                                          ','
                                          ',"
                                          ',"
                                          ",'
                                          ','
                                          Текст не написан.
                                          ',"
                                          ","
                                          ",'
                                          ',"
                                          ","
                                          ",'
                                          ','
                                          ','
                                          ','
                                          ','',"
                                          ",'
                                          {buttonOK}
                                          ','
                                          {buttonNOK}
                                          ','
                                          ','или продолжить редактирование',"
                                          ","
                                          ","
                                          ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                                          ','
                                          ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                                          ",'
                                          ',' ','',"
                                          ","
                                          "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                                          "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                                          ','','','',"{user}","
                                          "].join("")),usersList:a('
                                          {users}
                                          '),userSocial:a(['
                                          ','',"{user}","
                                          "].join("")),pager:a(['
                                          ','{prev} ','{next}',"
                                          "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                                          {contents}
                                          '),promise:ya.template('
                                          пообещать
                                          '),cancel:ya.template('
                                          отменить
                                          '),happens:ya.template('
                                          пометить как сбывшееся
                                          '),happened:ya.template('
                                          пожелание сбылось отменить
                                          '),promised:ya.template('
                                          обещано
                                          ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                                          {text}
                                          '].join(""));a.templates.postDeleteForm=a.template(['
                                          ','','','','',"
                                          "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                          У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                          '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                          "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                          /ig,"
                                          ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                                          Картинка недоступна
                                          '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                          ${content}
                                          ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                          '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                          ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                          #{title}
                                          ');b.setFooter('
                                           
                                          ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                          a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                          "+""+"
                                          ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                          t
                                          ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                          ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                          ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                          ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                          ","
                                          "],thead:[1,"","
                                          "],tr:[2,"","
                                          "],td:[3,"","
                                          "],col:[2,"","
                                          "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                          ","
                                          "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                          ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки прочее — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Настройки: типы записей — я.ру
                                          + + + +
                                          ПоискПочтаДискКалендарьДеньгиМой КругФотки
                                          + + Выход

                                          Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                                          Показывать по умолчанию в ленте «Что нового»

                                          Вы также можете настроить список внешних журналов для вашей ленты «Что нового».

                                           

                                          Что получается:  +   + изменить  +
                                          Подписаться на комментарии к записи

                                          Получать уведомления о всех ответах в этом обсуждении.

                                           
                                          Отписаться от комментарев к записи

                                          Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                                           
                                          К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                                          + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_posttypes.xml b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_posttypes.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Foptions_posttypes.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                            {popup_items}
                                          '].join(""),popup_item:'
                                        • {title}
                                        • ',popup_item_selected:'
                                        • {title}
                                        • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                                          ','','
                                          ','
                                          ','','','','
                                          {content}',"
                                          ","
                                          ","
                                          ","
                                          "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                            {items}
                                          ',""].join(""));a.templates.menuItem=a.template(['
                                        • ','
                                          ','{title}',"
                                          ","
                                        • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                                          ','',"
                                          ",""].join("")),itemResult:a(['
                                          ','
                                          ','
                                          ','
                                          ',"
                                          {title}",'{count}',"
                                          ","
                                          "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                                          {items}{actions}
                                          '),actionLink:a('
                                          {title}
                                          '),expired:a('
                                          {title}
                                          ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                                          ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                                           
                                          ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                                          обновление...
                                          ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                                          {(moreAsUpdate)[
                                          я в курсе
                                          ]}
                                          {(allItems)({(moreAsUpdate)()[]})}
                                          '),viewportLayout:b('
                                          {(titleButton)({titleButton})}
                                          показать ещё
                                          '),group:b('
                                          {timestamp}
                                          {items}
                                          '),item:b('
                                          {user} — {title}
                                          '),likeItem:b('
                                          {user} {appreciate} запись {title}
                                          '),recommendItem:b(''),replyItem:b('
                                          {user}{separator} {title}
                                          '),photoItem:b('
                                          {alt}
                                          '),videoItem:b('
                                          {duration}
                                          '),videoContainer:b('
                                          {items}
                                          '),albumsContainer:b('
                                          {items}
                                          '),videoCollection:a.template('
                                          {content}
                                          ',{content:""}),videoCollectionItem:b('
                                          {count} видео
                                          '),albumItem:b('
                                          {title}
                                          {count}
                                          '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                                          {title}
                                          '),wishlistItem:b('
                                          {title}
                                          {title}
                                          '),wishlistPromisedItem:b('
                                          {info}
                                          {title}
                                          отменить
                                          '),ratingInfo:b(''),onload:b('
                                           
                                          '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                                          ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                                          "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/_mypage-includes.js b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/_mypage-includes.js new file mode 100644 index 0000000..6e8f126 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/_mypage-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                                          ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                                          ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                                          Поделится с друзьями!
                                          {items}
                                          '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                                            ',"
                                          ","",'
                                          ','

                                          Метки

                                          ','
                                            ','
                                          • ','
                                            ','','',"
                                            ","
                                          • ",'
                                          • добавлять метки могут только модераторы клуба
                                          • ',"
                                          ","
                                          ",'
                                          ','

                                          Основные:

                                          ','
                                            ',"
                                          ","
                                          "].join(""),keyword:['
                                        • ','
                                          ','{title}',"
                                          ","
                                        • "].join(""),active:['
                                        • ','
                                          ','{title} x',"","
                                          ","
                                        • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                                          {prev}{next}
                                          ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                                          ','
                                          ',"{userpics}","
                                          ",'
                                          ','◄','►',"
                                          ","
                                          "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                                          ','
                                          ','

                                          Запись будет опубликована в вашем дневнике.

                                          ','
                                            ','
                                          • ','
                                            ','Опубликовать в клубе?',"
                                            ","
                                          • ","
                                          ","
                                          ",'",'","
                                          "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                                          ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                                          ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                                          ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                                          ','',"
                                          ",'
                                          {buttonOK}
                                          ','
                                          {buttonNOK}
                                          ',"{(checkbox)(",'
                                          ','','',"
                                          ",")[",'',"]}","{(noPreview)[",'
                                          ','посмотреть, что получится',"
                                          ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                                          '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                                          ','
                                            ','
                                          • ','
                                            ','','
                                            ','с оформлением','HTML-режим',"
                                            ","
                                            ","
                                          • ","
                                          ","
                                          "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                                          {items}
                                          ',item:['
                                          ','
                                          ','{title}',"
                                          ","
                                          "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                                          ','
                                            ',"
                                            ",'
                                            ','
                                              ','
                                            • ','
                                              ','','',"
                                              ","
                                            • ",'
                                            • ','
                                              ','','',"
                                              ","
                                            • ","
                                            ","
                                            "].join("");this.item=['
                                          • ','
                                            ','','x',"
                                            ","
                                          • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                                            '+g.templates.popupLoader()+"
                                            ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                                            ','
                                            Найти или выбрать из списка друзей',"
                                            ",'',"",'",'","","
                                            ','','','',"",'',"","','',"
                                            ","
                                            ",'
                                            ','
                                            ','
                                              ','
                                            • ','
                                              ','','',"
                                              ","
                                            • ","
                                            ","
                                            "].join("");this.emptyResults=['
                                            ',"Не найдено ни одного человека с именем или логином «{request}».
                                            ","Попробуйте уточнить запрос.
                                            "].join("");this.emptyPageResults=g.template('
                                            Пользователи не найдены.
                                            ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                                            ','
                                              ','
                                            • ','',"
                                              ","
                                            • ","
                                            ","
                                            "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                                            ','
                                              ','
                                            • ','
                                              ','','',"
                                              ","
                                            • ","
                                            ","
                                            "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                                              ','
                                            • ','
                                              ','',"
                                              ","
                                            • ","
                                            ","",'
                                            ','

                                            Предыдущие:

                                            ',"Загрузка…","
                                            ",'
                                            ','
                                              ','
                                            • ','
                                              ','','',"
                                              ","
                                            • ","
                                            ","
                                            "].join("");this.list='
                                              {items}
                                            ';this.item=['
                                          • ','
                                            ','{title}',"
                                            ","
                                          • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                                            ','
                                              ','
                                            • ','
                                              ','',"
                                              ","
                                            • ","
                                            ","
                                            ",'
                                            ','

                                            Предыдущие:

                                            ',"Загрузка…","
                                            "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                                              {items}
                                            ',"",'
                                            ','
                                              ','
                                            • ','
                                              ','','',"
                                              ","
                                            • ",'
                                            • ','
                                              ','','","
                                              ","
                                            • ","
                                            ","
                                            "].join("");this.item=['
                                          • ','","
                                          • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                                            ','
                                              ','
                                            • ','',"
                                            • ","
                                            ","
                                            ",'
                                            ','
                                              ','
                                            • ','
                                              ','',"
                                              ","
                                            • ","
                                            ","
                                            "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                                            ','
                                              ','
                                            • ','
                                              ','
                                              как сильно хочу:
                                              ','','','',"",'','','',"",'','','',"","
                                              ","
                                            • ","
                                            ","
                                            ",'
                                            ','
                                              ','
                                            • ','
                                              ','',"
                                              ","
                                            • ","
                                            ","
                                            ",'
                                            '].join("");this.quoteEnabled=['
                                            ','','',"{(cut)(",'
                                            под врезкой
                                            ',")}","
                                            "].join("");this.quoteDisabled=['
                                            ','
                                            ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                                            ","
                                            "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                                            ','
                                              ','
                                            • ',"{quote}","
                                            • ","
                                            ","
                                            ",'
                                            ','
                                              ','
                                            • ','
                                              ','','
                                              ','с оформлением','HTML-режим',"
                                              ","
                                              ","
                                            • ","
                                            ","
                                            ",'
                                            '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                                            ','
                                              ','
                                            • ','
                                              ',"
                                            • ","
                                            ","
                                            ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                                            ','
                                              ','
                                            • ','
                                              ','',"
                                              ","
                                            • ","
                                            ","
                                            "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                                            ','
                                              ','
                                            • ','
                                              ','','',"
                                              ","
                                            • ","
                                            ","
                                            "].join("")}function d(){this.title="Принять эту запись";this.content=['
                                            ',"
                                            "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                                              {items}
                                            '),item:a.template('
                                          • {title}
                                          • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                                            Редактирование ответа
                                            {content}
                                            {buttonOK}
                                            {buttonNOK}
                                            Текст не написан.
                                            '),hidden:a.template(''),text:a.template('
                                            '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                                            ','
                                            {title}
                                            ','',"","",'",'",'',"","","
                                            ','
                                            ',"
                                            ',"
                                            ",'
                                            ','
                                            Текст не написан.
                                            ',"
                                            ","
                                            ",'
                                            ',"
                                            ","
                                            ",'
                                            ','
                                            ','
                                            ','
                                            ','',"
                                            ",'
                                            {buttonOK}
                                            ','
                                            {buttonNOK}
                                            ','
                                            ','или продолжить редактирование',"
                                            ","
                                            ","
                                            ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                                            ','
                                            ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                                            ",'
                                            ',' ','',"
                                            ","
                                            "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                                            "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                                            ','','','',"{user}","
                                            "].join("")),usersList:a('
                                            {users}
                                            '),userSocial:a(['
                                            ','',"{user}","
                                            "].join("")),pager:a(['
                                            ','{prev} ','{next}',"
                                            "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                                            {contents}
                                            '),promise:ya.template('
                                            пообещать
                                            '),cancel:ya.template('
                                            отменить
                                            '),happens:ya.template('
                                            пометить как сбывшееся
                                            '),happened:ya.template('
                                            пожелание сбылось отменить
                                            '),promised:ya.template('
                                            обещано
                                            ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                                            {text}
                                            '].join(""));a.templates.postDeleteForm=a.template(['
                                            ','','','','',"
                                            "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                            У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                            '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                            "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                            /ig,"
                                            ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b2?d:d.parentNode;e.innerHTML='
                                            Картинка недоступна
                                            '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                            ${content}
                                            ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                            '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                            ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                            #{title}
                                            ');b.setFooter('
                                             
                                            ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                            a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                            "+""+"
                                            ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                            t
                                            ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                            ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                            ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                            ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                            ","
                                            "],thead:[1,"","
                                            "],tr:[2,"","
                                            "],td:[3,"","
                                            "],col:[2,"","
                                            "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                            ","
                                            "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                            ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Настройки типы записей — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1 + + +
                                            +
                                            +
                                            +

                                            +
                                            + +
                                            + Веб-страница заблокирована расширением +

                                            +
                                            + + +
                                            +
                                            + + +
                                            +
                                            +
                                            + + +
                                            Расширение заблокировало отправку запроса на сервер.
                                            +
                                            + + + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/small b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/small new file mode 100644 index 0000000..42a5333 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/small differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/tiny_mce.js b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/tiny_mce.js new file mode 100644 index 0000000..d1722ce --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/tiny_mce.js @@ -0,0 +1 @@ +(function(win){var whiteSpaceRe=/^\s*|\s*$/g,undefined,isRegExpBroken="B".replace(/A(.)|B/,"$1")==="$1";var tinymce={majorVersion:"3",minorVersion:"4.5",releaseDate:"2011-09-06",_init:function(){var t=this,d=document,na=navigator,ua=na.userAgent,i,nl,n,base,p,v;t.isOpera=win.opera&&opera.buildNumber;t.isWebKit=/WebKit/.test(ua);t.isIE=!t.isWebKit&&!t.isOpera&&(/MSIE/gi).test(ua)&&(/Explorer/gi).test(na.appName);t.isIE6=t.isIE&&/MSIE [56]/.test(ua);t.isIE7=t.isIE&&/MSIE [7]/.test(ua);t.isIE8=t.isIE&&/MSIE [8]/.test(ua);t.isIE9=t.isIE&&/MSIE [9]/.test(ua);t.isGecko=!t.isWebKit&&/Gecko/.test(ua);t.isMac=ua.indexOf("Mac")!=-1;t.isAir=/adobeair/i.test(ua);t.isIDevice=/(iPad|iPhone)/.test(ua);t.isIOS5=t.isIDevice&&ua.match(/AppleWebKit\/(\d*)/)[1]>=534;if(win.tinyMCEPreInit){t.suffix=tinyMCEPreInit.suffix;t.baseURL=tinyMCEPreInit.base;t.query=tinyMCEPreInit.query;return}t.suffix="";nl=d.getElementsByTagName("base");for(i=0;i=items.length){for(i=0,l=base.length;i=items.length||base[i]!=items[i]){bp=i+1;break}}}if(base.length=base.length||base[i]!=items[i]){bp=i+1;break}}}if(bp==1){return path}for(i=0,l=base.length-(bp-1);i=0;i--){if(path[i].length==0||path[i]=="."){continue}if(path[i]==".."){nb++;continue}if(nb>0){nb--;continue}o.push(path[i])}i=base.length-nb;if(i<=0){outPath=o.reverse().join("/")}else{outPath=base.slice(0,i).join("/")+"/"+o.reverse().join("/")}if(outPath.indexOf("/")!==0){outPath="/"+outPath}if(tr&&outPath.lastIndexOf("/")!==outPath.length-1){outPath+=tr}return outPath},getURI:function(nh){var s,t=this;if(!t.source||nh){s="";if(!nh){if(t.protocol){s+=t.protocol+"://"}if(t.userInfo){s+=t.userInfo+"@"}if(t.host){s+=t.host}if(t.port){s+=":"+t.port}}if(t.path){s+=t.path}if(t.query){s+="?"+t.query}if(t.anchor){s+="#"+t.anchor}t.source=s}return t.source}})})();(function(){var each=tinymce.each;tinymce.create("static tinymce.util.Cookie",{getHash:function(n){var v=this.get(n),h;if(v){each(v.split("&"),function(v){v=v.split("=");h=h||{};h[unescape(v[0])]=unescape(v[1])})}return h},setHash:function(n,v,e,p,d,s){var o="";each(v,function(v,k){o+=(!o?"":"&")+escape(k)+"="+escape(v)});this.set(n,o,e,p,d,s)},get:function(n){var c=document.cookie,e,p=n+"=",b;if(!c){return}b=c.indexOf("; "+p);if(b==-1){b=c.indexOf(p);if(b!=0){return null}}else{b+=2}e=c.indexOf(";",b);if(e==-1){e=c.length}return unescape(c.substring(b+p.length,e))},set:function(n,v,e,p,d,s){document.cookie=n+"="+escape(v)+((e)?"; expires="+e.toGMTString():"")+((p)?"; path="+escape(p):"")+((d)?"; domain="+d:"")+((s)?"; secure":"")},remove:function(n,p){var d=new Date();d.setTime(d.getTime()-1000);this.set(n,"",d,p,d)}})})();(function(){function serialize(o,quote){var i,v,t;quote=quote||'"';if(o==null){return"null"}t=typeof o;if(t=="string"){v="\bb\tt\nn\ff\rr\"\"''\\\\";return quote+o.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g,function(a,b){if(quote==='"'&&a==="'"){return a}i=v.indexOf(b);if(i+1){return"\\"+v.charAt(i+1)}a=b.charCodeAt().toString(16);return"\\u"+"0000".substring(a.length)+a})+quote}if(t=="object"){if(o.hasOwnProperty&&o instanceof Array){for(i=0,v="[";i0?",":"")+serialize(o[i],quote)}return v+"]"}v="{";for(i in o){v+=typeof o[i]!="function"?(v.length>1?","+quote:quote)+i+quote+":"+serialize(o[i],quote):""}return v+"}"}return""+o}tinymce.util.JSON={serialize:serialize,parse:function(s){try{return eval("("+s+")")}catch(ex){}}}})();tinymce.create("static tinymce.util.XHR",{send:function(o){var x,t,w=window,c=0;o.scope=o.scope||this;o.success_scope=o.success_scope||o.scope;o.error_scope=o.error_scope||o.scope;o.async=o.async===false?false:true;o.data=o.data||"";function get(s){x=0;try{x=new ActiveXObject(s)}catch(ex){}return x}x=w.XMLHttpRequest?new XMLHttpRequest():get("Microsoft.XMLHTTP")||get("Msxml2.XMLHTTP");if(x){if(x.overrideMimeType){x.overrideMimeType(o.content_type)}x.open(o.type||(o.data?"POST":"GET"),o.url,o.async);if(o.content_type){x.setRequestHeader("Content-Type",o.content_type)}x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.send(o.data);function ready(){if(!o.async||x.readyState==4||c++>10000){if(o.success&&c<10000&&x.status==200){o.success.call(o.success_scope,""+x.responseText,x,o)}else{if(o.error){o.error.call(o.error_scope,c>10000?"TIMED_OUT":"GENERAL",x,o)}}x=null}else{w.setTimeout(ready,10)}}if(!o.async){return ready()}t=w.setTimeout(ready,10)}}});(function(){var extend=tinymce.extend,JSON=tinymce.util.JSON,XHR=tinymce.util.XHR;tinymce.create("tinymce.util.JSONRequest",{JSONRequest:function(s){this.settings=extend({},s);this.count=0},send:function(o){var ecb=o.error,scb=o.success;o=extend(this.settings,o);o.success=function(c,x){c=JSON.parse(c);if(typeof(c)=="undefined"){c={error:"JSON Parse error."}}if(c.error){ecb.call(o.error_scope||o.scope,c.error,x)}else{scb.call(o.success_scope||o.scope,c.result)}};o.error=function(ty,x){if(ecb){ecb.call(o.error_scope||o.scope,ty,x)}};o.data=JSON.serialize({id:o.id||"c"+(this.count++),method:o.method,params:o.params});o.content_type="application/json";XHR.send(o)},"static":{sendRPC:function(o){return new tinymce.util.JSONRequest().send(o)}}})}());(function(tinymce){tinymce.VK={DELETE:46,BACKSPACE:8}})(tinymce);(function(tinymce){var VK=tinymce.VK,BACKSPACE=VK.BACKSPACE,DELETE=VK.DELETE;function cleanupStylesWhenDeleting(ed){var dom=ed.dom,selection=ed.selection;ed.onKeyDown.add(function(ed,e){var rng,blockElm,node,clonedSpan,isDelete;isDelete=e.keyCode==DELETE;if(isDelete||e.keyCode==BACKSPACE){e.preventDefault();rng=selection.getRng();blockElm=dom.getParent(rng.startContainer,dom.isBlock);if(isDelete){blockElm=dom.getNext(blockElm,dom.isBlock)}if(blockElm){node=blockElm.firstChild;if(node&&node.nodeName==="SPAN"){clonedSpan=node.cloneNode(false)}}ed.getDoc().execCommand(isDelete?"ForwardDelete":"Delete",false,null);blockElm=dom.getParent(rng.startContainer,dom.isBlock);tinymce.each(dom.select("span.Apple-style-span,font.Apple-style-span",blockElm),function(span){var rng=dom.createRng();rng.setStartBefore(span);rng.setEndBefore(span);if(clonedSpan){dom.replace(clonedSpan.cloneNode(false),span,true)}else{dom.remove(span,true)}selection.setRng(rng)})}})}function emptyEditorWhenDeleting(ed){ed.onKeyUp.add(function(ed,e){var keyCode=e.keyCode;if(keyCode==DELETE||keyCode==BACKSPACE){if(ed.dom.isEmpty(ed.getBody())){ed.setContent("",{format:"raw"});ed.nodeChanged();return}}})}tinymce.create("tinymce.util.Quirks",{Quirks:function(ed){if(tinymce.isWebKit){cleanupStylesWhenDeleting(ed);emptyEditorWhenDeleting(ed)}if(tinymce.isIE){emptyEditorWhenDeleting(ed)}}})})(tinymce);(function(tinymce){var namedEntities,baseEntities,reverseEntities,attrsCharsRegExp=/[&<>\"\u007E-\uD7FF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,textCharsRegExp=/[<>&\u007E-\uD7FF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rawCharsRegExp=/[<>&\"\']/g,entityRegExp=/&(#x|#)?([\w]+);/g,asciiMap={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"};baseEntities={'"':""","'":"'","<":"<",">":">","&":"&"};reverseEntities={"<":"<",">":">","&":"&",""":'"',"'":"'"};function nativeDecode(text){var elm;elm=document.createElement("div");elm.innerHTML=text;return elm.textContent||elm.innerText||text}function buildEntitiesLookup(items,radix){var i,chr,entity,lookup={};if(items){items=items.split(",");radix=radix||10;for(i=0;i1){return"&#"+(((chr.charCodeAt(0)-55296)*1024)+(chr.charCodeAt(1)-56320)+65536)+";"}return baseEntities[chr]||"&#"+chr.charCodeAt(0)+";"})},encodeNamed:function(text,attr,entities){entities=entities||namedEntities;return text.replace(attr?attrsCharsRegExp:textCharsRegExp,function(chr){return baseEntities[chr]||entities[chr]||chr})},getEncodeFunc:function(name,entities){var Entities=tinymce.html.Entities;entities=buildEntitiesLookup(entities)||namedEntities;function encodeNamedAndNumeric(text,attr){return text.replace(attr?attrsCharsRegExp:textCharsRegExp,function(chr){return baseEntities[chr]||entities[chr]||"&#"+chr.charCodeAt(0)+";"||chr})}function encodeCustomNamed(text,attr){return Entities.encodeNamed(text,attr,entities)}name=tinymce.makeMap(name.replace(/\+/g,","));if(name.named&&name.numeric){return encodeNamedAndNumeric}if(name.named){if(entities){return encodeCustomNamed}return Entities.encodeNamed}if(name.numeric){return Entities.encodeNumeric}return Entities.encodeRaw},decode:function(text){return text.replace(entityRegExp,function(all,numeric,value){if(numeric){value=parseInt(value,numeric.length===2?16:10);if(value>65535){value-=65536;return String.fromCharCode(55296+(value>>10),56320+(value&1023))}else{return asciiMap[value]||String.fromCharCode(value)}}return reverseEntities[all]||namedEntities[all]||nativeDecode(all)})}}})(tinymce);tinymce.html.Styles=function(settings,schema){var rgbRegExp=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,urlOrStrRegExp=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,styleRegExp=/\s*([^:]+):\s*([^;]+);?/g,trimRightRegExp=/\s+$/,urlColorRegExp=/rgb/,undef,i,encodingLookup={},encodingItems;settings=settings||{};encodingItems="\\\" \\' \\; \\: ; : \uFEFF".split(" ");for(i=0;i1?val:"0"+val}return"#"+hex(r)+hex(g)+hex(b)}return{toHex:function(color){return color.replace(rgbRegExp,toHex)},parse:function(css){var styles={},matches,name,value,isEncoded,urlConverter=settings.url_converter,urlConverterScope=settings.url_converter_scope||this;function compress(prefix,suffix){var top,right,bottom,left;top=styles[prefix+"-top"+suffix];if(!top){return}right=styles[prefix+"-right"+suffix];if(top!=right){return}bottom=styles[prefix+"-bottom"+suffix];if(right!=bottom){return}left=styles[prefix+"-left"+suffix];if(bottom!=left){return}styles[prefix+suffix]=left;delete styles[prefix+"-top"+suffix];delete styles[prefix+"-right"+suffix];delete styles[prefix+"-bottom"+suffix];delete styles[prefix+"-left"+suffix]}function canCompress(key){var value=styles[key],i;if(!value||value.indexOf(" ")<0){return}value=value.split(" ");i=value.length;while(i--){if(value[i]!==value[0]){return false}}styles[key]=value[0];return true}function compress2(target,a,b,c){if(!canCompress(a)){return}if(!canCompress(b)){return}if(!canCompress(c)){return}styles[target]=styles[a]+" "+styles[b]+" "+styles[c];delete styles[a];delete styles[b];delete styles[c]}function encode(str){isEncoded=true;return encodingLookup[str]}function decode(str,keep_slashes){if(isEncoded){str=str.replace(/\uFEFF[0-9]/g,function(str){return encodingLookup[str]})}if(!keep_slashes){str=str.replace(/\\([\'\";:])/g,"$1")}return str}if(css){css=css.replace(/\\[\"\';:\uFEFF]/g,encode).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(str){return str.replace(/[;:]/g,encode)});while(matches=styleRegExp.exec(css)){name=matches[1].replace(trimRightRegExp,"").toLowerCase();value=matches[2].replace(trimRightRegExp,"");if(name&&value.length>0){if(name==="font-weight"&&value==="700"){value="bold"}else{if(name==="color"||name==="background-color"){value=value.toLowerCase()}}value=value.replace(rgbRegExp,toHex);value=value.replace(urlOrStrRegExp,function(match,url,url2,url3,str,str2){str=str||str2;if(str){str=decode(str);return"'"+str.replace(/\'/g,"\\'")+"'"}url=decode(url||url2||url3);if(urlConverter){url=urlConverter.call(urlConverterScope,url,"style")}return"url('"+url.replace(/\'/g,"\\'")+"')"});styles[name]=isEncoded?decode(value,true):value}styleRegExp.lastIndex=matches.index+matches[0].length}compress("border","");compress("border","-width");compress("border","-color");compress("border","-style");compress("padding","");compress("margin","");compress2("border","border-width","border-style","border-color");if(styles.border==="medium none"){delete styles.border}}return styles},serialize:function(styles,element_name){var css="",name,value;function serializeStyles(name){var styleList,i,l,value;styleList=schema.styles[name];if(styleList){for(i=0,l=styleList.length;i0){css+=(css.length>0?" ":"")+name+": "+value+";"}}}}if(element_name&&schema&&schema.styles){serializeStyles("*");serializeStyles(element_name)}else{for(name in styles){value=styles[name];if(value!==undef&&value.length>0){css+=(css.length>0?" ":"")+name+": "+value+";"}}}return css}}};(function(tinymce){var transitional={},boolAttrMap,blockElementsMap,shortEndedElementsMap,nonEmptyElementsMap,customElementsMap={},defaultWhiteSpaceElementsMap,selfClosingElementsMap,makeMap=tinymce.makeMap,each=tinymce.each;function split(str,delim){return str.split(delim||",")}function unpack(lookup,data){var key,elements={};function replace(value){return value.replace(/[A-Z]+/g,function(key){return replace(lookup[key])})}for(key in lookup){if(lookup.hasOwnProperty(key)){lookup[key]=replace(lookup[key])}}replace(data).replace(/#/g,"#text").replace(/(\w+)\[([^\]]+)\]\[([^\]]*)\]/g,function(str,name,attributes,children){attributes=split(attributes,"|");elements[name]={attributes:makeMap(attributes),attributesOrder:attributes,children:makeMap(children,"|",{"#comment":{}})}});return elements}blockElementsMap="h1,h2,h3,h4,h5,h6,hr,p,div,address,pre,form,table,tbody,thead,tfoot,th,tr,td,li,ol,ul,caption,blockquote,center,dl,dt,dd,dir,fieldset,noscript,menu,isindex,samp,header,footer,article,section,hgroup";blockElementsMap=makeMap(blockElementsMap,",",makeMap(blockElementsMap.toUpperCase()));transitional=unpack({Z:"H|K|N|O|P",Y:"X|form|R|Q",ZG:"E|span|width|align|char|charoff|valign",X:"p|T|div|U|W|isindex|fieldset|table",ZF:"E|align|char|charoff|valign",W:"pre|hr|blockquote|address|center|noframes",ZE:"abbr|axis|headers|scope|rowspan|colspan|align|char|charoff|valign|nowrap|bgcolor|width|height",ZD:"[E][S]",U:"ul|ol|dl|menu|dir",ZC:"p|Y|div|U|W|table|br|span|bdo|object|applet|img|map|K|N|Q",T:"h1|h2|h3|h4|h5|h6",ZB:"X|S|Q",S:"R|P",ZA:"a|G|J|M|O|P",R:"a|H|K|N|O",Q:"noscript|P",P:"ins|del|script",O:"input|select|textarea|label|button",N:"M|L",M:"em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acronym",L:"sub|sup",K:"J|I",J:"tt|i|b|u|s|strike",I:"big|small|font|basefont",H:"G|F",G:"br|span|bdo",F:"object|applet|img|map|iframe",E:"A|B|C",D:"accesskey|tabindex|onfocus|onblur",C:"onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup",B:"lang|xml:lang|dir",A:"id|class|style|title"},"script[id|charset|type|language|src|defer|xml:space][]style[B|id|type|media|title|xml:space][]object[E|declare|classid|codebase|data|type|codetype|archive|standby|width|height|usemap|name|tabindex|align|border|hspace|vspace][#|param|Y]param[id|name|value|valuetype|type][]p[E|align][#|S]a[E|D|charset|type|name|href|hreflang|rel|rev|shape|coords|target][#|Z]br[A|clear][]span[E][#|S]bdo[A|C|B][#|S]applet[A|codebase|archive|code|object|alt|name|width|height|align|hspace|vspace][#|param|Y]h1[E|align][#|S]img[E|src|alt|name|longdesc|width|height|usemap|ismap|align|border|hspace|vspace][]map[B|C|A|name][X|form|Q|area]h2[E|align][#|S]iframe[A|longdesc|name|src|frameborder|marginwidth|marginheight|scrolling|align|width|height][#|Y]h3[E|align][#|S]tt[E][#|S]i[E][#|S]b[E][#|S]u[E][#|S]s[E][#|S]strike[E][#|S]big[E][#|S]small[E][#|S]font[A|B|size|color|face][#|S]basefont[id|size|color|face][]em[E][#|S]strong[E][#|S]dfn[E][#|S]code[E][#|S]q[E|cite][#|S]samp[E][#|S]kbd[E][#|S]var[E][#|S]cite[E][#|S]abbr[E][#|S]acronym[E][#|S]sub[E][#|S]sup[E][#|S]input[E|D|type|name|value|checked|disabled|readonly|size|maxlength|src|alt|usemap|onselect|onchange|accept|align][]select[E|name|size|multiple|disabled|tabindex|onfocus|onblur|onchange][optgroup|option]optgroup[E|disabled|label][option]option[E|selected|disabled|label|value][]textarea[E|D|name|rows|cols|disabled|readonly|onselect|onchange][]label[E|for|accesskey|onfocus|onblur][#|S]button[E|D|name|value|type|disabled][#|p|T|div|U|W|table|G|object|applet|img|map|K|N|Q]h4[E|align][#|S]ins[E|cite|datetime][#|Y]h5[E|align][#|S]del[E|cite|datetime][#|Y]h6[E|align][#|S]div[E|align][#|Y]ul[E|type|compact][li]li[E|type|value][#|Y]ol[E|type|compact|start][li]dl[E|compact][dt|dd]dt[E][#|S]dd[E][#|Y]menu[E|compact][li]dir[E|compact][li]pre[E|width|xml:space][#|ZA]hr[E|align|noshade|size|width][]blockquote[E|cite][#|Y]address[E][#|S|p]center[E][#|Y]noframes[E][#|Y]isindex[A|B|prompt][]fieldset[E][#|legend|Y]legend[E|accesskey|align][#|S]table[E|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor][caption|col|colgroup|thead|tfoot|tbody|tr]caption[E|align][#|S]col[ZG][]colgroup[ZG][col]thead[ZF][tr]tr[ZF|bgcolor][th|td]th[E|ZE][#|Y]form[E|action|method|name|enctype|onsubmit|onreset|accept|accept-charset|target][#|X|R|Q]noscript[E][#|Y]td[E|ZE][#|Y]tfoot[ZF][tr]tbody[ZF][tr]area[E|D|shape|coords|href|nohref|alt|target][]base[id|href|target][]body[E|onload|onunload|background|bgcolor|text|link|vlink|alink][#|Y]");boolAttrMap=makeMap("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected,autoplay,loop,controls");shortEndedElementsMap=makeMap("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed,source");nonEmptyElementsMap=tinymce.extend(makeMap("td,th,iframe,video,audio,object"),shortEndedElementsMap);defaultWhiteSpaceElementsMap=makeMap("pre,script,style,textarea");selfClosingElementsMap=makeMap("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr");tinymce.html.Schema=function(settings){var self=this,elements={},children={},patternElements=[],validStyles,whiteSpaceElementsMap;settings=settings||{};if(settings.verify_html===false){settings.valid_elements="*[*]"}if(settings.valid_styles){validStyles={};each(settings.valid_styles,function(value,key){validStyles[key]=tinymce.explode(value)})}whiteSpaceElementsMap=settings.whitespace_elements?makeMap(settings.whitespace_elements):defaultWhiteSpaceElementsMap;function patternToRegExp(str){return new RegExp("^"+str.replace(/([?+*])/g,".$1")+"$")}function addValidElements(valid_elements){var ei,el,ai,al,yl,matches,element,attr,attrData,elementName,attrName,attrType,attributes,attributesOrder,prefix,outputName,globalAttributes,globalAttributesOrder,transElement,key,childKey,value,elementRuleRegExp=/^([#+-])?([^\[\/]+)(?:\/([^\[]+))?(?:\[([^\]]+)\])?$/,attrRuleRegExp=/^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/,hasPatternsRegExp=/[*?+]/;if(valid_elements){valid_elements=split(valid_elements);if(elements["@"]){globalAttributes=elements["@"].attributes;globalAttributesOrder=elements["@"].attributesOrder}for(ei=0,el=valid_elements.length;ei=0){for(i=stack.length-1;i>=pos;i--){name=stack[i];if(name.valid){self.end(name.name)}}stack.length=pos}}tokenRegExp=new RegExp("<(?:(?:!--([\\w\\W]*?)-->)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([^>]+)>)|(?:([^\\s\\/<>]+)\\s*((?:[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*)>))","g");attrRegExp=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:\\.|[^\"])*)\")|(?:\'((?:\\.|[^\'])*)\')|([^>\s]+)))?/g;specialElements={script:/<\/script[^>]*>/gi,style:/<\/style[^>]*>/gi,noscript:/<\/noscript[^>]*>/gi};shortEndedElements=schema.getShortEndedElements();selfClosing=schema.getSelfClosingElements();fillAttrsMap=schema.getBoolAttrs();validate=settings.validate;removeInternalElements=settings.remove_internals;fixSelfClosing=settings.fix_self_closing;isIE=tinymce.isIE;invalidPrefixRegExp=/^:/;while(matches=tokenRegExp.exec(html)){if(index0&&stack[stack.length-1].name===value){processEndTag(value)}if(!validate||(elementRule=schema.getElementRule(value))){isValidElement=true;if(validate){validAttributesMap=elementRule.attributes;validAttributePatterns=elementRule.attributePatterns}if(attribsValue=matches[8]){isInternalElement=attribsValue.indexOf("data-mce-type")!==-1;if(isInternalElement&&removeInternalElements){isValidElement=false}attrList=[];attrList.map={};attribsValue.replace(attrRegExp,function(match,name,value,val2,val3){var attrRule,i;name=name.toLowerCase();value=name in fillAttrsMap?name:decode(value||val2||val3||"");if(validate&&!isInternalElement&&name.indexOf("data-")!==0){attrRule=validAttributesMap[name];if(!attrRule&&validAttributePatterns){i=validAttributePatterns.length;while(i--){attrRule=validAttributePatterns[i];if(attrRule.pattern.test(name)){break}}if(i===-1){attrRule=null}}if(!attrRule){return}if(attrRule.validValues&&!(value in attrRule.validValues)){return}}attrList.map[name]=value;attrList.push({name:name,value:value})})}else{attrList=[];attrList.map={}}if(validate&&!isInternalElement){attributesRequired=elementRule.attributesRequired;attributesDefault=elementRule.attributesDefault;attributesForced=elementRule.attributesForced;if(attributesForced){i=attributesForced.length;while(i--){attr=attributesForced[i];name=attr.name;attrValue=attr.value;if(attrValue==="{$uid}"){attrValue="mce_"+idCount++}attrList.map[name]=attrValue;attrList.push({name:name,value:attrValue})}}if(attributesDefault){i=attributesDefault.length;while(i--){attr=attributesDefault[i];name=attr.name;if(!(name in attrList.map)){attrValue=attr.value;if(attrValue==="{$uid}"){attrValue="mce_"+idCount++}attrList.map[name]=attrValue;attrList.push({name:name,value:attrValue})}}}if(attributesRequired){i=attributesRequired.length;while(i--){if(attributesRequired[i] in attrList.map){break}}if(i===-1){isValidElement=false}}if(attrList.map["data-mce-bogus"]){isValidElement=false}}if(isValidElement){self.start(value,attrList,isShortEnded)}}else{isValidElement=false}if(endRegExp=specialElements[value]){endRegExp.lastIndex=index=matches.index+matches[0].length;if(matches=endRegExp.exec(html)){if(isValidElement){text=html.substr(index,matches.index-index)}index=matches.index+matches[0].length}else{text=html.substr(index);index=html.length}if(isValidElement&&text.length>0){self.text(text,true)}if(isValidElement){self.end(value)}tokenRegExp.lastIndex=index;continue}if(!isShortEnded){if(!attribsValue||attribsValue.indexOf("/")!=attribsValue.length-1){stack.push({name:value,valid:isValidElement})}else{if(isValidElement){self.end(value)}}}}else{if(value=matches[1]){self.comment(value)}else{if(value=matches[2]){self.cdata(value)}else{if(value=matches[3]){self.doctype(value)}else{if(value=matches[4]){self.pi(value,matches[5])}}}}}}index=matches.index+matches[0].length}if(index=0;i--){value=stack[i];if(value.valid){self.end(value.name)}}}}})(tinymce);(function(tinymce){var whiteSpaceRegExp=/^[ \t\r\n]*$/,typeLookup={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11};function walk(node,root_node,prev){var sibling,parent,startName=prev?"lastChild":"firstChild",siblingName=prev?"prev":"next";if(node[startName]){return node[startName]}if(node!==root_node){sibling=node[siblingName];if(sibling){return sibling}for(parent=node.parent;parent&&parent!==root_node;parent=parent.parent){sibling=parent[siblingName];if(sibling){return sibling}}}}function Node(name,type){this.name=name;this.type=type;if(type===1){this.attributes=[];this.attributes.map={}}}tinymce.extend(Node.prototype,{replace:function(node){var self=this;if(node.parent){node.remove()}self.insert(node,self);self.remove();return self},attr:function(name,value){var self=this,attrs,i,undef;if(typeof name!=="string"){for(i in name){self.attr(i,name[i])}return self}if(attrs=self.attributes){if(value!==undef){if(value===null){if(name in attrs.map){delete attrs.map[name];i=attrs.length;while(i--){if(attrs[i].name===name){attrs=attrs.splice(i,1);return self}}}return self}if(name in attrs.map){i=attrs.length;while(i--){if(attrs[i].name===name){attrs[i].value=value;break}}}else{attrs.push({name:name,value:value})}attrs.map[name]=value;return self}else{return attrs.map[name]}}},clone:function(){var self=this,clone=new Node(self.name,self.type),i,l,selfAttrs,selfAttr,cloneAttrs;if(selfAttrs=self.attributes){cloneAttrs=[];cloneAttrs.map={};for(i=0,l=selfAttrs.length;i1){parents.reverse();newParent=currentNode=self.filterNode(parents[0].clone());for(i=0;i0){textNode.value=textVal;textNode=textNode.prev}else{sibling=textNode.prev;textNode.remove();textNode=sibling}}}parser=new tinymce.html.SaxParser({validate:validate,fix_self_closing:!validate,cdata:function(text){node.append(createNode("#cdata",4)).value=text},text:function(text,raw){var textNode;if(!whiteSpaceElements[node.name]){text=text.replace(allWhiteSpaceRegExp," ");if(node.lastChild&&blockElements[node.lastChild.name]){text=text.replace(startWhiteSpaceRegExp,"")}}if(text.length!==0){textNode=createNode("#text",3);textNode.raw=!!raw;node.append(textNode).value=text}},comment:function(text){node.append(createNode("#comment",8)).value=text},pi:function(name,text){node.append(createNode(name,7)).value=text;removeWhitespaceBefore(node)},doctype:function(text){var newNode;newNode=node.append(createNode("#doctype",10));newNode.value=text;removeWhitespaceBefore(node)},start:function(name,attrs,empty){var newNode,attrFiltersLen,elementRule,textNode,attrName,text,sibling,parent;elementRule=validate?schema.getElementRule(name):{};if(elementRule){newNode=createNode(elementRule.outputName||name,1);newNode.attributes=attrs;newNode.shortEnded=empty;node.append(newNode);parent=children[node.name];if(parent&&children[newNode.name]&&!parent[newNode.name]){invalidChildren.push(newNode)}attrFiltersLen=attributeFilters.length;while(attrFiltersLen--){attrName=attributeFilters[attrFiltersLen].name;if(attrName in attrs.map){list=matchedAttributes[attrName];if(list){list.push(newNode)}else{matchedAttributes[attrName]=[newNode]}}}if(blockElements[name]){removeWhitespaceBefore(newNode)}if(!empty){node=newNode}}},end:function(name){var textNode,elementRule,text,sibling,tempNode;elementRule=validate?schema.getElementRule(name):{};if(elementRule){if(blockElements[name]){if(!whiteSpaceElements[node.name]){for(textNode=node.firstChild;textNode&&textNode.type===3;){text=textNode.value.replace(startWhiteSpaceRegExp,"");if(text.length>0){textNode.value=text;textNode=textNode.next}else{sibling=textNode.next;textNode.remove();textNode=sibling}}for(textNode=node.lastChild;textNode&&textNode.type===3;){text=textNode.value.replace(endWhiteSpaceRegExp,"");if(text.length>0){textNode.value=text;textNode=textNode.prev}else{sibling=textNode.prev;textNode.remove();textNode=sibling}}}textNode=node.prev;if(textNode&&textNode.type===3){text=textNode.value.replace(startWhiteSpaceRegExp,"");if(text.length>0){textNode.value=text}else{textNode.remove()}}}if(elementRule.removeEmpty||elementRule.paddEmpty){if(node.isEmpty(nonEmptyElements)){if(elementRule.paddEmpty){node.empty().append(new Node("#text","3")).value="\u00a0"}else{if(!node.attributes.map.name){tempNode=node.parent;node.empty().remove();node=tempNode;return}}}}node=node.parent}}},schema);rootNode=node=new Node(args.context||settings.root_name,11);parser.parse(html);if(validate&&invalidChildren.length){if(!args.context){fixInvalidChildren(invalidChildren)}else{args.invalid=true}}if(rootBlockName&&rootNode.name=="body"){addRootBlocks()}if(!args.invalid){for(name in matchedNodes){list=nodeFilters[name];nodes=matchedNodes[name];fi=nodes.length;while(fi--){if(!nodes[fi].parent){nodes.splice(fi,1)}}for(i=0,l=list.length;i0){value=html[html.length-1];if(value.length>0&&value!=="\n"){html.push("\n")}}html.push("<",name);if(attrs){for(i=0,l=attrs.length;i0){value=html[html.length-1];if(value.length>0&&value!=="\n"){html.push("\n")}}},end:function(name){var value;html.push("");if(indent&&indentAfter[name]&&html.length>0){value=html[html.length-1];if(value.length>0&&value!=="\n"){html.push("\n")}}},text:function(text,raw){if(text.length>0){html[html.length]=raw?text:encode(text)}},cdata:function(text){html.push("")},comment:function(text){html.push("")},pi:function(name,text){if(text){html.push("")}else{html.push("")}if(indent){html.push("\n")}},doctype:function(text){html.push("",indent?"\n":"")},reset:function(){html.length=0},getContent:function(){return html.join("").replace(/\n$/,"")}}};(function(tinymce){tinymce.html.Serializer=function(settings,schema){var self=this,writer=new tinymce.html.Writer(settings);settings=settings||{};settings.validate="validate" in settings?settings.validate:true;self.schema=schema=schema||new tinymce.html.Schema();self.writer=writer;self.serialize=function(node){var handlers,validate;validate=settings.validate;handlers={3:function(node,raw){writer.text(node.value,node.raw)},8:function(node){writer.comment(node.value)},7:function(node){writer.pi(node.name,node.value)},10:function(node){writer.doctype(node.value)},4:function(node){writer.cdata(node.value)},11:function(node){if((node=node.firstChild)){do{walk(node)}while(node=node.next)}}};writer.reset();function walk(node){var handler=handlers[node.type],name,isEmpty,attrs,attrName,attrValue,sortedAttrs,i,l,elementRule;if(!handler){name=node.name;isEmpty=node.shortEnded;attrs=node.attributes;if(validate&&attrs&&attrs.length>1){sortedAttrs=[];sortedAttrs.map={};elementRule=schema.getElementRule(node.name);for(i=0,l=elementRule.attributesOrder.length;i=8;t.boxModel=!tinymce.isIE||d.compatMode=="CSS1Compat"||t.stdMode;t.hasOuterHTML="outerHTML" in d.createElement("a");t.settings=s=tinymce.extend({keep_values:false,hex_colors:1},s);t.schema=s.schema;t.styles=new tinymce.html.Styles({url_converter:s.url_converter,url_converter_scope:s.url_converter_scope},s.schema);if(tinymce.isIE6){try{d.execCommand("BackgroundImageCache",false,true)}catch(e){t.cssFlicker=true}}if(isIE&&s.schema){("abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video").replace(/\w+/g,function(name){d.createElement(name)});for(name in s.schema.getCustomElements()){d.createElement(name)}}tinymce.addUnload(t.destroy,t)},getRoot:function(){var t=this,s=t.settings;return(s&&t.get(s.root_element))||t.doc.body},getViewPort:function(w){var d,b;w=!w?this.win:w;d=w.document;b=this.boxModel?d.documentElement:d.body;return{x:w.pageXOffset||b.scrollLeft,y:w.pageYOffset||b.scrollTop,w:w.innerWidth||b.clientWidth,h:w.innerHeight||b.clientHeight}},getRect:function(e){var p,t=this,sr;e=t.get(e);p=t.getPos(e);sr=t.getSize(e);return{x:p.x,y:p.y,w:sr.w,h:sr.h}},getSize:function(e){var t=this,w,h;e=t.get(e);w=t.getStyle(e,"width");h=t.getStyle(e,"height");if(w.indexOf("px")===-1){w=0}if(h.indexOf("px")===-1){h=0}return{w:parseInt(w)||e.offsetWidth||e.clientWidth,h:parseInt(h)||e.offsetHeight||e.clientHeight}},getParent:function(n,f,r){return this.getParents(n,f,r,false)},getParents:function(n,f,r,c){var t=this,na,se=t.settings,o=[];n=t.get(n);c=c===undefined;if(se.strict_root){r=r||t.getRoot()}if(is(f,"string")){na=f;if(f==="*"){f=function(n){return n.nodeType==1}}else{f=function(n){return t.is(n,na)}}}while(n){if(n==r||!n.nodeType||n.nodeType===9){break}if(!f||f(n)){if(c){o.push(n)}else{return n}}n=n.parentNode}return c?o:null},get:function(e){var n;if(e&&this.doc&&typeof(e)=="string"){n=e;e=this.doc.getElementById(e);if(e&&e.id!==n){return this.doc.getElementsByName(n)[1]}}return e},getNext:function(node,selector){return this._findSib(node,selector,"nextSibling")},getPrev:function(node,selector){return this._findSib(node,selector,"previousSibling")},select:function(pa,s){var t=this;return tinymce.dom.Sizzle(pa,t.get(s)||t.get(t.settings.root_element)||t.doc,[])},is:function(n,selector){var i;if(n.length===undefined){if(selector==="*"){return n.nodeType==1}if(simpleSelectorRe.test(selector)){selector=selector.toLowerCase().split(/,/);n=n.nodeName.toLowerCase();for(i=selector.length-1;i>=0;i--){if(selector[i]==n){return true}}return false}}return tinymce.dom.Sizzle.matches(selector,n.nodeType?[n]:n).length>0},add:function(p,n,a,h,c){var t=this;return this.run(p,function(p){var e,k;e=is(n,"string")?t.doc.createElement(n):n;t.setAttribs(e,a);if(h){if(h.nodeType){e.appendChild(h)}else{t.setHTML(e,h)}}return !c?p.appendChild(e):e})},create:function(n,a,h){return this.add(this.doc.createElement(n),n,a,h,1)},createHTML:function(n,a,h){var o="",t=this,k;o+="<"+n;for(k in a){if(a.hasOwnProperty(k)){o+=" "+k+'="'+t.encode(a[k])+'"'}}if(typeof(h)!="undefined"){return o+">"+h+""}return o+" />"},remove:function(node,keep_children){return this.run(node,function(node){var child,parent=node.parentNode;if(!parent){return null}if(keep_children){while(child=node.firstChild){if(!tinymce.isIE||child.nodeType!==3||child.nodeValue){parent.insertBefore(child,node)}else{node.removeChild(child)}}}return parent.removeChild(node)})},setStyle:function(n,na,v){var t=this;return t.run(n,function(e){var s,i;s=e.style;na=na.replace(/-(\D)/g,function(a,b){return b.toUpperCase()});if(t.pixelStyles.test(na)&&(tinymce.is(v,"number")||/^[\-0-9\.]+$/.test(v))){v+="px"}switch(na){case"opacity":if(isIE){s.filter=v===""?"":"alpha(opacity="+(v*100)+")";if(!n.currentStyle||!n.currentStyle.hasLayout){s.display="inline-block"}}s[na]=s["-moz-opacity"]=s["-khtml-opacity"]=v||"";break;case"float":isIE?s.styleFloat=v:s.cssFloat=v;break;default:s[na]=v||""}if(t.settings.update_styles){t.setAttrib(e,"data-mce-style")}})},getStyle:function(n,na,c){n=this.get(n);if(!n){return}if(this.doc.defaultView&&c){na=na.replace(/[A-Z]/g,function(a){return"-"+a});try{return this.doc.defaultView.getComputedStyle(n,null).getPropertyValue(na)}catch(ex){return null}}na=na.replace(/-(\D)/g,function(a,b){return b.toUpperCase()});if(na=="float"){na=isIE?"styleFloat":"cssFloat"}if(n.currentStyle&&c){return n.currentStyle[na]}return n.style?n.style[na]:undefined},setStyles:function(e,o){var t=this,s=t.settings,ol;ol=s.update_styles;s.update_styles=0;each(o,function(v,n){t.setStyle(e,n,v)});s.update_styles=ol;if(s.update_styles){t.setAttrib(e,s.cssText)}},removeAllAttribs:function(e){return this.run(e,function(e){var i,attrs=e.attributes;for(i=attrs.length-1;i>=0;i--){e.removeAttributeNode(attrs.item(i))}})},setAttrib:function(e,n,v){var t=this;if(!e||!n){return}if(t.settings.strict){n=n.toLowerCase()}return this.run(e,function(e){var s=t.settings;switch(n){case"style":if(!is(v,"string")){each(v,function(v,n){t.setStyle(e,n,v)});return}if(s.keep_values){if(v&&!t._isRes(v)){e.setAttribute("data-mce-style",v,2)}else{e.removeAttribute("data-mce-style",2)}}e.style.cssText=v;break;case"class":e.className=v||"";break;case"src":case"href":if(s.keep_values){if(s.url_converter){v=s.url_converter.call(s.url_converter_scope||t,v,n,e)}t.setAttrib(e,"data-mce-"+n,v,2)}break;case"shape":e.setAttribute("data-mce-style",v);break}if(is(v)&&v!==null&&v.length!==0){e.setAttribute(n,""+v,2)}else{e.removeAttribute(n,2)}})},setAttribs:function(e,o){var t=this;return this.run(e,function(e){each(o,function(v,n){t.setAttrib(e,n,v)})})},getAttrib:function(e,n,dv){var v,t=this,undef;e=t.get(e);if(!e||e.nodeType!==1){return dv===undef?false:dv}if(!is(dv)){dv=""}if(/^(src|href|style|coords|shape)$/.test(n)){v=e.getAttribute("data-mce-"+n);if(v){return v}}if(isIE&&t.props[n]){v=e[t.props[n]];v=v&&v.nodeValue?v.nodeValue:v}if(!v){v=e.getAttribute(n,2)}if(/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(n)){if(e[t.props[n]]===true&&v===""){return n}return v?n:""}if(e.nodeName==="FORM"&&e.getAttributeNode(n)){return e.getAttributeNode(n).nodeValue}if(n==="style"){v=v||e.style.cssText;if(v){v=t.serializeStyle(t.parseStyle(v),e.nodeName);if(t.settings.keep_values&&!t._isRes(v)){e.setAttribute("data-mce-style",v)}}}if(isWebKit&&n==="class"&&v){v=v.replace(/(apple|webkit)\-[a-z\-]+/gi,"")}if(isIE){switch(n){case"rowspan":case"colspan":if(v===1){v=""}break;case"size":if(v==="+0"||v===20||v===0){v=""}break;case"width":case"height":case"vspace":case"checked":case"disabled":case"readonly":if(v===0){v=""}break;case"hspace":if(v===-1){v=""}break;case"maxlength":case"tabindex":if(v===32768||v===2147483647||v==="32768"){v=""}break;case"multiple":case"compact":case"noshade":case"nowrap":if(v===65535){return n}return dv;case"shape":v=v.toLowerCase();break;default:if(n.indexOf("on")===0&&v){v=tinymce._replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/,"$1",""+v)}}}return(v!==undef&&v!==null&&v!=="")?""+v:dv},getPos:function(n,ro){var t=this,x=0,y=0,e,d=t.doc,r;n=t.get(n);ro=ro||d.body;if(n){if(n.getBoundingClientRect){n=n.getBoundingClientRect();e=t.boxModel?d.documentElement:d.body;x=n.left+(d.documentElement.scrollLeft||d.body.scrollLeft)-e.clientTop;y=n.top+(d.documentElement.scrollTop||d.body.scrollTop)-e.clientLeft;return{x:x,y:y}}r=n;while(r&&r!=ro&&r.nodeType){x+=r.offsetLeft||0;y+=r.offsetTop||0;r=r.offsetParent}r=n.parentNode;while(r&&r!=ro&&r.nodeType){x-=r.scrollLeft||0;y-=r.scrollTop||0;r=r.parentNode}}return{x:x,y:y}},parseStyle:function(st){return this.styles.parse(st)},serializeStyle:function(o,name){return this.styles.serialize(o,name)},loadCSS:function(u){var t=this,d=t.doc,head;if(!u){u=""}head=t.select("head")[0];each(u.split(","),function(u){var link;if(t.files[u]){return}t.files[u]=true;link=t.create("link",{rel:"stylesheet",href:tinymce._addVer(u)});if(isIE&&d.documentMode&&d.recalc){link.onload=function(){if(d.recalc){d.recalc()}link.onload=null}}head.appendChild(link)})},addClass:function(e,c){return this.run(e,function(e){var o;if(!c){return 0}if(this.hasClass(e,c)){return e.className}o=this.removeClass(e,c);return e.className=(o!=""?(o+" "):"")+c})},removeClass:function(e,c){var t=this,re;return t.run(e,function(e){var v;if(t.hasClass(e,c)){if(!re){re=new RegExp("(^|\\s+)"+c+"(\\s+|$)","g")}v=e.className.replace(re," ");v=tinymce.trim(v!=" "?v:"");e.className=v;if(!v){e.removeAttribute("class");e.removeAttribute("className")}return v}return e.className})},hasClass:function(n,c){n=this.get(n);if(!n||!c){return false}return(" "+n.className+" ").indexOf(" "+c+" ")!==-1},show:function(e){return this.setStyle(e,"display","block")},hide:function(e){return this.setStyle(e,"display","none")},isHidden:function(e){e=this.get(e);return !e||e.style.display=="none"||this.getStyle(e,"display")=="none"},uniqueId:function(p){return(!p?"mce_":p)+(this.counter++)},setHTML:function(element,html){var self=this;return self.run(element,function(element){if(isIE){while(element.firstChild){element.removeChild(element.firstChild)}try{element.innerHTML="
                                            "+html;element.removeChild(element.firstChild)}catch(ex){element=self.create("div");element.innerHTML="
                                            "+html;each(element.childNodes,function(node,i){if(i){element.appendChild(node)}})}}else{element.innerHTML=html}return html})},getOuterHTML:function(elm){var doc,self=this;elm=self.get(elm);if(!elm){return null}if(elm.nodeType===1&&self.hasOuterHTML){return elm.outerHTML}doc=(elm.ownerDocument||self.doc).createElement("body");doc.appendChild(elm.cloneNode(true));return doc.innerHTML},setOuterHTML:function(e,h,d){var t=this;function setHTML(e,h,d){var n,tp;tp=d.createElement("body");tp.innerHTML=h;n=tp.lastChild;while(n){t.insertAfter(n.cloneNode(true),e);n=n.previousSibling}t.remove(e)}return this.run(e,function(e){e=t.get(e);if(e.nodeType==1){d=d||e.ownerDocument||t.doc;if(isIE){try{if(isIE&&e.nodeType==1){e.outerHTML=h}else{setHTML(e,h,d)}}catch(ex){setHTML(e,h,d)}}else{setHTML(e,h,d)}}})},decode:Entities.decode,encode:Entities.encodeAllRaw,insertAfter:function(node,reference_node){reference_node=this.get(reference_node);return this.run(node,function(node){var parent,nextSibling;parent=reference_node.parentNode;nextSibling=reference_node.nextSibling;if(nextSibling){parent.insertBefore(node,nextSibling)}else{parent.appendChild(node)}return node})},isBlock:function(node){var type=node.nodeType;if(type){return !!(type===1&&blockElementsMap[node.nodeName])}return !!blockElementsMap[node]},replace:function(n,o,k){var t=this;if(is(o,"array")){n=n.cloneNode(true)}return t.run(o,function(o){if(k){each(tinymce.grep(o.childNodes),function(c){n.appendChild(c)})}return o.parentNode.replaceChild(n,o)})},rename:function(elm,name){var t=this,newElm;if(elm.nodeName!=name.toUpperCase()){newElm=t.create(name);each(t.getAttribs(elm),function(attr_node){t.setAttrib(newElm,attr_node.nodeName,t.getAttrib(elm,attr_node.nodeName))});t.replace(newElm,elm,1)}return newElm||elm},findCommonAncestor:function(a,b){var ps=a,pe;while(ps){pe=b;while(pe&&ps!=pe){pe=pe.parentNode}if(ps==pe){break}ps=ps.parentNode}if(!ps&&a.ownerDocument){return a.ownerDocument.documentElement}return ps},toHex:function(s){var c=/^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(s);function hex(s){s=parseInt(s).toString(16);return s.length>1?s:"0"+s}if(c){s="#"+hex(c[1])+hex(c[2])+hex(c[3]);return s}return s},getClasses:function(){var t=this,cl=[],i,lo={},f=t.settings.class_filter,ov;if(t.classes){return t.classes}function addClasses(s){each(s.imports,function(r){addClasses(r)});each(s.cssRules||s.rules,function(r){switch(r.type||1){case 1:if(r.selectorText){each(r.selectorText.split(","),function(v){v=v.replace(/^\s*|\s*$|^\s\./g,"");if(/\.mce/.test(v)||!/\.[\w\-]+$/.test(v)){return}ov=v;v=tinymce._replace(/.*\.([a-z0-9_\-]+).*/i,"$1",v);if(f&&!(v=f(v,ov))){return}if(!lo[v]){cl.push({"class":v});lo[v]=1}})}break;case 3:addClasses(r.styleSheet);break}})}try{each(t.doc.styleSheets,addClasses)}catch(ex){}if(cl.length>0){t.classes=cl}return cl},run:function(e,f,s){var t=this,o;if(t.doc&&typeof(e)==="string"){e=t.get(e)}if(!e){return false}s=s||this;if(!e.nodeType&&(e.length||e.length===0)){o=[];each(e,function(e,i){if(e){if(typeof(e)=="string"){e=t.doc.getElementById(e)}o.push(f.call(s,e,i))}});return o}return f.call(s,e)},getAttribs:function(n){var o;n=this.get(n);if(!n){return[]}if(isIE){o=[];if(n.nodeName=="OBJECT"){return n.attributes}if(n.nodeName==="OPTION"&&this.getAttrib(n,"selected")){o.push({specified:1,nodeName:"selected"})}n.cloneNode(false).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi,"").replace(/[\w:\-]+/gi,function(a){o.push({specified:1,nodeName:a})});return o}return n.attributes},isEmpty:function(node,elements){var self=this,i,attributes,type,walker,name,parentNode;node=node.firstChild;if(node){walker=new tinymce.dom.TreeWalker(node);elements=elements||self.schema?self.schema.getNonEmptyElements():null;do{type=node.nodeType;if(type===1){if(node.getAttribute("data-mce-bogus")){continue}name=node.nodeName.toLowerCase();if(elements&&elements[name]){parentNode=node.parentNode;if(name==="br"&&self.isBlock(parentNode)&&parentNode.firstChild===node&&parentNode.lastChild===node){continue}return false}attributes=self.getAttribs(node);i=node.attributes.length;while(i--){name=node.attributes[i].nodeName;if(name==="name"||name==="data-mce-bookmark"){return false}}}if((type===3&&!whiteSpaceRegExp.test(node.nodeValue))){return false}}while(node=walker.next())}return true},destroy:function(s){var t=this;if(t.events){t.events.destroy()}t.win=t.doc=t.root=t.events=null;if(!s){tinymce.removeUnload(t.destroy)}},createRng:function(){var d=this.doc;return d.createRange?d.createRange():new tinymce.dom.Range(this)},nodeIndex:function(node,normalized){var idx=0,lastNodeType,lastNode,nodeType;if(node){for(lastNodeType=node.nodeType,node=node.previousSibling,lastNode=node;node;node=node.previousSibling){nodeType=node.nodeType;if(normalized&&nodeType==3){if(nodeType==lastNodeType||!node.nodeValue.length){continue}}idx++;lastNodeType=nodeType}}return idx},split:function(pe,e,re){var t=this,r=t.createRng(),bef,aft,pa;function trim(node){var i,children=node.childNodes,type=node.nodeType;if(type==1&&node.getAttribute("data-mce-type")=="bookmark"){return}for(i=children.length-1;i>=0;i--){trim(children[i])}if(type!=9){if(type==3&&node.nodeValue.length>0){if(!t.isBlock(node.parentNode)||tinymce.trim(node.nodeValue).length>0){return}}else{if(type==1){children=node.childNodes;if(children.length==1&&children[0]&&children[0].nodeType==1&&children[0].getAttribute("data-mce-type")=="bookmark"){node.parentNode.insertBefore(children[0],node)}if(children.length||/^(br|hr|input|img)$/i.test(node.nodeName)){return}}}t.remove(node)}return node}if(pe&&e){r.setStart(pe.parentNode,t.nodeIndex(pe));r.setEnd(e.parentNode,t.nodeIndex(e));bef=r.extractContents();r=t.createRng();r.setStart(e.parentNode,t.nodeIndex(e)+1);r.setEnd(pe.parentNode,t.nodeIndex(pe)+1);aft=r.extractContents();pa=pe.parentNode;pa.insertBefore(trim(bef),pe);if(re){pa.replaceChild(re,e)}else{pa.insertBefore(e,pe)}pa.insertBefore(trim(aft),pe);t.remove(pe);return re||e}},bind:function(target,name,func,scope){var t=this;if(!t.events){t.events=new tinymce.dom.EventUtils()}return t.events.add(target,name,func,scope||this)},unbind:function(target,name,func){var t=this;if(!t.events){t.events=new tinymce.dom.EventUtils()}return t.events.remove(target,name,func)},_findSib:function(node,selector,name){var t=this,f=selector;if(node){if(is(f,"string")){f=function(node){return t.is(node,selector)}}for(node=node[name];node;node=node[name]){if(f(node)){return node}}}return null},_isRes:function(c){return/^(top|left|bottom|right|width|height)/i.test(c)||/;\s*(top|left|bottom|right|width|height)/i.test(c)}});tinymce.DOM=new tinymce.dom.DOMUtils(document,{process_html:0})})(tinymce);(function(ns){function Range(dom){var t=this,doc=dom.doc,EXTRACT=0,CLONE=1,DELETE=2,TRUE=true,FALSE=false,START_OFFSET="startOffset",START_CONTAINER="startContainer",END_CONTAINER="endContainer",END_OFFSET="endOffset",extend=tinymce.extend,nodeIndex=dom.nodeIndex;extend(t,{startContainer:doc,startOffset:0,endContainer:doc,endOffset:0,collapsed:TRUE,commonAncestorContainer:doc,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:setStart,setEnd:setEnd,setStartBefore:setStartBefore,setStartAfter:setStartAfter,setEndBefore:setEndBefore,setEndAfter:setEndAfter,collapse:collapse,selectNode:selectNode,selectNodeContents:selectNodeContents,compareBoundaryPoints:compareBoundaryPoints,deleteContents:deleteContents,extractContents:extractContents,cloneContents:cloneContents,insertNode:insertNode,surroundContents:surroundContents,cloneRange:cloneRange});function setStart(n,o){_setEndPoint(TRUE,n,o)}function setEnd(n,o){_setEndPoint(FALSE,n,o)}function setStartBefore(n){setStart(n.parentNode,nodeIndex(n))}function setStartAfter(n){setStart(n.parentNode,nodeIndex(n)+1)}function setEndBefore(n){setEnd(n.parentNode,nodeIndex(n))}function setEndAfter(n){setEnd(n.parentNode,nodeIndex(n)+1)}function collapse(ts){if(ts){t[END_CONTAINER]=t[START_CONTAINER];t[END_OFFSET]=t[START_OFFSET]}else{t[START_CONTAINER]=t[END_CONTAINER];t[START_OFFSET]=t[END_OFFSET]}t.collapsed=TRUE}function selectNode(n){setStartBefore(n);setEndAfter(n)}function selectNodeContents(n){setStart(n,0);setEnd(n,n.nodeType===1?n.childNodes.length:n.nodeValue.length)}function compareBoundaryPoints(h,r){var sc=t[START_CONTAINER],so=t[START_OFFSET],ec=t[END_CONTAINER],eo=t[END_OFFSET],rsc=r.startContainer,rso=r.startOffset,rec=r.endContainer,reo=r.endOffset;if(h===0){return _compareBoundaryPoints(sc,so,rsc,rso)}if(h===1){return _compareBoundaryPoints(ec,eo,rsc,rso)}if(h===2){return _compareBoundaryPoints(ec,eo,rec,reo)}if(h===3){return _compareBoundaryPoints(sc,so,rec,reo)}}function deleteContents(){_traverse(DELETE)}function extractContents(){return _traverse(EXTRACT)}function cloneContents(){return _traverse(CLONE)}function insertNode(n){var startContainer=this[START_CONTAINER],startOffset=this[START_OFFSET],nn,o;if((startContainer.nodeType===3||startContainer.nodeType===4)&&startContainer.nodeValue){if(!startOffset){startContainer.parentNode.insertBefore(n,startContainer)}else{if(startOffset>=startContainer.nodeValue.length){dom.insertAfter(n,startContainer)}else{nn=startContainer.splitText(startOffset);startContainer.parentNode.insertBefore(n,nn)}}}else{if(startContainer.childNodes.length>0){o=startContainer.childNodes[startOffset]}if(o){startContainer.insertBefore(n,o)}else{startContainer.appendChild(n)}}}function surroundContents(n){var f=t.extractContents();t.insertNode(n);n.appendChild(f);t.selectNode(n)}function cloneRange(){return extend(new Range(dom),{startContainer:t[START_CONTAINER],startOffset:t[START_OFFSET],endContainer:t[END_CONTAINER],endOffset:t[END_OFFSET],collapsed:t.collapsed,commonAncestorContainer:t.commonAncestorContainer})}function _getSelectedNode(container,offset){var child;if(container.nodeType==3){return container}if(offset<0){return container}child=container.firstChild;while(child&&offset>0){--offset;child=child.nextSibling}if(child){return child}return container}function _isCollapsed(){return(t[START_CONTAINER]==t[END_CONTAINER]&&t[START_OFFSET]==t[END_OFFSET])}function _compareBoundaryPoints(containerA,offsetA,containerB,offsetB){var c,offsetC,n,cmnRoot,childA,childB;if(containerA==containerB){if(offsetA==offsetB){return 0}if(offsetA0){t.collapse(st)}}else{t.collapse(st)}t.collapsed=_isCollapsed();t.commonAncestorContainer=dom.findCommonAncestor(t[START_CONTAINER],t[END_CONTAINER])}function _traverse(how){var c,endContainerDepth=0,startContainerDepth=0,p,depthDiff,startNode,endNode,sp,ep;if(t[START_CONTAINER]==t[END_CONTAINER]){return _traverseSameContainer(how)}for(c=t[END_CONTAINER],p=c.parentNode;p;c=p,p=p.parentNode){if(p==t[START_CONTAINER]){return _traverseCommonStartContainer(c,how)}++endContainerDepth}for(c=t[START_CONTAINER],p=c.parentNode;p;c=p,p=p.parentNode){if(p==t[END_CONTAINER]){return _traverseCommonEndContainer(c,how)}++startContainerDepth}depthDiff=startContainerDepth-endContainerDepth;startNode=t[START_CONTAINER];while(depthDiff>0){startNode=startNode.parentNode;depthDiff--}endNode=t[END_CONTAINER];while(depthDiff<0){endNode=endNode.parentNode;depthDiff++}for(sp=startNode.parentNode,ep=endNode.parentNode;sp!=ep;sp=sp.parentNode,ep=ep.parentNode){startNode=sp;endNode=ep}return _traverseCommonAncestors(startNode,endNode,how)}function _traverseSameContainer(how){var frag,s,sub,n,cnt,sibling,xferNode;if(how!=DELETE){frag=doc.createDocumentFragment()}if(t[START_OFFSET]==t[END_OFFSET]){return frag}if(t[START_CONTAINER].nodeType==3){s=t[START_CONTAINER].nodeValue;sub=s.substring(t[START_OFFSET],t[END_OFFSET]);if(how!=CLONE){t[START_CONTAINER].deleteData(t[START_OFFSET],t[END_OFFSET]-t[START_OFFSET]);t.collapse(TRUE)}if(how==DELETE){return}frag.appendChild(doc.createTextNode(sub));return frag}n=_getSelectedNode(t[START_CONTAINER],t[START_OFFSET]);cnt=t[END_OFFSET]-t[START_OFFSET];while(cnt>0){sibling=n.nextSibling;xferNode=_traverseFullySelected(n,how);if(frag){frag.appendChild(xferNode)}--cnt;n=sibling}if(how!=CLONE){t.collapse(TRUE)}return frag}function _traverseCommonStartContainer(endAncestor,how){var frag,n,endIdx,cnt,sibling,xferNode;if(how!=DELETE){frag=doc.createDocumentFragment()}n=_traverseRightBoundary(endAncestor,how);if(frag){frag.appendChild(n)}endIdx=nodeIndex(endAncestor);cnt=endIdx-t[START_OFFSET];if(cnt<=0){if(how!=CLONE){t.setEndBefore(endAncestor);t.collapse(FALSE)}return frag}n=endAncestor.previousSibling;while(cnt>0){sibling=n.previousSibling;xferNode=_traverseFullySelected(n,how);if(frag){frag.insertBefore(xferNode,frag.firstChild)}--cnt;n=sibling}if(how!=CLONE){t.setEndBefore(endAncestor);t.collapse(FALSE)}return frag}function _traverseCommonEndContainer(startAncestor,how){var frag,startIdx,n,cnt,sibling,xferNode;if(how!=DELETE){frag=doc.createDocumentFragment()}n=_traverseLeftBoundary(startAncestor,how);if(frag){frag.appendChild(n)}startIdx=nodeIndex(startAncestor);++startIdx;cnt=t[END_OFFSET]-startIdx;n=startAncestor.nextSibling;while(cnt>0){sibling=n.nextSibling;xferNode=_traverseFullySelected(n,how);if(frag){frag.appendChild(xferNode)}--cnt;n=sibling}if(how!=CLONE){t.setStartAfter(startAncestor);t.collapse(TRUE)}return frag}function _traverseCommonAncestors(startAncestor,endAncestor,how){var n,frag,commonParent,startOffset,endOffset,cnt,sibling,nextSibling;if(how!=DELETE){frag=doc.createDocumentFragment()}n=_traverseLeftBoundary(startAncestor,how);if(frag){frag.appendChild(n)}commonParent=startAncestor.parentNode;startOffset=nodeIndex(startAncestor);endOffset=nodeIndex(endAncestor);++startOffset;cnt=endOffset-startOffset;sibling=startAncestor.nextSibling;while(cnt>0){nextSibling=sibling.nextSibling;n=_traverseFullySelected(sibling,how);if(frag){frag.appendChild(n)}sibling=nextSibling;--cnt}n=_traverseRightBoundary(endAncestor,how);if(frag){frag.appendChild(n)}if(how!=CLONE){t.setStartAfter(startAncestor);t.collapse(TRUE)}return frag}function _traverseRightBoundary(root,how){var next=_getSelectedNode(t[END_CONTAINER],t[END_OFFSET]-1),parent,clonedParent,prevSibling,clonedChild,clonedGrandParent,isFullySelected=next!=t[END_CONTAINER];if(next==root){return _traverseNode(next,isFullySelected,FALSE,how)}parent=next.parentNode;clonedParent=_traverseNode(parent,FALSE,FALSE,how);while(parent){while(next){prevSibling=next.previousSibling;clonedChild=_traverseNode(next,isFullySelected,FALSE,how);if(how!=DELETE){clonedParent.insertBefore(clonedChild,clonedParent.firstChild)}isFullySelected=TRUE;next=prevSibling}if(parent==root){return clonedParent}next=parent.previousSibling;parent=parent.parentNode;clonedGrandParent=_traverseNode(parent,FALSE,FALSE,how);if(how!=DELETE){clonedGrandParent.appendChild(clonedParent)}clonedParent=clonedGrandParent}}function _traverseLeftBoundary(root,how){var next=_getSelectedNode(t[START_CONTAINER],t[START_OFFSET]),isFullySelected=next!=t[START_CONTAINER],parent,clonedParent,nextSibling,clonedChild,clonedGrandParent;if(next==root){return _traverseNode(next,isFullySelected,TRUE,how)}parent=next.parentNode;clonedParent=_traverseNode(parent,FALSE,TRUE,how);while(parent){while(next){nextSibling=next.nextSibling;clonedChild=_traverseNode(next,isFullySelected,TRUE,how);if(how!=DELETE){clonedParent.appendChild(clonedChild)}isFullySelected=TRUE;next=nextSibling}if(parent==root){return clonedParent}next=parent.nextSibling;parent=parent.parentNode;clonedGrandParent=_traverseNode(parent,FALSE,TRUE,how);if(how!=DELETE){clonedGrandParent.appendChild(clonedParent)}clonedParent=clonedGrandParent}}function _traverseNode(n,isFullySelected,isLeft,how){var txtValue,newNodeValue,oldNodeValue,offset,newNode;if(isFullySelected){return _traverseFullySelected(n,how)}if(n.nodeType==3){txtValue=n.nodeValue;if(isLeft){offset=t[START_OFFSET];newNodeValue=txtValue.substring(offset);oldNodeValue=txtValue.substring(0,offset)}else{offset=t[END_OFFSET];newNodeValue=txtValue.substring(0,offset);oldNodeValue=txtValue.substring(offset)}if(how!=CLONE){n.nodeValue=oldNodeValue}if(how==DELETE){return}newNode=n.cloneNode(FALSE);newNode.nodeValue=newNodeValue;return newNode}if(how==DELETE){return}return n.cloneNode(FALSE)}function _traverseFullySelected(n,how){if(how!=DELETE){return how==CLONE?n.cloneNode(TRUE):n}n.parentNode.removeChild(n)}}ns.Range=Range})(tinymce.dom);(function(){function Selection(selection){var self=this,dom=selection.dom,TRUE=true,FALSE=false;function getPosition(rng,start){var checkRng,startIndex=0,endIndex,inside,children,child,offset,index,position=-1,parent;checkRng=rng.duplicate();checkRng.collapse(start);parent=checkRng.parentElement();if(parent.ownerDocument!==selection.dom.doc){return}while(parent.contentEditable==="false"){parent=parent.parentNode}if(!parent.hasChildNodes()){return{node:parent,inside:1}}children=parent.children;endIndex=children.length-1;while(startIndex<=endIndex){index=Math.floor((startIndex+endIndex)/2);child=children[index];checkRng.moveToElementText(child);position=checkRng.compareEndPoints(start?"StartToStart":"EndToEnd",rng);if(position>0){endIndex=index-1}else{if(position<0){startIndex=index+1}else{return{node:child}}}}if(position<0){if(!child){checkRng.moveToElementText(parent);checkRng.collapse(true);child=parent;inside=true}else{checkRng.collapse(false)}checkRng.setEndPoint(start?"EndToStart":"EndToEnd",rng);if(checkRng.compareEndPoints(start?"StartToStart":"StartToEnd",rng)>0){checkRng=rng.duplicate();checkRng.collapse(start);offset=-1;while(parent==checkRng.parentElement()){if(checkRng.move("character",-1)==0){break}offset++}}offset=offset||checkRng.text.replace("\r\n"," ").length}else{checkRng.collapse(true);checkRng.setEndPoint(start?"StartToStart":"StartToEnd",rng);offset=checkRng.text.replace("\r\n"," ").length}return{node:child,position:position,offset:offset,inside:inside}}function getRange(){var ieRange=selection.getRng(),domRange=dom.createRng(),element,collapsed,tmpRange,element2,bookmark,fail;element=ieRange.item?ieRange.item(0):ieRange.parentElement();if(element.ownerDocument!=dom.doc){return domRange}collapsed=selection.isCollapsed();if(ieRange.item){domRange.setStart(element.parentNode,dom.nodeIndex(element));domRange.setEnd(domRange.startContainer,domRange.startOffset+1);return domRange}function findEndPoint(start){var endPoint=getPosition(ieRange,start),container,offset,textNodeOffset=0,sibling,undef,nodeValue;container=endPoint.node;offset=endPoint.offset;if(endPoint.inside&&!container.hasChildNodes()){domRange[start?"setStart":"setEnd"](container,0);return}if(offset===undef){domRange[start?"setStartBefore":"setEndAfter"](container);return}if(endPoint.position<0){sibling=endPoint.inside?container.firstChild:container.nextSibling;if(!sibling){domRange[start?"setStartAfter":"setEndAfter"](container);return}if(!offset){if(sibling.nodeType==3){domRange[start?"setStart":"setEnd"](sibling,0)}else{domRange[start?"setStartBefore":"setEndBefore"](sibling)}return}while(sibling){nodeValue=sibling.nodeValue;textNodeOffset+=nodeValue.length;if(textNodeOffset>=offset){container=sibling;textNodeOffset-=offset;textNodeOffset=nodeValue.length-textNodeOffset;break}sibling=sibling.nextSibling}}else{sibling=container.previousSibling;if(!sibling){return domRange[start?"setStartBefore":"setEndBefore"](container)}if(!offset){if(container.nodeType==3){domRange[start?"setStart":"setEnd"](sibling,container.nodeValue.length)}else{domRange[start?"setStartAfter":"setEndAfter"](sibling)}return}while(sibling){textNodeOffset+=sibling.nodeValue.length;if(textNodeOffset>=offset){container=sibling;textNodeOffset-=offset;break}sibling=sibling.previousSibling}}domRange[start?"setStart":"setEnd"](container,textNodeOffset)}try{findEndPoint(true);if(!collapsed){findEndPoint()}}catch(ex){if(ex.number==-2147024809){bookmark=self.getBookmark(2);tmpRange=ieRange.duplicate();tmpRange.collapse(true);element=tmpRange.parentElement();if(!collapsed){tmpRange=ieRange.duplicate();tmpRange.collapse(false);element2=tmpRange.parentElement();element2.innerHTML=element2.innerHTML}element.innerHTML=element.innerHTML;self.moveToBookmark(bookmark);ieRange=selection.getRng();findEndPoint(true);if(!collapsed){findEndPoint()}}else{throw ex}}return domRange}this.getBookmark=function(type){var rng=selection.getRng(),start,end,bookmark={};function getIndexes(node){var node,parent,root,children,i,indexes=[];parent=node.parentNode;root=dom.getRoot().parentNode;while(parent!=root){children=parent.children;i=children.length;while(i--){if(node===children[i]){indexes.push(i);break}}node=parent;parent=parent.parentNode}return indexes}function getBookmarkEndPoint(start){var position;position=getPosition(rng,start);if(position){return{position:position.position,offset:position.offset,indexes:getIndexes(position.node),inside:position.inside}}}if(type===2){if(!rng.item){bookmark.start=getBookmarkEndPoint(true);if(!selection.isCollapsed()){bookmark.end=getBookmarkEndPoint()}}else{bookmark.start={ctrl:true,indexes:getIndexes(rng.item(0))}}}return bookmark};this.moveToBookmark=function(bookmark){var rng,body=dom.doc.body;function resolveIndexes(indexes){var node,i,idx,children;node=dom.getRoot();for(i=indexes.length-1;i>=0;i--){children=node.children;idx=indexes[i];if(idx<=children.length-1){node=children[idx]}}return node}function setBookmarkEndPoint(start){var endPoint=bookmark[start?"start":"end"],moveLeft,moveRng,undef;if(endPoint){moveLeft=endPoint.position>0;moveRng=body.createTextRange();moveRng.moveToElementText(resolveIndexes(endPoint.indexes));offset=endPoint.offset;if(offset!==undef){moveRng.collapse(endPoint.inside||moveLeft);moveRng.moveStart("character",moveLeft?-offset:offset)}else{moveRng.collapse(start)}rng.setEndPoint(start?"StartToStart":"EndToStart",moveRng);if(start){rng.collapse(true)}}}if(bookmark.start){if(bookmark.start.ctrl){rng=body.createControlRange();rng.addElement(resolveIndexes(bookmark.start.indexes));rng.select()}else{rng=body.createTextRange();setBookmarkEndPoint(true);setBookmarkEndPoint();rng.select()}}};this.addRange=function(rng){var ieRng,ctrlRng,startContainer,startOffset,endContainer,endOffset,doc=selection.dom.doc,body=doc.body;function setEndPoint(start){var container,offset,marker,tmpRng,nodes;marker=dom.create("a");container=start?startContainer:endContainer;offset=start?startOffset:endOffset;tmpRng=ieRng.duplicate();if(container==doc||container==doc.documentElement){container=body;offset=0}if(container.nodeType==3){container.parentNode.insertBefore(marker,container);tmpRng.moveToElementText(marker);tmpRng.moveStart("character",offset);dom.remove(marker);ieRng.setEndPoint(start?"StartToStart":"EndToEnd",tmpRng)}else{nodes=container.childNodes;if(nodes.length){if(offset>=nodes.length){dom.insertAfter(marker,nodes[nodes.length-1])}else{container.insertBefore(marker,nodes[offset])}tmpRng.moveToElementText(marker)}else{marker=doc.createTextNode("\uFEFF");container.appendChild(marker);tmpRng.moveToElementText(marker.parentNode);tmpRng.collapse(TRUE)}ieRng.setEndPoint(start?"StartToStart":"EndToEnd",tmpRng);dom.remove(marker)}}startContainer=rng.startContainer;startOffset=rng.startOffset;endContainer=rng.endContainer;endOffset=rng.endOffset;ieRng=body.createTextRange();if(startContainer==endContainer&&startContainer.nodeType==1&&startOffset==endOffset-1){if(startOffset==endOffset-1){try{ctrlRng=body.createControlRange();ctrlRng.addElement(startContainer.childNodes[startOffset]);ctrlRng.select();return}catch(ex){}}}setEndPoint(true);setEndPoint();ieRng.select()};this.getRangeAt=getRange}tinymce.dom.TridentSelection=Selection})();(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(selector,context,results,seed){results=results||[];context=context||document;var origContext=context;if(context.nodeType!==1&&context.nodeType!==9){return[]}if(!selector||typeof selector!=="string"){return results}var parts=[],m,set,checkSet,extra,prune=true,contextXML=Sizzle.isXML(context),soFar=selector,ret,cur,pop,i;do{chunker.exec("");m=chunker.exec(soFar);if(m){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break}}}while(m);if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context)}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift()}set=posProcess(selector,set)}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]}if(context){ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set)}else{prune=false}while(parts.length){cur=parts.pop();pop=cur;if(!Expr.relative[cur]){cur=""}else{pop=parts.pop()}if(pop==null){pop=context}Expr.relative[cur](checkSet,pop,contextXML)}}else{checkSet=parts=[]}}if(!checkSet){checkSet=set}if(!checkSet){Sizzle.error(cur||selector)}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet)}else{if(context&&context.nodeType===1){for(i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&Sizzle.contains(context,checkSet[i]))){results.push(set[i])}}}else{for(i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i])}}}}}else{makeArray(checkSet,results)}if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results)}return results};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i":function(checkSet,part){var isPartStr=typeof part==="string",elem,i=0,l=checkSet.length;if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(;i=0)){if(!inplace){result.push(elem)}}else{if(inplace){curLoop[i]=false}}}}return false},ID:function(match){return match[1].replace(/\\/g,"")},TAG:function(match,curLoop){return match[1].toLowerCase()},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0}match[0]=done++;return match},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]}if(match[2]==="~="){match[4]=" "+match[4]+" "}return match},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop)}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret)}return false}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true}}return match},POS:function(match){match.unshift(true);return match}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden"},disabled:function(elem){return elem.disabled===true},checked:function(elem){return elem.checked===true},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true},parent:function(elem){return !!elem.firstChild},empty:function(elem){return !elem.firstChild},has:function(elem,i,match){return !!Sizzle(match[3],elem).length},header:function(elem){return(/h\d/i).test(elem.nodeName)},text:function(elem){return"text"===elem.type},radio:function(elem){return"radio"===elem.type},checkbox:function(elem){return"checkbox"===elem.type},file:function(elem){return"file"===elem.type},password:function(elem){return"password"===elem.type},submit:function(elem){return"submit"===elem.type},image:function(elem){return"image"===elem.type},reset:function(elem){return"reset"===elem.type},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase()==="button"},input:function(elem){return(/input|select|textarea|button/i).test(elem.nodeName)}},setFilters:{first:function(elem,i){return i===0},last:function(elem,i,match,array){return i===array.length-1},even:function(elem,i){return i%2===0},odd:function(elem,i){return i%2===1},lt:function(elem,i,match){return imatch[3]-0},nth:function(elem,i,match){return match[3]-0===i},eq:function(elem,i,match){return match[3]-0===i}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array)}else{if(name==="contains"){return(elem.textContent||elem.innerText||Sizzle.getText([elem])||"").indexOf(match[3])>=0}else{if(name==="not"){var not=match[3];for(var j=0,l=not.length;j=0)}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===match},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array)}}}};var origPOS=Expr.match.POS,fescape=function(all,num){return"\\"+(num-0+1)};for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+(/(?![^\[]*\])(?![^\(]*\))/.source));Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source.replace(/\\(\d+)/g,fescape))}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results}return array};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(e){makeArray=function(array,results){var ret=results||[],i=0;if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array)}else{if(typeof array.length==="number"){for(var l=array.length;i";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match}}root.removeChild(form);root=form=null})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i])}}results=tmp}return results}}div.innerHTML="";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2)}}div=null})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="

                                            ";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return}Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!Sizzle.isXML(context)){try{return makeArray(context.querySelectorAll(query),extra)}catch(e){}}return oldSizzle(query,context,extra,seed)};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]}div=null})()}(function(){var div=document.createElement("div");div.innerHTML="
                                            ";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return}div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return}Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1])}};div=null})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i0){match=elem;break}}}elem=elem[dir]}checkSet[i]=match}}}Sizzle.contains=document.compareDocumentPosition?function(a,b){return !!(a.compareDocumentPosition(b)&16)}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};Sizzle.isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"")}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i=0;i--){e=a[i];if(e.obj===o){t._remove(e.obj,e.name,e.cfunc);e.obj=e.cfunc=null;a.splice(i,1)}}}},cancel:function(e){if(!e){return false}this.stop(e);return this.prevent(e)},stop:function(e){if(e.stopPropagation){e.stopPropagation()}else{e.cancelBubble=true}return false},prevent:function(e){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}return false},destroy:function(){var t=this;each(t.events,function(e,i){t._remove(e.obj,e.name,e.cfunc);e.obj=e.cfunc=null});t.events=[];t=null},_add:function(o,n,f){if(o.attachEvent){o.attachEvent("on"+n,f)}else{if(o.addEventListener){o.addEventListener(n,f,false)}else{o["on"+n]=f}}},_remove:function(o,n,f){if(o){try{if(o.detachEvent){o.detachEvent("on"+n,f)}else{if(o.removeEventListener){o.removeEventListener(n,f,false)}else{o["on"+n]=null}}}catch(ex){}}},_pageInit:function(win){var t=this;if(t.domLoaded){return}t.domLoaded=true;each(t.inits,function(c){c()});t.inits=[]},_wait:function(win){var t=this,doc=win.document;if(win.tinyMCE_GZ&&tinyMCE_GZ.loaded){t.domLoaded=1;return}if(doc.attachEvent){doc.attachEvent("onreadystatechange",function(){if(doc.readyState==="complete"){doc.detachEvent("onreadystatechange",arguments.callee);t._pageInit(win)}});if(doc.documentElement.doScroll&&win==win.top){(function(){if(t.domLoaded){return}try{doc.documentElement.doScroll("left")}catch(ex){setTimeout(arguments.callee,0);return}t._pageInit(win)})()}}else{if(doc.addEventListener){t._add(win,"DOMContentLoaded",function(){t._pageInit(win)})}}t._add(win,"load",function(){t._pageInit(win)})},_stoppers:{preventDefault:function(){this.returnValue=false},stopPropagation:function(){this.cancelBubble=true}}});Event=tinymce.dom.Event=new tinymce.dom.EventUtils();Event._wait(window);tinymce.addUnload(function(){Event.destroy()})})(tinymce);(function(tinymce){tinymce.dom.Element=function(id,settings){var t=this,dom,el;t.settings=settings=settings||{};t.id=id;t.dom=dom=settings.dom||tinymce.DOM;if(!tinymce.isIE){el=dom.get(t.id)}tinymce.each(("getPos,getRect,getParent,add,setStyle,getStyle,setStyles,setAttrib,setAttribs,getAttrib,addClass,removeClass,hasClass,getOuterHTML,setOuterHTML,remove,show,hide,isHidden,setHTML,get").split(/,/),function(k){t[k]=function(){var a=[id],i;for(i=0;i"+(r.item?r.item(0).outerHTML:r.htmlText);e.removeChild(e.firstChild)}else{e.innerHTML=r.toString()}}if(/^\s/.test(e.innerHTML)){wb=" "}if(/\s+$/.test(e.innerHTML)){wa=" "}s.getInner=true;s.content=t.isCollapsed()?"":wb+t.serializer.serialize(e,s)+wa;t.onGetContent.dispatch(t,s);return s.content},setContent:function(content,args){var self=this,rng=self.getRng(),caretNode,doc=self.win.document,frag,temp;args=args||{format:"html"};args.set=true;content=args.content=content;if(!args.no_events){self.onBeforeSetContent.dispatch(self,args)}content=args.content;if(rng.insertNode){content+='_';if(rng.startContainer==doc&&rng.endContainer==doc){doc.body.innerHTML=content}else{rng.deleteContents();if(doc.body.childNodes.length==0){doc.body.innerHTML=content}else{if(rng.createContextualFragment){rng.insertNode(rng.createContextualFragment(content))}else{frag=doc.createDocumentFragment();temp=doc.createElement("div");frag.appendChild(temp);temp.outerHTML=content;rng.insertNode(frag)}}}caretNode=self.dom.get("__caret");rng=doc.createRange();rng.setStartBefore(caretNode);rng.setEndBefore(caretNode);self.setRng(rng);self.dom.remove("__caret");try{self.setRng(rng)}catch(ex){}}else{if(rng.item){doc.execCommand("Delete",false,null);rng=self.getRng()}if(/^\s+/.test(content)){rng.pasteHTML('_'+content);self.dom.remove("__mce_tmp")}else{rng.pasteHTML(content)}}if(!args.no_events){self.onSetContent.dispatch(self,args)}},getStart:function(){var rng=this.getRng(),startElement,parentElement,checkRng,node;if(rng.duplicate||rng.item){if(rng.item){return rng.item(0)}checkRng=rng.duplicate();checkRng.collapse(1);startElement=checkRng.parentElement();parentElement=node=rng.parentElement();while(node=node.parentNode){if(node==startElement){startElement=parentElement;break}}return startElement}else{startElement=rng.startContainer;if(startElement.nodeType==1&&startElement.hasChildNodes()){startElement=startElement.childNodes[Math.min(startElement.childNodes.length-1,rng.startOffset)]}if(startElement&&startElement.nodeType==3){return startElement.parentNode}return startElement}},getEnd:function(){var t=this,r=t.getRng(),e,eo;if(r.duplicate||r.item){if(r.item){return r.item(0)}r=r.duplicate();r.collapse(0);e=r.parentElement();if(e&&e.nodeName=="BODY"){return e.lastChild||e}return e}else{e=r.endContainer;eo=r.endOffset;if(e.nodeType==1&&e.hasChildNodes()){e=e.childNodes[eo>0?eo-1:eo]}if(e&&e.nodeType==3){return e.parentNode}return e}},getBookmark:function(type,normalized){var t=this,dom=t.dom,rng,rng2,id,collapsed,name,element,index,chr="\uFEFF",styles;function findIndex(name,element){var index=0;each(dom.select(name),function(node,i){if(node==element){index=i}});return index}if(type==2){function getLocation(){var rng=t.getRng(true),root=dom.getRoot(),bookmark={};function getPoint(rng,start){var container=rng[start?"startContainer":"endContainer"],offset=rng[start?"startOffset":"endOffset"],point=[],node,childNodes,after=0;if(container.nodeType==3){if(normalized){for(node=container.previousSibling;node&&node.nodeType==3;node=node.previousSibling){offset+=node.nodeValue.length}}point.push(offset)}else{childNodes=container.childNodes;if(offset>=childNodes.length&&childNodes.length){after=1;offset=Math.max(0,childNodes.length-1)}point.push(t.dom.nodeIndex(childNodes[offset],normalized)+after)}for(;container&&container!=root;container=container.parentNode){point.push(t.dom.nodeIndex(container,normalized))}return point}bookmark.start=getPoint(rng,true);if(!t.isCollapsed()){bookmark.end=getPoint(rng)}return bookmark}if(t.tridentSel){return t.tridentSel.getBookmark(type)}return getLocation()}if(type){return{rng:t.getRng()}}rng=t.getRng();id=dom.uniqueId();collapsed=tinyMCE.activeEditor.selection.isCollapsed();styles="overflow:hidden;line-height:0px";if(rng.duplicate||rng.item){if(!rng.item){rng2=rng.duplicate();try{rng.collapse();rng.pasteHTML(''+chr+"");if(!collapsed){rng2.collapse(false);rng.moveToElementText(rng2.parentElement());if(rng.compareEndPoints("StartToEnd",rng2)==0){rng2.move("character",-1)}rng2.pasteHTML(''+chr+"")}}catch(ex){return null}}else{element=rng.item(0);name=element.nodeName;return{name:name,index:findIndex(name,element)}}}else{element=t.getNode();name=element.nodeName;if(name=="IMG"){return{name:name,index:findIndex(name,element)}}rng2=rng.cloneRange();if(!collapsed){rng2.collapse(false);rng2.insertNode(dom.create("span",{"data-mce-type":"bookmark",id:id+"_end",style:styles},chr))}rng.collapse(true);rng.insertNode(dom.create("span",{"data-mce-type":"bookmark",id:id+"_start",style:styles},chr))}t.moveToBookmark({id:id,keep:1});return{id:id}},moveToBookmark:function(bookmark){var t=this,dom=t.dom,marker1,marker2,rng,root,startContainer,endContainer,startOffset,endOffset;if(bookmark){if(bookmark.start){rng=dom.createRng();root=dom.getRoot();function setEndPoint(start){var point=bookmark[start?"start":"end"],i,node,offset,children;if(point){offset=point[0];for(node=root,i=point.length-1;i>=1;i--){children=node.childNodes;if(point[i]>children.length-1){return}node=children[point[i]]}if(node.nodeType===3){offset=Math.min(point[0],node.nodeValue.length)}if(node.nodeType===1){offset=Math.min(point[0],node.childNodes.length)}if(start){rng.setStart(node,offset)}else{rng.setEnd(node,offset)}}return true}if(t.tridentSel){return t.tridentSel.moveToBookmark(bookmark)}if(setEndPoint(true)&&setEndPoint()){t.setRng(rng)}}else{if(bookmark.id){function restoreEndPoint(suffix){var marker=dom.get(bookmark.id+"_"+suffix),node,idx,next,prev,keep=bookmark.keep;if(marker){node=marker.parentNode;if(suffix=="start"){if(!keep){idx=dom.nodeIndex(marker)}else{node=marker.firstChild;idx=1}startContainer=endContainer=node;startOffset=endOffset=idx}else{if(!keep){idx=dom.nodeIndex(marker)}else{node=marker.firstChild;idx=1}endContainer=node;endOffset=idx}if(!keep){prev=marker.previousSibling;next=marker.nextSibling;each(tinymce.grep(marker.childNodes),function(node){if(node.nodeType==3){node.nodeValue=node.nodeValue.replace(/\uFEFF/g,"")}});while(marker=dom.get(bookmark.id+"_"+suffix)){dom.remove(marker,1)}if(prev&&next&&prev.nodeType==next.nodeType&&prev.nodeType==3&&!tinymce.isOpera){idx=prev.nodeValue.length;prev.appendData(next.nodeValue);dom.remove(next);if(suffix=="start"){startContainer=endContainer=prev;startOffset=endOffset=idx}else{endContainer=prev;endOffset=idx}}}}}function addBogus(node){if(dom.isBlock(node)&&!node.innerHTML){node.innerHTML=!isIE?'
                                            ':" "}return node}restoreEndPoint("start");restoreEndPoint("end");if(startContainer){rng=dom.createRng();rng.setStart(addBogus(startContainer),startOffset);rng.setEnd(addBogus(endContainer),endOffset);t.setRng(rng)}}else{if(bookmark.name){t.select(dom.select(bookmark.name)[bookmark.index])}else{if(bookmark.rng){t.setRng(bookmark.rng)}}}}}},select:function(node,content){var t=this,dom=t.dom,rng=dom.createRng(),idx;if(node){idx=dom.nodeIndex(node);rng.setStart(node.parentNode,idx);rng.setEnd(node.parentNode,idx+1);if(content){function setPoint(node,start){var walker=new tinymce.dom.TreeWalker(node,node);do{if(node.nodeType==3&&tinymce.trim(node.nodeValue).length!=0){if(start){rng.setStart(node,0)}else{rng.setEnd(node,node.nodeValue.length)}return}if(node.nodeName=="BR"){if(start){rng.setStartBefore(node)}else{rng.setEndBefore(node)}return}}while(node=(start?walker.next():walker.prev()))}setPoint(node,1);setPoint(node)}t.setRng(rng)}return node},isCollapsed:function(){var t=this,r=t.getRng(),s=t.getSel();if(!r||r.item){return false}if(r.compareEndPoints){return r.compareEndPoints("StartToEnd",r)===0}return !s||r.collapsed},collapse:function(to_start){var self=this,rng=self.getRng(),node;if(rng.item){node=rng.item(0);rng=self.win.document.body.createTextRange();rng.moveToElementText(node)}rng.collapse(!!to_start);self.setRng(rng)},getSel:function(){var t=this,w=this.win;return w.getSelection?w.getSelection():w.document.selection},getRng:function(w3c){var t=this,s,r,elm,doc=t.win.document;if(w3c&&t.tridentSel){return t.tridentSel.getRangeAt(0)}try{if(s=t.getSel()){r=s.rangeCount>0?s.getRangeAt(0):(s.createRange?s.createRange():doc.createRange())}}catch(ex){}if(tinymce.isIE&&r&&r.setStart&&doc.selection.createRange().item){elm=doc.selection.createRange().item(0);r=doc.createRange();r.setStartBefore(elm);r.setEndAfter(elm)}if(!r){r=doc.createRange?doc.createRange():doc.body.createTextRange()}if(t.selectedRange&&t.explicitRange){if(r.compareBoundaryPoints(r.START_TO_START,t.selectedRange)===0&&r.compareBoundaryPoints(r.END_TO_END,t.selectedRange)===0){r=t.explicitRange}else{t.selectedRange=null;t.explicitRange=null}}return r},setRng:function(r){var s,t=this;if(!t.tridentSel){s=t.getSel();if(s){t.explicitRange=r;try{s.removeAllRanges()}catch(ex){}s.addRange(r);t.selectedRange=s.getRangeAt(0)}}else{if(r.cloneRange){t.tridentSel.addRange(r);return}try{r.select()}catch(ex){}}},setNode:function(n){var t=this;t.setContent(t.dom.getOuterHTML(n));return n},getNode:function(){var t=this,rng=t.getRng(),sel=t.getSel(),elm,start=rng.startContainer,end=rng.endContainer;if(!rng){return t.dom.getRoot()}if(rng.setStart){elm=rng.commonAncestorContainer;if(!rng.collapsed){if(rng.startContainer==rng.endContainer){if(rng.endOffset-rng.startOffset<2){if(rng.startContainer.hasChildNodes()){elm=rng.startContainer.childNodes[rng.startOffset]}}}if(start.nodeType===3&&end.nodeType===3){function skipEmptyTextNodes(n,forwards){var orig=n;while(n&&n.nodeType===3&&n.length===0){n=forwards?n.nextSibling:n.previousSibling}return n||orig}if(start.length===rng.startOffset){start=skipEmptyTextNodes(start.nextSibling,true)}else{start=start.parentNode}if(rng.endOffset===0){end=skipEmptyTextNodes(end.previousSibling,false)}else{end=end.parentNode}if(start&&start===end){return start}}}if(elm&&elm.nodeType==3){return elm.parentNode}return elm}return rng.item?rng.item(0):rng.parentElement()},getSelectedBlocks:function(st,en){var t=this,dom=t.dom,sb,eb,n,bl=[];sb=dom.getParent(st||t.getStart(),dom.isBlock);eb=dom.getParent(en||t.getEnd(),dom.isBlock);if(sb){bl.push(sb)}if(sb&&eb&&sb!=eb){n=sb;while((n=n.nextSibling)&&n!=eb){if(dom.isBlock(n)){bl.push(n)}}}if(eb&&sb!=eb){bl.push(eb)}return bl},normalize:function(){var self=this,rng,normalized;if(tinymce.isIE){return}function normalizeEndPoint(start){var container,offset,walker,dom=self.dom,body=dom.getRoot(),node;container=rng[(start?"start":"end")+"Container"];offset=rng[(start?"start":"end")+"Offset"];if(container.nodeType===9){container=container.body;offset=0}if(container===body){if(container.hasChildNodes()){container=container.childNodes[Math.min(!start&&offset>0?offset-1:offset,container.childNodes.length-1)];offset=0;if(container.hasChildNodes()){node=container;walker=new tinymce.dom.TreeWalker(container,body);do{if(node.nodeType===3){offset=start?0:node.nodeValue.length-1;container=node;break}if(node.nodeName==="BR"){offset=dom.nodeIndex(node);container=node.parentNode;break}}while(node=(start?walker.next():walker.prev()));normalized=true}}}if(normalized){rng["set"+(start?"Start":"End")](container,offset)}}rng=self.getRng();normalizeEndPoint(true);if(rng.collapsed){normalizeEndPoint()}if(normalized){self.setRng(rng)}},destroy:function(s){var t=this;t.win=null;if(!s){tinymce.removeUnload(t.destroy)}},_fixIESelection:function(){var dom=this.dom,doc=dom.doc,body=doc.body,started,startRng,htmlElm;doc.documentElement.unselectable=true;function rngFromPoint(x,y){var rng=body.createTextRange();try{rng.moveToPoint(x,y)}catch(ex){rng=null}return rng}function selectionChange(e){var pointRng;if(e.button){pointRng=rngFromPoint(e.x,e.y);if(pointRng){if(pointRng.compareEndPoints("StartToStart",startRng)>0){pointRng.setEndPoint("StartToStart",startRng)}else{pointRng.setEndPoint("EndToEnd",startRng)}pointRng.select()}}else{endSelection()}}function endSelection(){var rng=doc.selection.createRange();if(startRng&&!rng.item&&rng.compareEndPoints("StartToEnd",rng)===0){startRng.select()}dom.unbind(doc,"mouseup",endSelection);dom.unbind(doc,"mousemove",selectionChange);startRng=started=0}dom.bind(doc,["mousedown","contextmenu"],function(e){if(e.target.nodeName==="HTML"){if(started){endSelection()}htmlElm=doc.documentElement;if(htmlElm.scrollHeight>htmlElm.clientHeight){return}started=1;startRng=rngFromPoint(e.x,e.y);if(startRng){dom.bind(doc,"mouseup",endSelection);dom.bind(doc,"mousemove",selectionChange);dom.win.focus();startRng.select()}}})}})})(tinymce);(function(tinymce){tinymce.dom.Serializer=function(settings,dom,schema){var onPreProcess,onPostProcess,isIE=tinymce.isIE,each=tinymce.each,htmlParser;if(!settings.apply_source_formatting){settings.indent=false}settings.remove_trailing_brs=true;dom=dom||tinymce.DOM;schema=schema||new tinymce.html.Schema(settings);settings.entity_encoding=settings.entity_encoding||"named";onPreProcess=new tinymce.util.Dispatcher(self);onPostProcess=new tinymce.util.Dispatcher(self);htmlParser=new tinymce.html.DomParser(settings,schema);htmlParser.addAttributeFilter("src,href,style",function(nodes,name){var i=nodes.length,node,value,internalName="data-mce-"+name,urlConverter=settings.url_converter,urlConverterScope=settings.url_converter_scope,undef;while(i--){node=nodes[i];value=node.attributes.map[internalName];if(value!==undef){node.attr(name,value.length>0?value:null);node.attr(internalName,null)}else{value=node.attributes.map[name];if(name==="style"){value=dom.serializeStyle(dom.parseStyle(value),node.name)}else{if(urlConverter){value=urlConverter.call(urlConverterScope,value,name,node.name)}}node.attr(name,value.length>0?value:null)}}});htmlParser.addAttributeFilter("class",function(nodes,name){var i=nodes.length,node,value;while(i--){node=nodes[i];value=node.attr("class").replace(/\s*mce(Item\w+|Selected)\s*/g,"");node.attr("class",value.length>0?value:null)}});htmlParser.addAttributeFilter("data-mce-type",function(nodes,name,args){var i=nodes.length,node;while(i--){node=nodes[i];if(node.attributes.map["data-mce-type"]==="bookmark"&&!args.cleanup){node.remove()}}});htmlParser.addNodeFilter("script,style",function(nodes,name){var i=nodes.length,node,value;function trim(value){return value.replace(/()/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(\/\/\s*|\]\]>|-->|\]\]-->)\s*$/g,"")}while(i--){node=nodes[i];value=node.firstChild?node.firstChild.value:"";if(name==="script"){node.attr("type",(node.attr("type")||"text/javascript").replace(/^mce\-/,""));if(value.length>0){node.firstChild.value="// "}}else{if(value.length>0){node.firstChild.value=""}}}});htmlParser.addNodeFilter("#comment",function(nodes,name){var i=nodes.length,node;while(i--){node=nodes[i];if(node.value.indexOf("[CDATA[")===0){node.name="#cdata";node.type=4;node.value=node.value.replace(/^\[CDATA\[|\]\]$/g,"")}else{if(node.value.indexOf("mce:protected ")===0){node.name="#text";node.type=3;node.raw=true;node.value=unescape(node.value).substr(14)}}}});htmlParser.addNodeFilter("xml:namespace,input",function(nodes,name){var i=nodes.length,node;while(i--){node=nodes[i];if(node.type===7){node.remove()}else{if(node.type===1){if(name==="input"&&!("type" in node.attributes.map)){node.attr("type","text")}}}}});if(settings.fix_list_elements){htmlParser.addNodeFilter("ul,ol",function(nodes,name){var i=nodes.length,node,parentNode;while(i--){node=nodes[i];parentNode=node.parent;if(parentNode.name==="ul"||parentNode.name==="ol"){if(node.prev&&node.prev.name==="li"){node.prev.append(node)}}}})}htmlParser.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style",function(nodes,name){var i=nodes.length;while(i--){nodes[i].attr(name,null)}});return{schema:schema,addNodeFilter:htmlParser.addNodeFilter,addAttributeFilter:htmlParser.addAttributeFilter,onPreProcess:onPreProcess,onPostProcess:onPostProcess,serialize:function(node,args){var impl,doc,oldDoc,htmlSerializer,content;if(isIE&&dom.select("script,style,select,map").length>0){content=node.innerHTML;node=node.cloneNode(false);dom.setHTML(node,content)}else{node=node.cloneNode(true)}impl=node.ownerDocument.implementation;if(impl.createHTMLDocument){doc=impl.createHTMLDocument("");each(node.nodeName=="BODY"?node.childNodes:[node],function(node){doc.body.appendChild(doc.importNode(node,true))});if(node.nodeName!="BODY"){node=doc.body.firstChild}else{node=doc.body}oldDoc=dom.doc;dom.doc=doc}args=args||{};args.format=args.format||"html";if(!args.no_events){args.node=node;onPreProcess.dispatch(self,args)}htmlSerializer=new tinymce.html.Serializer(settings,schema);args.content=htmlSerializer.serialize(htmlParser.parse(args.getInner?node.innerHTML:tinymce.trim(dom.getOuterHTML(node),args),args));if(!args.cleanup){args.content=args.content.replace(/\uFEFF/g,"")}if(!args.no_events){onPostProcess.dispatch(self,args)}if(oldDoc){dom.doc=oldDoc}args.node=null;return args.content},addRules:function(rules){schema.addValidElements(rules)},setRules:function(rules){schema.setValidElements(rules)}}}})(tinymce);(function(tinymce){tinymce.dom.ScriptLoader=function(settings){var QUEUED=0,LOADING=1,LOADED=2,states={},queue=[],scriptLoadedCallbacks={},queueLoadedCallbacks=[],loading=0,undefined;function loadScript(url,callback){var t=this,dom=tinymce.DOM,elm,uri,loc,id;function done(){dom.remove(id);if(elm){elm.onreadystatechange=elm.onload=elm=null}callback()}function error(){if(typeof(console)!=="undefined"&&console.log){console.log("Failed to load: "+url)}}id=dom.uniqueId();if(tinymce.isIE6){uri=new tinymce.util.URI(url);loc=location;if(uri.host==loc.hostname&&uri.port==loc.port&&(uri.protocol+":")==loc.protocol&&uri.protocol.toLowerCase()!="file"){tinymce.util.XHR.send({url:tinymce._addVer(uri.getURI()),success:function(content){var script=dom.create("script",{type:"text/javascript"});script.text=content;document.getElementsByTagName("head")[0].appendChild(script);dom.remove(script);done()},error:error});return}}elm=dom.create("script",{id:id,type:"text/javascript",src:tinymce._addVer(url)});if(!tinymce.isIE){elm.onload=done}elm.onerror=error;if(!tinymce.isOpera){elm.onreadystatechange=function(){var state=elm.readyState;if(state=="complete"||state=="loaded"){done()}}}(document.getElementsByTagName("head")[0]||document.body).appendChild(elm)}this.isDone=function(url){return states[url]==LOADED};this.markDone=function(url){states[url]=LOADED};this.add=this.load=function(url,callback,scope){var item,state=states[url];if(state==undefined){queue.push(url);states[url]=QUEUED}if(callback){if(!scriptLoadedCallbacks[url]){scriptLoadedCallbacks[url]=[]}scriptLoadedCallbacks[url].push({func:callback,scope:scope||this})}};this.loadQueue=function(callback,scope){this.loadScripts(queue,callback,scope)};this.loadScripts=function(scripts,callback,scope){var loadScripts;function execScriptLoadedCallbacks(url){tinymce.each(scriptLoadedCallbacks[url],function(callback){callback.func.call(callback.scope)});scriptLoadedCallbacks[url]=undefined}queueLoadedCallbacks.push({func:callback,scope:scope||this});loadScripts=function(){var loadingScripts=tinymce.grep(scripts);scripts.length=0;tinymce.each(loadingScripts,function(url){if(states[url]==LOADED){execScriptLoadedCallbacks(url);return}if(states[url]!=LOADING){states[url]=LOADING;loading++;loadScript(url,function(){states[url]=LOADED;loading--;execScriptLoadedCallbacks(url);loadScripts()})}});if(!loading){tinymce.each(queueLoadedCallbacks,function(callback){callback.func.call(callback.scope)});queueLoadedCallbacks.length=0}};loadScripts()}};tinymce.ScriptLoader=new tinymce.dom.ScriptLoader()})(tinymce);tinymce.dom.TreeWalker=function(start_node,root_node){var node=start_node;function findSibling(node,start_name,sibling_name,shallow){var sibling,parent;if(node){if(!shallow&&node[start_name]){return node[start_name]}if(node!=root_node){sibling=node[sibling_name];if(sibling){return sibling}for(parent=node.parentNode;parent&&parent!=root_node;parent=parent.parentNode){sibling=parent[sibling_name];if(sibling){return sibling}}}}}this.current=function(){return node};this.next=function(shallow){return(node=findSibling(node,"firstChild","nextSibling",shallow))};this.prev=function(shallow){return(node=findSibling(node,"lastChild","previousSibling",shallow))}};(function(tinymce){tinymce.dom.RangeUtils=function(dom){var INVISIBLE_CHAR="\uFEFF";this.walk=function(rng,callback){var startContainer=rng.startContainer,startOffset=rng.startOffset,endContainer=rng.endContainer,endOffset=rng.endOffset,ancestor,startPoint,endPoint,node,parent,siblings,nodes;nodes=dom.select("td.mceSelected,th.mceSelected");if(nodes.length>0){tinymce.each(nodes,function(node){callback([node])});return}function collectSiblings(node,name,end_node){var siblings=[];for(;node&&node!=end_node;node=node[name]){siblings.push(node)}return siblings}function findEndPoint(node,root){do{if(node.parentNode==root){return node}node=node.parentNode}while(node)}function walkBoundary(start_node,end_node,next){var siblingName=next?"nextSibling":"previousSibling";for(node=start_node,parent=node.parentNode;node&&node!=end_node;node=parent){parent=node.parentNode;siblings=collectSiblings(node==start_node?node:node[siblingName],siblingName);if(siblings.length){if(!next){siblings.reverse()}callback(siblings)}}}if(startContainer.nodeType==1&&startContainer.hasChildNodes()){startContainer=startContainer.childNodes[startOffset]}if(endContainer.nodeType==1&&endContainer.hasChildNodes()){endContainer=endContainer.childNodes[Math.min(endOffset-1,endContainer.childNodes.length-1)]}ancestor=dom.findCommonAncestor(startContainer,endContainer);if(startContainer==endContainer){return callback([startContainer])}for(node=startContainer;node;node=node.parentNode){if(node==endContainer){return walkBoundary(startContainer,ancestor,true)}if(node==ancestor){break}}for(node=endContainer;node;node=node.parentNode){if(node==startContainer){return walkBoundary(endContainer,ancestor)}if(node==ancestor){break}}startPoint=findEndPoint(startContainer,ancestor)||startContainer;endPoint=findEndPoint(endContainer,ancestor)||endContainer;walkBoundary(startContainer,startPoint,true);siblings=collectSiblings(startPoint==startContainer?startPoint:startPoint.nextSibling,"nextSibling",endPoint==endContainer?endPoint.nextSibling:endPoint);if(siblings.length){callback(siblings)}walkBoundary(endContainer,endPoint)}};tinymce.dom.RangeUtils.compareRanges=function(rng1,rng2){if(rng1&&rng2){if(rng1.item||rng1.duplicate){if(rng1.item&&rng2.item&&rng1.item(0)===rng2.item(0)){return true}if(rng1.isEqual&&rng2.isEqual&&rng2.isEqual(rng1)){return true}}else{return rng1.startContainer==rng2.startContainer&&rng1.startOffset==rng2.startOffset}}return false}})(tinymce);(function(tinymce){var Event=tinymce.dom.Event,each=tinymce.each;tinymce.create("tinymce.ui.KeyboardNavigation",{KeyboardNavigation:function(settings,dom){var t=this,root=settings.root,items=settings.items,enableUpDown=settings.enableUpDown,enableLeftRight=settings.enableLeftRight||!settings.enableUpDown,excludeFromTabOrder=settings.excludeFromTabOrder,itemFocussed,itemBlurred,rootKeydown,rootFocussed,focussedId;dom=dom||tinymce.DOM;itemFocussed=function(evt){focussedId=evt.target.id};itemBlurred=function(evt){dom.setAttrib(evt.target.id,"tabindex","-1")};rootFocussed=function(evt){var item=dom.get(focussedId);dom.setAttrib(item,"tabindex","0");item.focus()};t.focus=function(){dom.get(focussedId).focus()};t.destroy=function(){each(items,function(item){dom.unbind(dom.get(item.id),"focus",itemFocussed);dom.unbind(dom.get(item.id),"blur",itemBlurred)});dom.unbind(dom.get(root),"focus",rootFocussed);dom.unbind(dom.get(root),"keydown",rootKeydown);items=dom=root=t.focus=itemFocussed=itemBlurred=rootKeydown=rootFocussed=null;t.destroy=function(){}};t.moveFocus=function(dir,evt){var idx=-1,controls=t.controls,newFocus;if(!focussedId){return}each(items,function(item,index){if(item.id===focussedId){idx=index;return false}});idx+=dir;if(idx<0){idx=items.length-1}else{if(idx>=items.length){idx=0}}newFocus=items[idx];dom.setAttrib(focussedId,"tabindex","-1");dom.setAttrib(newFocus.id,"tabindex","0");dom.get(newFocus.id).focus();if(settings.actOnFocus){settings.onAction(newFocus.id)}if(evt){Event.cancel(evt)}};rootKeydown=function(evt){var DOM_VK_LEFT=37,DOM_VK_RIGHT=39,DOM_VK_UP=38,DOM_VK_DOWN=40,DOM_VK_ESCAPE=27,DOM_VK_ENTER=14,DOM_VK_RETURN=13,DOM_VK_SPACE=32;switch(evt.keyCode){case DOM_VK_LEFT:if(enableLeftRight){t.moveFocus(-1)}break;case DOM_VK_RIGHT:if(enableLeftRight){t.moveFocus(1)}break;case DOM_VK_UP:if(enableUpDown){t.moveFocus(-1)}break;case DOM_VK_DOWN:if(enableUpDown){t.moveFocus(1)}break;case DOM_VK_ESCAPE:if(settings.onCancel){settings.onCancel();Event.cancel(evt)}break;case DOM_VK_ENTER:case DOM_VK_RETURN:case DOM_VK_SPACE:if(settings.onAction){settings.onAction(focussedId);Event.cancel(evt)}break}};each(items,function(item,idx){var tabindex;if(!item.id){item.id=dom.uniqueId("_mce_item_")}if(excludeFromTabOrder){dom.bind(item.id,"blur",itemBlurred);tabindex="-1"}else{tabindex=(idx===0?"0":"-1")}dom.setAttrib(item.id,"tabindex",tabindex);dom.bind(dom.get(item.id),"focus",itemFocussed)});if(items[0]){focussedId=items[0].id}dom.setAttrib(root,"tabindex","-1");dom.bind(dom.get(root),"focus",rootFocussed);dom.bind(dom.get(root),"keydown",rootKeydown)}})})(tinymce);(function(tinymce){var DOM=tinymce.DOM,is=tinymce.is;tinymce.create("tinymce.ui.Control",{Control:function(id,s,editor){this.id=id;this.settings=s=s||{};this.rendered=false;this.onRender=new tinymce.util.Dispatcher(this);this.classPrefix="";this.scope=s.scope||this;this.disabled=0;this.active=0;this.editor=editor},setAriaProperty:function(property,value){var element=DOM.get(this.id+"_aria")||DOM.get(this.id);if(element){DOM.setAttrib(element,"aria-"+property,!!value)}},focus:function(){DOM.get(this.id).focus()},setDisabled:function(s){if(s!=this.disabled){this.setAriaProperty("disabled",s);this.setState("Disabled",s);this.setState("Enabled",!s);this.disabled=s}},isDisabled:function(){return this.disabled},setActive:function(s){if(s!=this.active){this.setState("Active",s);this.active=s;this.setAriaProperty("pressed",s)}},isActive:function(){return this.active},setState:function(c,s){var n=DOM.get(this.id);c=this.classPrefix+c;if(s){DOM.addClass(n,c)}else{DOM.removeClass(n,c)}},isRendered:function(){return this.rendered},renderHTML:function(){},renderTo:function(n){DOM.setHTML(n,this.renderHTML())},postRender:function(){var t=this,b;if(is(t.disabled)){b=t.disabled;t.disabled=-1;t.setDisabled(b)}if(is(t.active)){b=t.active;t.active=-1;t.setActive(b)}},remove:function(){DOM.remove(this.id);this.destroy()},destroy:function(){tinymce.dom.Event.clear(this.id)}})})(tinymce);tinymce.create("tinymce.ui.Container:tinymce.ui.Control",{Container:function(id,s,editor){this.parent(id,s,editor);this.controls=[];this.lookup={}},add:function(c){this.lookup[c.id]=c;this.controls.push(c);return c},get:function(n){return this.lookup[n]}});tinymce.create("tinymce.ui.Separator:tinymce.ui.Control",{Separator:function(id,s){this.parent(id,s);this.classPrefix="mceSeparator";this.setDisabled(true)},renderHTML:function(){return tinymce.DOM.createHTML("span",{"class":this.classPrefix,role:"separator","aria-orientation":"vertical",tabindex:"-1"})}});(function(tinymce){var is=tinymce.is,DOM=tinymce.DOM,each=tinymce.each,walk=tinymce.walk;tinymce.create("tinymce.ui.MenuItem:tinymce.ui.Control",{MenuItem:function(id,s){this.parent(id,s);this.classPrefix="mceMenuItem"},setSelected:function(s){this.setState("Selected",s);this.setAriaProperty("checked",!!s);this.selected=s},isSelected:function(){return this.selected},postRender:function(){var t=this;t.parent();if(is(t.selected)){t.setSelected(t.selected)}}})})(tinymce);(function(tinymce){var is=tinymce.is,DOM=tinymce.DOM,each=tinymce.each,walk=tinymce.walk;tinymce.create("tinymce.ui.Menu:tinymce.ui.MenuItem",{Menu:function(id,s){var t=this;t.parent(id,s);t.items={};t.collapsed=false;t.menuCount=0;t.onAddItem=new tinymce.util.Dispatcher(this)},expand:function(d){var t=this;if(d){walk(t,function(o){if(o.expand){o.expand()}},"items",t)}t.collapsed=false},collapse:function(d){var t=this;if(d){walk(t,function(o){if(o.collapse){o.collapse()}},"items",t)}t.collapsed=true},isCollapsed:function(){return this.collapsed},add:function(o){if(!o.settings){o=new tinymce.ui.MenuItem(o.id||DOM.uniqueId(),o)}this.onAddItem.dispatch(this,o);return this.items[o.id]=o},addSeparator:function(){return this.add({separator:true})},addMenu:function(o){if(!o.collapse){o=this.createMenu(o)}this.menuCount++;return this.add(o)},hasMenus:function(){return this.menuCount!==0},remove:function(o){delete this.items[o.id]},removeAll:function(){var t=this;walk(t,function(o){if(o.removeAll){o.removeAll()}else{o.remove()}o.destroy()},"items",t);t.items={}},createMenu:function(o){var m=new tinymce.ui.Menu(o.id||DOM.uniqueId(),o);m.onAddItem.add(this.onAddItem.dispatch,this.onAddItem);return m}})})(tinymce);(function(tinymce){var is=tinymce.is,DOM=tinymce.DOM,each=tinymce.each,Event=tinymce.dom.Event,Element=tinymce.dom.Element;tinymce.create("tinymce.ui.DropMenu:tinymce.ui.Menu",{DropMenu:function(id,s){s=s||{};s.container=s.container||DOM.doc.body;s.offset_x=s.offset_x||0;s.offset_y=s.offset_y||0;s.vp_offset_x=s.vp_offset_x||0;s.vp_offset_y=s.vp_offset_y||0;if(is(s.icons)&&!s.icons){s["class"]+=" mceNoIcons"}this.parent(id,s);this.onShowMenu=new tinymce.util.Dispatcher(this);this.onHideMenu=new tinymce.util.Dispatcher(this);this.classPrefix="mceMenu"},createMenu:function(s){var t=this,cs=t.settings,m;s.container=s.container||cs.container;s.parent=t;s.constrain=s.constrain||cs.constrain;s["class"]=s["class"]||cs["class"];s.vp_offset_x=s.vp_offset_x||cs.vp_offset_x;s.vp_offset_y=s.vp_offset_y||cs.vp_offset_y;s.keyboard_focus=cs.keyboard_focus;m=new tinymce.ui.DropMenu(s.id||DOM.uniqueId(),s);m.onAddItem.add(t.onAddItem.dispatch,t.onAddItem);return m},focus:function(){var t=this;if(t.keyboardNav){t.keyboardNav.focus()}},update:function(){var t=this,s=t.settings,tb=DOM.get("menu_"+t.id+"_tbl"),co=DOM.get("menu_"+t.id+"_co"),tw,th;tw=s.max_width?Math.min(tb.clientWidth,s.max_width):tb.clientWidth;th=s.max_height?Math.min(tb.clientHeight,s.max_height):tb.clientHeight;if(!DOM.boxModel){t.element.setStyles({width:tw+2,height:th+2})}else{t.element.setStyles({width:tw,height:th})}if(s.max_width){DOM.setStyle(co,"width",tw)}if(s.max_height){DOM.setStyle(co,"height",th);if(tb.clientHeightmx){x=px?px-w:Math.max(0,(mx-s.vp_offset_x)-w)}if((y+s.vp_offset_y+h)>my){y=Math.max(0,(my-s.vp_offset_y)-h)}}DOM.setStyles(co,{left:x,top:y});t.element.update();t.isMenuVisible=1;t.mouseClickFunc=Event.add(co,"click",function(e){var m;e=e.target;if(e&&(e=DOM.getParent(e,"tr"))&&!DOM.hasClass(e,cp+"ItemSub")){m=t.items[e.id];if(m.isDisabled()){return}dm=t;while(dm){if(dm.hideMenu){dm.hideMenu()}dm=dm.settings.parent}if(m.settings.onclick){m.settings.onclick(e)}return Event.cancel(e)}});if(t.hasMenus()){t.mouseOverFunc=Event.add(co,"mouseover",function(e){var m,r,mi;e=e.target;if(e&&(e=DOM.getParent(e,"tr"))){m=t.items[e.id];if(t.lastMenu){t.lastMenu.collapse(1)}if(m.isDisabled()){return}if(e&&DOM.hasClass(e,cp+"ItemSub")){r=DOM.getRect(e);m.showMenu((r.x+r.w-ot),r.y-ot,r.x);t.lastMenu=m;DOM.addClass(DOM.get(m.id).firstChild,cp+"ItemActive")}}})}Event.add(co,"keydown",t._keyHandler,t);t.onShowMenu.dispatch(t);if(s.keyboard_focus){t._setupKeyboardNav()}},hideMenu:function(c){var t=this,co=DOM.get("menu_"+t.id),e;if(!t.isMenuVisible){return}if(t.keyboardNav){t.keyboardNav.destroy()}Event.remove(co,"mouseover",t.mouseOverFunc);Event.remove(co,"click",t.mouseClickFunc);Event.remove(co,"keydown",t._keyHandler);DOM.hide(co);t.isMenuVisible=0;if(!c){t.collapse(1)}if(t.element){t.element.hide()}if(e=DOM.get(t.id)){DOM.removeClass(e.firstChild,t.classPrefix+"ItemActive")}t.onHideMenu.dispatch(t)},add:function(o){var t=this,co;o=t.parent(o);if(t.isRendered&&(co=DOM.get("menu_"+t.id))){t._add(DOM.select("tbody",co)[0],o)}return o},collapse:function(d){this.parent(d);this.hideMenu(1)},remove:function(o){DOM.remove(o.id);this.destroy();return this.parent(o)},destroy:function(){var t=this,co=DOM.get("menu_"+t.id);if(t.keyboardNav){t.keyboardNav.destroy()}Event.remove(co,"mouseover",t.mouseOverFunc);Event.remove(DOM.select("a",co),"focus",t.mouseOverFunc);Event.remove(co,"click",t.mouseClickFunc);Event.remove(co,"keydown",t._keyHandler);if(t.element){t.element.remove()}DOM.remove(co)},renderNode:function(){var t=this,s=t.settings,n,tb,co,w;w=DOM.create("div",{role:"listbox",id:"menu_"+t.id,"class":s["class"],style:"position:absolute;left:0;top:0;z-index:200000;outline:0"});if(t.settings.parent){DOM.setAttrib(w,"aria-parent","menu_"+t.settings.parent.id)}co=DOM.add(w,"div",{role:"presentation",id:"menu_"+t.id+"_co","class":t.classPrefix+(s["class"]?" "+s["class"]:"")});t.element=new Element("menu_"+t.id,{blocker:1,container:s.container});if(s.menu_line){DOM.add(co,"span",{"class":t.classPrefix+"Line"})}n=DOM.add(co,"table",{role:"presentation",id:"menu_"+t.id+"_tbl",border:0,cellPadding:0,cellSpacing:0});tb=DOM.add(n,"tbody");each(t.items,function(o){t._add(tb,o)});t.rendered=true;return w},_setupKeyboardNav:function(){var contextMenu,menuItems,t=this;contextMenu=DOM.select("#menu_"+t.id)[0];menuItems=DOM.select("a[role=option]","menu_"+t.id);menuItems.splice(0,0,contextMenu);t.keyboardNav=new tinymce.ui.KeyboardNavigation({root:"menu_"+t.id,items:menuItems,onCancel:function(){t.hideMenu()},enableUpDown:true});contextMenu.focus()},_keyHandler:function(evt){var t=this,e;switch(evt.keyCode){case 37:if(t.settings.parent){t.hideMenu();t.settings.parent.focus();Event.cancel(evt)}break;case 39:if(t.mouseOverFunc){t.mouseOverFunc(evt)}break}},_add:function(tb,o){var n,s=o.settings,a,ro,it,cp=this.classPrefix,ic;if(s.separator){ro=DOM.add(tb,"tr",{id:o.id,"class":cp+"ItemSeparator"});DOM.add(ro,"td",{"class":cp+"ItemSeparator"});if(n=ro.previousSibling){DOM.addClass(n,"mceLast")}return}n=ro=DOM.add(tb,"tr",{id:o.id,"class":cp+"Item "+cp+"ItemEnabled"});n=it=DOM.add(n,s.titleItem?"th":"td");n=a=DOM.add(n,"a",{id:o.id+"_aria",role:s.titleItem?"presentation":"option",href:"javascript:;",onclick:"return false;",onmousedown:"return false;"});if(s.parent){DOM.setAttrib(a,"aria-haspopup","true");DOM.setAttrib(a,"aria-owns","menu_"+o.id)}DOM.addClass(it,s["class"]);ic=DOM.add(n,"span",{"class":"mceIcon"+(s.icon?" mce_"+s.icon:"")});if(s.icon_src){DOM.add(ic,"img",{src:s.icon_src})}n=DOM.add(n,s.element||"span",{"class":"mceText",title:o.settings.title},o.settings.title);if(o.settings.style){DOM.setAttrib(n,"style",o.settings.style)}if(tb.childNodes.length==1){DOM.addClass(ro,"mceFirst")}if((n=ro.previousSibling)&&DOM.hasClass(n,cp+"ItemSeparator")){DOM.addClass(ro,"mceFirst")}if(o.collapse){DOM.addClass(ro,cp+"ItemSub")}if(n=ro.previousSibling){DOM.removeClass(n,"mceLast")}DOM.addClass(ro,"mceLast")}})})(tinymce);(function(tinymce){var DOM=tinymce.DOM;tinymce.create("tinymce.ui.Button:tinymce.ui.Control",{Button:function(id,s,ed){this.parent(id,s,ed);this.classPrefix="mceButton"},renderHTML:function(){var cp=this.classPrefix,s=this.settings,h,l;l=DOM.encode(s.label||"");h='';if(s.image&&!(this.editor&&this.editor.forcedHighContrastMode)){h+=''+DOM.encode(s.title)+''+l}else{h+=''+(l?''+l+"":"")}h+='";h+="";return h},postRender:function(){var t=this,s=t.settings;tinymce.dom.Event.add(t.id,"click",function(e){if(!t.isDisabled()){return s.onclick.call(s.scope,e)}})}})})(tinymce);(function(tinymce){var DOM=tinymce.DOM,Event=tinymce.dom.Event,each=tinymce.each,Dispatcher=tinymce.util.Dispatcher;tinymce.create("tinymce.ui.ListBox:tinymce.ui.Control",{ListBox:function(id,s,ed){var t=this;t.parent(id,s,ed);t.items=[];t.onChange=new Dispatcher(t);t.onPostRender=new Dispatcher(t);t.onAdd=new Dispatcher(t);t.onRenderMenu=new tinymce.util.Dispatcher(this);t.classPrefix="mceListBox"},select:function(va){var t=this,fv,f;if(va==undefined){return t.selectByIndex(-1)}if(va&&va.call){f=va}else{f=function(v){return v==va}}if(va!=t.selectedValue){each(t.items,function(o,i){if(f(o.value)){fv=1;t.selectByIndex(i);return false}});if(!fv){t.selectByIndex(-1)}}},selectByIndex:function(idx){var t=this,e,o;if(idx!=t.selectedIndex){e=DOM.get(t.id+"_text");o=t.items[idx];if(o){t.selectedValue=o.value;t.selectedIndex=idx;DOM.setHTML(e,DOM.encode(o.title));DOM.removeClass(e,"mceTitle");DOM.setAttrib(t.id,"aria-valuenow",o.title)}else{DOM.setHTML(e,DOM.encode(t.settings.title));DOM.addClass(e,"mceTitle");t.selectedValue=t.selectedIndex=null;DOM.setAttrib(t.id,"aria-valuenow",t.settings.title)}e=0}},add:function(n,v,o){var t=this;o=o||{};o=tinymce.extend(o,{title:n,value:v});t.items.push(o);t.onAdd.dispatch(t,o)},getLength:function(){return this.items.length},renderHTML:function(){var h="",t=this,s=t.settings,cp=t.classPrefix;h='
                                            ';h+="";h+="";h+="
                                            ";return h},showMenu:function(){var t=this,p2,e=DOM.get(this.id),m;if(t.isDisabled()||t.items.length==0){return}if(t.menu&&t.menu.isMenuVisible){return t.hideMenu()}if(!t.isMenuRendered){t.renderMenu();t.isMenuRendered=true}p2=DOM.getPos(e);m=t.menu;m.settings.offset_x=p2.x;m.settings.offset_y=p2.y;m.settings.keyboard_focus=!tinymce.isOpera;if(t.oldID){m.items[t.oldID].setSelected(0)}each(t.items,function(o){if(o.value===t.selectedValue){m.items[o.id].setSelected(1);t.oldID=o.id}});m.showMenu(0,e.clientHeight);Event.add(DOM.doc,"mousedown",t.hideMenu,t);DOM.addClass(t.id,t.classPrefix+"Selected")},hideMenu:function(e){var t=this;if(t.menu&&t.menu.isMenuVisible){DOM.removeClass(t.id,t.classPrefix+"Selected");if(e&&e.type=="mousedown"&&(e.target.id==t.id+"_text"||e.target.id==t.id+"_open")){return}if(!e||!DOM.getParent(e.target,".mceMenu")){DOM.removeClass(t.id,t.classPrefix+"Selected");Event.remove(DOM.doc,"mousedown",t.hideMenu,t);t.menu.hideMenu()}}},renderMenu:function(){var t=this,m;m=t.settings.control_manager.createDropMenu(t.id+"_menu",{menu_line:1,"class":t.classPrefix+"Menu mceNoIcons",max_width:150,max_height:150});m.onHideMenu.add(function(){t.hideMenu();t.focus()});m.add({title:t.settings.title,"class":"mceMenuItemTitle",onclick:function(){if(t.settings.onselect("")!==false){t.select("")}}});each(t.items,function(o){if(o.value===undefined){m.add({title:o.title,"class":"mceMenuItemTitle",onclick:function(){if(t.settings.onselect("")!==false){t.select("")}}})}else{o.id=DOM.uniqueId();o.onclick=function(){if(t.settings.onselect(o.value)!==false){t.select(o.value)}};m.add(o)}});t.onRenderMenu.dispatch(t,m);t.menu=m},postRender:function(){var t=this,cp=t.classPrefix;Event.add(t.id,"click",t.showMenu,t);Event.add(t.id,"keydown",function(evt){if(evt.keyCode==32){t.showMenu(evt);Event.cancel(evt)}});Event.add(t.id,"focus",function(){if(!t._focused){t.keyDownHandler=Event.add(t.id,"keydown",function(e){if(e.keyCode==40){t.showMenu();Event.cancel(e)}});t.keyPressHandler=Event.add(t.id,"keypress",function(e){var v;if(e.keyCode==13){v=t.selectedValue;t.selectedValue=null;Event.cancel(e);t.settings.onselect(v)}})}t._focused=1});Event.add(t.id,"blur",function(){Event.remove(t.id,"keydown",t.keyDownHandler);Event.remove(t.id,"keypress",t.keyPressHandler);t._focused=0});if(tinymce.isIE6||!DOM.boxModel){Event.add(t.id,"mouseover",function(){if(!DOM.hasClass(t.id,cp+"Disabled")){DOM.addClass(t.id,cp+"Hover")}});Event.add(t.id,"mouseout",function(){if(!DOM.hasClass(t.id,cp+"Disabled")){DOM.removeClass(t.id,cp+"Hover")}})}t.onPostRender.dispatch(t,DOM.get(t.id))},destroy:function(){this.parent();Event.clear(this.id+"_text");Event.clear(this.id+"_open")}})})(tinymce);(function(tinymce){var DOM=tinymce.DOM,Event=tinymce.dom.Event,each=tinymce.each,Dispatcher=tinymce.util.Dispatcher;tinymce.create("tinymce.ui.NativeListBox:tinymce.ui.ListBox",{NativeListBox:function(id,s){this.parent(id,s);this.classPrefix="mceNativeListBox"},setDisabled:function(s){DOM.get(this.id).disabled=s;this.setAriaProperty("disabled",s)},isDisabled:function(){return DOM.get(this.id).disabled},select:function(va){var t=this,fv,f;if(va==undefined){return t.selectByIndex(-1)}if(va&&va.call){f=va}else{f=function(v){return v==va}}if(va!=t.selectedValue){each(t.items,function(o,i){if(f(o.value)){fv=1;t.selectByIndex(i);return false}});if(!fv){t.selectByIndex(-1)}}},selectByIndex:function(idx){DOM.get(this.id).selectedIndex=idx+1;this.selectedValue=this.items[idx]?this.items[idx].value:null},add:function(n,v,a){var o,t=this;a=a||{};a.value=v;if(t.isRendered()){DOM.add(DOM.get(this.id),"option",a,n)}o={title:n,value:v,attribs:a};t.items.push(o);t.onAdd.dispatch(t,o)},getLength:function(){return this.items.length},renderHTML:function(){var h,t=this;h=DOM.createHTML("option",{value:""},"-- "+t.settings.title+" --");each(t.items,function(it){h+=DOM.createHTML("option",{value:it.value},it.title)});h=DOM.createHTML("select",{id:t.id,"class":"mceNativeListBox","aria-labelledby":t.id+"_aria"},h);h+=DOM.createHTML("span",{id:t.id+"_aria",style:"display: none"},t.settings.title);return h},postRender:function(){var t=this,ch,changeListenerAdded=true;t.rendered=true;function onChange(e){var v=t.items[e.target.selectedIndex-1];if(v&&(v=v.value)){t.onChange.dispatch(t,v);if(t.settings.onselect){t.settings.onselect(v)}}}Event.add(t.id,"change",onChange);Event.add(t.id,"keydown",function(e){var bf;Event.remove(t.id,"change",ch);changeListenerAdded=false;bf=Event.add(t.id,"blur",function(){if(changeListenerAdded){return}changeListenerAdded=true;Event.add(t.id,"change",onChange);Event.remove(t.id,"blur",bf)});if(tinymce.isWebKit&&(e.keyCode==37||e.keyCode==39)){return Event.prevent(e)}if(e.keyCode==13||e.keyCode==32){onChange(e);return Event.cancel(e)}});t.onPostRender.dispatch(t,DOM.get(t.id))}})})(tinymce);(function(tinymce){var DOM=tinymce.DOM,Event=tinymce.dom.Event,each=tinymce.each;tinymce.create("tinymce.ui.MenuButton:tinymce.ui.Button",{MenuButton:function(id,s,ed){this.parent(id,s,ed);this.onRenderMenu=new tinymce.util.Dispatcher(this);s.menu_container=s.menu_container||DOM.doc.body},showMenu:function(){var t=this,p1,p2,e=DOM.get(t.id),m;if(t.isDisabled()){return}if(!t.isMenuRendered){t.renderMenu();t.isMenuRendered=true}if(t.isMenuVisible){return t.hideMenu()}p1=DOM.getPos(t.settings.menu_container);p2=DOM.getPos(e);m=t.menu;m.settings.offset_x=p2.x;m.settings.offset_y=p2.y;m.settings.vp_offset_x=p2.x;m.settings.vp_offset_y=p2.y;m.settings.keyboard_focus=t._focused;m.showMenu(0,e.clientHeight);Event.add(DOM.doc,"mousedown",t.hideMenu,t);t.setState("Selected",1);t.isMenuVisible=1},renderMenu:function(){var t=this,m;m=t.settings.control_manager.createDropMenu(t.id+"_menu",{menu_line:1,"class":this.classPrefix+"Menu",icons:t.settings.icons});m.onHideMenu.add(function(){t.hideMenu();t.focus()});t.onRenderMenu.dispatch(t,m);t.menu=m},hideMenu:function(e){var t=this;if(e&&e.type=="mousedown"&&DOM.getParent(e.target,function(e){return e.id===t.id||e.id===t.id+"_open"})){return}if(!e||!DOM.getParent(e.target,".mceMenu")){t.setState("Selected",0);Event.remove(DOM.doc,"mousedown",t.hideMenu,t);if(t.menu){t.menu.hideMenu()}}t.isMenuVisible=0},postRender:function(){var t=this,s=t.settings;Event.add(t.id,"click",function(){if(!t.isDisabled()){if(s.onclick){s.onclick(t.value)}t.showMenu()}})}})})(tinymce);(function(tinymce){var DOM=tinymce.DOM,Event=tinymce.dom.Event,each=tinymce.each;tinymce.create("tinymce.ui.SplitButton:tinymce.ui.MenuButton",{SplitButton:function(id,s,ed){this.parent(id,s,ed);this.classPrefix="mceSplitButton"},renderHTML:function(){var h,t=this,s=t.settings,h1;h="";if(s.image){h1=DOM.createHTML("img ",{src:s.image,role:"presentation","class":"mceAction "+s["class"]})}else{h1=DOM.createHTML("span",{"class":"mceAction "+s["class"]},"")}h1+=DOM.createHTML("span",{"class":"mceVoiceLabel mceIconOnly",id:t.id+"_voice",style:"display:none;"},s.title);h+=""+DOM.createHTML("a",{role:"button",id:t.id+"_action",tabindex:"-1",href:"javascript:;","class":"mceAction "+s["class"],onclick:"return false;",onmousedown:"return false;",title:s.title},h1)+"";h1=DOM.createHTML("span",{"class":"mceOpen "+s["class"]},'');h+=""+DOM.createHTML("a",{role:"button",id:t.id+"_open",tabindex:"-1",href:"javascript:;","class":"mceOpen "+s["class"],onclick:"return false;",onmousedown:"return false;",title:s.title},h1)+"";h+="";h=DOM.createHTML("table",{id:t.id,role:"presentation",tabindex:"0","class":"mceSplitButton mceSplitButtonEnabled "+s["class"],cellpadding:"0",cellspacing:"0",title:s.title},h);return DOM.createHTML("span",{role:"button","aria-labelledby":t.id+"_voice","aria-haspopup":"true"},h)},postRender:function(){var t=this,s=t.settings,activate;if(s.onclick){activate=function(evt){if(!t.isDisabled()){s.onclick(t.value);Event.cancel(evt)}};Event.add(t.id+"_action","click",activate);Event.add(t.id,["click","keydown"],function(evt){var DOM_VK_SPACE=32,DOM_VK_ENTER=14,DOM_VK_RETURN=13,DOM_VK_UP=38,DOM_VK_DOWN=40;if((evt.keyCode===32||evt.keyCode===13||evt.keyCode===14)&&!evt.altKey&&!evt.ctrlKey&&!evt.metaKey){activate();Event.cancel(evt)}else{if(evt.type==="click"||evt.keyCode===DOM_VK_DOWN){t.showMenu();Event.cancel(evt)}}})}Event.add(t.id+"_open","click",function(evt){t.showMenu();Event.cancel(evt)});Event.add([t.id,t.id+"_open"],"focus",function(){t._focused=1});Event.add([t.id,t.id+"_open"],"blur",function(){t._focused=0});if(tinymce.isIE6||!DOM.boxModel){Event.add(t.id,"mouseover",function(){if(!DOM.hasClass(t.id,"mceSplitButtonDisabled")){DOM.addClass(t.id,"mceSplitButtonHover")}});Event.add(t.id,"mouseout",function(){if(!DOM.hasClass(t.id,"mceSplitButtonDisabled")){DOM.removeClass(t.id,"mceSplitButtonHover")}})}},destroy:function(){this.parent();Event.clear(this.id+"_action");Event.clear(this.id+"_open");Event.clear(this.id)}})})(tinymce);(function(tinymce){var DOM=tinymce.DOM,Event=tinymce.dom.Event,is=tinymce.is,each=tinymce.each;tinymce.create("tinymce.ui.ColorSplitButton:tinymce.ui.SplitButton",{ColorSplitButton:function(id,s,ed){var t=this;t.parent(id,s,ed);t.settings=s=tinymce.extend({colors:"000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,008000,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF",grid_width:8,default_color:"#888888"},t.settings);t.onShowMenu=new tinymce.util.Dispatcher(t);t.onHideMenu=new tinymce.util.Dispatcher(t);t.value=s.default_color},showMenu:function(){var t=this,r,p,e,p2;if(t.isDisabled()){return}if(!t.isMenuRendered){t.renderMenu();t.isMenuRendered=true}if(t.isMenuVisible){return t.hideMenu()}e=DOM.get(t.id);DOM.show(t.id+"_menu");DOM.addClass(e,"mceSplitButtonSelected");p2=DOM.getPos(e);DOM.setStyles(t.id+"_menu",{left:p2.x,top:p2.y+e.clientHeight,zIndex:200000});e=0;Event.add(DOM.doc,"mousedown",t.hideMenu,t);t.onShowMenu.dispatch(t);if(t._focused){t._keyHandler=Event.add(t.id+"_menu","keydown",function(e){if(e.keyCode==27){t.hideMenu()}});DOM.select("a",t.id+"_menu")[0].focus()}t.isMenuVisible=1},hideMenu:function(e){var t=this;if(t.isMenuVisible){if(e&&e.type=="mousedown"&&DOM.getParent(e.target,function(e){return e.id===t.id+"_open"})){return}if(!e||!DOM.getParent(e.target,".mceSplitButtonMenu")){DOM.removeClass(t.id,"mceSplitButtonSelected");Event.remove(DOM.doc,"mousedown",t.hideMenu,t);Event.remove(t.id+"_menu","keydown",t._keyHandler);DOM.hide(t.id+"_menu")}t.isMenuVisible=0;t.onHideMenu.dispatch()}},renderMenu:function(){var t=this,m,i=0,s=t.settings,n,tb,tr,w,context;w=DOM.add(s.menu_container,"div",{role:"listbox",id:t.id+"_menu","class":s.menu_class+" "+s["class"],style:"position:absolute;left:0;top:-1000px;"});m=DOM.add(w,"div",{"class":s["class"]+" mceSplitButtonMenu"});DOM.add(m,"span",{"class":"mceMenuLine"});n=DOM.add(m,"table",{role:"presentation","class":"mceColorSplitMenu"});tb=DOM.add(n,"tbody");i=0;each(is(s.colors,"array")?s.colors:s.colors.split(","),function(c){c=c.replace(/^#/,"");if(!i--){tr=DOM.add(tb,"tr");i=s.grid_width-1}n=DOM.add(tr,"td");n=DOM.add(n,"a",{role:"option",href:"javascript:;",style:{backgroundColor:"#"+c},title:t.editor.getLang("colors."+c,c),"data-mce-color":"#"+c});if(t.editor.forcedHighContrastMode){n=DOM.add(n,"canvas",{width:16,height:16,"aria-hidden":"true"});if(n.getContext&&(context=n.getContext("2d"))){context.fillStyle="#"+c;context.fillRect(0,0,16,16)}else{DOM.remove(n)}}});if(s.more_colors_func){n=DOM.add(tb,"tr");n=DOM.add(n,"td",{colspan:s.grid_width,"class":"mceMoreColors"});n=DOM.add(n,"a",{role:"option",id:t.id+"_more",href:"javascript:;",onclick:"return false;","class":"mceMoreColors"},s.more_colors_title);Event.add(n,"click",function(e){s.more_colors_func.call(s.more_colors_scope||this);return Event.cancel(e)})}DOM.addClass(m,"mceColorSplitMenu");new tinymce.ui.KeyboardNavigation({root:t.id+"_menu",items:DOM.select("a",t.id+"_menu"),onCancel:function(){t.hideMenu();t.focus()}});Event.add(t.id+"_menu","mousedown",function(e){return Event.cancel(e)});Event.add(t.id+"_menu","click",function(e){var c;e=DOM.getParent(e.target,"a",tb);if(e&&e.nodeName.toLowerCase()=="a"&&(c=e.getAttribute("data-mce-color"))){t.setColor(c)}return Event.cancel(e)});return w},setColor:function(c){this.displayColor(c);this.hideMenu();this.settings.onselect(c)},displayColor:function(c){var t=this;DOM.setStyle(t.id+"_preview","backgroundColor",c);t.value=c},postRender:function(){var t=this,id=t.id;t.parent();DOM.add(id+"_action","div",{id:id+"_preview","class":"mceColorPreview"});DOM.setStyle(t.id+"_preview","backgroundColor",t.value)},destroy:function(){this.parent();Event.clear(this.id+"_menu");Event.clear(this.id+"_more");DOM.remove(this.id+"_menu")}})})(tinymce);(function(tinymce){var dom=tinymce.DOM,each=tinymce.each,Event=tinymce.dom.Event;tinymce.create("tinymce.ui.ToolbarGroup:tinymce.ui.Container",{renderHTML:function(){var t=this,h=[],controls=t.controls,each=tinymce.each,settings=t.settings;h.push('
                                            ');h.push("");h.push('");each(controls,function(toolbar){h.push(toolbar.renderHTML())});h.push("");h.push("
                                            ");return h.join("")},focus:function(){this.keyNav.focus()},postRender:function(){var t=this,items=[];each(t.controls,function(toolbar){each(toolbar.controls,function(control){if(control.id){items.push(control)}})});t.keyNav=new tinymce.ui.KeyboardNavigation({root:t.id,items:items,onCancel:function(){t.editor.focus()},excludeFromTabOrder:!t.settings.tab_focus_toolbar})},destroy:function(){var self=this;self.parent();self.keyNav.destroy();Event.clear(self.id)}})})(tinymce);(function(tinymce){var dom=tinymce.DOM,each=tinymce.each;tinymce.create("tinymce.ui.Toolbar:tinymce.ui.Container",{renderHTML:function(){var t=this,h="",c,co,s=t.settings,i,pr,nx,cl;cl=t.controls;for(i=0;i"))}if(pr&&co.ListBox){if(pr.Button||pr.SplitButton){h+=dom.createHTML("td",{"class":"mceToolbarEnd"},dom.createHTML("span",null,""))}}if(dom.stdMode){h+=''+co.renderHTML()+""}else{h+=""+co.renderHTML()+""}if(nx&&co.ListBox){if(nx.Button||nx.SplitButton){h+=dom.createHTML("td",{"class":"mceToolbarStart"},dom.createHTML("span",null,""))}}}c="mceToolbarEnd";if(co.Button){c+=" mceToolbarEndButton"}else{if(co.SplitButton){c+=" mceToolbarEndSplitButton"}else{if(co.ListBox){c+=" mceToolbarEndListBox"}}}h+=dom.createHTML("td",{"class":c},dom.createHTML("span",null,""));return dom.createHTML("table",{id:t.id,"class":"mceToolbar"+(s["class"]?" "+s["class"]:""),cellpadding:"0",cellspacing:"0",align:t.settings.align||"",role:"presentation",tabindex:"-1"},""+h+"")}})})(tinymce);(function(tinymce){var Dispatcher=tinymce.util.Dispatcher,each=tinymce.each;tinymce.create("tinymce.AddOnManager",{AddOnManager:function(){var self=this;self.items=[];self.urls={};self.lookup={};self.onAdd=new Dispatcher(self)},get:function(n){if(this.lookup[n]){return this.lookup[n].instance}else{return undefined}},dependencies:function(n){var result;if(this.lookup[n]){result=this.lookup[n].dependencies}return result||[]},requireLangPack:function(n){var s=tinymce.settings;if(s&&s.language&&s.language_load!==false){tinymce.ScriptLoader.add(this.urls[n]+"/langs/"+s.language+".js")}},add:function(id,o,dependencies){this.items.push(o);this.lookup[id]={instance:o,dependencies:dependencies};this.onAdd.dispatch(this,id,o);return o},createUrl:function(baseUrl,dep){if(typeof dep==="object"){return dep}else{return{prefix:baseUrl.prefix,resource:dep,suffix:baseUrl.suffix}}},addComponents:function(pluginName,scripts){var pluginUrl=this.urls[pluginName];tinymce.each(scripts,function(script){tinymce.ScriptLoader.add(pluginUrl+"/"+script)})},load:function(n,u,cb,s){var t=this,url=u;function loadDependencies(){var dependencies=t.dependencies(n);tinymce.each(dependencies,function(dep){var newUrl=t.createUrl(u,dep);t.load(newUrl.resource,newUrl,undefined,undefined)});if(cb){if(s){cb.call(s)}else{cb.call(tinymce.ScriptLoader)}}}if(t.urls[n]){return}if(typeof u==="object"){url=u.prefix+u.resource+u.suffix}if(url.indexOf("/")!=0&&url.indexOf("://")==-1){url=tinymce.baseURL+"/"+url}t.urls[n]=url.substring(0,url.lastIndexOf("/"));if(t.lookup[n]){loadDependencies()}else{tinymce.ScriptLoader.add(url,loadDependencies,s)}}});tinymce.PluginManager=new tinymce.AddOnManager();tinymce.ThemeManager=new tinymce.AddOnManager()}(tinymce));(function(tinymce){var each=tinymce.each,extend=tinymce.extend,DOM=tinymce.DOM,Event=tinymce.dom.Event,ThemeManager=tinymce.ThemeManager,PluginManager=tinymce.PluginManager,explode=tinymce.explode,Dispatcher=tinymce.util.Dispatcher,undefined,instanceCounter=0;tinymce.documentBaseURL=window.location.href.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,"");if(!/[\/\\]$/.test(tinymce.documentBaseURL)){tinymce.documentBaseURL+="/"}tinymce.baseURL=new tinymce.util.URI(tinymce.documentBaseURL).toAbsolute(tinymce.baseURL);tinymce.baseURI=new tinymce.util.URI(tinymce.baseURL);tinymce.onBeforeUnload=new Dispatcher(tinymce);Event.add(window,"beforeunload",function(e){tinymce.onBeforeUnload.dispatch(tinymce,e)});tinymce.onAddEditor=new Dispatcher(tinymce);tinymce.onRemoveEditor=new Dispatcher(tinymce);tinymce.EditorManager=extend(tinymce,{editors:[],i18n:{},activeEditor:null,init:function(s){var t=this,pl,sl=tinymce.ScriptLoader,e,el=[],ed;function execCallback(se,n,s){var f=se[n];if(!f){return}if(tinymce.is(f,"string")){s=f.replace(/\.\w+$/,"");s=s?tinymce.resolve(s):0;f=tinymce.resolve(f)}return f.apply(s||this,Array.prototype.slice.call(arguments,2))}s=extend({theme:"simple",language:"en"},s);t.settings=s;Event.add(document,"init",function(){var l,co;execCallback(s,"onpageload");switch(s.mode){case"exact":l=s.elements||"";if(l.length>0){each(explode(l),function(v){if(DOM.get(v)){ed=new tinymce.Editor(v,s);el.push(ed);ed.render(1)}else{each(document.forms,function(f){each(f.elements,function(e){if(e.name===v){v="mce_editor_"+instanceCounter++;DOM.setAttrib(e,"id",v);ed=new tinymce.Editor(v,s);el.push(ed);ed.render(1)}})})}})}break;case"textareas":case"specific_textareas":function hasClass(n,c){return c.constructor===RegExp?c.test(n.className):DOM.hasClass(n,c)}each(DOM.select("textarea"),function(v){if(s.editor_deselector&&hasClass(v,s.editor_deselector)){return}if(!s.editor_selector||hasClass(v,s.editor_selector)){e=DOM.get(v.name);if(!v.id&&!e){v.id=v.name}if(!v.id||t.get(v.id)){v.id=DOM.uniqueId()}ed=new tinymce.Editor(v.id,s);el.push(ed);ed.render(1)}});break}if(s.oninit){l=co=0;each(el,function(ed){co++;if(!ed.initialized){ed.onInit.add(function(){l++;if(l==co){execCallback(s,"oninit")}})}else{l++}if(l==co){execCallback(s,"oninit")}})}})},get:function(id){if(id===undefined){return this.editors}return this.editors[id]},getInstanceById:function(id){return this.get(id)},add:function(editor){var self=this,editors=self.editors;editors[editor.id]=editor;editors.push(editor);self._setActive(editor);self.onAddEditor.dispatch(self,editor);return editor},remove:function(editor){var t=this,i,editors=t.editors;if(!editors[editor.id]){return null}delete editors[editor.id];for(i=0;i':"",visual_table_class:"mceItemTable",visual:1,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",apply_source_formatting:1,directionality:"ltr",forced_root_block:"p",hidden_input:1,padd_empty_editor:1,render_ui:1,init_theme:1,force_p_newlines:1,indentation:"30px",keep_styles:1,fix_table_elements:1,inline_styles:1,convert_fonts_to_spans:true,indent:"simple",indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr",validate:true,entity_encoding:"named",url_converter:t.convertURL,url_converter_scope:t,ie7_compat:true},s);t.documentBaseURI=new tinymce.util.URI(s.document_base_url||tinymce.documentBaseURL,{base_uri:tinyMCE.baseURI});t.baseURI=tinymce.baseURI;t.contentCSS=[];t.execCallback("setup",t)},render:function(nst){var t=this,s=t.settings,id=t.id,sl=tinymce.ScriptLoader;if(!Event.domLoaded){Event.add(document,"init",function(){t.render()});return}tinyMCE.settings=s;if(!t.getElement()){return}if(tinymce.isIDevice&&!tinymce.isIOS5){return}if(!/TEXTAREA|INPUT/i.test(t.getElement().nodeName)&&s.hidden_input&&DOM.getParent(id,"form")){DOM.insertAfter(DOM.create("input",{type:"hidden",name:id}),id)}if(tinymce.WindowManager){t.windowManager=new tinymce.WindowManager(t)}if(s.encoding=="xml"){t.onGetContent.add(function(ed,o){if(o.save){o.content=DOM.encode(o.content)}})}if(s.add_form_submit_trigger){t.onSubmit.addToTop(function(){if(t.initialized){t.save();t.isNotDirty=1}})}if(s.add_unload_trigger){t._beforeUnload=tinyMCE.onBeforeUnload.add(function(){if(t.initialized&&!t.destroyed&&!t.isHidden()){t.save({format:"raw",no_events:true})}})}tinymce.addUnload(t.destroy,t);if(s.submit_patch){t.onBeforeRenderUI.add(function(){var n=t.getElement().form;if(!n){return}if(n._mceOldSubmit){return}if(!n.submit.nodeType&&!n.submit.length){t.formElement=n;n._mceOldSubmit=n.submit;n.submit=function(){tinymce.triggerSave();t.isNotDirty=1;return t.formElement._mceOldSubmit(t.formElement)}}n=null})}function loadScripts(){if(s.language&&s.language_load!==false){sl.add(tinymce.baseURL+"/langs/"+s.language+".js")}if(s.theme&&s.theme.charAt(0)!="-"&&!ThemeManager.urls[s.theme]){ThemeManager.load(s.theme,"themes/"+s.theme+"/editor_template"+tinymce.suffix+".js")}each(explode(s.plugins),function(p){if(p&&!PluginManager.urls[p]){if(p.charAt(0)=="-"){p=p.substr(1,p.length);var dependencies=PluginManager.dependencies(p);each(dependencies,function(dep){var defaultSettings={prefix:"plugins/",resource:dep,suffix:"/editor_plugin"+tinymce.suffix+".js"};var dep=PluginManager.createUrl(defaultSettings,dep);PluginManager.load(dep.resource,dep)})}else{if(p=="safari"){return}PluginManager.load(p,{prefix:"plugins/",resource:p,suffix:"/editor_plugin"+tinymce.suffix+".js"})}}});sl.loadQueue(function(){if(!t.removed){t.init()}})}loadScripts()},init:function(){var n,t=this,s=t.settings,w,h,e=t.getElement(),o,ti,u,bi,bc,re,i,initializedPlugins=[];tinymce.add(t);s.aria_label=s.aria_label||DOM.getAttrib(e,"aria-label",t.getLang("aria.rich_text_area"));if(s.theme){s.theme=s.theme.replace(/-/,"");o=ThemeManager.get(s.theme);t.theme=new o();if(t.theme.init&&s.init_theme){t.theme.init(t,ThemeManager.urls[s.theme]||tinymce.documentBaseURL.replace(/\/$/,""))}}function initPlugin(p){var c=PluginManager.get(p),u=PluginManager.urls[p]||tinymce.documentBaseURL.replace(/\/$/,""),po;if(c&&tinymce.inArray(initializedPlugins,p)===-1){each(PluginManager.dependencies(p),function(dep){initPlugin(dep)});po=new c(t,u);t.plugins[p]=po;if(po.init){po.init(t,u);initializedPlugins.push(p)}}}each(explode(s.plugins.replace(/\-/g,"")),initPlugin);if(s.popup_css!==false){if(s.popup_css){s.popup_css=t.documentBaseURI.toAbsolute(s.popup_css)}else{s.popup_css=t.baseURI.toAbsolute("themes/"+s.theme+"/skins/"+s.skin+"/dialog.css")}}if(s.popup_css_add){s.popup_css+=","+t.documentBaseURI.toAbsolute(s.popup_css_add)}t.controlManager=new tinymce.ControlManager(t);if(s.custom_undo_redo){t.onBeforeExecCommand.add(function(ed,cmd,ui,val,a){if(cmd!="Undo"&&cmd!="Redo"&&cmd!="mceRepaint"&&(!a||!a.skip_undo)){t.undoManager.beforeChange()}});t.onExecCommand.add(function(ed,cmd,ui,val,a){if(cmd!="Undo"&&cmd!="Redo"&&cmd!="mceRepaint"&&(!a||!a.skip_undo)){t.undoManager.add()}})}t.onExecCommand.add(function(ed,c){if(!/^(FontName|FontSize)$/.test(c)){t.nodeChanged()}});if(isGecko){function repaint(a,o){if(!o||!o.initial){t.execCommand("mceRepaint")}}t.onUndo.add(repaint);t.onRedo.add(repaint);t.onSetContent.add(repaint)}t.onBeforeRenderUI.dispatch(t,t.controlManager);if(s.render_ui){w=s.width||e.style.width||e.offsetWidth;h=s.height||e.style.height||e.offsetHeight;t.orgDisplay=e.style.display;re=/^[0-9\.]+(|px)$/i;if(re.test(""+w)){w=Math.max(parseInt(w)+(o.deltaWidth||0),100)}if(re.test(""+h)){h=Math.max(parseInt(h)+(o.deltaHeight||0),100)}o=t.theme.renderUI({targetNode:e,width:w,height:h,deltaWidth:s.delta_width,deltaHeight:s.delta_height});t.editorContainer=o.editorContainer}if(document.domain&&location.hostname!=document.domain){tinymce.relaxedDomain=document.domain}DOM.setStyles(o.sizeContainer||o.editorContainer,{width:w,height:h});if(s.content_css){tinymce.each(explode(s.content_css),function(u){t.contentCSS.push(t.documentBaseURI.toAbsolute(u))})}h=(o.iframeHeight||h)+(typeof(h)=="number"?(o.deltaHeight||0):"");if(h<100){h=100}t.iframeHTML=s.doctype+'';if(s.document_base_url!=tinymce.documentBaseURL){t.iframeHTML+=''}if(s.ie7_compat){t.iframeHTML+=''}else{t.iframeHTML+=''}t.iframeHTML+='';bi=s.body_id||"tinymce";if(bi.indexOf("=")!=-1){bi=t.getParam("body_id","","hash");bi=bi[t.id]||bi}bc=s.body_class||"";if(bc.indexOf("=")!=-1){bc=t.getParam("body_class","","hash");bc=bc[t.id]||""}t.iframeHTML+='
                                            ';if(tinymce.relaxedDomain&&(isIE||(tinymce.isOpera&&parseFloat(opera.version())<11))){u='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinyMCE.get("'+t.id+'");document.write(ed.iframeHTML);document.close();ed.setupIframe();})()'}n=DOM.add(o.iframeContainer,"iframe",{id:t.id+"_ifr",src:u||'javascript:""',frameBorder:"0",allowTransparency:"true",title:s.aria_label,style:{width:"100%",height:h,display:"block"}});t.contentAreaContainer=o.iframeContainer;DOM.get(o.editorContainer).style.display=t.orgDisplay;DOM.get(t.id).style.display="none";DOM.setAttrib(t.id,"aria-hidden",true);if(!tinymce.relaxedDomain||!u){t.setupIframe()}e=n=o=null},setupIframe:function(){var t=this,s=t.settings,e=DOM.get(t.id),d=t.getDoc(),h,b;if(!isIE||!tinymce.relaxedDomain){if(isGecko&&!Range.prototype.getClientRects){t.onMouseDown.add(function(ed,e){if(e.target.nodeName==="HTML"){var body=t.getBody();body.blur();setTimeout(function(){body.focus()},0)}})}d.open();d.write(t.iframeHTML);d.close();if(tinymce.relaxedDomain){d.domain=tinymce.relaxedDomain}}b=t.getBody();b.disabled=true;if(!s.readonly){b.contentEditable=true}b.disabled=false;t.schema=new tinymce.html.Schema(s);t.dom=new tinymce.dom.DOMUtils(t.getDoc(),{keep_values:true,url_converter:t.convertURL,url_converter_scope:t,hex_colors:s.force_hex_style_colors,class_filter:s.class_filter,update_styles:1,fix_ie_paragraphs:1,schema:t.schema});t.parser=new tinymce.html.DomParser(s,t.schema);if(!t.settings.allow_html_in_named_anchor){t.parser.addAttributeFilter("name",function(nodes,name){var i=nodes.length,sibling,prevSibling,parent,node;while(i--){node=nodes[i];if(node.name==="a"&&node.firstChild){parent=node.parent;sibling=node.lastChild;do{prevSibling=sibling.prev;parent.insert(sibling,node);sibling=prevSibling}while(sibling)}}})}t.parser.addAttributeFilter("src,href,style",function(nodes,name){var i=nodes.length,node,dom=t.dom,value,internalName;while(i--){node=nodes[i];value=node.attr(name);internalName="data-mce-"+name;if(!node.attributes.map[internalName]){if(name==="style"){node.attr(internalName,dom.serializeStyle(dom.parseStyle(value),node.name))}else{node.attr(internalName,t.convertURL(value,name,node.name))}}}});t.parser.addNodeFilter("script",function(nodes,name){var i=nodes.length;while(i--){nodes[i].attr("type","mce-text/javascript")}});t.parser.addNodeFilter("#cdata",function(nodes,name){var i=nodes.length,node;while(i--){node=nodes[i];node.type=8;node.name="#comment";node.value="[CDATA["+node.value+"]]"}});t.parser.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(nodes,name){var i=nodes.length,node,nonEmptyElements=t.schema.getNonEmptyElements();while(i--){node=nodes[i];if(node.isEmpty(nonEmptyElements)){node.empty().append(new tinymce.html.Node("br",1)).shortEnded=true}}});t.serializer=new tinymce.dom.Serializer(s,t.dom,t.schema);t.selection=new tinymce.dom.Selection(t.dom,t.getWin(),t.serializer);t.formatter=new tinymce.Formatter(this);t.formatter.register({alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table",collapsed:false,styles:{"float":"left"}}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img",collapsed:false,styles:{display:"block",marginLeft:"auto",marginRight:"auto"}},{selector:"table",collapsed:false,styles:{marginLeft:"auto",marginRight:"auto"}}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table",collapsed:false,styles:{"float":"right"}}],alignfull:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"justify"}}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:true},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:true},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},wrap_links:false},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},wrap_links:false},fontname:{inline:"span",styles:{fontFamily:"%value"}},fontsize:{inline:"span",styles:{fontSize:"%value"}},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},link:{inline:"a",selector:"a",remove:"all",split:true,deep:true,onmatch:function(node){return true},onformat:function(elm,fmt,vars){each(vars,function(value,key){t.dom.setAttrib(elm,key,value)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike",remove:"all",split:true,expand:false,block_expand:true,deep:true},{selector:"span",attributes:["style","class"],remove:"empty",split:true,expand:false,deep:true},{selector:"*",attributes:["style","class"],split:false,expand:false,deep:true}]});each("p h1 h2 h3 h4 h5 h6 div address pre div code dt dd samp".split(/\s/),function(name){t.formatter.register(name,{block:name,remove:"all"})});t.formatter.register(t.settings.formats);t.undoManager=new tinymce.UndoManager(t);t.undoManager.onAdd.add(function(um,l){if(um.hasUndo()){return t.onChange.dispatch(t,l,um)}});t.undoManager.onUndo.add(function(um,l){return t.onUndo.dispatch(t,l,um)});t.undoManager.onRedo.add(function(um,l){return t.onRedo.dispatch(t,l,um)});t.forceBlocks=new tinymce.ForceBlocks(t,{forced_root_block:s.forced_root_block});t.editorCommands=new tinymce.EditorCommands(t);t.serializer.onPreProcess.add(function(se,o){return t.onPreProcess.dispatch(t,o,se)});t.serializer.onPostProcess.add(function(se,o){return t.onPostProcess.dispatch(t,o,se)});t.onPreInit.dispatch(t);if(!s.gecko_spellcheck){t.getBody().spellcheck=0}if(!s.readonly){t._addEvents()}t.controlManager.onPostRender.dispatch(t,t.controlManager);t.onPostRender.dispatch(t);t.quirks=new tinymce.util.Quirks(this);if(s.directionality){t.getBody().dir=s.directionality}if(s.nowrap){t.getBody().style.whiteSpace="nowrap"}if(s.handle_node_change_callback){t.onNodeChange.add(function(ed,cm,n){t.execCallback("handle_node_change_callback",t.id,n,-1,-1,true,t.selection.isCollapsed())})}if(s.save_callback){t.onSaveContent.add(function(ed,o){var h=t.execCallback("save_callback",t.id,o.content,t.getBody());if(h){o.content=h}})}if(s.onchange_callback){t.onChange.add(function(ed,l){t.execCallback("onchange_callback",t,l)})}if(s.protect){t.onBeforeSetContent.add(function(ed,o){if(s.protect){each(s.protect,function(pattern){o.content=o.content.replace(pattern,function(str){return""})})}})}if(s.convert_newlines_to_brs){t.onBeforeSetContent.add(function(ed,o){if(o.initial){o.content=o.content.replace(/\r?\n/g,"
                                            ")}})}if(s.preformatted){t.onPostProcess.add(function(ed,o){o.content=o.content.replace(/^\s*/,"");o.content=o.content.replace(/<\/pre>\s*$/,"");if(o.set){o.content='
                                            '+o.content+"
                                            "}})}if(s.verify_css_classes){t.serializer.attribValueFilter=function(n,v){var s,cl;if(n=="class"){if(!t.classesRE){cl=t.dom.getClasses();if(cl.length>0){s="";each(cl,function(o){s+=(s?"|":"")+o["class"]});t.classesRE=new RegExp("("+s+")","gi")}}return !t.classesRE||/(\bmceItem\w+\b|\bmceTemp\w+\b)/g.test(v)||t.classesRE.test(v)?v:""}return v}}if(s.cleanup_callback){t.onBeforeSetContent.add(function(ed,o){o.content=t.execCallback("cleanup_callback","insert_to_editor",o.content,o)});t.onPreProcess.add(function(ed,o){if(o.set){t.execCallback("cleanup_callback","insert_to_editor_dom",o.node,o)}if(o.get){t.execCallback("cleanup_callback","get_from_editor_dom",o.node,o)}});t.onPostProcess.add(function(ed,o){if(o.set){o.content=t.execCallback("cleanup_callback","insert_to_editor",o.content,o)}if(o.get){o.content=t.execCallback("cleanup_callback","get_from_editor",o.content,o)}})}if(s.save_callback){t.onGetContent.add(function(ed,o){if(o.save){o.content=t.execCallback("save_callback",t.id,o.content,t.getBody())}})}if(s.handle_event_callback){t.onEvent.add(function(ed,e,o){if(t.execCallback("handle_event_callback",e,ed,o)===false){Event.cancel(e)}})}t.onSetContent.add(function(){t.addVisual(t.getBody())});if(s.padd_empty_editor){t.onPostProcess.add(function(ed,o){o.content=o.content.replace(/^(]*>( | |\s|\u00a0|)<\/p>[\r\n]*|
                                            [\r\n]*)$/,"")})}if(isGecko){function fixLinks(ed,o){each(ed.dom.select("a"),function(n){var pn=n.parentNode;if(ed.dom.isBlock(pn)&&pn.lastChild===n){ed.dom.add(pn,"br",{"data-mce-bogus":1})}})}t.onExecCommand.add(function(ed,cmd){if(cmd==="CreateLink"){fixLinks(ed)}});t.onSetContent.add(t.selection.onSetContent.add(fixLinks))}t.load({initial:true,format:"html"});t.startContent=t.getContent({format:"raw"});t.undoManager.add();t.initialized=true;t.onInit.dispatch(t);t.execCallback("setupcontent_callback",t.id,t.getBody(),t.getDoc());t.execCallback("init_instance_callback",t);t.focus(true);t.nodeChanged({initial:1});each(t.contentCSS,function(u){t.dom.loadCSS(u)});if(s.auto_focus){setTimeout(function(){var ed=tinymce.get(s.auto_focus);ed.selection.select(ed.getBody(),1);ed.selection.collapse(1);ed.getBody().focus();ed.getWin().focus()},100)}e=null},focus:function(sf){var oed,t=this,selection=t.selection,ce=t.settings.content_editable,ieRng,controlElm,doc=t.getDoc();if(!sf){ieRng=selection.getRng();if(ieRng.item){controlElm=ieRng.item(0)}t._refreshContentEditable();selection.normalize();if(!ce){t.getWin().focus()}if(tinymce.isGecko){t.getBody().focus()}if(controlElm&&controlElm.ownerDocument==doc){ieRng=doc.body.createControlRange();ieRng.addElement(controlElm);ieRng.select()}}if(tinymce.activeEditor!=t){if((oed=tinymce.activeEditor)!=null){oed.onDeactivate.dispatch(oed,t)}t.onActivate.dispatch(t,oed)}tinymce._setActive(t)},execCallback:function(n){var t=this,f=t.settings[n],s;if(!f){return}if(t.callbackLookup&&(s=t.callbackLookup[n])){f=s.func;s=s.scope}if(is(f,"string")){s=f.replace(/\.\w+$/,"");s=s?tinymce.resolve(s):0;f=tinymce.resolve(f);t.callbackLookup=t.callbackLookup||{};t.callbackLookup[n]={func:f,scope:s}}return f.apply(s||t,Array.prototype.slice.call(arguments,1))},translate:function(s){var c=this.settings.language||"en",i18n=tinymce.i18n;if(!s){return""}return i18n[c+"."+s]||s.replace(/{\#([^}]+)\}/g,function(a,b){return i18n[c+"."+b]||"{#"+b+"}"})},getLang:function(n,dv){return tinymce.i18n[(this.settings.language||"en")+"."+n]||(is(dv)?dv:"{#"+n+"}")},getParam:function(n,dv,ty){var tr=tinymce.trim,v=is(this.settings[n])?this.settings[n]:dv,o;if(ty==="hash"){o={};if(is(v,"string")){each(v.indexOf("=")>0?v.split(/[;,](?![^=;,]*(?:[;,]|$))/):v.split(","),function(v){v=v.split("=");if(v.length>1){o[tr(v[0])]=tr(v[1])}else{o[tr(v[0])]=tr(v)}})}else{o=v}return o}return v},nodeChanged:function(o){var t=this,s=t.selection,n=s.getStart()||t.getBody();if(t.initialized){o=o||{};n=isIE&&n.ownerDocument!=t.getDoc()?t.getBody():n;o.parents=[];t.dom.getParent(n,function(node){if(node.nodeName=="BODY"){return true}o.parents.push(node)});t.onNodeChange.dispatch(t,o?o.controlManager||t.controlManager:t.controlManager,n,s.isCollapsed(),o)}},addButton:function(n,s){var t=this;t.buttons=t.buttons||{};t.buttons[n]=s},addCommand:function(name,callback,scope){this.execCommands[name]={func:callback,scope:scope||this}},addQueryStateHandler:function(name,callback,scope){this.queryStateCommands[name]={func:callback,scope:scope||this}},addQueryValueHandler:function(name,callback,scope){this.queryValueCommands[name]={func:callback,scope:scope||this}},addShortcut:function(pa,desc,cmd_func,sc){var t=this,c;if(!t.settings.custom_shortcuts){return false}t.shortcuts=t.shortcuts||{};if(is(cmd_func,"string")){c=cmd_func;cmd_func=function(){t.execCommand(c,false,null)}}if(is(cmd_func,"object")){c=cmd_func;cmd_func=function(){t.execCommand(c[0],c[1],c[2])}}each(explode(pa),function(pa){var o={func:cmd_func,scope:sc||this,desc:desc,alt:false,ctrl:false,shift:false};each(explode(pa,"+"),function(v){switch(v){case"alt":case"ctrl":case"shift":o[v]=true;break;default:o.charCode=v.charCodeAt(0);o.keyCode=v.toUpperCase().charCodeAt(0)}});t.shortcuts[(o.ctrl?"ctrl":"")+","+(o.alt?"alt":"")+","+(o.shift?"shift":"")+","+o.keyCode]=o});return true},execCommand:function(cmd,ui,val,a){var t=this,s=0,o,st;if(!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(cmd)&&(!a||!a.skip_focus)){t.focus()}o={};t.onBeforeExecCommand.dispatch(t,cmd,ui,val,o);if(o.terminate){return false}if(t.execCallback("execcommand_callback",t.id,t.selection.getNode(),cmd,ui,val)){t.onExecCommand.dispatch(t,cmd,ui,val,a);return true}if(o=t.execCommands[cmd]){st=o.func.call(o.scope,ui,val);if(st!==true){t.onExecCommand.dispatch(t,cmd,ui,val,a);return st}}each(t.plugins,function(p){if(p.execCommand&&p.execCommand(cmd,ui,val)){t.onExecCommand.dispatch(t,cmd,ui,val,a);s=1;return false}});if(s){return true}if(t.theme&&t.theme.execCommand&&t.theme.execCommand(cmd,ui,val)){t.onExecCommand.dispatch(t,cmd,ui,val,a);return true}if(t.editorCommands.execCommand(cmd,ui,val)){t.onExecCommand.dispatch(t,cmd,ui,val,a);return true}var doc=t.getDoc();try{if(doc.queryCommandSupported(cmd)){doc.execCommand(cmd,ui,val)}}catch(not_implemented_in_ff){if(not_implemented_in_ff.name==="NS_ERROR_NOT_IMPLEMENTED"){doc.execCommand(cmd,ui,val)}}t.onExecCommand.dispatch(t,cmd,ui,val,a)},queryCommandState:function(cmd){var t=this,o,s;if(t._isHidden()){return}if(o=t.queryStateCommands[cmd]){s=o.func.call(o.scope);if(s!==true){return s}}o=t.editorCommands.queryCommandState(cmd);if(o!==-1){return o}try{return this.getDoc().queryCommandState(cmd)}catch(ex){}},queryCommandValue:function(c){var t=this,o,s;if(t._isHidden()){return}if(o=t.queryValueCommands[c]){s=o.func.call(o.scope);if(s!==true){return s}}o=t.editorCommands.queryCommandValue(c);if(is(o)){return o}try{return this.getDoc().queryCommandValue(c)}catch(ex){}},show:function(){var t=this;DOM.show(t.getContainer());DOM.hide(t.id);t.load()},hide:function(){var t=this,d=t.getDoc();if(isIE&&d){d.execCommand("SelectAll")}t.save();DOM.hide(t.getContainer());DOM.setStyle(t.id,"display",t.orgDisplay)},isHidden:function(){return !DOM.isHidden(this.id)},setProgressState:function(b,ti,o){this.onSetProgressState.dispatch(this,b,ti,o);return b},load:function(o){var t=this,e=t.getElement(),h;if(e){o=o||{};o.load=true;h=t.setContent(is(e.value)?e.value:e.innerHTML,o);o.element=e;if(!o.no_events){t.onLoadContent.dispatch(t,o)}o.element=e=null;return h}},save:function(o){var t=this,e=t.getElement(),h,f;if(!e||!t.initialized){return}o=o||{};o.save=true;if(!o.no_events){t.undoManager.typing=false;t.undoManager.add()}o.element=e;h=o.content=t.getContent(o);if(!o.no_events){t.onSaveContent.dispatch(t,o)}h=o.content;if(!/TEXTAREA|INPUT/i.test(e.nodeName)){e.innerHTML=h;if(f=DOM.getParent(t.id,"form")){each(f.elements,function(e){if(e.name==t.id){e.value=h;return false}})}}else{e.value=h}o.element=e=null;return h},setContent:function(content,args){var self=this,rootNode,body=self.getBody(),forcedRootBlockName;args=args||{};args.format=args.format||"html";args.set=true;args.content=content;if(!args.no_events){self.onBeforeSetContent.dispatch(self,args)}content=args.content;if(!tinymce.isIE&&(content.length===0||/^\s+$/.test(content))){forcedRootBlockName=self.settings.forced_root_block;if(forcedRootBlockName){content="<"+forcedRootBlockName+'>
                                            "}else{content='
                                            '}body.innerHTML=content;self.selection.select(body,true);self.selection.collapse(true);return}if(args.format!=="raw"){content=new tinymce.html.Serializer({},self.schema).serialize(self.parser.parse(content))}args.content=tinymce.trim(content);self.dom.setHTML(body,args.content);if(!args.no_events){self.onSetContent.dispatch(self,args)}self.selection.normalize();return args.content},getContent:function(args){var self=this,content;args=args||{};args.format=args.format||"html";args.get=true;if(!args.no_events){self.onBeforeGetContent.dispatch(self,args)}if(args.format=="raw"){content=self.getBody().innerHTML}else{content=self.serializer.serialize(self.getBody(),args)}args.content=tinymce.trim(content);if(!args.no_events){self.onGetContent.dispatch(self,args)}return args.content},isDirty:function(){var self=this;return tinymce.trim(self.startContent)!=tinymce.trim(self.getContent({format:"raw",no_events:1}))&&!self.isNotDirty},getContainer:function(){var t=this;if(!t.container){t.container=DOM.get(t.editorContainer||t.id+"_parent")}return t.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return DOM.get(this.settings.content_element||this.id)},getWin:function(){var t=this,e;if(!t.contentWindow){e=DOM.get(t.id+"_ifr");if(e){t.contentWindow=e.contentWindow}}return t.contentWindow},getDoc:function(){var t=this,w;if(!t.contentDocument){w=t.getWin();if(w){t.contentDocument=w.document}}return t.contentDocument},getBody:function(){return this.bodyElement||this.getDoc().body},convertURL:function(u,n,e){var t=this,s=t.settings;if(s.urlconverter_callback){return t.execCallback("urlconverter_callback",u,e,true,n)}if(!s.convert_urls||(e&&e.nodeName=="LINK")||u.indexOf("file:")===0){return u}if(s.relative_urls){return t.documentBaseURI.toRelative(u)}u=t.documentBaseURI.toAbsolute(u,s.remove_script_host);return u},addVisual:function(e){var t=this,s=t.settings;e=e||t.getBody();if(!is(t.hasVisual)){t.hasVisual=s.visual}each(t.dom.select("table,a",e),function(e){var v;switch(e.nodeName){case"TABLE":v=t.dom.getAttrib(e,"border");if(!v||v=="0"){if(t.hasVisual){t.dom.addClass(e,s.visual_table_class)}else{t.dom.removeClass(e,s.visual_table_class)}}return;case"A":v=t.dom.getAttrib(e,"name");if(v){if(t.hasVisual){t.dom.addClass(e,"mceItemAnchor")}else{t.dom.removeClass(e,"mceItemAnchor")}}return}});t.onVisualAid.dispatch(t,e,t.hasVisual)},remove:function(){var t=this,e=t.getContainer();t.removed=1;t.hide();t.execCallback("remove_instance_callback",t);t.onRemove.dispatch(t);t.onExecCommand.listeners=[];tinymce.remove(t);DOM.remove(e)},destroy:function(s){var t=this;if(t.destroyed){return}if(!s){tinymce.removeUnload(t.destroy);tinyMCE.onBeforeUnload.remove(t._beforeUnload);if(t.theme&&t.theme.destroy){t.theme.destroy()}t.controlManager.destroy();t.selection.destroy();t.dom.destroy();if(!t.settings.content_editable){Event.clear(t.getWin());Event.clear(t.getDoc())}Event.clear(t.getBody());Event.clear(t.formElement)}if(t.formElement){t.formElement.submit=t.formElement._mceOldSubmit;t.formElement._mceOldSubmit=null}t.contentAreaContainer=t.formElement=t.container=t.settings.content_element=t.bodyElement=t.contentDocument=t.contentWindow=null;if(t.selection){t.selection=t.selection.win=t.selection.dom=t.selection.dom.doc=null}t.destroyed=1},_addEvents:function(){var t=this,i,s=t.settings,dom=t.dom,lo={mouseup:"onMouseUp",mousedown:"onMouseDown",click:"onClick",keyup:"onKeyUp",keydown:"onKeyDown",keypress:"onKeyPress",submit:"onSubmit",reset:"onReset",contextmenu:"onContextMenu",dblclick:"onDblClick",paste:"onPaste"};function eventHandler(e,o){var ty=e.type;if(t.removed){return}if(t.onEvent.dispatch(t,e,o)!==false){t[lo[e.fakeType||e.type]].dispatch(t,e,o)}}each(lo,function(v,k){switch(k){case"contextmenu":dom.bind(t.getDoc(),k,eventHandler);break;case"paste":dom.bind(t.getBody(),k,function(e){eventHandler(e)});break;case"submit":case"reset":dom.bind(t.getElement().form||DOM.getParent(t.id,"form"),k,eventHandler);break;default:dom.bind(s.content_editable?t.getBody():t.getDoc(),k,eventHandler)}});dom.bind(s.content_editable?t.getBody():(isGecko?t.getDoc():t.getWin()),"focus",function(e){t.focus(true)});if(tinymce.isGecko){dom.bind(t.getDoc(),"DOMNodeInserted",function(e){var v;e=e.target;if(e.nodeType===1&&e.nodeName==="IMG"&&(v=e.getAttribute("data-mce-src"))){e.src=t.documentBaseURI.toAbsolute(v)}})}if(isGecko){function setOpts(){var t=this,d=t.getDoc(),s=t.settings;if(isGecko&&!s.readonly){t._refreshContentEditable();try{d.execCommand("styleWithCSS",0,false)}catch(ex){if(!t._isHidden()){try{d.execCommand("useCSS",0,true)}catch(ex){}}}if(!s.table_inline_editing){try{d.execCommand("enableInlineTableEditing",false,false)}catch(ex){}}if(!s.object_resizing){try{d.execCommand("enableObjectResizing",false,false)}catch(ex){}}}}t.onBeforeExecCommand.add(setOpts);t.onMouseDown.add(setOpts)}t.onClick.add(function(ed,e){e=e.target;if(tinymce.isWebKit&&e.nodeName=="IMG"){t.selection.getSel().setBaseAndExtent(e,0,e,1)}if(e.nodeName=="A"&&dom.hasClass(e,"mceItemAnchor")){t.selection.select(e)}t.nodeChanged()});t.onMouseUp.add(t.nodeChanged);t.onKeyUp.add(function(ed,e){var c=e.keyCode;if((c>=33&&c<=36)||(c>=37&&c<=40)||c==13||c==45||c==46||c==8||(tinymce.isMac&&(c==91||c==93))||e.ctrlKey){t.nodeChanged()}});t.onKeyDown.add(function(ed,e){if(e.keyCode!=8){return}var n=ed.selection.getRng().startContainer;var offset=ed.selection.getRng().startOffset;while(n&&n.nodeType&&n.nodeType!=1&&n.parentNode){n=n.parentNode}if(n&&n.parentNode&&n.parentNode.tagName==="BLOCKQUOTE"&&n.parentNode.firstChild==n&&offset==0){ed.formatter.toggle("blockquote",null,n.parentNode);var rng=ed.selection.getRng();rng.setStart(n,0);rng.setEnd(n,0);ed.selection.setRng(rng);ed.selection.collapse(false)}});t.onReset.add(function(){t.setContent(t.startContent,{format:"raw"})});if(s.custom_shortcuts){if(s.custom_undo_redo_keyboard_shortcuts){t.addShortcut("ctrl+z",t.getLang("undo_desc"),"Undo");t.addShortcut("ctrl+y",t.getLang("redo_desc"),"Redo")}t.addShortcut("ctrl+b",t.getLang("bold_desc"),"Bold");t.addShortcut("ctrl+i",t.getLang("italic_desc"),"Italic");t.addShortcut("ctrl+u",t.getLang("underline_desc"),"Underline");for(i=1;i<=6;i++){t.addShortcut("ctrl+"+i,"",["FormatBlock",false,"h"+i])}t.addShortcut("ctrl+7","",["FormatBlock",false,"p"]);t.addShortcut("ctrl+8","",["FormatBlock",false,"div"]);t.addShortcut("ctrl+9","",["FormatBlock",false,"address"]);function find(e){var v=null;if(!e.altKey&&!e.ctrlKey&&!e.metaKey){return v}each(t.shortcuts,function(o){if(tinymce.isMac&&o.ctrl!=e.metaKey){return}else{if(!tinymce.isMac&&o.ctrl!=e.ctrlKey){return}}if(o.alt!=e.altKey){return}if(o.shift!=e.shiftKey){return}if(e.keyCode==o.keyCode||(e.charCode&&e.charCode==o.charCode)){v=o;return false}});return v}t.onKeyUp.add(function(ed,e){var o=find(e);if(o){return Event.cancel(e)}});t.onKeyPress.add(function(ed,e){var o=find(e);if(o){return Event.cancel(e)}});t.onKeyDown.add(function(ed,e){var o=find(e);if(o){o.func.call(o.scope);return Event.cancel(e)}})}if(tinymce.isIE){dom.bind(t.getDoc(),"controlselect",function(e){var re=t.resizeInfo,cb;e=e.target;if(e.nodeName!=="IMG"){return}if(re){dom.unbind(re.node,re.ev,re.cb)}if(!dom.hasClass(e,"mceItemNoResize")){ev="resizeend";cb=dom.bind(e,ev,function(e){var v;e=e.target;if(v=dom.getStyle(e,"width")){dom.setAttrib(e,"width",v.replace(/[^0-9%]+/g,""));dom.setStyle(e,"width","")}if(v=dom.getStyle(e,"height")){dom.setAttrib(e,"height",v.replace(/[^0-9%]+/g,""));dom.setStyle(e,"height","")}})}else{ev="resizestart";cb=dom.bind(e,"resizestart",Event.cancel,Event)}re=t.resizeInfo={node:e,ev:ev,cb:cb}})}if(tinymce.isOpera){t.onClick.add(function(ed,e){Event.prevent(e)})}if(s.custom_undo_redo){function addUndo(){t.undoManager.typing=false;t.undoManager.add()}dom.bind(t.getDoc(),"focusout",function(e){if(!t.removed&&t.undoManager.typing){addUndo()}});t.dom.bind(t.dom.getRoot(),"dragend",function(e){addUndo()});t.onKeyUp.add(function(ed,e){var keyCode=e.keyCode;if((keyCode>=33&&keyCode<=36)||(keyCode>=37&&keyCode<=40)||keyCode==13||keyCode==45||e.ctrlKey){addUndo()}});t.onKeyDown.add(function(ed,e){var keyCode=e.keyCode,sel;if(keyCode==8){sel=t.getDoc().selection;if(sel&&sel.createRange&&sel.createRange().item){t.undoManager.beforeChange();ed.dom.remove(sel.createRange().item(0));addUndo();return Event.cancel(e)}}if((keyCode>=33&&keyCode<=36)||(keyCode>=37&&keyCode<=40)||keyCode==13||keyCode==45){if(tinymce.isIE&&keyCode==13){t.undoManager.beforeChange()}if(t.undoManager.typing){addUndo()}return}if((keyCode<16||keyCode>20)&&keyCode!=224&&keyCode!=91&&!t.undoManager.typing){t.undoManager.beforeChange();t.undoManager.typing=true;t.undoManager.add()}});t.onMouseDown.add(function(){if(t.undoManager.typing){addUndo()}})}if(tinymce.isWebKit){dom.bind(t.getDoc(),"selectionchange",function(){if(t.selectionTimer){clearTimeout(t.selectionTimer);t.selectionTimer=0}t.selectionTimer=window.setTimeout(function(){t.nodeChanged()},50)})}if(tinymce.isGecko){function getAttributeApplyFunction(){var template=t.dom.getAttribs(t.selection.getStart().cloneNode(false));return function(){var target=t.selection.getStart();if(target!==t.getBody()){t.dom.removeAllAttribs(target);each(template,function(attr){target.setAttributeNode(attr.cloneNode(true))})}}}function isSelectionAcrossElements(){var s=t.selection;return !s.isCollapsed()&&s.getStart()!=s.getEnd()}t.onKeyPress.add(function(ed,e){var applyAttributes;if((e.keyCode==8||e.keyCode==46)&&isSelectionAcrossElements()){applyAttributes=getAttributeApplyFunction();t.getDoc().execCommand("delete",false,null);applyAttributes();return Event.cancel(e)}});t.dom.bind(t.getDoc(),"cut",function(e){var applyAttributes;if(isSelectionAcrossElements()){applyAttributes=getAttributeApplyFunction();t.onKeyUp.addToTop(Event.cancel,Event);setTimeout(function(){applyAttributes();t.onKeyUp.remove(Event.cancel,Event)},0)}})}},_refreshContentEditable:function(){var self=this,body,parent;if(self._isHidden()){body=self.getBody();parent=body.parentNode;parent.removeChild(body);parent.appendChild(body);body.focus()}},_isHidden:function(){var s;if(!isGecko){return 0}s=this.selection.getSel();return(!s||!s.rangeCount||s.rangeCount==0)}})})(tinymce);(function(tinymce){var each=tinymce.each,undefined,TRUE=true,FALSE=false;tinymce.EditorCommands=function(editor){var dom=editor.dom,selection=editor.selection,commands={state:{},exec:{},value:{}},settings=editor.settings,formatter=editor.formatter,bookmark;function execCommand(command,ui,value){var func;command=command.toLowerCase();if(func=commands.exec[command]){func(command,ui,value);return TRUE}return FALSE}function queryCommandState(command){var func;command=command.toLowerCase();if(func=commands.state[command]){return func(command)}return -1}function queryCommandValue(command){var func;command=command.toLowerCase();if(func=commands.value[command]){return func(command)}return FALSE}function addCommands(command_list,type){type=type||"exec";each(command_list,function(callback,command){each(command.toLowerCase().split(","),function(command){commands[type][command]=callback})})}tinymce.extend(this,{execCommand:execCommand,queryCommandState:queryCommandState,queryCommandValue:queryCommandValue,addCommands:addCommands});function execNativeCommand(command,ui,value){if(ui===undefined){ui=FALSE}if(value===undefined){value=null}return editor.getDoc().execCommand(command,ui,value)}function isFormatMatch(name){return formatter.match(name)}function toggleFormat(name,value){formatter.toggle(name,value?{value:value}:undefined)}function storeSelection(type){bookmark=selection.getBookmark(type)}function restoreSelection(){selection.moveToBookmark(bookmark)}addCommands({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){editor.undoManager.add()},"Cut,Copy,Paste":function(command){var doc=editor.getDoc(),failed;try{execNativeCommand(command)}catch(ex){failed=TRUE}if(failed||!doc.queryCommandSupported(command)){if(tinymce.isGecko){editor.windowManager.confirm(editor.getLang("clipboard_msg"),function(state){if(state){open("http://www.mozilla.org/editor/midasdemo/securityprefs.html","_blank")}})}else{editor.windowManager.alert(editor.getLang("clipboard_no_support"))}}},unlink:function(command){if(selection.isCollapsed()){selection.select(selection.getNode())}execNativeCommand(command);selection.collapse(FALSE)},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(command){var align=command.substring(7);each("left,center,right,full".split(","),function(name){if(align!=name){formatter.remove("align"+name)}});toggleFormat("align"+align);execCommand("mceRepaint")},"InsertUnorderedList,InsertOrderedList":function(command){var listElm,listParent;execNativeCommand(command);listElm=dom.getParent(selection.getNode(),"ol,ul");if(listElm){listParent=listElm.parentNode;if(/^(H[1-6]|P|ADDRESS|PRE)$/.test(listParent.nodeName)){storeSelection();dom.split(listParent,listElm);restoreSelection()}}},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(command){toggleFormat(command)},"ForeColor,HiliteColor,FontName":function(command,ui,value){toggleFormat(command,value)},FontSize:function(command,ui,value){var fontClasses,fontSizes;if(value>=1&&value<=7){fontSizes=tinymce.explode(settings.font_size_style_values);fontClasses=tinymce.explode(settings.font_size_classes);if(fontClasses){value=fontClasses[value-1]||value}else{value=fontSizes[value-1]||value}}toggleFormat(command,value)},RemoveFormat:function(command){formatter.remove(command)},mceBlockQuote:function(command){toggleFormat("blockquote")},FormatBlock:function(command,ui,value){return toggleFormat(value||"p")},mceCleanup:function(){var bookmark=selection.getBookmark();editor.setContent(editor.getContent({cleanup:TRUE}),{cleanup:TRUE});selection.moveToBookmark(bookmark)},mceRemoveNode:function(command,ui,value){var node=value||selection.getNode();if(node!=editor.getBody()){storeSelection();editor.dom.remove(node,TRUE);restoreSelection()}},mceSelectNodeDepth:function(command,ui,value){var counter=0;dom.getParent(selection.getNode(),function(node){if(node.nodeType==1&&counter++==value){selection.select(node);return FALSE}},editor.getBody())},mceSelectNode:function(command,ui,value){selection.select(value)},mceInsertContent:function(command,ui,value){var parser,serializer,parentNode,rootNode,fragment,args,marker,nodeRect,viewPortRect,rng,node,node2,bookmarkHtml,viewportBodyElement;parser=editor.parser;serializer=new tinymce.html.Serializer({},editor.schema);bookmarkHtml='\uFEFF';args={content:value,format:"html"};selection.onBeforeSetContent.dispatch(selection,args);value=args.content;if(value.indexOf("{$caret}")==-1){value+="{$caret}"}value=value.replace(/\{\$caret\}/,bookmarkHtml);if(!selection.isCollapsed()){editor.getDoc().execCommand("Delete",false,null)}parentNode=selection.getNode();args={context:parentNode.nodeName.toLowerCase()};fragment=parser.parse(value,args);node=fragment.lastChild;if(node.attr("id")=="mce_marker"){marker=node;for(node=node.prev;node;node=node.walk(true)){if(node.type==3||!dom.isBlock(node.name)){node.parent.insert(marker,node,node.name==="br");break}}}if(!args.invalid){value=serializer.serialize(fragment);node=parentNode.firstChild;node2=parentNode.lastChild;if(!node||(node===node2&&node.nodeName==="BR")){dom.setHTML(parentNode,value)}else{selection.setContent(value)}}else{selection.setContent(bookmarkHtml);parentNode=editor.selection.getNode();rootNode=editor.getBody();if(parentNode.nodeType==9){parentNode=node=rootNode}else{node=parentNode}while(node!==rootNode){parentNode=node;node=node.parentNode}value=parentNode==rootNode?rootNode.innerHTML:dom.getOuterHTML(parentNode);value=serializer.serialize(parser.parse(value.replace(//i,function(){return serializer.serialize(fragment)})));if(parentNode==rootNode){dom.setHTML(rootNode,value)}else{dom.setOuterHTML(parentNode,value)}}marker=dom.get("mce_marker");nodeRect=dom.getRect(marker);viewPortRect=dom.getViewPort(editor.getWin());if((nodeRect.y+nodeRect.h>viewPortRect.y+viewPortRect.h||nodeRect.yviewPortRect.x+viewPortRect.w||nodeRect.x")},mceToggleVisualAid:function(){editor.hasVisual=!editor.hasVisual;editor.addVisual()},mceReplaceContent:function(command,ui,value){editor.execCommand("mceInsertContent",false,value.replace(/\{\$selection\}/g,selection.getContent({format:"text"})))},mceInsertLink:function(command,ui,value){var anchor;if(typeof(value)=="string"){value={href:value}}anchor=dom.getParent(selection.getNode(),"a");value.href=value.href.replace(" ","%20");if(!anchor||!value.href){formatter.remove("link")}if(value.href){formatter.apply("link",value,anchor)}},selectAll:function(){var root=dom.getRoot(),rng=dom.createRng();rng.setStart(root,0);rng.setEnd(root,root.childNodes.length);editor.selection.setRng(rng)}});addCommands({"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(command){return isFormatMatch("align"+command.substring(7))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(command){return isFormatMatch(command)},mceBlockQuote:function(){return isFormatMatch("blockquote")},Outdent:function(){var node;if(settings.inline_styles){if((node=dom.getParent(selection.getStart(),dom.isBlock))&&parseInt(node.style.paddingLeft)>0){return TRUE}if((node=dom.getParent(selection.getEnd(),dom.isBlock))&&parseInt(node.style.paddingLeft)>0){return TRUE}}return queryCommandState("InsertUnorderedList")||queryCommandState("InsertOrderedList")||(!settings.inline_styles&&!!dom.getParent(selection.getNode(),"BLOCKQUOTE"))},"InsertUnorderedList,InsertOrderedList":function(command){return dom.getParent(selection.getNode(),command=="insertunorderedlist"?"UL":"OL")}},"state");addCommands({"FontSize,FontName":function(command){var value=0,parent;if(parent=dom.getParent(selection.getNode(),"span")){if(command=="fontsize"){value=parent.style.fontSize}else{value=parent.style.fontFamily.replace(/, /g,",").replace(/[\'\"]/g,"").toLowerCase()}}return value}},"value");if(settings.custom_undo_redo){addCommands({Undo:function(){editor.undoManager.undo()},Redo:function(){editor.undoManager.redo()}})}}})(tinymce);(function(tinymce){var Dispatcher=tinymce.util.Dispatcher;tinymce.UndoManager=function(editor){var self,index=0,data=[],beforeBookmark;function getContent(){return tinymce.trim(editor.getContent({format:"raw",no_events:1}))}return self={typing:false,onAdd:new Dispatcher(self),onUndo:new Dispatcher(self),onRedo:new Dispatcher(self),beforeChange:function(){beforeBookmark=editor.selection.getBookmark(2,true)},add:function(level){var i,settings=editor.settings,lastLevel;level=level||{};level.content=getContent();lastLevel=data[index];if(lastLevel&&lastLevel.content==level.content){return null}if(data[index]){data[index].beforeBookmark=beforeBookmark}if(settings.custom_undo_redo_levels){if(data.length>settings.custom_undo_redo_levels){for(i=0;i0){level=data[--index];editor.setContent(level.content,{format:"raw"});editor.selection.moveToBookmark(level.beforeBookmark);self.onUndo.dispatch(self,level)}return level},redo:function(){var level;if(index0||this.typing},hasRedo:function(){return index');dom.replace(block,li);selection.select(block,1)}return FALSE}return TRUE}tinymce.create("tinymce.ForceBlocks",{ForceBlocks:function(ed){var t=this,s=ed.settings,elm;t.editor=ed;t.dom=ed.dom;elm=(s.forced_root_block||"p").toLowerCase();s.element=elm.toUpperCase();ed.onPreInit.add(t.setup,t)},setup:function(){var t=this,ed=t.editor,s=ed.settings,dom=ed.dom,selection=ed.selection,blockElements=ed.schema.getBlockElements();if(s.forced_root_block){function addRootBlocks(){var node=selection.getStart(),rootNode=ed.getBody(),rng,startContainer,startOffset,endContainer,endOffset,rootBlockNode,tempNode,offset=-16777215;if(!node||node.nodeType!==1){return}while(node!=rootNode){if(blockElements[node.nodeName]){return}node=node.parentNode}rng=selection.getRng();if(rng.setStart){startContainer=rng.startContainer;startOffset=rng.startOffset;endContainer=rng.endContainer;endOffset=rng.endOffset}else{if(rng.item){rng=ed.getDoc().body.createTextRange();rng.moveToElementText(rng.item(0))}tmpRng=rng.duplicate();tmpRng.collapse(true);startOffset=tmpRng.move("character",offset)*-1;if(!tmpRng.collapsed){tmpRng=rng.duplicate();tmpRng.collapse(false);endOffset=(tmpRng.move("character",offset)*-1)-startOffset}}for(node=rootNode.firstChild;node;node){if(node.nodeType===3||(node.nodeType==1&&!blockElements[node.nodeName])){if(!rootBlockNode){rootBlockNode=dom.create(s.forced_root_block);node.parentNode.insertBefore(rootBlockNode,node)}tempNode=node;node=node.nextSibling;rootBlockNode.appendChild(tempNode)}else{rootBlockNode=null;node=node.nextSibling}}if(rng.setStart){rng.setStart(startContainer,startOffset);rng.setEnd(endContainer,endOffset);selection.setRng(rng)}else{try{rng=ed.getDoc().body.createTextRange();rng.moveToElementText(rootNode);rng.collapse(true);rng.moveStart("character",startOffset);if(endOffset>0){rng.moveEnd("character",endOffset)}rng.select()}catch(ex){}}ed.nodeChanged()}ed.onKeyUp.add(addRootBlocks);ed.onClick.add(addRootBlocks)}if(s.force_br_newlines){if(isIE){ed.onKeyPress.add(function(ed,e){var n;if(e.keyCode==13&&selection.getNode().nodeName!="LI"){selection.setContent('
                                            ',{format:"raw"});n=dom.get("__");n.removeAttribute("id");selection.select(n);selection.collapse();return Event.cancel(e)}})}}if(s.force_p_newlines){if(!isIE){ed.onKeyPress.add(function(ed,e){if(e.keyCode==13&&!e.shiftKey&&!t.insertPara(e)){Event.cancel(e)}})}else{tinymce.addUnload(function(){t._previousFormats=0});ed.onKeyPress.add(function(ed,e){t._previousFormats=0;if(e.keyCode==13&&!e.shiftKey&&ed.selection.isCollapsed()&&s.keep_styles){t._previousFormats=cloneFormats(ed.selection.getStart())}});ed.onKeyUp.add(function(ed,e){if(e.keyCode==13&&!e.shiftKey){var parent=ed.selection.getStart(),fmt=t._previousFormats;if(!parent.hasChildNodes()&&fmt){parent=dom.getParent(parent,dom.isBlock);if(parent&&parent.nodeName!="LI"){parent.innerHTML="";if(t._previousFormats){parent.appendChild(fmt.wrapper);fmt.inner.innerHTML="\uFEFF"}else{parent.innerHTML="\uFEFF"}selection.select(parent,1);selection.collapse(true);ed.getDoc().execCommand("Delete",false,null);t._previousFormats=0}}}})}if(isGecko){ed.onKeyDown.add(function(ed,e){if((e.keyCode==8||e.keyCode==46)&&!e.shiftKey){t.backspaceDelete(e,e.keyCode==8)}})}}if(tinymce.isWebKit){function insertBr(ed){var rng=selection.getRng(),br,div=dom.create("div",null," "),divYPos,vpHeight=dom.getViewPort(ed.getWin()).h;rng.insertNode(br=dom.create("br"));rng.setStartAfter(br);rng.setEndAfter(br);selection.setRng(rng);if(selection.getSel().focusNode==br.previousSibling){selection.select(dom.insertAfter(dom.doc.createTextNode("\u00a0"),br));selection.collapse(TRUE)}dom.insertAfter(div,br);divYPos=dom.getPos(div).y;dom.remove(div);if(divYPos>vpHeight){ed.getWin().scrollTo(0,divYPos)}}ed.onKeyPress.add(function(ed,e){if(e.keyCode==13&&(e.shiftKey||(s.force_br_newlines&&!dom.getParent(selection.getNode(),"h1,h2,h3,h4,h5,h6,ol,ul")))){insertBr(ed);Event.cancel(e)}})}if(isIE){if(s.element!="P"){ed.onKeyPress.add(function(ed,e){t.lastElm=selection.getNode().nodeName});ed.onKeyUp.add(function(ed,e){var bl,n=selection.getNode(),b=ed.getBody();if(b.childNodes.length===1&&n.nodeName=="P"){n=dom.rename(n,s.element);selection.select(n);selection.collapse();ed.nodeChanged()}else{if(e.keyCode==13&&!e.shiftKey&&t.lastElm!="P"){bl=dom.getParent(n,"p");if(bl){dom.rename(bl,s.element);ed.nodeChanged()}}}})}}},getParentBlock:function(n){var d=this.dom;return d.getParent(n,d.isBlock)},insertPara:function(e){var t=this,ed=t.editor,dom=ed.dom,d=ed.getDoc(),se=ed.settings,s=ed.selection.getSel(),r=s.getRangeAt(0),b=d.body;var rb,ra,dir,sn,so,en,eo,sb,eb,bn,bef,aft,sc,ec,n,vp=dom.getViewPort(ed.getWin()),y,ch,car;ed.undoManager.beforeChange();rb=d.createRange();rb.setStart(s.anchorNode,s.anchorOffset);rb.collapse(TRUE);ra=d.createRange();ra.setStart(s.focusNode,s.focusOffset);ra.collapse(TRUE);dir=rb.compareBoundaryPoints(rb.START_TO_END,ra)<0;sn=dir?s.anchorNode:s.focusNode;so=dir?s.anchorOffset:s.focusOffset;en=dir?s.focusNode:s.anchorNode;eo=dir?s.focusOffset:s.anchorOffset;if(sn===en&&/^(TD|TH)$/.test(sn.nodeName)){if(sn.firstChild.nodeName=="BR"){dom.remove(sn.firstChild)}if(sn.childNodes.length==0){ed.dom.add(sn,se.element,null,"
                                            ");aft=ed.dom.add(sn,se.element,null,"
                                            ")}else{n=sn.innerHTML;sn.innerHTML="";ed.dom.add(sn,se.element,null,n);aft=ed.dom.add(sn,se.element,null,"
                                            ")}r=d.createRange();r.selectNodeContents(aft);r.collapse(1);ed.selection.setRng(r);return FALSE}if(sn==b&&en==b&&b.firstChild&&ed.dom.isBlock(b.firstChild)){sn=en=sn.firstChild;so=eo=0;rb=d.createRange();rb.setStart(sn,0);ra=d.createRange();ra.setStart(en,0)}if(!d.body.hasChildNodes()){d.body.appendChild(dom.create("br"))}sn=sn.nodeName=="HTML"?d.body:sn;sn=sn.nodeName=="BODY"?sn.firstChild:sn;en=en.nodeName=="HTML"?d.body:en;en=en.nodeName=="BODY"?en.firstChild:en;sb=t.getParentBlock(sn);eb=t.getParentBlock(en);bn=sb?sb.nodeName:se.element;if(n=t.dom.getParent(sb,"li,pre")){if(n.nodeName=="LI"){return splitList(ed.selection,t.dom,n)}return TRUE}if(sb&&(sb.nodeName=="CAPTION"||/absolute|relative|fixed/gi.test(dom.getStyle(sb,"position",1)))){bn=se.element;sb=null}if(eb&&(eb.nodeName=="CAPTION"||/absolute|relative|fixed/gi.test(dom.getStyle(sb,"position",1)))){bn=se.element;eb=null}if(/(TD|TABLE|TH|CAPTION)/.test(bn)||(sb&&bn=="DIV"&&/left|right/gi.test(dom.getStyle(sb,"float",1)))){bn=se.element;sb=eb=null}bef=(sb&&sb.nodeName==bn)?sb.cloneNode(0):ed.dom.create(bn);aft=(eb&&eb.nodeName==bn)?eb.cloneNode(0):ed.dom.create(bn);aft.removeAttribute("id");if(/^(H[1-6])$/.test(bn)&&isAtEnd(r,sb)){aft=ed.dom.create(se.element)}n=sc=sn;do{if(n==b||n.nodeType==9||t.dom.isBlock(n)||/(TD|TABLE|TH|CAPTION)/.test(n.nodeName)){break}sc=n}while((n=n.previousSibling?n.previousSibling:n.parentNode));n=ec=en;do{if(n==b||n.nodeType==9||t.dom.isBlock(n)||/(TD|TABLE|TH|CAPTION)/.test(n.nodeName)){break}ec=n}while((n=n.nextSibling?n.nextSibling:n.parentNode));if(sc.nodeName==bn){rb.setStart(sc,0)}else{rb.setStartBefore(sc)}rb.setEnd(sn,so);bef.appendChild(rb.cloneContents()||d.createTextNode(""));try{ra.setEndAfter(ec)}catch(ex){}ra.setStart(en,eo);aft.appendChild(ra.cloneContents()||d.createTextNode(""));r=d.createRange();if(!sc.previousSibling&&sc.parentNode.nodeName==bn){r.setStartBefore(sc.parentNode)}else{if(rb.startContainer.nodeName==bn&&rb.startOffset==0){r.setStartBefore(rb.startContainer)}else{r.setStart(rb.startContainer,rb.startOffset)}}if(!ec.nextSibling&&ec.parentNode.nodeName==bn){r.setEndAfter(ec.parentNode)}else{r.setEnd(ra.endContainer,ra.endOffset)}r.deleteContents();if(isOpera){ed.getWin().scrollTo(0,vp.y)}if(bef.firstChild&&bef.firstChild.nodeName==bn){bef.innerHTML=bef.firstChild.innerHTML}if(aft.firstChild&&aft.firstChild.nodeName==bn){aft.innerHTML=aft.firstChild.innerHTML}function appendStyles(e,en){var nl=[],nn,n,i;e.innerHTML="";if(se.keep_styles){n=en;do{if(/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(n.nodeName)){nn=n.cloneNode(FALSE);dom.setAttrib(nn,"id","");nl.push(nn)}}while(n=n.parentNode)}if(nl.length>0){for(i=nl.length-1,nn=e;i>=0;i--){nn=nn.appendChild(nl[i])}nl[0].innerHTML=isOpera?"\u00a0":"
                                            ";return nl[0]}else{e.innerHTML=isOpera?"\u00a0":"
                                            "}}if(dom.isEmpty(bef)){appendStyles(bef,sn)}if(dom.isEmpty(aft)){car=appendStyles(aft,en)}if(isOpera&&parseFloat(opera.version())<9.5){r.insertNode(bef);r.insertNode(aft)}else{r.insertNode(aft);r.insertNode(bef)}aft.normalize();bef.normalize();ed.selection.select(aft,true);ed.selection.collapse(true);y=ed.dom.getPos(aft).y;if(yvp.y+vp.h){ed.getWin().scrollTo(0,y1||node==start){return node}}}var rng=ed.selection.getRng();var start=rng.startContainer;var end=rng.endContainer;if(start!=end&&rng.endOffset==0){var newEnd=findSelectionEnd(start,end);var endOffset=newEnd.nodeType==3?newEnd.length:newEnd.childNodes.length;rng.setEnd(newEnd,endOffset)}return rng}function applyStyleToList(node,bookmark,wrapElm,newWrappers,process){var nodes=[],listIndex=-1,list,startIndex=-1,endIndex=-1,currentWrapElm;each(node.childNodes,function(n,index){if(n.nodeName==="UL"||n.nodeName==="OL"){listIndex=index;list=n;return false}});each(node.childNodes,function(n,index){if(n.nodeName==="SPAN"&&dom.getAttrib(n,"data-mce-type")=="bookmark"){if(n.id==bookmark.id+"_start"){startIndex=index}else{if(n.id==bookmark.id+"_end"){endIndex=index}}}});if(listIndex<=0||(startIndexlistIndex)){each(tinymce.grep(node.childNodes),process);return 0}else{currentWrapElm=wrapElm.cloneNode(FALSE);each(tinymce.grep(node.childNodes),function(n,index){if((startIndexlistIndex&&index>listIndex)){nodes.push(n);n.parentNode.removeChild(n)}});if(startIndexlistIndex){node.insertBefore(currentWrapElm,list.nextSibling)}}newWrappers.push(currentWrapElm);each(nodes,function(node){currentWrapElm.appendChild(node)});return currentWrapElm}}function applyRngStyle(rng,bookmark){var newWrappers=[],wrapName,wrapElm;wrapName=format.inline||format.block;wrapElm=dom.create(wrapName);setElementFormat(wrapElm);rangeUtils.walk(rng,function(nodes){var currentWrapElm;function process(node){var nodeName=node.nodeName.toLowerCase(),parentName=node.parentNode.nodeName.toLowerCase(),found;if(isEq(nodeName,"br")){currentWrapElm=0;if(format.block){dom.remove(node)}return}if(format.wrapper&&matchNode(node,name,vars)){currentWrapElm=0;return}if(format.block&&!format.wrapper&&isTextBlock(nodeName)){node=dom.rename(node,wrapName);setElementFormat(node);newWrappers.push(node);currentWrapElm=0;return}if(format.selector){each(formatList,function(format){if("collapsed" in format&&format.collapsed!==isCollapsed){return}if(dom.is(node,format.selector)&&!isCaretNode(node)){setElementFormat(node,format);found=true}});if(!format.inline||found){currentWrapElm=0;return}}if(isValid(wrapName,nodeName)&&isValid(parentName,wrapName)&&!(node.nodeType===3&&node.nodeValue.length===1&&node.nodeValue.charCodeAt(0)===65279)){if(!currentWrapElm){currentWrapElm=wrapElm.cloneNode(FALSE);node.parentNode.insertBefore(currentWrapElm,node);newWrappers.push(currentWrapElm)}currentWrapElm.appendChild(node)}else{if(nodeName=="li"&&bookmark){currentWrapElm=applyStyleToList(node,bookmark,wrapElm,newWrappers,process)}else{currentWrapElm=0;each(tinymce.grep(node.childNodes),process);currentWrapElm=0}}}each(nodes,process)});if(format.wrap_links===false){each(newWrappers,function(node){function process(node){var i,currentWrapElm,children;if(node.nodeName==="A"){currentWrapElm=wrapElm.cloneNode(FALSE);newWrappers.push(currentWrapElm);children=tinymce.grep(node.childNodes);for(i=0;i1||!isBlock(node))&&childCount===0){dom.remove(node,1);return}if(format.inline||format.wrapper){if(!format.exact&&childCount===1){node=mergeStyles(node)}each(formatList,function(format){each(dom.select(format.inline,node),function(child){var parent;if(format.wrap_links===false){parent=child.parentNode;do{if(parent.nodeName==="A"){return}}while(parent=parent.parentNode)}removeFormat(format,vars,child,format.exact?child:null)})});if(matchNode(node.parentNode,name,vars)){dom.remove(node,1);node=0;return TRUE}if(format.merge_with_parents){dom.getParent(node.parentNode,function(parent){if(matchNode(parent,name,vars)){dom.remove(node,1);node=0;return TRUE}})}if(node&&format.merge_siblings!==false){node=mergeSiblings(getNonWhiteSpaceSibling(node),node);node=mergeSiblings(node,getNonWhiteSpaceSibling(node,TRUE))}}})}if(format){if(node){rng=dom.createRng();rng.setStartBefore(node);rng.setEndAfter(node);applyRngStyle(expandRng(rng,formatList))}else{if(!isCollapsed||!format.inline||dom.select("td.mceSelected,th.mceSelected").length){var curSelNode=ed.selection.getNode();ed.selection.setRng(adjustSelectionToVisibleSelection());bookmark=selection.getBookmark();applyRngStyle(expandRng(selection.getRng(TRUE),formatList),bookmark);if(format.styles&&(format.styles.color||format.styles.textDecoration)){tinymce.walk(curSelNode,processUnderlineAndColor,"childNodes");processUnderlineAndColor(curSelNode)}selection.moveToBookmark(bookmark);selection.setRng(moveStart(selection.getRng(TRUE)));ed.nodeChanged()}else{performCaretAction("apply",name,vars)}}}}function remove(name,vars,node){var formatList=get(name),format=formatList[0],bookmark,i,rng;function moveStart(rng){var container=rng.startContainer,offset=rng.startOffset,walker,node,nodes,tmpNode;if(container.nodeType==3&&offset>=container.nodeValue.length-1){container=container.parentNode;offset=nodeIndex(container)+1}if(container.nodeType==1){nodes=container.childNodes;container=nodes[Math.min(offset,nodes.length-1)];walker=new TreeWalker(container);if(offset>nodes.length-1){walker.next()}for(node=walker.current();node;node=walker.next()){if(node.nodeType==3&&!isWhiteSpaceNode(node)){tmpNode=dom.create("a",null,INVISIBLE_CHAR);node.parentNode.insertBefore(tmpNode,node);rng.setStart(node,0);selection.setRng(rng);dom.remove(tmpNode);return}}}}function process(node){var children,i,l;children=tinymce.grep(node.childNodes);for(i=0,l=formatList.length;i=0;i--){if(pendingFormats.apply[i].name==name){return true}}for(i=pendingFormats.remove.length-1;i>=0;i--){if(pendingFormats.remove[i].name==name){return false}}return matchParents(selection.getNode())}node=selection.getNode();if(matchParents(node)){return TRUE}startNode=selection.getStart();if(startNode!=node){if(matchParents(startNode)){return TRUE}}return FALSE}function matchAll(names,vars){var startElement,matchedFormatNames=[],checkedMap={},i,ni,name;if(selection.isCollapsed()){for(ni=0;ni=0;i--){name=names[ni];if(pendingFormats.remove[i].name==name){checkedMap[name]=true;break}}}for(i=pendingFormats.apply.length-1;i>=0;i--){for(ni=0;ni=0;x--){selector=formatList[x].selector;if(!selector){return TRUE}for(i=parents.length-1;i>=0;i--){if(dom.is(parents[i],selector)){return TRUE}}}}return FALSE}tinymce.extend(this,{get:get,register:register,apply:apply,remove:remove,toggle:toggle,match:match,matchAll:matchAll,matchNode:matchNode,canApply:canApply});function matchName(node,format){if(isEq(node,format.inline)){return TRUE}if(isEq(node,format.block)){return TRUE}if(format.selector){return dom.is(node,format.selector)}}function isEq(str1,str2){str1=str1||"";str2=str2||"";str1=""+(str1.nodeName||str1);str2=""+(str2.nodeName||str2);return str1.toLowerCase()==str2.toLowerCase()}function getStyle(node,name){var styleVal=dom.getStyle(node,name);if(name=="color"||name=="backgroundColor"){styleVal=dom.toHex(styleVal)}if(name=="fontWeight"&&styleVal==700){styleVal="bold"}return""+styleVal}function replaceVars(value,vars){if(typeof(value)!="string"){value=value(vars)}else{if(vars){value=value.replace(/%(\w+)/g,function(str,name){return vars[name]||str})}}return value}function isWhiteSpaceNode(node){return node&&node.nodeType===3&&/^([\s\r\n]+|)$/.test(node.nodeValue)}function wrap(node,name,attrs){var wrapper=dom.create(name,attrs);node.parentNode.insertBefore(wrapper,node);wrapper.appendChild(node);return wrapper}function expandRng(rng,format,remove){var startContainer=rng.startContainer,startOffset=rng.startOffset,endContainer=rng.endContainer,endOffset=rng.endOffset,sibling,lastIdx,leaf;function findParentContainer(container,child_name,sibling_name,root){var parent,child;root=root||dom.getRoot();for(;;){parent=container.parentNode;if(parent==root||(!format[0].block_expand&&isBlock(parent))){return container}for(sibling=parent[child_name];sibling&&sibling!=container;sibling=sibling[sibling_name]){if(sibling.nodeType==1&&!isBookmarkNode(sibling)){return container}if(sibling.nodeType==3&&!isWhiteSpaceNode(sibling)){return container}}container=container.parentNode}return container}function findLeaf(node,offset){if(offset===undefined){offset=node.nodeType===3?node.length:node.childNodes.length}while(node&&node.hasChildNodes()){node=node.childNodes[offset];if(node){offset=node.nodeType===3?node.length:node.childNodes.length}}return{node:node,offset:offset}}if(startContainer.nodeType==1&&startContainer.hasChildNodes()){lastIdx=startContainer.childNodes.length-1;startContainer=startContainer.childNodes[startOffset>lastIdx?lastIdx:startOffset];if(startContainer.nodeType==3){startOffset=0}}if(endContainer.nodeType==1&&endContainer.hasChildNodes()){lastIdx=endContainer.childNodes.length-1;endContainer=endContainer.childNodes[endOffset>lastIdx?lastIdx:endOffset-1];if(endContainer.nodeType==3){endOffset=endContainer.nodeValue.length}}if(isBookmarkNode(startContainer.parentNode)){startContainer=startContainer.parentNode}if(isBookmarkNode(startContainer)){startContainer=startContainer.nextSibling||startContainer}if(isBookmarkNode(endContainer.parentNode)){endOffset=dom.nodeIndex(endContainer);endContainer=endContainer.parentNode}if(isBookmarkNode(endContainer)&&endContainer.previousSibling){endContainer=endContainer.previousSibling;endOffset=endContainer.length}if(format[0].inline){leaf=findLeaf(endContainer,endOffset);if(leaf.node){while(leaf.node&&leaf.offset===0&&leaf.node.previousSibling){leaf=findLeaf(leaf.node.previousSibling)}if(leaf.node&&leaf.offset>0&&leaf.node.nodeType===3&&leaf.node.nodeValue.charAt(leaf.offset-1)===" "){if(leaf.offset>1){endContainer=leaf.node;endContainer.splitText(leaf.offset-1)}else{if(leaf.node.previousSibling){endContainer=leaf.node.previousSibling}}}}}if(format[0].inline||format[0].block_expand){startContainer=findParentContainer(startContainer,"firstChild","nextSibling");endContainer=findParentContainer(endContainer,"lastChild","previousSibling")}if(format[0].selector&&format[0].expand!==FALSE&&!format[0].inline){function findSelectorEndPoint(container,sibling_name){var parents,i,y,curFormat;if(container.nodeType==3&&container.nodeValue.length==0&&container[sibling_name]){container=container[sibling_name]}parents=getParents(container);for(i=0;ilastIdx?lastIdx:offset]}return container}function performCaretAction(type,name,vars){var i,currentPendingFormats=pendingFormats[type],otherPendingFormats=pendingFormats[type=="apply"?"remove":"apply"];function hasPending(){return pendingFormats.apply.length||pendingFormats.remove.length}function resetPending(){pendingFormats.apply=[];pendingFormats.remove=[]}function perform(caret_node){each(pendingFormats.apply.reverse(),function(item){apply(item.name,item.vars,caret_node);if(item.name==="forecolor"&&item.vars.value){processUnderlineAndColor(caret_node.parentNode)}});each(pendingFormats.remove.reverse(),function(item){remove(item.name,item.vars,caret_node)});dom.remove(caret_node,1);resetPending()}for(i=currentPendingFormats.length-1;i>=0;i--){if(currentPendingFormats[i].name==name){return}}currentPendingFormats.push({name:name,vars:vars});for(i=otherPendingFormats.length-1;i>=0;i--){if(otherPendingFormats[i].name==name){otherPendingFormats.splice(i,1)}}if(hasPending()){ed.getDoc().execCommand("FontName",false,"mceinline");pendingFormats.lastRng=selection.getRng();each(dom.select("font,span"),function(node){var bookmark;if(isCaretNode(node)){bookmark=selection.getBookmark();perform(node);selection.moveToBookmark(bookmark);ed.nodeChanged()}});if(!pendingFormats.isListening&&hasPending()){pendingFormats.isListening=true;function performPendingFormat(node,textNode){var rng=dom.createRng();perform(node);rng.setStart(textNode,textNode.nodeValue.length);rng.setEnd(textNode,textNode.nodeValue.length);selection.setRng(rng);ed.nodeChanged()}var enterKeyPressed=false;each("onKeyDown,onKeyUp,onKeyPress,onMouseUp".split(","),function(event){ed[event].addToTop(function(ed,e){if(e.keyCode==13&&!e.shiftKey){enterKeyPressed=true;return}if(hasPending()&&!tinymce.dom.RangeUtils.compareRanges(pendingFormats.lastRng,selection.getRng())){var foundCaret=false;each(dom.select("font,span"),function(node){var textNode,rng;if(isCaretNode(node)){foundCaret=true;textNode=node.firstChild;while(textNode&&textNode.nodeType!=3){textNode=textNode.firstChild}if(textNode){performPendingFormat(node,textNode)}else{dom.remove(node)}}});if(enterKeyPressed&&!foundCaret){var node=selection.getNode();var textNode=node;while(textNode&&textNode.nodeType!=3){textNode=textNode.firstChild}if(textNode){node=textNode.parentNode;while(!isBlock(node)){node=node.parentNode}performPendingFormat(node,textNode)}}if(e.type=="keyup"||e.type=="mouseup"){resetPending();enterKeyPressed=false}}})})}}}}})(tinymce);tinymce.onAddEditor.add(function(tinymce,ed){var filters,fontSizes,dom,settings=ed.settings;if(settings.inline_styles){fontSizes=tinymce.explode(settings.font_size_style_values);function replaceWithSpan(node,styles){tinymce.each(styles,function(value,name){if(value){dom.setStyle(node,name,value)}});dom.rename(node,"span")}filters={font:function(dom,node){replaceWithSpan(node,{backgroundColor:node.style.backgroundColor,color:node.color,fontFamily:node.face,fontSize:fontSizes[parseInt(node.size)-1]})},u:function(dom,node){replaceWithSpan(node,{textDecoration:"underline"})},strike:function(dom,node){replaceWithSpan(node,{textDecoration:"line-through"})}};function convert(editor,params){dom=editor.dom;if(settings.convert_fonts_to_spans){tinymce.each(dom.select("font,u,strike",params.node),function(node){filters[node.nodeName.toLowerCase()](ed.dom,node)})}}ed.onPreProcess.add(convert);ed.onSetContent.add(convert);ed.onInit.add(function(){ed.selection.onSetContent.add(convert)})}}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/update_session.htm b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/update_session.htm new file mode 100644 index 0000000..3c42baf --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/update_session.htm @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/update_session.js b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/update_session.js new file mode 100644 index 0000000..b5327db --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/update_session.js @@ -0,0 +1,19 @@ +y5.require( + ['Cookies'], + function() { + /** + * Обновляет сессию с помощью редиректа на паспорт. + */ + function updateSession() + { + y5.Cookies.set('Cookie_check', '1', false); // для текущего домена + var loc = window.location; + var url = loc.protocol.concat('//', loc.host) + '/pass?retpath=' + encodeURIComponent(window.parent.friendsURL('update_session')); + window.location.replace(url); + } + + // обновляем сессию каждые 55 минут + var update_delta = 55*1000*60; + if (update_delta) window.setTimeout(updateSession, update_delta); + } +) diff --git a/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/userpic-next.gif b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/userpic-next.gif new file mode 100644 index 0000000..095e006 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/userpic-next.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/userpic-prev.gif b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/userpic-prev.gif new file mode 100644 index 0000000..1680c88 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/userpic-prev.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/watch.js b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/watch.js new file mode 100644 index 0000000..9b3fd50 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Обратиться к гостям — я.ру_files/watch.js @@ -0,0 +1,113 @@ +(function(f,d,ga){function E(a,b){return function(){try{return a.apply(this,arguments)}catch(c){("string"!=typeof c.message||-1==c.message.indexOf("NPObject")&&-1==c.message.indexOf("Too much time spent in unload handler"))&&qa(c,b)}}}function qa(a,b){if(0.01>Math.random()){var c=["cp: "+b,a.name+": "+a.message,"debug: "+Aa,"code: "+Ma,"stack: "+a.stack];(new Image).src="//an.yandex.ru/jserr/101500?cnt-class=100&errmsg="+encodeURIComponent(c.join("; ").replace(/\r?\n/g,"\\n"))}}function P(a,b,c){return f.setTimeout(E(a, +c||"setTimeout"),b)}function B(){for(var a={},b="hash host hostname href pathname port protocol search".split(" "),c=b.length,d=c;d--;)a[b[d]]="";try{for(var g=f.location,d=c;d--;){var h=b[d];a[h]=""+g[h]}}catch(l){H&&(a=H)}return a}function mb(a){return a?(""+a).replace(/^\s+/,"").replace(/\s+$/,""):""}function Ba(a){return-1!==(""+f.navigator.userAgent).toLowerCase().search(a)}function sa(a){try{delete f[a]}catch(b){f[a]=ga}}function ta(a){var b=d.createElement("script");b.type="text/javascript"; +b.async=!0;b.src=a;try{var c=d.getElementsByTagName("html")[0];d.getElementsByTagName("head")[0]||c.appendChild(d.createElement("head"));var f=d.getElementsByTagName("head")[0];f.insertBefore(b,f.firstChild)}catch(g){}}function ha(){if(top!=f&&parent==top&&f.postMessage&&!Ya.Metrika_visorPlayerOn){Ya.Metrika_visorPlayerOn=!0;var a=d.createElement("div");a.innerHTML=''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Поделиться настроением — я.ру

                                            Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                                            1 из 11
                                            портрет для этой записи

                                            Поделиться настроением

                                            + Предыдущие: +

                                            • В связи с закрытием данного сервиса я переехал на http://blogobomzh.blogspot.ru/. Рад был со всеми Вами общаться! Очень жаль, но Се Ля Ви, как говорят французы!
                                            • Яру убивают! Ужас, никогда не думал, что могу настолько привязаться к какому-то сервису... Передо мной разверзлась бездна! Теперь фобии развиваются...А вдруг и остальные сервисы когда-нибудь закроют... Например почту... Как дальше жить?!
                                            • Хех... вызвали на работу. Нужно было сейф открыть... Час времени потратил... Надо не забыть потребовать оплату переработки.
                                            • Ничего себе! Завтра пятница!?! 0_о К дел запланированных и половина не сделал... Время слишком быстро летит!!! Не соскучишься.
                                            • Начало рабочей недели как всегда не дает, расслабиться
                                            или посмотреть, что получится
                                             
                                            или продолжить редактирование
                                            + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_status.xml b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_status.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_status.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                              {popup_items}
                                            '].join(""),popup_item:'
                                          • {title}
                                          • ',popup_item_selected:'
                                          • {title}
                                          • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                                            ','','
                                            ','
                                            ','','','','
                                            {content}',"
                                            ","
                                            ","
                                            ","
                                            "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                              {items}
                                            ',""].join(""));a.templates.menuItem=a.template(['
                                          • ','
                                            ','{title}',"
                                            ","
                                          • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                                            ','',"
                                            ",""].join("")),itemResult:a(['
                                            ','
                                            ','
                                            ','
                                            ',"
                                            {title}",'{count}',"
                                            ","
                                            "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                                            {items}{actions}
                                            '),actionLink:a('
                                            {title}
                                            '),expired:a('
                                            {title}
                                            ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                                            ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                                             
                                            ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                                            обновление...
                                            ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                                            {(moreAsUpdate)[
                                            я в курсе
                                            ]}
                                            {(allItems)({(moreAsUpdate)()[]})}
                                            '),viewportLayout:b('
                                            {(titleButton)({titleButton})}
                                            показать ещё
                                            '),group:b('
                                            {timestamp}
                                            {items}
                                            '),item:b('
                                            {user} — {title}
                                            '),likeItem:b('
                                            {user} {appreciate} запись {title}
                                            '),recommendItem:b(''),replyItem:b('
                                            {user}{separator} {title}
                                            '),photoItem:b('
                                            {alt}
                                            '),videoItem:b('
                                            {duration}
                                            '),videoContainer:b('
                                            {items}
                                            '),albumsContainer:b('
                                            {items}
                                            '),videoCollection:a.template('
                                            {content}
                                            ',{content:""}),videoCollectionItem:b('
                                            {count} видео
                                            '),albumItem:b('
                                            {title}
                                            {count}
                                            '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                                            {title}
                                            '),wishlistItem:b('
                                            {title}
                                            {title}
                                            '),wishlistPromisedItem:b('
                                            {info}
                                            {title}
                                            отменить
                                            '),ratingInfo:b(''),onload:b('
                                             
                                            '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                                            ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                                            "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/_post-add-includes.js b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/_post-add-includes.js new file mode 100644 index 0000000..0ac80c6 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/_post-add-includes.js @@ -0,0 +1,11 @@ +(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                                            ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                                            ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);window.g_sizePicture=function(){return"normal"};Friends.ClassPictureLoader=function(){};Friends.ClassPictureLoader.prototype={className:"pictureloader-",getElement:function(a){return y5.Dom.getDescendant(this.element,"*",this.className+a)},default_enctype:"",initBase:function(a,b){this.__listeners=[];this.element=a;this.file=this.getElement("file");this.form=this.file.form;this.filename=this.getElement("filename");this.filename.value=y5.Utils.generateId();this.label=this.getElement("label")||document.createElement("label");this.__listeners.push(y5.Events.observe("y5:"+y5.Utils.getUniqueId(this.form),this.change,this.form,true,this));this.__listeners.push(y5.Events.observe("y5:load",this.clearFile,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:error",this.error,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:readyforsend",this.sendPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:send",this.showPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:disableByRename",this.disableByRename,this.form,true,this));y5.Events.create("submit",this.enableByRename,this.form,true,this);return this.form},createFromTag:function(a,b){this.initBase(a,b)},sendPictureBase:function(){this.getElement("filename").value=y5.Utils.generateId()},change:function(){this.sendPicture(this.form);if(!this.delListener){var a=this.getElement("delete");if(a){this.delListener=new y5.AEventListener("click",this.deleteImage,a,false,this)}}if(this.delListener){this.delListener.add()}},error:function(){this.deleteImage(this.filename,this.label);y5.Classes.remove(this.label,"active");y5.Classes.remove(this.label,"load");y5.Classes.add(this.label,"error");this.clearFile();if(this.delListener){this.delListener.remove()}},deleteImage:function(){this.filename.value="";y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");y5.Classes.remove(this.label,"active");y5.Classes.add(this.label,"new");try{Friends.ChangeUserpicControl.Constructor.prototype.instance.activateCurrent()}catch(a){}if(this.delListener){this.delListener.remove()}},clearFile:function(){this.filename.value="";var a=this.file.parentNode;a.innerHTML=a.innerHTML;this.file=a.firstChild},sendForm:function(action){var _this=this;y5.Events.notify("y5:disableByRename",_this.form,true,_this.element);_this.enableByRename();_this.setFormEnctype();function response(result,trace){if(!result||!y5.Strings.trim(result)){y5.Events.notify("y5:error",_this.element,true,null);return}result=eval("("+result+")");if(!result.name){y5.Events.notify("y5:error",_this.element,true,null);return}y5.Events.notify("y5:send",_this.element,true,result);_this.restoreFormEnctype()}function error(result,trace){y5.Events.notify("y5:error",_this.element,true,null);_this.restoreFormEnctype()}if($("input[name='sk']").length){var ticketInput=$(''),utInput=$('');$(this.form).append(ticketInput,utInput)}ya.controls.pictureUpload(action,this.form,{},function(_this){return function(){_this.sendFormHandler.apply(_this,arguments)}}(this),error)},sendFormHandler:function(a,b){if(!a||!a.name){y5.Events.notify("y5:error",this.element,true,null);return}y5.Events.notify("y5:send",this.element,true,a);this.restoreFormEnctype();$("input[name='ticket']",this.form).remove();$("input[name='ut']",this.form).remove()},disableByRename:function(b){if(b==this.element){return}var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(c){if(c.name.indexOf("_disabledByRename")===-1){c.name=c.name+"_disabledByRename"}})},enableByRename:function(){var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(b){if(b.name.indexOf("_disabledByRename")!==-1){b.name=b.name.replace("_disabledByRename","")}})},restoreFormEnctype:function(){if(!y5.is_ie){this.form.enctype=this.default_enctype}},setFormEnctype:function(){this.default_enctype=this.form.enctype;this.form.enctype="multipart/form-data"},dectruct:function(){var b,a;for(b=0,a=this.__listeners.length;b"+b.innerHTML+"";new y5.AEventListener("click",this.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,this);y5.Classes.replace(this.dom_status,"load","new");this.imageURL_input.value=a;y5.Events.notify("y5:load",this.element,true,c)};Friends.ClassPictureLoaderOnePhoto.prototype.showPictureByURL=function(b,d){this.modeLoading();var c=new Image(),a=this;$(c).bind("load",function(){var e=document.createElement("img");e.src=b;a.delPhoto();y5.Classes.add(a.dom_status,"new");y5.Classes.remove(a.dom_status,"error");var h=document.createElement("div");var f=document.createElement("i");f=h.appendChild(f);f.className="del";h.appendChild(e);var g=y5.$("photo-holder");g.innerHTML="
                                            "+h.innerHTML+"
                                            ";new y5.AEventListener("click",a.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,a);y5.Classes.replace(a.dom_status,"load","new");a.dom_image_link.value=d;a.imageURL_input.value=""});$(c).bind("error",function(){a.modeNormal()});c.src=b};y5.loaded("{Friends}.classes.ClassPictureLoaderOnePhoto")});y5.require(["Ajax","AjaxForm","Dom","Events","Utils","Classes","{Friends}.classes.ClassPictureLoader"],function(){Friends.PictureLoader=new Friends.ClassPictureLoader();y5.loaded("{Friends}.PictureLoader")});y5.require(["Events","Strings","Dom","Classes","{Friends}.PictureLoader"],function(){Friends.PictureLoaderPhoto=function(f,g){this.initBase(f,g);this.list=this.getPhotoList();var d=y5.Dom.getDescendants(y5.$("photo-holder"),"i","del");for(var e=0,c=d.length;ethis.last_id){this.last_id=c}}}}this.last_id+=1;return this.last_id};var b="b-input-empty",a=function(){};Friends.PictureLoaderPhoto.prototype.restore=a;Friends.PictureLoaderPhoto.prototype.normalize=function(){var c=this.form.elements,d,f={},e="";for(d=0;d0){$(this.control).find("div.b-write-submit,div.b-preview-write-submit").find("input.submit").each(function(c){var d=a.previewModeBtns[c];var b=this;if(d){$(d).removeClass("i-hidden");if(!d.onclick&&a.params.comment){$(d).unbind("click").click(function(){$(b).click()})}d.onclick=b.onclick;d.value=b.value}});if(!a.params.comment){$(this.previewModeBtns[0]).unbind("click").click(function(){$(a.control).submit()})}}if(this.previewButton){$(this.previewButton).unbind("click").click(function(){a.togglePreview()})}if(this.editButton){$(this.editButton).unbind("click").click(function(){a.toggleEdit()})}if(!this.params.comment){$(this.control).submit(function(b){a.safeSaving();b.preventDefault()})}},getPostType:function(){return this.postType.value},showMessage:function(a){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible"},togglePreview:function(){if(!this.renderPreviewBtn){return}var _this=this;$(".b-captcha").remove();if(_this.params.comment){$('[name="item_no"]',this.control).attr("name","_item_no");$('[name="access_type"]',this.control).attr("name","_access_type")}var prevewReq=new y5.Request.Form(this.url.Preview,{transport:"XML"});function _restoreInput(){if(_this.params.comment){$('[name="_item_no"]',this.control).attr("name","item_no");$('[name="_access_type"]',this.control).attr("name","access_type")}}prevewReq.onload=function(resp){_restoreInput();var response=resp.responseText;var respJSON=null;try{respJSON=y5.JSON.decode(response)}catch(e){this.onerror(e);return}if(respJSON.status&&respJSON.status=="Success"){_this.stopAjaxAnim();_this.toggleState();_this.noteCurrent=$(_this.previewContainer).find("b.b-note-attention")[0];$(_this.previewContent).html(respJSON.html);y5.Components.init(_this.previewContent);ya.helpers.smileHelper.processSmiles(_this.previewContent);$(_this.previewContent).find(".b-control-vote").each(function(i,e){ya.instances.push(new ya.controls.Vote(e))});$(_this.previewContent).yshow();if($.browser.webkit&&navigator.platform&&navigator.platform.match(/win/i)){ya.forceRedraw($(_this.previewContent)[0])}var match,scriptRe=/]*>((.|\n)+?)<\/script>/img;while((match=scriptRe.exec(response))!==null){eval(match[1])}_this.previewInProgress=false}else{this.onerror(respJSON)}};prevewReq.onerror=function(e){_restoreInput();var error_msg=_this.createErrorMessage(e&&e.reason);_this.stopAjaxAnim();$(_this.noteCurrent).html(error_msg);_this.noteCurrent.style.visibility="visible";_this.previewInProgress=false};prevewReq.onexception=prevewReq.onerror;blogCompose.sanitize();if(!this.previewInProgress){this.startAjaxAnim();prevewReq.send(_this.control);this.previewInProgress=true}},toggleEdit:function(){$(".b-captcha").remove();this.noteCurrent.style.visibility="hidden";this.noteCurrent=this.noteEdit;this.toggleState();$(this.previewContent).addClass("i-hidden");if(g_globals.current_location.page=="posts_add_wishlist"){y5.Events.notify("click",$("div.notfound span.b-inplace-action")[0],true)}if(this.textarea){this.textarea.value=this.textarea.value.replace(//ig,"\n")}},onSubmitEnabled:function(){this.renderPreviewBtn=true;$(this.previewBtnContainer).removeClass("disabled")},onSubmitDisabled:function(){this.renderPreviewBtn=false;$(this.previewBtnContainer).addClass("disabled")},toggleState:function(){$(this.formTable).toggleClass("i-hidden");$(this.previewContainer).toggleClass("i-hidden");this.noteCurrent.style.visibility="hidden"},startAjaxAnim:function(){$(this.noteCurrent).removeClass("b-note-attention").addClass("b-note-loading");this.noteCurrent.innerHTML=" ";this.noteCurrent.style.visibility="visible"},stopAjaxAnim:function(){this.noteCurrent.style.visibility="hidden";$(this.noteCurrent).removeClass("b-note-loading").addClass("b-note-attention")},createErrorMessage:function(b){var a;if(b){a=b}else{a="К сожалению, действие совершить не удалось.
                                            Попробуйте ещё раз."}return a},createCaptcha:function(a,b){return'

                                            '+this.params.dps["save-error--captcha"]+'

                                             

                                            '},validate:function(){var a="";if(g_globals.current_location.page=="posts_add_invite"){if(y5.Strings.isVoid($(this.control).find(".FieldValidator-field")[0].value)){a="email не задан."}}return a},successHandler:function(a){y5.Events.notify("Friends:formSaved",this.control);window.location.href=a.url},safeSaving:function(){if(this.savingInProcess){return}var a=this.validate();if(a.length){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible";return}var c=this;c.startAjaxAnim();var b=new y5.Request.Form(friendsURL(this.url.Posting),{method:"post",transport:"XML"});b.onload=function(g){c.stopAjaxAnim();if(window.w5GControl){window.w5GControl.clearLocalStorage()}var d="";try{d=g.json(g.responseText)}catch(f){this.onerror();return}if(d.status&&d.status==="Success"){c.successHandler(d)}else{this.onerror(d)}};b.onerror=function(d){var g=typeof d==="object"?d:{reason:false};if(d&&typeof d.responseText==="string"){try{g=y5.JSON.decode(d.responseText)}catch(j){g={reason:false}}}c.savingInProcess=false;c.stopAjaxAnim();var f=$(".b-captcha");if(g.captcha){var i=c.createCaptcha(g.captcha,g.reason);if(f.length){f.replaceWith(i)}else{$(c.noteCurrent).before(i)}}else{if(f.length){f.remove()}}if(g.dps!="post--captcha_key-NOT_EMPTY"){var h=c.createErrorMessage(g.reason);c.noteCurrent.innerHTML=h;c.noteCurrent.style.visibility="visible"}};b.onexception=function(d){this.onerror(d)};blogCompose.sanitize();if(!this.savingInProcess){this.savingInProcess=true;b.send(this.control);this.startAjaxAnim()}}};y5.require(["Dom","Events","Request.Form","URL"],function(){y5.loaded("{Friends}.PostPreviewAndSaving")});y5.require(["Dom","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(d,e){this.control=d;this.params=e||{};this.whether_loaded=false;var b=y5.Dom.getDescendantOrSelf(this.control,"code","Friends-later-ImageLoadable");var f=b.onclick()||{};this.params.src=f.src;var c=document.createElement("img");y5.Classes.add(c,"i-hidden");y5.Dom.replaceNode(b,c);this.image=c;y5.Events.observe("load",this.onLoadHandler,this.image,true,this)};a.prototype.load=function(){if(!this.whether_loaded){this.image.src=this.params.src;this.whether_loaded=true}};a.prototype.onLoadHandler=function(){y5.Classes.remove(this.image,"i-hidden")};Friends.ImageLoadable=a;y5.loaded("{Friends}.ImageLoadable")});Friends.ChooseUserpicControlCached=function(a){this.control=a;this.radios=null;this.userpics=null;this.active=0;this.chooserText=0;this.prevChooser=0;this.nextChooser=0;this.removeText=0;this.init()};Friends.ChooseUserpicControlCached.prototype.showActive=function(e,d){if(!this.userpics.length){return}var a,c,b;this.active=(this.userpics.length+this.active+d)%this.userpics.length;for(c=0,b=this.userpics.length;c'+this.source.getUserpicContent({id:e,size:"normal",src:h})+"";g.appendChild(f);this.userpics.push(f);this.tbody.appendChild(g);this.showActive(null,this.userpics.length-this.active-1);var d,a;if(this.userpics.length>1){for(d=0,a=this.userpics.length;d'+this.source.getUserpicContent({id:c,size:"normal",src:f})+"";e.appendChild(d);this.tbody.appendChild(e);e.style.display="block";d.style.display="block"};Friends.ChooseUserpicControlCached.prototype.del=function(b){var a=this.active;if(typeof(b)!=="undefined"){a=b}y5.Dom.replaceNode(this.userpics[a].control.parentNode);this.userpics.splice(a,1);this.radios.splice(a,1);this.showActive(null,(this.active==0)?0:-1);this.setChooserText();y5.Events.notify("y5:deleteUploadUserpic",Friends,true,row.getElementsByTagName("input")[0].value)};Friends.ChooseUserpicControlCached.prototype.createSelector=function(e,h,j,f){var b=document.createElement("a"),i="";var c=document.createElement("img");c.src=g_globals.img_base+"control/userpic-"+e+i+".gif";c.alt=j;c.title="";var g=(this.userpics.length<2);y5.Classes.add(b,e);b.appendChild(c);b.title=f;return b};Friends.ChooseUserpicControlCached.prototype.changeSelector=function(f,e,d,b){var a=f.firstChild;if(e){y5.Classes.add(f,"disabled");if(a.src.indexOf("-disabled")===-1){a.src=a.src.replace(/.gif/,"-disabled.gif")}a.parentNode.onclick=null;a.parentNode.onmouseover=null;a.parentNode.onmouseout=null}else{var c=a.src.indexOf("userpic-");y5.Classes.remove(f,"disabled");a.src=a.src.replace(/-disabled/,"");a.parentNode.onclick=associateEventWithObject(this,"showActive",d);a.parentNode.onmouseover=associateEventWithObject(this,"mouseover",b);a.parentNode.onmouseout=associateEventWithObject(this,"mouseout",b)}};Friends.ChooseUserpicControlCached.prototype.setChooserText=function(){if(this.userpics.length===0){this.addDefaultUserpic();y5.Classes.add(this.nextChooser,"i-hidden");y5.Classes.add(this.prevChooser,"i-hidden")}var c,a=this.userpics.length;if(a==0){c="нет картинок"}else{if(a==1){c="1 картинка"}else{c=(this.active+1)+" из "+a}}if(this.removeText){if(!a||this.radios[this.active].value==""){y5.Classes.add(this.removeText,"remove-disabled")}else{y5.Classes.remove(this.removeText,"remove-disabled")}}var b=(a<=1);this.changeSelector(this.prevChooser,b,-1,"prev");this.changeSelector(this.nextChooser,b,+1,"next");this.chooserText.innerHTML=c};Friends.ChooseUserpicControlCached.prototype.init=function(){this.tbody=y5.Dom.getDescendant(this.control,"tbody","*");if(!this.tbody){return}var g=this.tbody.getElementsByTagName("tr");var f=g.length;this.radios=new Array(f);this.userpics=new Array(f);this.source=g_source;for(var c=0;c-6){a(this.userpics,b+this.active);b--}};Friends.ChooseUserpicControlCached.prototype.destruct=function(){this.control.control=null;this.control=null};y5.require(["Dom","Events","Classes","Strings","{Friends}.ImageLoadable"],function(){y5.loaded("{Friends}.ChooseUserpicControlCached")});Friends.SubmitShortcut=function(){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.SubmitShortcut.prototype.init=function(d){this.__listeners=[];this.submit_btn=y5.Dom.getDescendant(d,"input","submit");this.submited=false;var f=this.submit_btn.form;y5.Events.observe("y5:form_destructed",b,f,true,this);this.__listeners.push(y5.Events.observe("submit",a,f,true,this));var c=this,g=function(h){if(h.keyCode=="13"&&h.ctrlKey){e.call(c)}};this.__listeners.push(y5.Events.observe("keydown",g,f,true,c));this.__listeners.push(y5.Events.observe("y5:w5g_ctrlEnter",e,Friends,true,this));this.__listeners.push(y5.Events.observe("y5:enableSubmit",function(){this.submited=false},Friends,true,this));function a(h){if(this.submited){h.preventDefault()}this.submited=true}function e(){new y5.Event("click",this.submit_btn,true);this.submit_btn.click()}function b(){var j,h;for(j=0,h=this.__listeners.length;j');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u)}}}d.style.display="none";document.body.appendChild(d);d.submit();return false},fields:["body","title","userpic","access","tags","item_time_day","item_time_month","item_time_year","item_time_minute","URL","url","uid","id","login"]};y5.require(["Dom","Events"],function(){y5.loaded("{Friends}.SaveStateForm")});y5.require([],function(){var a=function(){};a.prototype.init=function(b){this.params=b;this.next_link=b.next_link;this.prev_link=b.prev_link;this.visible_length=b.visible_length||4;y5.Events.observe("click",this.nextLink,this.next_link,true,this);y5.Events.observe("click",this.prevLink,this.prev_link,true,this);return this};a.prototype.setCollection=function(b){this.collection=b;this.left_index=0;this.setLeftmostIndex(0);return this};a.prototype.setLeftmostIndex=function(d){if(!this.collection){return false}this.collection.items.forEach(function(e){y5.Events.notify("y5:UICarousel:hide",this,true,{item:e})},this);this.left_index=(this.collection.items.length+d)%this.collection.items.length;y5.Events.notify("y5:UICarousel:set_index",this,true,{index:d});var b=function(f){var e=this.collection.items;f=(e.length+f)%e.length;var g=e[f];y5.Events.notify("y5:UICarousel:show",this,true,{item:g})},c;for(c=0;c0){this.init.apply(this,arguments)}};a.prototype.init=function(){};a.prototype.select=function(){};a.prototype.unselect=function(){};a.prototype.selectIf=function(b,c){if(c){this.select(b)}};a.prototype.unselectIf=function(b,c){if(c){this.unselect(b)}};a.prototype.add=function(c,d){var b=y5.Utils.getUniqueId(c);if(!(b in this.uids)){this.items.push(c);this.uids[b]={item:c,index:this.items.length-1,data:d};y5.Events.notify("y5:UICollection:add",this,true,{item:c});this.addEvents(c);return false}return true};a.prototype.get=function(e){var d,c;if(typeof e==="number"){d=this.items[e];if(!d){return false}c=y5.Utils.getUniqueId(d)}else{if(typeof e==="string"){c=e}else{if(typeof e==="object"){c=y5.Utils.getUniqueID(d)}}}if(!(c in this.uids)){return false}var b=this.uids[c];return b};a.prototype.remove=function(c){var b=y5.Utils.getUniqueId(c);if(b in this.uids){var d=this.uids[b];this.items.splice(d.index,1);delete this.uids[b];y5.Events.notify("y5:UICollection:remove",this,true,{item:c});return false}return true};a.prototype.addEvents=function(b){};Friends.UICollection=a;y5.loaded("{Friends}.UICollection")});y5.require(["{Friends}.UICollection"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype=new Friends.UICollection();a.prototype.init=function(b){this.items=[];this.uids={};this.selectedItem=null;this.params=b||{};return this};a.prototype.addEvents=function(b){if(!this.params.noclick){y5.Events.observe("click",function(c){this.select(b)},b,true,this)}};a.prototype.select=function(c){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];this.unselect(this.selectedItem);this.selectedItem=c;y5.Events.notify("y5:UICollection:select",this,true,{item:c,data:d.data})};a.prototype.unselect=function(c){if(c!==null){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];y5.Events.notify("y5:UICollection:unselect",this,true,{item:c,data:d.data})}};Friends.UICollectionRadio=a;y5.loaded("{Friends}.UICollectionRadio")});y5.require(["{Friends}.UICollectionRadio","{Friends}.UICarousel","Widget","Utils"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype.init=function(b,c){y5.Events.observe("y5:make",function(d){this.widget=d;this.initAsControl(d.window,this.params);if(!this.has_been_inited){this.initWidgetEvents();this.has_been_inited=true}y5.Classes.add(d.button_ok,"i-hidden")},b,true,this);y5.Events.observe("y5:show",function(d){if(typeof d.caller==="object"){this.caller=d.caller;this.showWidget(b)}},window,true,this);return this};a.prototype.initWidgetEvents=function(){y5.Events.observe("y5:ok",function(){y5.Events.notify("y5:card:ok",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:esc",function(){y5.Events.notify("y5:card:esc",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:cancel",function(){y5.Events.notify("y5:card:cancel",this.caller,true,{caller:this});return true},this.widget.element,true,this)};a.prototype.initAsControl=function(c,d){this.control=c;this.params=d;var b=y5.Dom.getDescendant(this.control,"b","ff");var e=y5.Dom.getDescendant(this.control,"b","rev");this.carousel=new Friends.UICarousel().init({next_link:b,prev_link:e});y5.Events.observe("y5:UICarousel:prev",this.carouselPrev,this.carousel,true,this);y5.Events.observe("y5:UICarousel:next",this.carouselNext,this.carousel,true,this);y5.Events.observe("y5:UICarousel:hide",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.add(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:show",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.remove(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:set_index",function(g){var h=g.index;var f=this.carousel.collection.items.length;var i=this.carousel.visible_length;var j=(i+h-f);if(h==0){y5.Classes.add(this.carousel.prev_link,"i-hidden")}else{y5.Classes.remove(this.carousel.prev_link,"i-hidden")}if(h+i>=f){y5.Classes.add(this.carousel.next_link,"i-hidden")}else{y5.Classes.remove(this.carousel.next_link,"i-hidden")}},this.carousel,true,this);this.holiday_links=new Friends.UICollectionRadio().init();y5.cssQuery("ul.b-list-links li",this.control).forEach(function(f){var h=f.onclick().holiday;var g=y5.Dom.getDescendant(this.control,"tr","holiday_".concat(h));var i=this.initCardsCollection(g);this.holiday_links.add(f,{holiday_id:h,dom_cards:g,cards_collection:i})},this);y5.Events.observe("y5:UICollection:select",this.selectHoliday,this.holiday_links,true,this);y5.Events.observe("y5:UICollection:unselect",this.unselectHoliday,this.holiday_links,true,this);this.holiday_links.select(this.holiday_links.items[0])};a.prototype.showWidget=function(b){y5.Widget.make(b,"Widget.Dialog.Standard",{title:"Вставить открытку",valign:"30%"})};a.prototype.carouselPrev=function(b){};a.prototype.carouselNext=function(b){};a.prototype.initCardsCollection=function(b){var c=new Friends.UICollectionRadio().init();y5.cssQuery("img.postcard",b).forEach(function(d){c.add(d)});y5.Events.observe("y5:UICollection:select",this.choosePostcard,c,true,this);return c};a.prototype.choosePostcard=function(b){this.selected_card=b.item.onclick();this.widget.fireOk()};a.prototype.selectHoliday=function(b){var c=b.item;y5.Classes.add(c,"active");y5.Classes.remove(b.data.dom_cards,"i-hidden");var d=b.data.cards_collection;this.carousel.setCollection(d)};a.prototype.unselectHoliday=function(b){var c=b.item;y5.Classes.remove(c,"active");y5.Classes.add(b.data.dom_cards,"i-hidden")};Friends.Postcard=a;y5.loaded("{Friends}.Postcard")});Friends.ChangeUserpicControl=function(a){if(arguments.length>0){var b=new Friends.ChangeUserpicControl();b.init.apply(this,arguments);return b}};Friends.ChangeUserpicControl.prototype.init=function(a){var b=this;this.control=a;this.current=null;this.pointer=null;this.selected_span=0;this.form=y5.Dom.getAncestorOrSelf(this.control,"form");this.submit=y5.cssQuery('input[type="submit"]',this.form)[0];y5.Events.observe("y5:choose_userpic",this.chooseUserpic,this,true,this);Friends.ChangeUserpicControl.lastCreatedInstance=this};Friends.ChangeUserpicControl.prototype.chooseUserpic=function(a){if(this.pointer!=null){this.pointer.modeUnchoosed()}this.pointer=a.userpic};y5.loaded("{Friends}.ChangeUserpicControl");y5.require(["{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(c,d){this.control=c;this.params=d;this.options=y5.cssQuery("li.answer",this.control);this.options.forEach(function(e,f){y5.cssQuery("input",e).forEach(function(g){this.disableSubmit(g)},this)},this);this.dom_options_holder=y5.Dom.getAncestor(this.options[0],"ul");this.dom_add_option=y5.cssQuery("div.add span",this.control)[0];y5.Events.observe("click",this.addOption,this.dom_add_option,true,this);this.dom_remove_option=y5.cssQuery("span.js-remove",this.control);this.dom_remove_option.forEach(function(f){b(f)})};a.prototype.disableSubmit=function(c){y5.Events.observe("keypress",function(d){var e=d.keyCode;if(e==13){d.stopPropagation();d.preventDefault()}},c,true,this)};a.prototype.addOption=function(){y5.cssQuery(".answer .js-remove",this.control).forEach(function(g){y5.Classes.add(g,"i-hidden")});var c=document.createElement("span");c.innerHTML="";c.className="remove js-remove";b(c);var d=this.options[0].cloneNode(true);var f=y5.cssQuery("li.answer input",this.control);var e=Number(f[f.length-1].id)+1;y5.cssQuery("input",d).forEach(function(g){g.id=e;g.value="";g.name="option".concat(e);this.disableSubmit(g);y5.Dom.insertAfter(c,g)},this);this.dom_options_holder.appendChild(d);this.options.push(d)};var b=function(c){y5.Events.observe("click",function(){y5.Dom.removeNode(y5.Dom.getAncestors(c,"li","answer")[0]);var d=y5.cssQuery("li.answer .js-remove",this.control);if(d.length-1>=0){y5.Classes.remove(d[d.length-1],"i-hidden")}},c,true,this)};Friends.Poll=a;y5.loaded("{Friends}.Poll")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);var b=a.prototype;b.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initUrlBlock();this.initMarketSearchBlock();return this};b.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};b.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};b.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};b.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};b.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};b.initUrlBlock=function(){this.dom_url_block_switcher=y5.Dom.getDescendant(this.control,"span","action-link");this.dom_url_block=y5.Dom.getDescendant(this.control,"div","b-write-link");this.dom_input_url=y5.Dom.getDescendant(this.dom_url_block,"input","*");var c=y5.Dom.getDescendant(this.dom_url_block,"a","*");if(this.dom_input_url.value!=""){this.showURLBlock("nofocus")}y5.Events.observe("click",this.followURL,c,true,this);y5.Events.observe("click",this.showURLBlock,this.dom_url_block_switcher,true,this)};b.showURLBlock=function(){y5.Classes.remove(this.dom_url_block,"i-hidden");if(this.dom_url_block_switcher){y5.Classes.add(this.dom_url_block_switcher,"i-hidden")}if(arguments.length==0){this.dom_input_url.focus()}};b.fillURL=function(c){this.showURLBlock();this.dom_input_url.value=this.processURL(c)};b.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};b.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};b.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};b.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};b.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};b.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};b.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};b.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};b.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};b.notFoundMessage=function(){this.modeNotFound()};b.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};b.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_input_url);this.inputOff(this.dom_title);this.photoloader.disable()};b.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearch:select",a,true);this.modeNormal();this.fillURL(c.model_url);this.server_market_id.value=c.model_id;this.server_market_url.value=c.model_url;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};b.cancelWishcard=function(){this.photoloader.delPhoto();this.dom_input_url.value="";this.server_market_id.value="";this.server_market_url.value="";this.inputOn(this.dom_input_url);this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearch:unselect",a,true)};b.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};b.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.Wishlist=a;y5.loaded("{Friends}.Wishlist")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor","{Friends}.CheckChangesSaved"],function(){var b=Friends.CommonConstructor(Friends.BasicControl);var a=b.prototype;a.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initMarketSearchBlock();return this};a.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};a.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};a.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};a.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};a.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};a.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};a.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};a.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};a.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.dom_changemind=this.dom_changemind||document.createElement("div");this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};a.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};a.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};a.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};a.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};a.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};a.notFoundMessage=function(){this.modeNotFound()};a.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};a.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_title);this.photoloader.disable()};a.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearchGrades:fillWishcard",b,true);this.modeNormal();this.server_market_id.value=c.model_id;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};a.cancelWishcard=function(){this.photoloader.delPhoto();this.server_market_id.value="";this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearchGrades:cancelWishcard",b,true)};a.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};a.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.MarketSearchGrades=b;y5.loaded("{Friends}.MarketSearchGrades")});y5.require(["{Friends}.CommonConstructor","{Friends}.UICollectionRadio","{Friends}.MarketSearchGrades"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(d,e){this.control=d;this.params=e;this.whether_editing_post=!y5.Strings.isVoid(y5.cssQuery('input[name="market_id"]',this.control)[0].value);var c=y5.Dom.getDescendant(this.control,"*","js-major-grades");this.major_smiles=new Friends.UICollectionRadio().init();this.additional_smiles=[];this.dom_all_grades=y5.Dom.getDescendant(this.control,"*","js-all-grades");this.grades_table=y5.Dom.getDescendant(this.control,"*","js-all-grades-table");y5.cssQuery("tr",this.grades_table).forEach(function(f){this.createGradesLine(f)},this);this.on("click",function(){if(this.whether_advanced_grades){this.hideAdvancedGrades()}else{this.showAdvancedGrades()}},this.dom_all_grades);var b=y5.cssQuery("div.active",this.grades_table).length>0;b=b||y5.cssQuery(".js-advanced-grades input").some(function(f){return f.value.length>0});if(b){this.showAdvancedGrades()}y5.Events.observe("y5:UICollection:select",function(f){var g=f.data;y5.Classes.add(f.item,"active");this.show(f.data.dom);g.server.value=g.value},this.major_smiles,true,this);y5.Events.observe("y5:UICollection:unselect",function(f){y5.Classes.remove(f.item,"active");this.hide(f.data.dom)},this.major_smiles,true,this);y5.cssQuery("div.smile",c).forEach(function(f){var g=f.onclick();var h=y5.cssQuery(g.server_selector,this.control)[0];var i=y5.cssQuery(g.selector,c)[0];this.major_smiles.add(f,{dom:i,server:h,value:g.value});var j=y5.Classes.test(f,"active");this.major_smiles.selectIf(f,j)},this);this.on("y5:MarketSearch:select",this.modeAdvanced,Friends.MarketSearchGrades);this.on("y5:MarketSearch:unselect",this.modeSimple,Friends.MarketSearchGrades);if(this.whether_editing_post){this.modeAdvanced(".js-mode-advanced:not(.js-not-editable)")}};a.prototype.enable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.show(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.removeAttribute("disabled")},this)},this)};a.prototype.disable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.hide(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.setAttribute("disabled","disabled")},this)},this)};a.prototype.modeAdvanced=function(b){b=b||".js-mode-advanced";this.enable(b)};a.prototype.modeSimple=function(b){b=b||".js-mode-advanced";this.disable(b);this.hideAdvancedGrades()};a.prototype.showAdvancedGrades=function(){this.whether_advanced_grades=true;y5.Classes.add(this.dom_all_grades,"open");this.enable(".js-advanced-grades")};a.prototype.hideAdvancedGrades=function(){this.whether_advanced_grades=false;y5.Classes.remove(this.dom_all_grades,"open");this.disable(".js-advanced-grades")};a.prototype.createGradesLine=function(c){var b=new Friends.UICollectionRadio().init();y5.Events.observe("y5:UICollection:select",function(d){var e=d.data;y5.Classes.add(d.item,"active");e.server.value=e.value},b,true,this);y5.Events.observe("y5:UICollection:unselect",function(d){y5.Classes.remove(d.item,"active")},b,true,this);y5.cssQuery("div.smile",c).forEach(function(d){var e=d.onclick();var f=y5.cssQuery(e.server_selector,this.control)[0];b.add(d,{server:f,value:e.value});var g=y5.Classes.test(d,"active");b.selectIf(d,g)});this.additional_smiles.push(b)};Friends.MarketGrades=a;y5.loaded("{Friends}.MarketGrades")});Friends.KeywordsControl=new function(){this.createFromTag=function(a,b){new Friends.KeywordsControl.Constructor(a,b)}};Friends.KeywordsControl.Constructor=function(a,b){this.control=a;this.max=b.tagsCount||5;this.keywords=[];this.init()};Friends.KeywordsControl.Constructor.prototype=new function(){this.addKeyword=function(b){var a=y5.Strings.trim(this.input.value);if(a==y5.Strings.EMPTY){return}this.input.value=this.pushTags(a,true).join(", ")};this.delKeyword=function(a,b){y5.Dom.removeNode(a);this.keywords.splice(this.keywords.indexOf(b,0),1);this.saveKeywords();this.showKeywordsLine();this.input.focus()};this.getPreviewKeywords=function(){var c=[],b,a;for(b=0,a=this.keywords.length;b'+y5.Strings.escapeHTML(this.keywords[b])+""}return c.join(", ")};this.addUserTag=function(b){var a=y5.Strings.unescapeHTML(b.target.innerHTML);if(this.pushTag(a)){this.addKeywordElem(a)}};this.pushTags=function(f,g){var e=[],b=f.split(/[,;]/g),c,a;for(c=0,a=b.length;c=this.max){if(!j){var j=document.createElement("span");d.appendChild(j);y5.Classes.add(j,"all-tags");j.appendChild(document.createTextNode(", "))}d=j}var h=d.appendChild(b);new y5.AEventListener("click",this.addUserTag,h,true,this);if((e!=this.max-1)&&(e0){var a=new Friends.UserpicCurrent();a.createFromTag.apply(this,arguments);return a}};Friends.UserpicCurrent.prototype.createFromTag=function(a,b){this.control=a;this.params=b;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.dom_mode=y5.Dom.getDescendant(this.control,"div");y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);this.modeChoosed()};Friends.UserpicCurrent.prototype.modeChoosed=function(){this.is_choosed=true;y5.Classes.remove(this.dom_mode,"unselected");y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});y5.cssQuery('input[name="userpic"]:checked').forEach(function(a){a.checked=false});y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.remove(a,"i-hidden")})};Friends.UserpicCurrent.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.add(this.dom_mode,"unselected");y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.add(a,"i-hidden")})};y5.loaded("{Friends}.UserpicCurrent")});y5.require(["Events","{Friends}.ChangeUserpicControl","{Friends}.CommonConstructor"],function(){Friends.UserpicDeletable=function(){if(arguments.length>0){var a=new Friends.UserpicDeletable();a.createFromTag.apply(a,arguments);return a}};Friends.UserpicDeletable.prototype.createFromTag=function(b,c){this.control=b;this.control_label=y5.Dom.getDescendant(this.control,"label");this.params=c;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.createDrawButton();this.server=new y5.Request.XML("ajax/userpic_do_delete.xml",{method:"POST",callbackContext:this});this.server.onload=this.deleteUserpicHandler;this.server.onerror=this.deleteUserpicHandlerError;y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);var a=y5.Classes.test(this.control_label,"active");if(a){this.modeChoosed()}else{this.modeUnchoosed()}};Friends.UserpicDeletable.prototype.modeChoosed=function(){if(this.is_choosed){return}y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});this.is_choosed=true;y5.Classes.add(this.control_label,"active");y5.Classes.add(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0];a.checked=true};Friends.UserpicDeletable.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.remove(this.control_label,"active");y5.Classes.remove(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0]};Friends.UserpicDeletable.prototype.createDrawButton=function(){this.delete_button=y5.Elements.create(' ');y5.Classes.add(this.userpic.parentNode,"delete-userpic-holder");this.userpic.parentNode.appendChild(this.delete_button);y5.Events.observe("click",this.clickDeleteButton,this.delete_button,true,this)};Friends.UserpicDeletable.prototype.clickDeleteButton=function(a){a.stopPropagation();a.preventDefault();this.deleteUserpic()};Friends.UserpicDeletable.prototype.deleteUserpic=function(){y5.Classes.add(this.userpic,"faded");this.server.send({name:this.params.userpic,host_id:this.params.host_id})};Friends.UserpicDeletable.prototype.deleteUserpicHandler=function(a){var b=y5.JSON.decode(a.responseText);if(b.status==="Success"){y5.Dom.removeNode(this.control)}else{this.deleteUserpicHandlerError()}};Friends.UserpicDeletable.prototype.deleteUserpicHandlerError=function(){y5.Classes.remove(this.userpic,"faded")};y5.loaded("{Friends}.UserpicDeletable")});y5.require(["Events","Strings","Dom","Classes","{Friends}.classes.ClassPictureLoader","{Friends}.UserpicDeletable"],function(){Friends.PictureLoaderAvatar=function(a,c){if(arguments.length>0){var b=new Friends.PictureLoaderAvatar();b.init.apply(b,arguments);return b}};Friends.PictureLoaderAvatar.prototype=new Friends.ClassPictureLoader();Friends.PictureLoaderAvatar.prototype.showPicture=function(a){var g=this;var b=a.name;var e=g_globals.userpic_base+g_source.id+"/"+b+"-"+this.size;var d=this.image;d.onerror=function(h){d.onerror=null;y5.Events.notify("y5:error",g.element,true,null)};y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");d.src=e;this.response=a;y5.Events.notify("y5:load",this.element,true,b);if(!this.params.simpleForm){var f=this.element.cloneNode(true);var c=new Friends.UserpicDeletable(f,{userpic:b,host_id:this.params.host_id});y5.Dom.insertBefore(c.control,this.element);y5.cssQuery('input[type="file"]',c.control).forEach(function(h){y5.Dom.removeNode(h)});y5.cssQuery('input[name="userpic"]',c.control).forEach(function(h){h.value=b});this.deleteImage();c.modeChoosed()}};Friends.PictureLoaderAvatar.prototype.saveUserpic=function(a){};Friends.PictureLoaderAvatar.prototype.saveUserpicHandler=function(c){var b=c.responseText;var a=y5.JSON.decode(b);if(a.name===false){y5.Events.notify("y5:error",this.element,true,null);return false}};Friends.PictureLoaderAvatar.prototype.saveUserpicErrorHandler=function(){y5.Events.notify("y5:error",this.element,true,null)};Friends.PictureLoaderAvatar.prototype.init=function(a,b){this.initBase(a,b);this.image=this.getElement("image");y5.Events.observe("click",function(){y5.Events.notify("y5:userpic_clicked",this,true)},this.image,true,this);this.size=b.size||"normal";this.params=b};Friends.PictureLoaderAvatar.prototype.urlModify=function(){return g_globals.upics_simple_upload};Friends.PictureLoaderAvatar.prototype.sendPicture=function(){this.sendPictureBase();y5.Classes.swap(this.label,"new","load");y5.Classes.remove(this.label,"error");this.sendForm(this.urlModify())};y5.loaded("{Friends}.PictureLoaderAvatar")});var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                            У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                            '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                            "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                            /ig,"
                                            ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b=0)&&b(f,!g)}});e(function(){var f=document.body,c=f.appendChild(c=document.createElement("div"));e.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=c.offsetHeight===100;e.support.selectstart="onselectstart" in c;f.removeChild(c).style.display="none"});e.extend(e.ui,{plugin:{add:function(f,c,h){f=e.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g0){return true}f[c]=1;g=f[c]>0;f[c]=0;return g},isOverAxis:function(f,c,g){return f>c&&f'))}function N(a){return a.bind("mouseout",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==C){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.15"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('
                                            '))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f==""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]}a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b){b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";if(b==""){return null}var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l){throw"Invalid date"}return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}if(c=this._get(a,"onSelect")){e=this._formatDate(a);c.apply(a.input?a.input[0]:null,[e,a])}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+n+"";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+s+"":f?"":''+s+"";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
                                            '+(c?h:"")+(this._isInRange(a,s)?'":"")+(c?"":h)+"
                                            ":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x1){switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}}y+='">'}y+='
                                            '+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'
                                            ';var z=j?'":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="=5?' class="ui-datepicker-week-end"':"")+'>'+q[r]+""}y+=z+"";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,z)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q";var R=!j?"":'";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&ro;R+='";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+""}g++;if(g>11){g=0;m++}y+="
                                            '+this._get(a,"weekHeader")+"
                                            '+this._get(a,"calculateWeek")(r)+""+(F&&!D?" ":L?''+r.getDate()+"":''+r.getDate()+"")+"
                                            "+(l?""+(i[0]>0&&G==i[1]-1?'
                                            ':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'':"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='
                                            ',o="";if(h||!j){o+=''+i[b]+""}else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(k+=o+(h||!(j&&l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l){k+=''+c+""}else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u){k+=(h||!(j&&l)?" ":"")+o}k+="
                                            ";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.15";window["DP_jQuery_"+B]=d})(jQuery);jQuery(function(a){a.datepicker.regional.ru={closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.ru)});(function(a,b){a.namespace("locales.ru");a.locales.ru.chooseDate="выберите дату";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){b(document).ready(function(){b.datepicker.setDefaults(b.datepicker.regional.ru);var f=b(".b-control-datepicker"),h="yy-mm-dd",e="dd.mm.yy";f.datepicker({showOn:"button",buttonImage:g_globals.img_base+"b-calendar-button.png ",buttonImageOnly:true,dateFormat:e,buttonText:a.locale.chooseDate});var d=f[0];if(d&&d.form){b(d.form).bind("submit",function(){d.value=b.datepicker.formatDate(h,f.datepicker("getDate"))})}var c=f[0]?f[0].value:null;if(c){f.datepicker("setDate",b.datepicker.parseDate(h,c))}var g=b(".other-list");if(!a.support_columns(g)){g.columnize({width:200})}})})(window.ya,jQuery); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/_y.js b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/_y.js new file mode 100644 index 0000000..4f3ce8c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/_y.js @@ -0,0 +1,8 @@ +(function(b){var a={};a.imageError=function(c){var d=c.parentNode,e=d.parentNode.childNodes.length>2?d:d.parentNode;e.innerHTML='
                                            Картинка недоступна
                                            '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                            ${content}
                                            ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                            '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                            ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                            #{title}
                                            ');b.setFooter('
                                             
                                            ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                            a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                            "+""+"
                                            ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                            t
                                            ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                            ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                            ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                            ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                            ","
                                            "],thead:[1,"","
                                            "],tr:[2,"","
                                            "],td:[3,"","
                                            "],col:[2,"","
                                            "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                            ","
                                            "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                            ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Поделиться настроением — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Поделиться ссылкой — я.ру
                                            + + + +
                                            ПоискПочтаДискКалендарьДеньгиМой КругФотки
                                            + + Выход

                                            Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                                            1 из 11
                                            портрет для этой записи

                                            Кто увидит запись:

                                            Поделиться ссылкой

                                            Метки
                                            Основные: Debian, EVE, Linux, Windows, Геленджик, Интернет, Книги, Музыка, Я, Яндекс
                                            или посмотреть, что получится
                                            Запись будет опубликована в вашем дневнике. Опубликовать в клубе:
                                             
                                            или продолжить редактирование

                                            + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_link.xml b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_link.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_link.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                              {popup_items}
                                            '].join(""),popup_item:'
                                          • {title}
                                          • ',popup_item_selected:'
                                          • {title}
                                          • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                                            ','','
                                            ','
                                            ','','','','
                                            {content}',"
                                            ","
                                            ","
                                            ","
                                            "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                              {items}
                                            ',""].join(""));a.templates.menuItem=a.template(['
                                          • ','
                                            ','{title}',"
                                            ","
                                          • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                                            ','',"
                                            ",""].join("")),itemResult:a(['
                                            ','
                                            ','
                                            ','
                                            ',"
                                            {title}",'{count}',"
                                            ","
                                            "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                                            {items}{actions}
                                            '),actionLink:a('
                                            {title}
                                            '),expired:a('
                                            {title}
                                            ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                                            ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                                             
                                            ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                                            обновление...
                                            ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                                            {(moreAsUpdate)[
                                            я в курсе
                                            ]}
                                            {(allItems)({(moreAsUpdate)()[]})}
                                            '),viewportLayout:b('
                                            {(titleButton)({titleButton})}
                                            показать ещё
                                            '),group:b('
                                            {timestamp}
                                            {items}
                                            '),item:b('
                                            {user} — {title}
                                            '),likeItem:b('
                                            {user} {appreciate} запись {title}
                                            '),recommendItem:b(''),replyItem:b('
                                            {user}{separator} {title}
                                            '),photoItem:b('
                                            {alt}
                                            '),videoItem:b('
                                            {duration}
                                            '),videoContainer:b('
                                            {items}
                                            '),albumsContainer:b('
                                            {items}
                                            '),videoCollection:a.template('
                                            {content}
                                            ',{content:""}),videoCollectionItem:b('
                                            {count} видео
                                            '),albumItem:b('
                                            {title}
                                            {count}
                                            '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                                            {title}
                                            '),wishlistItem:b('
                                            {title}
                                            {title}
                                            '),wishlistPromisedItem:b('
                                            {info}
                                            {title}
                                            отменить
                                            '),ratingInfo:b(''),onload:b('
                                             
                                            '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                                            ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                                            "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/_post-add-includes.js b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/_post-add-includes.js new file mode 100644 index 0000000..0ac80c6 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/_post-add-includes.js @@ -0,0 +1,11 @@ +(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                                            ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                                            ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);window.g_sizePicture=function(){return"normal"};Friends.ClassPictureLoader=function(){};Friends.ClassPictureLoader.prototype={className:"pictureloader-",getElement:function(a){return y5.Dom.getDescendant(this.element,"*",this.className+a)},default_enctype:"",initBase:function(a,b){this.__listeners=[];this.element=a;this.file=this.getElement("file");this.form=this.file.form;this.filename=this.getElement("filename");this.filename.value=y5.Utils.generateId();this.label=this.getElement("label")||document.createElement("label");this.__listeners.push(y5.Events.observe("y5:"+y5.Utils.getUniqueId(this.form),this.change,this.form,true,this));this.__listeners.push(y5.Events.observe("y5:load",this.clearFile,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:error",this.error,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:readyforsend",this.sendPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:send",this.showPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:disableByRename",this.disableByRename,this.form,true,this));y5.Events.create("submit",this.enableByRename,this.form,true,this);return this.form},createFromTag:function(a,b){this.initBase(a,b)},sendPictureBase:function(){this.getElement("filename").value=y5.Utils.generateId()},change:function(){this.sendPicture(this.form);if(!this.delListener){var a=this.getElement("delete");if(a){this.delListener=new y5.AEventListener("click",this.deleteImage,a,false,this)}}if(this.delListener){this.delListener.add()}},error:function(){this.deleteImage(this.filename,this.label);y5.Classes.remove(this.label,"active");y5.Classes.remove(this.label,"load");y5.Classes.add(this.label,"error");this.clearFile();if(this.delListener){this.delListener.remove()}},deleteImage:function(){this.filename.value="";y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");y5.Classes.remove(this.label,"active");y5.Classes.add(this.label,"new");try{Friends.ChangeUserpicControl.Constructor.prototype.instance.activateCurrent()}catch(a){}if(this.delListener){this.delListener.remove()}},clearFile:function(){this.filename.value="";var a=this.file.parentNode;a.innerHTML=a.innerHTML;this.file=a.firstChild},sendForm:function(action){var _this=this;y5.Events.notify("y5:disableByRename",_this.form,true,_this.element);_this.enableByRename();_this.setFormEnctype();function response(result,trace){if(!result||!y5.Strings.trim(result)){y5.Events.notify("y5:error",_this.element,true,null);return}result=eval("("+result+")");if(!result.name){y5.Events.notify("y5:error",_this.element,true,null);return}y5.Events.notify("y5:send",_this.element,true,result);_this.restoreFormEnctype()}function error(result,trace){y5.Events.notify("y5:error",_this.element,true,null);_this.restoreFormEnctype()}if($("input[name='sk']").length){var ticketInput=$(''),utInput=$('');$(this.form).append(ticketInput,utInput)}ya.controls.pictureUpload(action,this.form,{},function(_this){return function(){_this.sendFormHandler.apply(_this,arguments)}}(this),error)},sendFormHandler:function(a,b){if(!a||!a.name){y5.Events.notify("y5:error",this.element,true,null);return}y5.Events.notify("y5:send",this.element,true,a);this.restoreFormEnctype();$("input[name='ticket']",this.form).remove();$("input[name='ut']",this.form).remove()},disableByRename:function(b){if(b==this.element){return}var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(c){if(c.name.indexOf("_disabledByRename")===-1){c.name=c.name+"_disabledByRename"}})},enableByRename:function(){var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(b){if(b.name.indexOf("_disabledByRename")!==-1){b.name=b.name.replace("_disabledByRename","")}})},restoreFormEnctype:function(){if(!y5.is_ie){this.form.enctype=this.default_enctype}},setFormEnctype:function(){this.default_enctype=this.form.enctype;this.form.enctype="multipart/form-data"},dectruct:function(){var b,a;for(b=0,a=this.__listeners.length;b"+b.innerHTML+"";new y5.AEventListener("click",this.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,this);y5.Classes.replace(this.dom_status,"load","new");this.imageURL_input.value=a;y5.Events.notify("y5:load",this.element,true,c)};Friends.ClassPictureLoaderOnePhoto.prototype.showPictureByURL=function(b,d){this.modeLoading();var c=new Image(),a=this;$(c).bind("load",function(){var e=document.createElement("img");e.src=b;a.delPhoto();y5.Classes.add(a.dom_status,"new");y5.Classes.remove(a.dom_status,"error");var h=document.createElement("div");var f=document.createElement("i");f=h.appendChild(f);f.className="del";h.appendChild(e);var g=y5.$("photo-holder");g.innerHTML="
                                            "+h.innerHTML+"
                                            ";new y5.AEventListener("click",a.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,a);y5.Classes.replace(a.dom_status,"load","new");a.dom_image_link.value=d;a.imageURL_input.value=""});$(c).bind("error",function(){a.modeNormal()});c.src=b};y5.loaded("{Friends}.classes.ClassPictureLoaderOnePhoto")});y5.require(["Ajax","AjaxForm","Dom","Events","Utils","Classes","{Friends}.classes.ClassPictureLoader"],function(){Friends.PictureLoader=new Friends.ClassPictureLoader();y5.loaded("{Friends}.PictureLoader")});y5.require(["Events","Strings","Dom","Classes","{Friends}.PictureLoader"],function(){Friends.PictureLoaderPhoto=function(f,g){this.initBase(f,g);this.list=this.getPhotoList();var d=y5.Dom.getDescendants(y5.$("photo-holder"),"i","del");for(var e=0,c=d.length;ethis.last_id){this.last_id=c}}}}this.last_id+=1;return this.last_id};var b="b-input-empty",a=function(){};Friends.PictureLoaderPhoto.prototype.restore=a;Friends.PictureLoaderPhoto.prototype.normalize=function(){var c=this.form.elements,d,f={},e="";for(d=0;d0){$(this.control).find("div.b-write-submit,div.b-preview-write-submit").find("input.submit").each(function(c){var d=a.previewModeBtns[c];var b=this;if(d){$(d).removeClass("i-hidden");if(!d.onclick&&a.params.comment){$(d).unbind("click").click(function(){$(b).click()})}d.onclick=b.onclick;d.value=b.value}});if(!a.params.comment){$(this.previewModeBtns[0]).unbind("click").click(function(){$(a.control).submit()})}}if(this.previewButton){$(this.previewButton).unbind("click").click(function(){a.togglePreview()})}if(this.editButton){$(this.editButton).unbind("click").click(function(){a.toggleEdit()})}if(!this.params.comment){$(this.control).submit(function(b){a.safeSaving();b.preventDefault()})}},getPostType:function(){return this.postType.value},showMessage:function(a){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible"},togglePreview:function(){if(!this.renderPreviewBtn){return}var _this=this;$(".b-captcha").remove();if(_this.params.comment){$('[name="item_no"]',this.control).attr("name","_item_no");$('[name="access_type"]',this.control).attr("name","_access_type")}var prevewReq=new y5.Request.Form(this.url.Preview,{transport:"XML"});function _restoreInput(){if(_this.params.comment){$('[name="_item_no"]',this.control).attr("name","item_no");$('[name="_access_type"]',this.control).attr("name","access_type")}}prevewReq.onload=function(resp){_restoreInput();var response=resp.responseText;var respJSON=null;try{respJSON=y5.JSON.decode(response)}catch(e){this.onerror(e);return}if(respJSON.status&&respJSON.status=="Success"){_this.stopAjaxAnim();_this.toggleState();_this.noteCurrent=$(_this.previewContainer).find("b.b-note-attention")[0];$(_this.previewContent).html(respJSON.html);y5.Components.init(_this.previewContent);ya.helpers.smileHelper.processSmiles(_this.previewContent);$(_this.previewContent).find(".b-control-vote").each(function(i,e){ya.instances.push(new ya.controls.Vote(e))});$(_this.previewContent).yshow();if($.browser.webkit&&navigator.platform&&navigator.platform.match(/win/i)){ya.forceRedraw($(_this.previewContent)[0])}var match,scriptRe=/]*>((.|\n)+?)<\/script>/img;while((match=scriptRe.exec(response))!==null){eval(match[1])}_this.previewInProgress=false}else{this.onerror(respJSON)}};prevewReq.onerror=function(e){_restoreInput();var error_msg=_this.createErrorMessage(e&&e.reason);_this.stopAjaxAnim();$(_this.noteCurrent).html(error_msg);_this.noteCurrent.style.visibility="visible";_this.previewInProgress=false};prevewReq.onexception=prevewReq.onerror;blogCompose.sanitize();if(!this.previewInProgress){this.startAjaxAnim();prevewReq.send(_this.control);this.previewInProgress=true}},toggleEdit:function(){$(".b-captcha").remove();this.noteCurrent.style.visibility="hidden";this.noteCurrent=this.noteEdit;this.toggleState();$(this.previewContent).addClass("i-hidden");if(g_globals.current_location.page=="posts_add_wishlist"){y5.Events.notify("click",$("div.notfound span.b-inplace-action")[0],true)}if(this.textarea){this.textarea.value=this.textarea.value.replace(//ig,"\n")}},onSubmitEnabled:function(){this.renderPreviewBtn=true;$(this.previewBtnContainer).removeClass("disabled")},onSubmitDisabled:function(){this.renderPreviewBtn=false;$(this.previewBtnContainer).addClass("disabled")},toggleState:function(){$(this.formTable).toggleClass("i-hidden");$(this.previewContainer).toggleClass("i-hidden");this.noteCurrent.style.visibility="hidden"},startAjaxAnim:function(){$(this.noteCurrent).removeClass("b-note-attention").addClass("b-note-loading");this.noteCurrent.innerHTML=" ";this.noteCurrent.style.visibility="visible"},stopAjaxAnim:function(){this.noteCurrent.style.visibility="hidden";$(this.noteCurrent).removeClass("b-note-loading").addClass("b-note-attention")},createErrorMessage:function(b){var a;if(b){a=b}else{a="К сожалению, действие совершить не удалось.
                                            Попробуйте ещё раз."}return a},createCaptcha:function(a,b){return'

                                            '+this.params.dps["save-error--captcha"]+'

                                             

                                            '},validate:function(){var a="";if(g_globals.current_location.page=="posts_add_invite"){if(y5.Strings.isVoid($(this.control).find(".FieldValidator-field")[0].value)){a="email не задан."}}return a},successHandler:function(a){y5.Events.notify("Friends:formSaved",this.control);window.location.href=a.url},safeSaving:function(){if(this.savingInProcess){return}var a=this.validate();if(a.length){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible";return}var c=this;c.startAjaxAnim();var b=new y5.Request.Form(friendsURL(this.url.Posting),{method:"post",transport:"XML"});b.onload=function(g){c.stopAjaxAnim();if(window.w5GControl){window.w5GControl.clearLocalStorage()}var d="";try{d=g.json(g.responseText)}catch(f){this.onerror();return}if(d.status&&d.status==="Success"){c.successHandler(d)}else{this.onerror(d)}};b.onerror=function(d){var g=typeof d==="object"?d:{reason:false};if(d&&typeof d.responseText==="string"){try{g=y5.JSON.decode(d.responseText)}catch(j){g={reason:false}}}c.savingInProcess=false;c.stopAjaxAnim();var f=$(".b-captcha");if(g.captcha){var i=c.createCaptcha(g.captcha,g.reason);if(f.length){f.replaceWith(i)}else{$(c.noteCurrent).before(i)}}else{if(f.length){f.remove()}}if(g.dps!="post--captcha_key-NOT_EMPTY"){var h=c.createErrorMessage(g.reason);c.noteCurrent.innerHTML=h;c.noteCurrent.style.visibility="visible"}};b.onexception=function(d){this.onerror(d)};blogCompose.sanitize();if(!this.savingInProcess){this.savingInProcess=true;b.send(this.control);this.startAjaxAnim()}}};y5.require(["Dom","Events","Request.Form","URL"],function(){y5.loaded("{Friends}.PostPreviewAndSaving")});y5.require(["Dom","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(d,e){this.control=d;this.params=e||{};this.whether_loaded=false;var b=y5.Dom.getDescendantOrSelf(this.control,"code","Friends-later-ImageLoadable");var f=b.onclick()||{};this.params.src=f.src;var c=document.createElement("img");y5.Classes.add(c,"i-hidden");y5.Dom.replaceNode(b,c);this.image=c;y5.Events.observe("load",this.onLoadHandler,this.image,true,this)};a.prototype.load=function(){if(!this.whether_loaded){this.image.src=this.params.src;this.whether_loaded=true}};a.prototype.onLoadHandler=function(){y5.Classes.remove(this.image,"i-hidden")};Friends.ImageLoadable=a;y5.loaded("{Friends}.ImageLoadable")});Friends.ChooseUserpicControlCached=function(a){this.control=a;this.radios=null;this.userpics=null;this.active=0;this.chooserText=0;this.prevChooser=0;this.nextChooser=0;this.removeText=0;this.init()};Friends.ChooseUserpicControlCached.prototype.showActive=function(e,d){if(!this.userpics.length){return}var a,c,b;this.active=(this.userpics.length+this.active+d)%this.userpics.length;for(c=0,b=this.userpics.length;c'+this.source.getUserpicContent({id:e,size:"normal",src:h})+"";g.appendChild(f);this.userpics.push(f);this.tbody.appendChild(g);this.showActive(null,this.userpics.length-this.active-1);var d,a;if(this.userpics.length>1){for(d=0,a=this.userpics.length;d'+this.source.getUserpicContent({id:c,size:"normal",src:f})+"";e.appendChild(d);this.tbody.appendChild(e);e.style.display="block";d.style.display="block"};Friends.ChooseUserpicControlCached.prototype.del=function(b){var a=this.active;if(typeof(b)!=="undefined"){a=b}y5.Dom.replaceNode(this.userpics[a].control.parentNode);this.userpics.splice(a,1);this.radios.splice(a,1);this.showActive(null,(this.active==0)?0:-1);this.setChooserText();y5.Events.notify("y5:deleteUploadUserpic",Friends,true,row.getElementsByTagName("input")[0].value)};Friends.ChooseUserpicControlCached.prototype.createSelector=function(e,h,j,f){var b=document.createElement("a"),i="";var c=document.createElement("img");c.src=g_globals.img_base+"control/userpic-"+e+i+".gif";c.alt=j;c.title="";var g=(this.userpics.length<2);y5.Classes.add(b,e);b.appendChild(c);b.title=f;return b};Friends.ChooseUserpicControlCached.prototype.changeSelector=function(f,e,d,b){var a=f.firstChild;if(e){y5.Classes.add(f,"disabled");if(a.src.indexOf("-disabled")===-1){a.src=a.src.replace(/.gif/,"-disabled.gif")}a.parentNode.onclick=null;a.parentNode.onmouseover=null;a.parentNode.onmouseout=null}else{var c=a.src.indexOf("userpic-");y5.Classes.remove(f,"disabled");a.src=a.src.replace(/-disabled/,"");a.parentNode.onclick=associateEventWithObject(this,"showActive",d);a.parentNode.onmouseover=associateEventWithObject(this,"mouseover",b);a.parentNode.onmouseout=associateEventWithObject(this,"mouseout",b)}};Friends.ChooseUserpicControlCached.prototype.setChooserText=function(){if(this.userpics.length===0){this.addDefaultUserpic();y5.Classes.add(this.nextChooser,"i-hidden");y5.Classes.add(this.prevChooser,"i-hidden")}var c,a=this.userpics.length;if(a==0){c="нет картинок"}else{if(a==1){c="1 картинка"}else{c=(this.active+1)+" из "+a}}if(this.removeText){if(!a||this.radios[this.active].value==""){y5.Classes.add(this.removeText,"remove-disabled")}else{y5.Classes.remove(this.removeText,"remove-disabled")}}var b=(a<=1);this.changeSelector(this.prevChooser,b,-1,"prev");this.changeSelector(this.nextChooser,b,+1,"next");this.chooserText.innerHTML=c};Friends.ChooseUserpicControlCached.prototype.init=function(){this.tbody=y5.Dom.getDescendant(this.control,"tbody","*");if(!this.tbody){return}var g=this.tbody.getElementsByTagName("tr");var f=g.length;this.radios=new Array(f);this.userpics=new Array(f);this.source=g_source;for(var c=0;c-6){a(this.userpics,b+this.active);b--}};Friends.ChooseUserpicControlCached.prototype.destruct=function(){this.control.control=null;this.control=null};y5.require(["Dom","Events","Classes","Strings","{Friends}.ImageLoadable"],function(){y5.loaded("{Friends}.ChooseUserpicControlCached")});Friends.SubmitShortcut=function(){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.SubmitShortcut.prototype.init=function(d){this.__listeners=[];this.submit_btn=y5.Dom.getDescendant(d,"input","submit");this.submited=false;var f=this.submit_btn.form;y5.Events.observe("y5:form_destructed",b,f,true,this);this.__listeners.push(y5.Events.observe("submit",a,f,true,this));var c=this,g=function(h){if(h.keyCode=="13"&&h.ctrlKey){e.call(c)}};this.__listeners.push(y5.Events.observe("keydown",g,f,true,c));this.__listeners.push(y5.Events.observe("y5:w5g_ctrlEnter",e,Friends,true,this));this.__listeners.push(y5.Events.observe("y5:enableSubmit",function(){this.submited=false},Friends,true,this));function a(h){if(this.submited){h.preventDefault()}this.submited=true}function e(){new y5.Event("click",this.submit_btn,true);this.submit_btn.click()}function b(){var j,h;for(j=0,h=this.__listeners.length;j');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u)}}}d.style.display="none";document.body.appendChild(d);d.submit();return false},fields:["body","title","userpic","access","tags","item_time_day","item_time_month","item_time_year","item_time_minute","URL","url","uid","id","login"]};y5.require(["Dom","Events"],function(){y5.loaded("{Friends}.SaveStateForm")});y5.require([],function(){var a=function(){};a.prototype.init=function(b){this.params=b;this.next_link=b.next_link;this.prev_link=b.prev_link;this.visible_length=b.visible_length||4;y5.Events.observe("click",this.nextLink,this.next_link,true,this);y5.Events.observe("click",this.prevLink,this.prev_link,true,this);return this};a.prototype.setCollection=function(b){this.collection=b;this.left_index=0;this.setLeftmostIndex(0);return this};a.prototype.setLeftmostIndex=function(d){if(!this.collection){return false}this.collection.items.forEach(function(e){y5.Events.notify("y5:UICarousel:hide",this,true,{item:e})},this);this.left_index=(this.collection.items.length+d)%this.collection.items.length;y5.Events.notify("y5:UICarousel:set_index",this,true,{index:d});var b=function(f){var e=this.collection.items;f=(e.length+f)%e.length;var g=e[f];y5.Events.notify("y5:UICarousel:show",this,true,{item:g})},c;for(c=0;c0){this.init.apply(this,arguments)}};a.prototype.init=function(){};a.prototype.select=function(){};a.prototype.unselect=function(){};a.prototype.selectIf=function(b,c){if(c){this.select(b)}};a.prototype.unselectIf=function(b,c){if(c){this.unselect(b)}};a.prototype.add=function(c,d){var b=y5.Utils.getUniqueId(c);if(!(b in this.uids)){this.items.push(c);this.uids[b]={item:c,index:this.items.length-1,data:d};y5.Events.notify("y5:UICollection:add",this,true,{item:c});this.addEvents(c);return false}return true};a.prototype.get=function(e){var d,c;if(typeof e==="number"){d=this.items[e];if(!d){return false}c=y5.Utils.getUniqueId(d)}else{if(typeof e==="string"){c=e}else{if(typeof e==="object"){c=y5.Utils.getUniqueID(d)}}}if(!(c in this.uids)){return false}var b=this.uids[c];return b};a.prototype.remove=function(c){var b=y5.Utils.getUniqueId(c);if(b in this.uids){var d=this.uids[b];this.items.splice(d.index,1);delete this.uids[b];y5.Events.notify("y5:UICollection:remove",this,true,{item:c});return false}return true};a.prototype.addEvents=function(b){};Friends.UICollection=a;y5.loaded("{Friends}.UICollection")});y5.require(["{Friends}.UICollection"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype=new Friends.UICollection();a.prototype.init=function(b){this.items=[];this.uids={};this.selectedItem=null;this.params=b||{};return this};a.prototype.addEvents=function(b){if(!this.params.noclick){y5.Events.observe("click",function(c){this.select(b)},b,true,this)}};a.prototype.select=function(c){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];this.unselect(this.selectedItem);this.selectedItem=c;y5.Events.notify("y5:UICollection:select",this,true,{item:c,data:d.data})};a.prototype.unselect=function(c){if(c!==null){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];y5.Events.notify("y5:UICollection:unselect",this,true,{item:c,data:d.data})}};Friends.UICollectionRadio=a;y5.loaded("{Friends}.UICollectionRadio")});y5.require(["{Friends}.UICollectionRadio","{Friends}.UICarousel","Widget","Utils"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype.init=function(b,c){y5.Events.observe("y5:make",function(d){this.widget=d;this.initAsControl(d.window,this.params);if(!this.has_been_inited){this.initWidgetEvents();this.has_been_inited=true}y5.Classes.add(d.button_ok,"i-hidden")},b,true,this);y5.Events.observe("y5:show",function(d){if(typeof d.caller==="object"){this.caller=d.caller;this.showWidget(b)}},window,true,this);return this};a.prototype.initWidgetEvents=function(){y5.Events.observe("y5:ok",function(){y5.Events.notify("y5:card:ok",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:esc",function(){y5.Events.notify("y5:card:esc",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:cancel",function(){y5.Events.notify("y5:card:cancel",this.caller,true,{caller:this});return true},this.widget.element,true,this)};a.prototype.initAsControl=function(c,d){this.control=c;this.params=d;var b=y5.Dom.getDescendant(this.control,"b","ff");var e=y5.Dom.getDescendant(this.control,"b","rev");this.carousel=new Friends.UICarousel().init({next_link:b,prev_link:e});y5.Events.observe("y5:UICarousel:prev",this.carouselPrev,this.carousel,true,this);y5.Events.observe("y5:UICarousel:next",this.carouselNext,this.carousel,true,this);y5.Events.observe("y5:UICarousel:hide",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.add(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:show",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.remove(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:set_index",function(g){var h=g.index;var f=this.carousel.collection.items.length;var i=this.carousel.visible_length;var j=(i+h-f);if(h==0){y5.Classes.add(this.carousel.prev_link,"i-hidden")}else{y5.Classes.remove(this.carousel.prev_link,"i-hidden")}if(h+i>=f){y5.Classes.add(this.carousel.next_link,"i-hidden")}else{y5.Classes.remove(this.carousel.next_link,"i-hidden")}},this.carousel,true,this);this.holiday_links=new Friends.UICollectionRadio().init();y5.cssQuery("ul.b-list-links li",this.control).forEach(function(f){var h=f.onclick().holiday;var g=y5.Dom.getDescendant(this.control,"tr","holiday_".concat(h));var i=this.initCardsCollection(g);this.holiday_links.add(f,{holiday_id:h,dom_cards:g,cards_collection:i})},this);y5.Events.observe("y5:UICollection:select",this.selectHoliday,this.holiday_links,true,this);y5.Events.observe("y5:UICollection:unselect",this.unselectHoliday,this.holiday_links,true,this);this.holiday_links.select(this.holiday_links.items[0])};a.prototype.showWidget=function(b){y5.Widget.make(b,"Widget.Dialog.Standard",{title:"Вставить открытку",valign:"30%"})};a.prototype.carouselPrev=function(b){};a.prototype.carouselNext=function(b){};a.prototype.initCardsCollection=function(b){var c=new Friends.UICollectionRadio().init();y5.cssQuery("img.postcard",b).forEach(function(d){c.add(d)});y5.Events.observe("y5:UICollection:select",this.choosePostcard,c,true,this);return c};a.prototype.choosePostcard=function(b){this.selected_card=b.item.onclick();this.widget.fireOk()};a.prototype.selectHoliday=function(b){var c=b.item;y5.Classes.add(c,"active");y5.Classes.remove(b.data.dom_cards,"i-hidden");var d=b.data.cards_collection;this.carousel.setCollection(d)};a.prototype.unselectHoliday=function(b){var c=b.item;y5.Classes.remove(c,"active");y5.Classes.add(b.data.dom_cards,"i-hidden")};Friends.Postcard=a;y5.loaded("{Friends}.Postcard")});Friends.ChangeUserpicControl=function(a){if(arguments.length>0){var b=new Friends.ChangeUserpicControl();b.init.apply(this,arguments);return b}};Friends.ChangeUserpicControl.prototype.init=function(a){var b=this;this.control=a;this.current=null;this.pointer=null;this.selected_span=0;this.form=y5.Dom.getAncestorOrSelf(this.control,"form");this.submit=y5.cssQuery('input[type="submit"]',this.form)[0];y5.Events.observe("y5:choose_userpic",this.chooseUserpic,this,true,this);Friends.ChangeUserpicControl.lastCreatedInstance=this};Friends.ChangeUserpicControl.prototype.chooseUserpic=function(a){if(this.pointer!=null){this.pointer.modeUnchoosed()}this.pointer=a.userpic};y5.loaded("{Friends}.ChangeUserpicControl");y5.require(["{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(c,d){this.control=c;this.params=d;this.options=y5.cssQuery("li.answer",this.control);this.options.forEach(function(e,f){y5.cssQuery("input",e).forEach(function(g){this.disableSubmit(g)},this)},this);this.dom_options_holder=y5.Dom.getAncestor(this.options[0],"ul");this.dom_add_option=y5.cssQuery("div.add span",this.control)[0];y5.Events.observe("click",this.addOption,this.dom_add_option,true,this);this.dom_remove_option=y5.cssQuery("span.js-remove",this.control);this.dom_remove_option.forEach(function(f){b(f)})};a.prototype.disableSubmit=function(c){y5.Events.observe("keypress",function(d){var e=d.keyCode;if(e==13){d.stopPropagation();d.preventDefault()}},c,true,this)};a.prototype.addOption=function(){y5.cssQuery(".answer .js-remove",this.control).forEach(function(g){y5.Classes.add(g,"i-hidden")});var c=document.createElement("span");c.innerHTML="";c.className="remove js-remove";b(c);var d=this.options[0].cloneNode(true);var f=y5.cssQuery("li.answer input",this.control);var e=Number(f[f.length-1].id)+1;y5.cssQuery("input",d).forEach(function(g){g.id=e;g.value="";g.name="option".concat(e);this.disableSubmit(g);y5.Dom.insertAfter(c,g)},this);this.dom_options_holder.appendChild(d);this.options.push(d)};var b=function(c){y5.Events.observe("click",function(){y5.Dom.removeNode(y5.Dom.getAncestors(c,"li","answer")[0]);var d=y5.cssQuery("li.answer .js-remove",this.control);if(d.length-1>=0){y5.Classes.remove(d[d.length-1],"i-hidden")}},c,true,this)};Friends.Poll=a;y5.loaded("{Friends}.Poll")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);var b=a.prototype;b.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initUrlBlock();this.initMarketSearchBlock();return this};b.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};b.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};b.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};b.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};b.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};b.initUrlBlock=function(){this.dom_url_block_switcher=y5.Dom.getDescendant(this.control,"span","action-link");this.dom_url_block=y5.Dom.getDescendant(this.control,"div","b-write-link");this.dom_input_url=y5.Dom.getDescendant(this.dom_url_block,"input","*");var c=y5.Dom.getDescendant(this.dom_url_block,"a","*");if(this.dom_input_url.value!=""){this.showURLBlock("nofocus")}y5.Events.observe("click",this.followURL,c,true,this);y5.Events.observe("click",this.showURLBlock,this.dom_url_block_switcher,true,this)};b.showURLBlock=function(){y5.Classes.remove(this.dom_url_block,"i-hidden");if(this.dom_url_block_switcher){y5.Classes.add(this.dom_url_block_switcher,"i-hidden")}if(arguments.length==0){this.dom_input_url.focus()}};b.fillURL=function(c){this.showURLBlock();this.dom_input_url.value=this.processURL(c)};b.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};b.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};b.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};b.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};b.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};b.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};b.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};b.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};b.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};b.notFoundMessage=function(){this.modeNotFound()};b.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};b.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_input_url);this.inputOff(this.dom_title);this.photoloader.disable()};b.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearch:select",a,true);this.modeNormal();this.fillURL(c.model_url);this.server_market_id.value=c.model_id;this.server_market_url.value=c.model_url;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};b.cancelWishcard=function(){this.photoloader.delPhoto();this.dom_input_url.value="";this.server_market_id.value="";this.server_market_url.value="";this.inputOn(this.dom_input_url);this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearch:unselect",a,true)};b.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};b.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.Wishlist=a;y5.loaded("{Friends}.Wishlist")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor","{Friends}.CheckChangesSaved"],function(){var b=Friends.CommonConstructor(Friends.BasicControl);var a=b.prototype;a.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initMarketSearchBlock();return this};a.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};a.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};a.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};a.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};a.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};a.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};a.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};a.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};a.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.dom_changemind=this.dom_changemind||document.createElement("div");this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};a.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};a.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};a.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};a.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};a.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};a.notFoundMessage=function(){this.modeNotFound()};a.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};a.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_title);this.photoloader.disable()};a.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearchGrades:fillWishcard",b,true);this.modeNormal();this.server_market_id.value=c.model_id;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};a.cancelWishcard=function(){this.photoloader.delPhoto();this.server_market_id.value="";this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearchGrades:cancelWishcard",b,true)};a.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};a.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.MarketSearchGrades=b;y5.loaded("{Friends}.MarketSearchGrades")});y5.require(["{Friends}.CommonConstructor","{Friends}.UICollectionRadio","{Friends}.MarketSearchGrades"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(d,e){this.control=d;this.params=e;this.whether_editing_post=!y5.Strings.isVoid(y5.cssQuery('input[name="market_id"]',this.control)[0].value);var c=y5.Dom.getDescendant(this.control,"*","js-major-grades");this.major_smiles=new Friends.UICollectionRadio().init();this.additional_smiles=[];this.dom_all_grades=y5.Dom.getDescendant(this.control,"*","js-all-grades");this.grades_table=y5.Dom.getDescendant(this.control,"*","js-all-grades-table");y5.cssQuery("tr",this.grades_table).forEach(function(f){this.createGradesLine(f)},this);this.on("click",function(){if(this.whether_advanced_grades){this.hideAdvancedGrades()}else{this.showAdvancedGrades()}},this.dom_all_grades);var b=y5.cssQuery("div.active",this.grades_table).length>0;b=b||y5.cssQuery(".js-advanced-grades input").some(function(f){return f.value.length>0});if(b){this.showAdvancedGrades()}y5.Events.observe("y5:UICollection:select",function(f){var g=f.data;y5.Classes.add(f.item,"active");this.show(f.data.dom);g.server.value=g.value},this.major_smiles,true,this);y5.Events.observe("y5:UICollection:unselect",function(f){y5.Classes.remove(f.item,"active");this.hide(f.data.dom)},this.major_smiles,true,this);y5.cssQuery("div.smile",c).forEach(function(f){var g=f.onclick();var h=y5.cssQuery(g.server_selector,this.control)[0];var i=y5.cssQuery(g.selector,c)[0];this.major_smiles.add(f,{dom:i,server:h,value:g.value});var j=y5.Classes.test(f,"active");this.major_smiles.selectIf(f,j)},this);this.on("y5:MarketSearch:select",this.modeAdvanced,Friends.MarketSearchGrades);this.on("y5:MarketSearch:unselect",this.modeSimple,Friends.MarketSearchGrades);if(this.whether_editing_post){this.modeAdvanced(".js-mode-advanced:not(.js-not-editable)")}};a.prototype.enable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.show(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.removeAttribute("disabled")},this)},this)};a.prototype.disable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.hide(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.setAttribute("disabled","disabled")},this)},this)};a.prototype.modeAdvanced=function(b){b=b||".js-mode-advanced";this.enable(b)};a.prototype.modeSimple=function(b){b=b||".js-mode-advanced";this.disable(b);this.hideAdvancedGrades()};a.prototype.showAdvancedGrades=function(){this.whether_advanced_grades=true;y5.Classes.add(this.dom_all_grades,"open");this.enable(".js-advanced-grades")};a.prototype.hideAdvancedGrades=function(){this.whether_advanced_grades=false;y5.Classes.remove(this.dom_all_grades,"open");this.disable(".js-advanced-grades")};a.prototype.createGradesLine=function(c){var b=new Friends.UICollectionRadio().init();y5.Events.observe("y5:UICollection:select",function(d){var e=d.data;y5.Classes.add(d.item,"active");e.server.value=e.value},b,true,this);y5.Events.observe("y5:UICollection:unselect",function(d){y5.Classes.remove(d.item,"active")},b,true,this);y5.cssQuery("div.smile",c).forEach(function(d){var e=d.onclick();var f=y5.cssQuery(e.server_selector,this.control)[0];b.add(d,{server:f,value:e.value});var g=y5.Classes.test(d,"active");b.selectIf(d,g)});this.additional_smiles.push(b)};Friends.MarketGrades=a;y5.loaded("{Friends}.MarketGrades")});Friends.KeywordsControl=new function(){this.createFromTag=function(a,b){new Friends.KeywordsControl.Constructor(a,b)}};Friends.KeywordsControl.Constructor=function(a,b){this.control=a;this.max=b.tagsCount||5;this.keywords=[];this.init()};Friends.KeywordsControl.Constructor.prototype=new function(){this.addKeyword=function(b){var a=y5.Strings.trim(this.input.value);if(a==y5.Strings.EMPTY){return}this.input.value=this.pushTags(a,true).join(", ")};this.delKeyword=function(a,b){y5.Dom.removeNode(a);this.keywords.splice(this.keywords.indexOf(b,0),1);this.saveKeywords();this.showKeywordsLine();this.input.focus()};this.getPreviewKeywords=function(){var c=[],b,a;for(b=0,a=this.keywords.length;b'+y5.Strings.escapeHTML(this.keywords[b])+""}return c.join(", ")};this.addUserTag=function(b){var a=y5.Strings.unescapeHTML(b.target.innerHTML);if(this.pushTag(a)){this.addKeywordElem(a)}};this.pushTags=function(f,g){var e=[],b=f.split(/[,;]/g),c,a;for(c=0,a=b.length;c=this.max){if(!j){var j=document.createElement("span");d.appendChild(j);y5.Classes.add(j,"all-tags");j.appendChild(document.createTextNode(", "))}d=j}var h=d.appendChild(b);new y5.AEventListener("click",this.addUserTag,h,true,this);if((e!=this.max-1)&&(e0){var a=new Friends.UserpicCurrent();a.createFromTag.apply(this,arguments);return a}};Friends.UserpicCurrent.prototype.createFromTag=function(a,b){this.control=a;this.params=b;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.dom_mode=y5.Dom.getDescendant(this.control,"div");y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);this.modeChoosed()};Friends.UserpicCurrent.prototype.modeChoosed=function(){this.is_choosed=true;y5.Classes.remove(this.dom_mode,"unselected");y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});y5.cssQuery('input[name="userpic"]:checked').forEach(function(a){a.checked=false});y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.remove(a,"i-hidden")})};Friends.UserpicCurrent.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.add(this.dom_mode,"unselected");y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.add(a,"i-hidden")})};y5.loaded("{Friends}.UserpicCurrent")});y5.require(["Events","{Friends}.ChangeUserpicControl","{Friends}.CommonConstructor"],function(){Friends.UserpicDeletable=function(){if(arguments.length>0){var a=new Friends.UserpicDeletable();a.createFromTag.apply(a,arguments);return a}};Friends.UserpicDeletable.prototype.createFromTag=function(b,c){this.control=b;this.control_label=y5.Dom.getDescendant(this.control,"label");this.params=c;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.createDrawButton();this.server=new y5.Request.XML("ajax/userpic_do_delete.xml",{method:"POST",callbackContext:this});this.server.onload=this.deleteUserpicHandler;this.server.onerror=this.deleteUserpicHandlerError;y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);var a=y5.Classes.test(this.control_label,"active");if(a){this.modeChoosed()}else{this.modeUnchoosed()}};Friends.UserpicDeletable.prototype.modeChoosed=function(){if(this.is_choosed){return}y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});this.is_choosed=true;y5.Classes.add(this.control_label,"active");y5.Classes.add(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0];a.checked=true};Friends.UserpicDeletable.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.remove(this.control_label,"active");y5.Classes.remove(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0]};Friends.UserpicDeletable.prototype.createDrawButton=function(){this.delete_button=y5.Elements.create(' ');y5.Classes.add(this.userpic.parentNode,"delete-userpic-holder");this.userpic.parentNode.appendChild(this.delete_button);y5.Events.observe("click",this.clickDeleteButton,this.delete_button,true,this)};Friends.UserpicDeletable.prototype.clickDeleteButton=function(a){a.stopPropagation();a.preventDefault();this.deleteUserpic()};Friends.UserpicDeletable.prototype.deleteUserpic=function(){y5.Classes.add(this.userpic,"faded");this.server.send({name:this.params.userpic,host_id:this.params.host_id})};Friends.UserpicDeletable.prototype.deleteUserpicHandler=function(a){var b=y5.JSON.decode(a.responseText);if(b.status==="Success"){y5.Dom.removeNode(this.control)}else{this.deleteUserpicHandlerError()}};Friends.UserpicDeletable.prototype.deleteUserpicHandlerError=function(){y5.Classes.remove(this.userpic,"faded")};y5.loaded("{Friends}.UserpicDeletable")});y5.require(["Events","Strings","Dom","Classes","{Friends}.classes.ClassPictureLoader","{Friends}.UserpicDeletable"],function(){Friends.PictureLoaderAvatar=function(a,c){if(arguments.length>0){var b=new Friends.PictureLoaderAvatar();b.init.apply(b,arguments);return b}};Friends.PictureLoaderAvatar.prototype=new Friends.ClassPictureLoader();Friends.PictureLoaderAvatar.prototype.showPicture=function(a){var g=this;var b=a.name;var e=g_globals.userpic_base+g_source.id+"/"+b+"-"+this.size;var d=this.image;d.onerror=function(h){d.onerror=null;y5.Events.notify("y5:error",g.element,true,null)};y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");d.src=e;this.response=a;y5.Events.notify("y5:load",this.element,true,b);if(!this.params.simpleForm){var f=this.element.cloneNode(true);var c=new Friends.UserpicDeletable(f,{userpic:b,host_id:this.params.host_id});y5.Dom.insertBefore(c.control,this.element);y5.cssQuery('input[type="file"]',c.control).forEach(function(h){y5.Dom.removeNode(h)});y5.cssQuery('input[name="userpic"]',c.control).forEach(function(h){h.value=b});this.deleteImage();c.modeChoosed()}};Friends.PictureLoaderAvatar.prototype.saveUserpic=function(a){};Friends.PictureLoaderAvatar.prototype.saveUserpicHandler=function(c){var b=c.responseText;var a=y5.JSON.decode(b);if(a.name===false){y5.Events.notify("y5:error",this.element,true,null);return false}};Friends.PictureLoaderAvatar.prototype.saveUserpicErrorHandler=function(){y5.Events.notify("y5:error",this.element,true,null)};Friends.PictureLoaderAvatar.prototype.init=function(a,b){this.initBase(a,b);this.image=this.getElement("image");y5.Events.observe("click",function(){y5.Events.notify("y5:userpic_clicked",this,true)},this.image,true,this);this.size=b.size||"normal";this.params=b};Friends.PictureLoaderAvatar.prototype.urlModify=function(){return g_globals.upics_simple_upload};Friends.PictureLoaderAvatar.prototype.sendPicture=function(){this.sendPictureBase();y5.Classes.swap(this.label,"new","load");y5.Classes.remove(this.label,"error");this.sendForm(this.urlModify())};y5.loaded("{Friends}.PictureLoaderAvatar")});var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                            У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                            '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                            "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                            /ig,"
                                            ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b=0)&&b(f,!g)}});e(function(){var f=document.body,c=f.appendChild(c=document.createElement("div"));e.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=c.offsetHeight===100;e.support.selectstart="onselectstart" in c;f.removeChild(c).style.display="none"});e.extend(e.ui,{plugin:{add:function(f,c,h){f=e.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g0){return true}f[c]=1;g=f[c]>0;f[c]=0;return g},isOverAxis:function(f,c,g){return f>c&&f'))}function N(a){return a.bind("mouseout",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==C){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.15"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('
                                            '))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f==""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]}a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b){b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";if(b==""){return null}var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l){throw"Invalid date"}return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}if(c=this._get(a,"onSelect")){e=this._formatDate(a);c.apply(a.input?a.input[0]:null,[e,a])}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+n+"";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+s+"":f?"":''+s+"";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
                                            '+(c?h:"")+(this._isInRange(a,s)?'":"")+(c?"":h)+"
                                            ":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x1){switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}}y+='">'}y+='
                                            '+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'
                                            ';var z=j?'":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="=5?' class="ui-datepicker-week-end"':"")+'>'+q[r]+""}y+=z+"";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,z)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q";var R=!j?"":'";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&ro;R+='";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+""}g++;if(g>11){g=0;m++}y+="
                                            '+this._get(a,"weekHeader")+"
                                            '+this._get(a,"calculateWeek")(r)+""+(F&&!D?" ":L?''+r.getDate()+"":''+r.getDate()+"")+"
                                            "+(l?""+(i[0]>0&&G==i[1]-1?'
                                            ':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'':"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='
                                            ',o="";if(h||!j){o+=''+i[b]+""}else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(k+=o+(h||!(j&&l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l){k+=''+c+""}else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u){k+=(h||!(j&&l)?" ":"")+o}k+="
                                            ";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.15";window["DP_jQuery_"+B]=d})(jQuery);jQuery(function(a){a.datepicker.regional.ru={closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.ru)});(function(a,b){a.namespace("locales.ru");a.locales.ru.chooseDate="выберите дату";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){b(document).ready(function(){b.datepicker.setDefaults(b.datepicker.regional.ru);var f=b(".b-control-datepicker"),h="yy-mm-dd",e="dd.mm.yy";f.datepicker({showOn:"button",buttonImage:g_globals.img_base+"b-calendar-button.png ",buttonImageOnly:true,dateFormat:e,buttonText:a.locale.chooseDate});var d=f[0];if(d&&d.form){b(d.form).bind("submit",function(){d.value=b.datepicker.formatDate(h,f.datepicker("getDate"))})}var c=f[0]?f[0].value:null;if(c){f.datepicker("setDate",b.datepicker.parseDate(h,c))}var g=b(".other-list");if(!a.support_columns(g)){g.columnize({width:200})}})})(window.ya,jQuery); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/_y.js b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/_y.js new file mode 100644 index 0000000..4f3ce8c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/_y.js @@ -0,0 +1,8 @@ +(function(b){var a={};a.imageError=function(c){var d=c.parentNode,e=d.parentNode.childNodes.length>2?d:d.parentNode;e.innerHTML='
                                            Картинка недоступна
                                            '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                            ${content}
                                            ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                            '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                            ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                            #{title}
                                            ');b.setFooter('
                                             
                                            ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                            a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                            "+""+"
                                            ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                            t
                                            ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                            ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                            ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                            ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                            ","
                                            "],thead:[1,"","
                                            "],tr:[2,"","
                                            "],td:[3,"","
                                            "],col:[2,"","
                                            "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                            ","
                                            "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                            ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Поделиться ссылкой — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Пригласить друга — я.ру
                                            + + + +
                                            ПоискПочтаДискКалендарьДеньгиМой КругФотки
                                            + + Выход

                                            Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                                            Пригласить друга

                                            Выслать приглашение на email:
                                             
                                            или продолжить редактирование
                                            + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_invite.xml b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_invite.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_invite.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/CloneEmail.js b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/CloneEmail.js new file mode 100644 index 0000000..2c5a997 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/CloneEmail.js @@ -0,0 +1,121 @@ +Friends.CloneEmail = new function(){ + this.createFromTag = function(element, params){ + new Friends.CloneEmail.Constructor(element, params); + } +} + +Friends.CloneEmail.Constructor = function(element, params){ + this.element = element; + this.invitesCount = params.invitesCount; + this.num = params.num || null; + this.validEmailField = params.validEmailField || null; + this.button = y5.cssQuery('input[type=button]', this.element)[0]; + if (typeof(this.button) == y5.Vars.UNDEF){ + return; + } + this.input = y5.cssQuery('input[type=text]', this.element)[0]; + var notes = y5.Dom.getDescendants(this.input.form, 'b', 'b-note-attention'); + this.note = notes[notes.length - 1]; // элемент с сообщением о некорректности заполнения формы + + this.init(); +} + +Friends.CloneEmail.Constructor.prototype = new function(){ + this.init = function(){ + if(this.button.value == '+'){ + this.doAction = this.clone; + }else{ + this.doAction = this.remove; + } + var _this = this; + function click(){ + _this.doAction(); // clone or remove, deoends on button + } + y5.Events.create('click', click, this.button, true); + + var num = parseInt(this.input.name.substr(this.input.name.indexOf('_') + 1)); + this.num = this.num ? this.num + 1 : num ; + this.input.name = this.input.name.replace(new RegExp('_' + num, ''), '_' + this.num); + this.input.focus(); + + // при попытке отправить форму, проверяем ее на заполненность корректными данными, + // если форма не заполнена, то ее отправку отменяем + if (this.num == 1){ + new y5.AEventListener('submit', + function(e){ + if (!_this.isFormFilled()){ + _this.preventSubmit(e); + } + }, + this.input.form, true + ); + } + }; + + this.clone = function(){ + var newElement = this.element.cloneNode(true); + newElement.innerHTML = newElement.innerHTML; // for IE it doesn't clear events after clone. + var input = y5.cssQuery('input[type=text]', newElement)[0]; + input.value = ''; // в IE7 при клонировании значение input'а сохраняется + + var button = y5.cssQuery('input[type=button]', newElement)[0]; + this.button.parentNode.removeChild(this.button); + this.button = button; + + if (this.isLastInvite()) { + this.button.parentNode.removeChild(this.button); + } + + var _this = this; + newElement.onclick = function(){ + return { + type: 'Email', + invitesCount: _this.invitesCount, + num: _this.num, + validEmailField: _this.validEmailField} + }; + y5.Classes.add(newElement, 'Friends-c-FieldValidator'); + y5.Classes.add(newElement, 'Friends-c-CloneEmail'); + + this.element.parentNode.appendChild(newElement); + y5.Components.init(this.element.parentNode); + }; + + this.isLastInvite = function(){ + var emailFields = y5.Dom.getDescendants(this.element.parentNode, 'div', 'address'); + if (emailFields.length + 1 == parseInt(this.invitesCount)) { + return true; + } + return false; + } + + this.remove = function(){ + y5.Dom.removeNode(this.element); + }; + + this.isFormFilled = function() { + // скрываем сообщение о некорректности заполнения формы + this.note.style.visibility = 'hidden'; + var emailFields = y5.Dom.getDescendants(this.input.form, 'input', 'FieldValidator-field'); + var regExp = /[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-z]{2,7}/i; + // проверяем форму на наличие хотя бы одного введенного валидного email'а + for (var i = 0, l = emailFields.length; i < l; i++) { + if (regExp.test(emailFields[i].value)) { + return true; + } + } + return false; + }; + + this.preventSubmit = function(e, msg) { + if (msg) { + this.note.innerHTML = msg; + } + // показываем сообщение о некорректности заполнения формы + this.note.style.visibility = 'visible'; + // отменяем отправку формы + e.preventDefault(); + }; +} + +y5.require(['cssQuery', 'Events', 'Classes', 'Dom'], function(){y5.loaded('{Friends}.CloneEmail')}); diff --git a/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/FieldValidator.js b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/FieldValidator.js new file mode 100644 index 0000000..7fe4501 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/FieldValidator.js @@ -0,0 +1,120 @@ +Friends.FieldValidator = new function() { + this.prefix = 'FieldValidator-'; + this.createFromTag = function(element, params) { + new Friends.FieldValidator[params.type](element, params); + } + this.getNotes = function(element) { + var notes = {__visible__: null}; + var tags = y5.Dom.getDescendants(element, '*', new RegExp( this.prefix + 'note-\\w+', 'ig')); + for(var i = 0, l = tags.length; i < l; i++) { + var name = y5.Components.getName(tags[i].className, this.prefix + 'note-') + notes[name] = tags[i]; + if (notes[name].style.display != 'none') { + notes.__visible__ = notes[name]; + } + } + return notes; + } + this.showNote = function(notes, note) { + if (notes.__visible__) { + notes.__visible__.style.display = 'none'; + } + if (notes[note]) { + notes[note].style.display = 'block'; + notes.__visible__ = notes[note]; + }else{ + notes.__visible__ = null; + } + }; + this.onlyNumbers = function(string) { + return /^\d+$/.test(string); + }; + + /** + * input states + */ + this.ERROR = "error"; + this.SUCCESS = "success"; + this.EMPTY = "empty"; + this.PROVED = "proved"; + this.NOT_PROVED = "notProved"; +}; + +Friends.FieldValidator.ICQ = function(element, params) { + var _this = this; + this.field = y5.Dom.getDescendant(element, '*', this.prefix + 'field'); + this.notes = this.getNotes(element); + function check() { + _this.check(); + } + y5.Events.create('keyup', check, element, true); + + this.check = function() { + var result = this.SUCCESS; + if (this.field.value.length && !this.onlyNumbers(this.field.value)) { + result = this.ERROR; + } + y5.Events.notify('y5:validationState', this.field, true, {state: result, element: this.field}); + this.showNote(this.notes, result); + }; +}; +Friends.FieldValidator.ICQ.prototype = Friends.FieldValidator; + +Friends.FieldValidator.Email = function(element, params){ + var _this = this; + this.field = y5.Dom.getDescendant(element, '*', this.prefix + 'field'); + this.notes = this.getNotes(element); + function check(e) { + if (typeof(e.value) != y5.Vars.UNDEF && e.value === null){ + return; + } + _this.check(true); + } + if (params.eventType) { + var elements = document.getElementsByTagName(params.eventTargetTagName); + if (elements.length > 0) { + var obj = elements[params.eventTargetName]; + new y5.AEventListener(params.eventType, + function(e) { + if (_this.check() == _this.ERROR) { + e.preventDefault(); + } + }, obj, true); + } + } + else { + y5.Events.create('change', check, this.field, true); + y5.Events.observe('y5:change', check, this.field, true); + } + + this.email = function(string){ + return /^[\w-]+([\.+][\w-]+)*@([\w-]+\.)+[a-z]{2,7}$/i.test(string); + }; + + this.check = function(init) { + var result = this.NOT_PROVED; + var email = this.field.value; + var placeholder = this.field.getAttribute('placeholder'); + + if ((email == '' || placeholder && email == placeholder) && init){ + result = this.EMPTY; + }else if (new RegExp('\\|' + email + '\\|').test(this.validated)){ + result = this.PROVED; + }else if(!this.email(email)) { + result = this.ERROR; + } + y5.Events.notify('y5:validationState', this.field, true, {state:result,element:this.field}); + this.showNote(this.notes, result); + return result; + }; + + this.getValidatedEmails = function(string) { + return string.replace(/<[^>]*>/ig, '|').replace(/\|\|/ig, '|'); + }; + + this.validated = params.data ? this.getValidatedEmails(params.data) : ''; + this.check(true); +} +Friends.FieldValidator.Email.prototype = Friends.FieldValidator; + +y5.require(['Events'], function() {y5.loaded('{Friends}.FieldValidator')}) diff --git a/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                              {popup_items}
                                            '].join(""),popup_item:'
                                          • {title}
                                          • ',popup_item_selected:'
                                          • {title}
                                          • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                                            ','','
                                            ','
                                            ','','','','
                                            {content}',"
                                            ","
                                            ","
                                            ","
                                            "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                              {items}
                                            ',""].join(""));a.templates.menuItem=a.template(['
                                          • ','
                                            ','{title}',"
                                            ","
                                          • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                                            ','',"
                                            ",""].join("")),itemResult:a(['
                                            ','
                                            ','
                                            ','
                                            ',"
                                            {title}",'{count}',"
                                            ","
                                            "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                                            {items}{actions}
                                            '),actionLink:a('
                                            {title}
                                            '),expired:a('
                                            {title}
                                            ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                                            ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                                             
                                            ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                                            обновление...
                                            ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                                            {(moreAsUpdate)[
                                            я в курсе
                                            ]}
                                            {(allItems)({(moreAsUpdate)()[]})}
                                            '),viewportLayout:b('
                                            {(titleButton)({titleButton})}
                                            показать ещё
                                            '),group:b('
                                            {timestamp}
                                            {items}
                                            '),item:b('
                                            {user} — {title}
                                            '),likeItem:b('
                                            {user} {appreciate} запись {title}
                                            '),recommendItem:b(''),replyItem:b('
                                            {user}{separator} {title}
                                            '),photoItem:b('
                                            {alt}
                                            '),videoItem:b('
                                            {duration}
                                            '),videoContainer:b('
                                            {items}
                                            '),albumsContainer:b('
                                            {items}
                                            '),videoCollection:a.template('
                                            {content}
                                            ',{content:""}),videoCollectionItem:b('
                                            {count} видео
                                            '),albumItem:b('
                                            {title}
                                            {count}
                                            '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                                            {title}
                                            '),wishlistItem:b('
                                            {title}
                                            {title}
                                            '),wishlistPromisedItem:b('
                                            {info}
                                            {title}
                                            отменить
                                            '),ratingInfo:b(''),onload:b('
                                             
                                            '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                                            ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                                            "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/_post-add-includes.js b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/_post-add-includes.js new file mode 100644 index 0000000..0ac80c6 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/_post-add-includes.js @@ -0,0 +1,11 @@ +(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                                            ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                                            ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);window.g_sizePicture=function(){return"normal"};Friends.ClassPictureLoader=function(){};Friends.ClassPictureLoader.prototype={className:"pictureloader-",getElement:function(a){return y5.Dom.getDescendant(this.element,"*",this.className+a)},default_enctype:"",initBase:function(a,b){this.__listeners=[];this.element=a;this.file=this.getElement("file");this.form=this.file.form;this.filename=this.getElement("filename");this.filename.value=y5.Utils.generateId();this.label=this.getElement("label")||document.createElement("label");this.__listeners.push(y5.Events.observe("y5:"+y5.Utils.getUniqueId(this.form),this.change,this.form,true,this));this.__listeners.push(y5.Events.observe("y5:load",this.clearFile,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:error",this.error,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:readyforsend",this.sendPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:send",this.showPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:disableByRename",this.disableByRename,this.form,true,this));y5.Events.create("submit",this.enableByRename,this.form,true,this);return this.form},createFromTag:function(a,b){this.initBase(a,b)},sendPictureBase:function(){this.getElement("filename").value=y5.Utils.generateId()},change:function(){this.sendPicture(this.form);if(!this.delListener){var a=this.getElement("delete");if(a){this.delListener=new y5.AEventListener("click",this.deleteImage,a,false,this)}}if(this.delListener){this.delListener.add()}},error:function(){this.deleteImage(this.filename,this.label);y5.Classes.remove(this.label,"active");y5.Classes.remove(this.label,"load");y5.Classes.add(this.label,"error");this.clearFile();if(this.delListener){this.delListener.remove()}},deleteImage:function(){this.filename.value="";y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");y5.Classes.remove(this.label,"active");y5.Classes.add(this.label,"new");try{Friends.ChangeUserpicControl.Constructor.prototype.instance.activateCurrent()}catch(a){}if(this.delListener){this.delListener.remove()}},clearFile:function(){this.filename.value="";var a=this.file.parentNode;a.innerHTML=a.innerHTML;this.file=a.firstChild},sendForm:function(action){var _this=this;y5.Events.notify("y5:disableByRename",_this.form,true,_this.element);_this.enableByRename();_this.setFormEnctype();function response(result,trace){if(!result||!y5.Strings.trim(result)){y5.Events.notify("y5:error",_this.element,true,null);return}result=eval("("+result+")");if(!result.name){y5.Events.notify("y5:error",_this.element,true,null);return}y5.Events.notify("y5:send",_this.element,true,result);_this.restoreFormEnctype()}function error(result,trace){y5.Events.notify("y5:error",_this.element,true,null);_this.restoreFormEnctype()}if($("input[name='sk']").length){var ticketInput=$(''),utInput=$('');$(this.form).append(ticketInput,utInput)}ya.controls.pictureUpload(action,this.form,{},function(_this){return function(){_this.sendFormHandler.apply(_this,arguments)}}(this),error)},sendFormHandler:function(a,b){if(!a||!a.name){y5.Events.notify("y5:error",this.element,true,null);return}y5.Events.notify("y5:send",this.element,true,a);this.restoreFormEnctype();$("input[name='ticket']",this.form).remove();$("input[name='ut']",this.form).remove()},disableByRename:function(b){if(b==this.element){return}var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(c){if(c.name.indexOf("_disabledByRename")===-1){c.name=c.name+"_disabledByRename"}})},enableByRename:function(){var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(b){if(b.name.indexOf("_disabledByRename")!==-1){b.name=b.name.replace("_disabledByRename","")}})},restoreFormEnctype:function(){if(!y5.is_ie){this.form.enctype=this.default_enctype}},setFormEnctype:function(){this.default_enctype=this.form.enctype;this.form.enctype="multipart/form-data"},dectruct:function(){var b,a;for(b=0,a=this.__listeners.length;b"+b.innerHTML+"";new y5.AEventListener("click",this.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,this);y5.Classes.replace(this.dom_status,"load","new");this.imageURL_input.value=a;y5.Events.notify("y5:load",this.element,true,c)};Friends.ClassPictureLoaderOnePhoto.prototype.showPictureByURL=function(b,d){this.modeLoading();var c=new Image(),a=this;$(c).bind("load",function(){var e=document.createElement("img");e.src=b;a.delPhoto();y5.Classes.add(a.dom_status,"new");y5.Classes.remove(a.dom_status,"error");var h=document.createElement("div");var f=document.createElement("i");f=h.appendChild(f);f.className="del";h.appendChild(e);var g=y5.$("photo-holder");g.innerHTML="
                                            "+h.innerHTML+"
                                            ";new y5.AEventListener("click",a.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,a);y5.Classes.replace(a.dom_status,"load","new");a.dom_image_link.value=d;a.imageURL_input.value=""});$(c).bind("error",function(){a.modeNormal()});c.src=b};y5.loaded("{Friends}.classes.ClassPictureLoaderOnePhoto")});y5.require(["Ajax","AjaxForm","Dom","Events","Utils","Classes","{Friends}.classes.ClassPictureLoader"],function(){Friends.PictureLoader=new Friends.ClassPictureLoader();y5.loaded("{Friends}.PictureLoader")});y5.require(["Events","Strings","Dom","Classes","{Friends}.PictureLoader"],function(){Friends.PictureLoaderPhoto=function(f,g){this.initBase(f,g);this.list=this.getPhotoList();var d=y5.Dom.getDescendants(y5.$("photo-holder"),"i","del");for(var e=0,c=d.length;ethis.last_id){this.last_id=c}}}}this.last_id+=1;return this.last_id};var b="b-input-empty",a=function(){};Friends.PictureLoaderPhoto.prototype.restore=a;Friends.PictureLoaderPhoto.prototype.normalize=function(){var c=this.form.elements,d,f={},e="";for(d=0;d0){$(this.control).find("div.b-write-submit,div.b-preview-write-submit").find("input.submit").each(function(c){var d=a.previewModeBtns[c];var b=this;if(d){$(d).removeClass("i-hidden");if(!d.onclick&&a.params.comment){$(d).unbind("click").click(function(){$(b).click()})}d.onclick=b.onclick;d.value=b.value}});if(!a.params.comment){$(this.previewModeBtns[0]).unbind("click").click(function(){$(a.control).submit()})}}if(this.previewButton){$(this.previewButton).unbind("click").click(function(){a.togglePreview()})}if(this.editButton){$(this.editButton).unbind("click").click(function(){a.toggleEdit()})}if(!this.params.comment){$(this.control).submit(function(b){a.safeSaving();b.preventDefault()})}},getPostType:function(){return this.postType.value},showMessage:function(a){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible"},togglePreview:function(){if(!this.renderPreviewBtn){return}var _this=this;$(".b-captcha").remove();if(_this.params.comment){$('[name="item_no"]',this.control).attr("name","_item_no");$('[name="access_type"]',this.control).attr("name","_access_type")}var prevewReq=new y5.Request.Form(this.url.Preview,{transport:"XML"});function _restoreInput(){if(_this.params.comment){$('[name="_item_no"]',this.control).attr("name","item_no");$('[name="_access_type"]',this.control).attr("name","access_type")}}prevewReq.onload=function(resp){_restoreInput();var response=resp.responseText;var respJSON=null;try{respJSON=y5.JSON.decode(response)}catch(e){this.onerror(e);return}if(respJSON.status&&respJSON.status=="Success"){_this.stopAjaxAnim();_this.toggleState();_this.noteCurrent=$(_this.previewContainer).find("b.b-note-attention")[0];$(_this.previewContent).html(respJSON.html);y5.Components.init(_this.previewContent);ya.helpers.smileHelper.processSmiles(_this.previewContent);$(_this.previewContent).find(".b-control-vote").each(function(i,e){ya.instances.push(new ya.controls.Vote(e))});$(_this.previewContent).yshow();if($.browser.webkit&&navigator.platform&&navigator.platform.match(/win/i)){ya.forceRedraw($(_this.previewContent)[0])}var match,scriptRe=/]*>((.|\n)+?)<\/script>/img;while((match=scriptRe.exec(response))!==null){eval(match[1])}_this.previewInProgress=false}else{this.onerror(respJSON)}};prevewReq.onerror=function(e){_restoreInput();var error_msg=_this.createErrorMessage(e&&e.reason);_this.stopAjaxAnim();$(_this.noteCurrent).html(error_msg);_this.noteCurrent.style.visibility="visible";_this.previewInProgress=false};prevewReq.onexception=prevewReq.onerror;blogCompose.sanitize();if(!this.previewInProgress){this.startAjaxAnim();prevewReq.send(_this.control);this.previewInProgress=true}},toggleEdit:function(){$(".b-captcha").remove();this.noteCurrent.style.visibility="hidden";this.noteCurrent=this.noteEdit;this.toggleState();$(this.previewContent).addClass("i-hidden");if(g_globals.current_location.page=="posts_add_wishlist"){y5.Events.notify("click",$("div.notfound span.b-inplace-action")[0],true)}if(this.textarea){this.textarea.value=this.textarea.value.replace(//ig,"\n")}},onSubmitEnabled:function(){this.renderPreviewBtn=true;$(this.previewBtnContainer).removeClass("disabled")},onSubmitDisabled:function(){this.renderPreviewBtn=false;$(this.previewBtnContainer).addClass("disabled")},toggleState:function(){$(this.formTable).toggleClass("i-hidden");$(this.previewContainer).toggleClass("i-hidden");this.noteCurrent.style.visibility="hidden"},startAjaxAnim:function(){$(this.noteCurrent).removeClass("b-note-attention").addClass("b-note-loading");this.noteCurrent.innerHTML=" ";this.noteCurrent.style.visibility="visible"},stopAjaxAnim:function(){this.noteCurrent.style.visibility="hidden";$(this.noteCurrent).removeClass("b-note-loading").addClass("b-note-attention")},createErrorMessage:function(b){var a;if(b){a=b}else{a="К сожалению, действие совершить не удалось.
                                            Попробуйте ещё раз."}return a},createCaptcha:function(a,b){return'

                                            '+this.params.dps["save-error--captcha"]+'

                                             

                                            '},validate:function(){var a="";if(g_globals.current_location.page=="posts_add_invite"){if(y5.Strings.isVoid($(this.control).find(".FieldValidator-field")[0].value)){a="email не задан."}}return a},successHandler:function(a){y5.Events.notify("Friends:formSaved",this.control);window.location.href=a.url},safeSaving:function(){if(this.savingInProcess){return}var a=this.validate();if(a.length){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible";return}var c=this;c.startAjaxAnim();var b=new y5.Request.Form(friendsURL(this.url.Posting),{method:"post",transport:"XML"});b.onload=function(g){c.stopAjaxAnim();if(window.w5GControl){window.w5GControl.clearLocalStorage()}var d="";try{d=g.json(g.responseText)}catch(f){this.onerror();return}if(d.status&&d.status==="Success"){c.successHandler(d)}else{this.onerror(d)}};b.onerror=function(d){var g=typeof d==="object"?d:{reason:false};if(d&&typeof d.responseText==="string"){try{g=y5.JSON.decode(d.responseText)}catch(j){g={reason:false}}}c.savingInProcess=false;c.stopAjaxAnim();var f=$(".b-captcha");if(g.captcha){var i=c.createCaptcha(g.captcha,g.reason);if(f.length){f.replaceWith(i)}else{$(c.noteCurrent).before(i)}}else{if(f.length){f.remove()}}if(g.dps!="post--captcha_key-NOT_EMPTY"){var h=c.createErrorMessage(g.reason);c.noteCurrent.innerHTML=h;c.noteCurrent.style.visibility="visible"}};b.onexception=function(d){this.onerror(d)};blogCompose.sanitize();if(!this.savingInProcess){this.savingInProcess=true;b.send(this.control);this.startAjaxAnim()}}};y5.require(["Dom","Events","Request.Form","URL"],function(){y5.loaded("{Friends}.PostPreviewAndSaving")});y5.require(["Dom","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(d,e){this.control=d;this.params=e||{};this.whether_loaded=false;var b=y5.Dom.getDescendantOrSelf(this.control,"code","Friends-later-ImageLoadable");var f=b.onclick()||{};this.params.src=f.src;var c=document.createElement("img");y5.Classes.add(c,"i-hidden");y5.Dom.replaceNode(b,c);this.image=c;y5.Events.observe("load",this.onLoadHandler,this.image,true,this)};a.prototype.load=function(){if(!this.whether_loaded){this.image.src=this.params.src;this.whether_loaded=true}};a.prototype.onLoadHandler=function(){y5.Classes.remove(this.image,"i-hidden")};Friends.ImageLoadable=a;y5.loaded("{Friends}.ImageLoadable")});Friends.ChooseUserpicControlCached=function(a){this.control=a;this.radios=null;this.userpics=null;this.active=0;this.chooserText=0;this.prevChooser=0;this.nextChooser=0;this.removeText=0;this.init()};Friends.ChooseUserpicControlCached.prototype.showActive=function(e,d){if(!this.userpics.length){return}var a,c,b;this.active=(this.userpics.length+this.active+d)%this.userpics.length;for(c=0,b=this.userpics.length;c'+this.source.getUserpicContent({id:e,size:"normal",src:h})+"";g.appendChild(f);this.userpics.push(f);this.tbody.appendChild(g);this.showActive(null,this.userpics.length-this.active-1);var d,a;if(this.userpics.length>1){for(d=0,a=this.userpics.length;d'+this.source.getUserpicContent({id:c,size:"normal",src:f})+"";e.appendChild(d);this.tbody.appendChild(e);e.style.display="block";d.style.display="block"};Friends.ChooseUserpicControlCached.prototype.del=function(b){var a=this.active;if(typeof(b)!=="undefined"){a=b}y5.Dom.replaceNode(this.userpics[a].control.parentNode);this.userpics.splice(a,1);this.radios.splice(a,1);this.showActive(null,(this.active==0)?0:-1);this.setChooserText();y5.Events.notify("y5:deleteUploadUserpic",Friends,true,row.getElementsByTagName("input")[0].value)};Friends.ChooseUserpicControlCached.prototype.createSelector=function(e,h,j,f){var b=document.createElement("a"),i="";var c=document.createElement("img");c.src=g_globals.img_base+"control/userpic-"+e+i+".gif";c.alt=j;c.title="";var g=(this.userpics.length<2);y5.Classes.add(b,e);b.appendChild(c);b.title=f;return b};Friends.ChooseUserpicControlCached.prototype.changeSelector=function(f,e,d,b){var a=f.firstChild;if(e){y5.Classes.add(f,"disabled");if(a.src.indexOf("-disabled")===-1){a.src=a.src.replace(/.gif/,"-disabled.gif")}a.parentNode.onclick=null;a.parentNode.onmouseover=null;a.parentNode.onmouseout=null}else{var c=a.src.indexOf("userpic-");y5.Classes.remove(f,"disabled");a.src=a.src.replace(/-disabled/,"");a.parentNode.onclick=associateEventWithObject(this,"showActive",d);a.parentNode.onmouseover=associateEventWithObject(this,"mouseover",b);a.parentNode.onmouseout=associateEventWithObject(this,"mouseout",b)}};Friends.ChooseUserpicControlCached.prototype.setChooserText=function(){if(this.userpics.length===0){this.addDefaultUserpic();y5.Classes.add(this.nextChooser,"i-hidden");y5.Classes.add(this.prevChooser,"i-hidden")}var c,a=this.userpics.length;if(a==0){c="нет картинок"}else{if(a==1){c="1 картинка"}else{c=(this.active+1)+" из "+a}}if(this.removeText){if(!a||this.radios[this.active].value==""){y5.Classes.add(this.removeText,"remove-disabled")}else{y5.Classes.remove(this.removeText,"remove-disabled")}}var b=(a<=1);this.changeSelector(this.prevChooser,b,-1,"prev");this.changeSelector(this.nextChooser,b,+1,"next");this.chooserText.innerHTML=c};Friends.ChooseUserpicControlCached.prototype.init=function(){this.tbody=y5.Dom.getDescendant(this.control,"tbody","*");if(!this.tbody){return}var g=this.tbody.getElementsByTagName("tr");var f=g.length;this.radios=new Array(f);this.userpics=new Array(f);this.source=g_source;for(var c=0;c-6){a(this.userpics,b+this.active);b--}};Friends.ChooseUserpicControlCached.prototype.destruct=function(){this.control.control=null;this.control=null};y5.require(["Dom","Events","Classes","Strings","{Friends}.ImageLoadable"],function(){y5.loaded("{Friends}.ChooseUserpicControlCached")});Friends.SubmitShortcut=function(){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.SubmitShortcut.prototype.init=function(d){this.__listeners=[];this.submit_btn=y5.Dom.getDescendant(d,"input","submit");this.submited=false;var f=this.submit_btn.form;y5.Events.observe("y5:form_destructed",b,f,true,this);this.__listeners.push(y5.Events.observe("submit",a,f,true,this));var c=this,g=function(h){if(h.keyCode=="13"&&h.ctrlKey){e.call(c)}};this.__listeners.push(y5.Events.observe("keydown",g,f,true,c));this.__listeners.push(y5.Events.observe("y5:w5g_ctrlEnter",e,Friends,true,this));this.__listeners.push(y5.Events.observe("y5:enableSubmit",function(){this.submited=false},Friends,true,this));function a(h){if(this.submited){h.preventDefault()}this.submited=true}function e(){new y5.Event("click",this.submit_btn,true);this.submit_btn.click()}function b(){var j,h;for(j=0,h=this.__listeners.length;j');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u)}}}d.style.display="none";document.body.appendChild(d);d.submit();return false},fields:["body","title","userpic","access","tags","item_time_day","item_time_month","item_time_year","item_time_minute","URL","url","uid","id","login"]};y5.require(["Dom","Events"],function(){y5.loaded("{Friends}.SaveStateForm")});y5.require([],function(){var a=function(){};a.prototype.init=function(b){this.params=b;this.next_link=b.next_link;this.prev_link=b.prev_link;this.visible_length=b.visible_length||4;y5.Events.observe("click",this.nextLink,this.next_link,true,this);y5.Events.observe("click",this.prevLink,this.prev_link,true,this);return this};a.prototype.setCollection=function(b){this.collection=b;this.left_index=0;this.setLeftmostIndex(0);return this};a.prototype.setLeftmostIndex=function(d){if(!this.collection){return false}this.collection.items.forEach(function(e){y5.Events.notify("y5:UICarousel:hide",this,true,{item:e})},this);this.left_index=(this.collection.items.length+d)%this.collection.items.length;y5.Events.notify("y5:UICarousel:set_index",this,true,{index:d});var b=function(f){var e=this.collection.items;f=(e.length+f)%e.length;var g=e[f];y5.Events.notify("y5:UICarousel:show",this,true,{item:g})},c;for(c=0;c0){this.init.apply(this,arguments)}};a.prototype.init=function(){};a.prototype.select=function(){};a.prototype.unselect=function(){};a.prototype.selectIf=function(b,c){if(c){this.select(b)}};a.prototype.unselectIf=function(b,c){if(c){this.unselect(b)}};a.prototype.add=function(c,d){var b=y5.Utils.getUniqueId(c);if(!(b in this.uids)){this.items.push(c);this.uids[b]={item:c,index:this.items.length-1,data:d};y5.Events.notify("y5:UICollection:add",this,true,{item:c});this.addEvents(c);return false}return true};a.prototype.get=function(e){var d,c;if(typeof e==="number"){d=this.items[e];if(!d){return false}c=y5.Utils.getUniqueId(d)}else{if(typeof e==="string"){c=e}else{if(typeof e==="object"){c=y5.Utils.getUniqueID(d)}}}if(!(c in this.uids)){return false}var b=this.uids[c];return b};a.prototype.remove=function(c){var b=y5.Utils.getUniqueId(c);if(b in this.uids){var d=this.uids[b];this.items.splice(d.index,1);delete this.uids[b];y5.Events.notify("y5:UICollection:remove",this,true,{item:c});return false}return true};a.prototype.addEvents=function(b){};Friends.UICollection=a;y5.loaded("{Friends}.UICollection")});y5.require(["{Friends}.UICollection"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype=new Friends.UICollection();a.prototype.init=function(b){this.items=[];this.uids={};this.selectedItem=null;this.params=b||{};return this};a.prototype.addEvents=function(b){if(!this.params.noclick){y5.Events.observe("click",function(c){this.select(b)},b,true,this)}};a.prototype.select=function(c){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];this.unselect(this.selectedItem);this.selectedItem=c;y5.Events.notify("y5:UICollection:select",this,true,{item:c,data:d.data})};a.prototype.unselect=function(c){if(c!==null){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];y5.Events.notify("y5:UICollection:unselect",this,true,{item:c,data:d.data})}};Friends.UICollectionRadio=a;y5.loaded("{Friends}.UICollectionRadio")});y5.require(["{Friends}.UICollectionRadio","{Friends}.UICarousel","Widget","Utils"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype.init=function(b,c){y5.Events.observe("y5:make",function(d){this.widget=d;this.initAsControl(d.window,this.params);if(!this.has_been_inited){this.initWidgetEvents();this.has_been_inited=true}y5.Classes.add(d.button_ok,"i-hidden")},b,true,this);y5.Events.observe("y5:show",function(d){if(typeof d.caller==="object"){this.caller=d.caller;this.showWidget(b)}},window,true,this);return this};a.prototype.initWidgetEvents=function(){y5.Events.observe("y5:ok",function(){y5.Events.notify("y5:card:ok",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:esc",function(){y5.Events.notify("y5:card:esc",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:cancel",function(){y5.Events.notify("y5:card:cancel",this.caller,true,{caller:this});return true},this.widget.element,true,this)};a.prototype.initAsControl=function(c,d){this.control=c;this.params=d;var b=y5.Dom.getDescendant(this.control,"b","ff");var e=y5.Dom.getDescendant(this.control,"b","rev");this.carousel=new Friends.UICarousel().init({next_link:b,prev_link:e});y5.Events.observe("y5:UICarousel:prev",this.carouselPrev,this.carousel,true,this);y5.Events.observe("y5:UICarousel:next",this.carouselNext,this.carousel,true,this);y5.Events.observe("y5:UICarousel:hide",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.add(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:show",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.remove(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:set_index",function(g){var h=g.index;var f=this.carousel.collection.items.length;var i=this.carousel.visible_length;var j=(i+h-f);if(h==0){y5.Classes.add(this.carousel.prev_link,"i-hidden")}else{y5.Classes.remove(this.carousel.prev_link,"i-hidden")}if(h+i>=f){y5.Classes.add(this.carousel.next_link,"i-hidden")}else{y5.Classes.remove(this.carousel.next_link,"i-hidden")}},this.carousel,true,this);this.holiday_links=new Friends.UICollectionRadio().init();y5.cssQuery("ul.b-list-links li",this.control).forEach(function(f){var h=f.onclick().holiday;var g=y5.Dom.getDescendant(this.control,"tr","holiday_".concat(h));var i=this.initCardsCollection(g);this.holiday_links.add(f,{holiday_id:h,dom_cards:g,cards_collection:i})},this);y5.Events.observe("y5:UICollection:select",this.selectHoliday,this.holiday_links,true,this);y5.Events.observe("y5:UICollection:unselect",this.unselectHoliday,this.holiday_links,true,this);this.holiday_links.select(this.holiday_links.items[0])};a.prototype.showWidget=function(b){y5.Widget.make(b,"Widget.Dialog.Standard",{title:"Вставить открытку",valign:"30%"})};a.prototype.carouselPrev=function(b){};a.prototype.carouselNext=function(b){};a.prototype.initCardsCollection=function(b){var c=new Friends.UICollectionRadio().init();y5.cssQuery("img.postcard",b).forEach(function(d){c.add(d)});y5.Events.observe("y5:UICollection:select",this.choosePostcard,c,true,this);return c};a.prototype.choosePostcard=function(b){this.selected_card=b.item.onclick();this.widget.fireOk()};a.prototype.selectHoliday=function(b){var c=b.item;y5.Classes.add(c,"active");y5.Classes.remove(b.data.dom_cards,"i-hidden");var d=b.data.cards_collection;this.carousel.setCollection(d)};a.prototype.unselectHoliday=function(b){var c=b.item;y5.Classes.remove(c,"active");y5.Classes.add(b.data.dom_cards,"i-hidden")};Friends.Postcard=a;y5.loaded("{Friends}.Postcard")});Friends.ChangeUserpicControl=function(a){if(arguments.length>0){var b=new Friends.ChangeUserpicControl();b.init.apply(this,arguments);return b}};Friends.ChangeUserpicControl.prototype.init=function(a){var b=this;this.control=a;this.current=null;this.pointer=null;this.selected_span=0;this.form=y5.Dom.getAncestorOrSelf(this.control,"form");this.submit=y5.cssQuery('input[type="submit"]',this.form)[0];y5.Events.observe("y5:choose_userpic",this.chooseUserpic,this,true,this);Friends.ChangeUserpicControl.lastCreatedInstance=this};Friends.ChangeUserpicControl.prototype.chooseUserpic=function(a){if(this.pointer!=null){this.pointer.modeUnchoosed()}this.pointer=a.userpic};y5.loaded("{Friends}.ChangeUserpicControl");y5.require(["{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(c,d){this.control=c;this.params=d;this.options=y5.cssQuery("li.answer",this.control);this.options.forEach(function(e,f){y5.cssQuery("input",e).forEach(function(g){this.disableSubmit(g)},this)},this);this.dom_options_holder=y5.Dom.getAncestor(this.options[0],"ul");this.dom_add_option=y5.cssQuery("div.add span",this.control)[0];y5.Events.observe("click",this.addOption,this.dom_add_option,true,this);this.dom_remove_option=y5.cssQuery("span.js-remove",this.control);this.dom_remove_option.forEach(function(f){b(f)})};a.prototype.disableSubmit=function(c){y5.Events.observe("keypress",function(d){var e=d.keyCode;if(e==13){d.stopPropagation();d.preventDefault()}},c,true,this)};a.prototype.addOption=function(){y5.cssQuery(".answer .js-remove",this.control).forEach(function(g){y5.Classes.add(g,"i-hidden")});var c=document.createElement("span");c.innerHTML="";c.className="remove js-remove";b(c);var d=this.options[0].cloneNode(true);var f=y5.cssQuery("li.answer input",this.control);var e=Number(f[f.length-1].id)+1;y5.cssQuery("input",d).forEach(function(g){g.id=e;g.value="";g.name="option".concat(e);this.disableSubmit(g);y5.Dom.insertAfter(c,g)},this);this.dom_options_holder.appendChild(d);this.options.push(d)};var b=function(c){y5.Events.observe("click",function(){y5.Dom.removeNode(y5.Dom.getAncestors(c,"li","answer")[0]);var d=y5.cssQuery("li.answer .js-remove",this.control);if(d.length-1>=0){y5.Classes.remove(d[d.length-1],"i-hidden")}},c,true,this)};Friends.Poll=a;y5.loaded("{Friends}.Poll")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);var b=a.prototype;b.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initUrlBlock();this.initMarketSearchBlock();return this};b.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};b.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};b.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};b.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};b.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};b.initUrlBlock=function(){this.dom_url_block_switcher=y5.Dom.getDescendant(this.control,"span","action-link");this.dom_url_block=y5.Dom.getDescendant(this.control,"div","b-write-link");this.dom_input_url=y5.Dom.getDescendant(this.dom_url_block,"input","*");var c=y5.Dom.getDescendant(this.dom_url_block,"a","*");if(this.dom_input_url.value!=""){this.showURLBlock("nofocus")}y5.Events.observe("click",this.followURL,c,true,this);y5.Events.observe("click",this.showURLBlock,this.dom_url_block_switcher,true,this)};b.showURLBlock=function(){y5.Classes.remove(this.dom_url_block,"i-hidden");if(this.dom_url_block_switcher){y5.Classes.add(this.dom_url_block_switcher,"i-hidden")}if(arguments.length==0){this.dom_input_url.focus()}};b.fillURL=function(c){this.showURLBlock();this.dom_input_url.value=this.processURL(c)};b.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};b.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};b.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};b.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};b.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};b.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};b.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};b.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};b.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};b.notFoundMessage=function(){this.modeNotFound()};b.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};b.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_input_url);this.inputOff(this.dom_title);this.photoloader.disable()};b.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearch:select",a,true);this.modeNormal();this.fillURL(c.model_url);this.server_market_id.value=c.model_id;this.server_market_url.value=c.model_url;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};b.cancelWishcard=function(){this.photoloader.delPhoto();this.dom_input_url.value="";this.server_market_id.value="";this.server_market_url.value="";this.inputOn(this.dom_input_url);this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearch:unselect",a,true)};b.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};b.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.Wishlist=a;y5.loaded("{Friends}.Wishlist")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor","{Friends}.CheckChangesSaved"],function(){var b=Friends.CommonConstructor(Friends.BasicControl);var a=b.prototype;a.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initMarketSearchBlock();return this};a.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};a.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};a.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};a.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};a.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};a.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};a.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};a.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};a.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.dom_changemind=this.dom_changemind||document.createElement("div");this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};a.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};a.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};a.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};a.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};a.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};a.notFoundMessage=function(){this.modeNotFound()};a.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};a.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_title);this.photoloader.disable()};a.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearchGrades:fillWishcard",b,true);this.modeNormal();this.server_market_id.value=c.model_id;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};a.cancelWishcard=function(){this.photoloader.delPhoto();this.server_market_id.value="";this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearchGrades:cancelWishcard",b,true)};a.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};a.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.MarketSearchGrades=b;y5.loaded("{Friends}.MarketSearchGrades")});y5.require(["{Friends}.CommonConstructor","{Friends}.UICollectionRadio","{Friends}.MarketSearchGrades"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(d,e){this.control=d;this.params=e;this.whether_editing_post=!y5.Strings.isVoid(y5.cssQuery('input[name="market_id"]',this.control)[0].value);var c=y5.Dom.getDescendant(this.control,"*","js-major-grades");this.major_smiles=new Friends.UICollectionRadio().init();this.additional_smiles=[];this.dom_all_grades=y5.Dom.getDescendant(this.control,"*","js-all-grades");this.grades_table=y5.Dom.getDescendant(this.control,"*","js-all-grades-table");y5.cssQuery("tr",this.grades_table).forEach(function(f){this.createGradesLine(f)},this);this.on("click",function(){if(this.whether_advanced_grades){this.hideAdvancedGrades()}else{this.showAdvancedGrades()}},this.dom_all_grades);var b=y5.cssQuery("div.active",this.grades_table).length>0;b=b||y5.cssQuery(".js-advanced-grades input").some(function(f){return f.value.length>0});if(b){this.showAdvancedGrades()}y5.Events.observe("y5:UICollection:select",function(f){var g=f.data;y5.Classes.add(f.item,"active");this.show(f.data.dom);g.server.value=g.value},this.major_smiles,true,this);y5.Events.observe("y5:UICollection:unselect",function(f){y5.Classes.remove(f.item,"active");this.hide(f.data.dom)},this.major_smiles,true,this);y5.cssQuery("div.smile",c).forEach(function(f){var g=f.onclick();var h=y5.cssQuery(g.server_selector,this.control)[0];var i=y5.cssQuery(g.selector,c)[0];this.major_smiles.add(f,{dom:i,server:h,value:g.value});var j=y5.Classes.test(f,"active");this.major_smiles.selectIf(f,j)},this);this.on("y5:MarketSearch:select",this.modeAdvanced,Friends.MarketSearchGrades);this.on("y5:MarketSearch:unselect",this.modeSimple,Friends.MarketSearchGrades);if(this.whether_editing_post){this.modeAdvanced(".js-mode-advanced:not(.js-not-editable)")}};a.prototype.enable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.show(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.removeAttribute("disabled")},this)},this)};a.prototype.disable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.hide(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.setAttribute("disabled","disabled")},this)},this)};a.prototype.modeAdvanced=function(b){b=b||".js-mode-advanced";this.enable(b)};a.prototype.modeSimple=function(b){b=b||".js-mode-advanced";this.disable(b);this.hideAdvancedGrades()};a.prototype.showAdvancedGrades=function(){this.whether_advanced_grades=true;y5.Classes.add(this.dom_all_grades,"open");this.enable(".js-advanced-grades")};a.prototype.hideAdvancedGrades=function(){this.whether_advanced_grades=false;y5.Classes.remove(this.dom_all_grades,"open");this.disable(".js-advanced-grades")};a.prototype.createGradesLine=function(c){var b=new Friends.UICollectionRadio().init();y5.Events.observe("y5:UICollection:select",function(d){var e=d.data;y5.Classes.add(d.item,"active");e.server.value=e.value},b,true,this);y5.Events.observe("y5:UICollection:unselect",function(d){y5.Classes.remove(d.item,"active")},b,true,this);y5.cssQuery("div.smile",c).forEach(function(d){var e=d.onclick();var f=y5.cssQuery(e.server_selector,this.control)[0];b.add(d,{server:f,value:e.value});var g=y5.Classes.test(d,"active");b.selectIf(d,g)});this.additional_smiles.push(b)};Friends.MarketGrades=a;y5.loaded("{Friends}.MarketGrades")});Friends.KeywordsControl=new function(){this.createFromTag=function(a,b){new Friends.KeywordsControl.Constructor(a,b)}};Friends.KeywordsControl.Constructor=function(a,b){this.control=a;this.max=b.tagsCount||5;this.keywords=[];this.init()};Friends.KeywordsControl.Constructor.prototype=new function(){this.addKeyword=function(b){var a=y5.Strings.trim(this.input.value);if(a==y5.Strings.EMPTY){return}this.input.value=this.pushTags(a,true).join(", ")};this.delKeyword=function(a,b){y5.Dom.removeNode(a);this.keywords.splice(this.keywords.indexOf(b,0),1);this.saveKeywords();this.showKeywordsLine();this.input.focus()};this.getPreviewKeywords=function(){var c=[],b,a;for(b=0,a=this.keywords.length;b'+y5.Strings.escapeHTML(this.keywords[b])+""}return c.join(", ")};this.addUserTag=function(b){var a=y5.Strings.unescapeHTML(b.target.innerHTML);if(this.pushTag(a)){this.addKeywordElem(a)}};this.pushTags=function(f,g){var e=[],b=f.split(/[,;]/g),c,a;for(c=0,a=b.length;c=this.max){if(!j){var j=document.createElement("span");d.appendChild(j);y5.Classes.add(j,"all-tags");j.appendChild(document.createTextNode(", "))}d=j}var h=d.appendChild(b);new y5.AEventListener("click",this.addUserTag,h,true,this);if((e!=this.max-1)&&(e0){var a=new Friends.UserpicCurrent();a.createFromTag.apply(this,arguments);return a}};Friends.UserpicCurrent.prototype.createFromTag=function(a,b){this.control=a;this.params=b;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.dom_mode=y5.Dom.getDescendant(this.control,"div");y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);this.modeChoosed()};Friends.UserpicCurrent.prototype.modeChoosed=function(){this.is_choosed=true;y5.Classes.remove(this.dom_mode,"unselected");y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});y5.cssQuery('input[name="userpic"]:checked').forEach(function(a){a.checked=false});y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.remove(a,"i-hidden")})};Friends.UserpicCurrent.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.add(this.dom_mode,"unselected");y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.add(a,"i-hidden")})};y5.loaded("{Friends}.UserpicCurrent")});y5.require(["Events","{Friends}.ChangeUserpicControl","{Friends}.CommonConstructor"],function(){Friends.UserpicDeletable=function(){if(arguments.length>0){var a=new Friends.UserpicDeletable();a.createFromTag.apply(a,arguments);return a}};Friends.UserpicDeletable.prototype.createFromTag=function(b,c){this.control=b;this.control_label=y5.Dom.getDescendant(this.control,"label");this.params=c;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.createDrawButton();this.server=new y5.Request.XML("ajax/userpic_do_delete.xml",{method:"POST",callbackContext:this});this.server.onload=this.deleteUserpicHandler;this.server.onerror=this.deleteUserpicHandlerError;y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);var a=y5.Classes.test(this.control_label,"active");if(a){this.modeChoosed()}else{this.modeUnchoosed()}};Friends.UserpicDeletable.prototype.modeChoosed=function(){if(this.is_choosed){return}y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});this.is_choosed=true;y5.Classes.add(this.control_label,"active");y5.Classes.add(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0];a.checked=true};Friends.UserpicDeletable.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.remove(this.control_label,"active");y5.Classes.remove(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0]};Friends.UserpicDeletable.prototype.createDrawButton=function(){this.delete_button=y5.Elements.create(' ');y5.Classes.add(this.userpic.parentNode,"delete-userpic-holder");this.userpic.parentNode.appendChild(this.delete_button);y5.Events.observe("click",this.clickDeleteButton,this.delete_button,true,this)};Friends.UserpicDeletable.prototype.clickDeleteButton=function(a){a.stopPropagation();a.preventDefault();this.deleteUserpic()};Friends.UserpicDeletable.prototype.deleteUserpic=function(){y5.Classes.add(this.userpic,"faded");this.server.send({name:this.params.userpic,host_id:this.params.host_id})};Friends.UserpicDeletable.prototype.deleteUserpicHandler=function(a){var b=y5.JSON.decode(a.responseText);if(b.status==="Success"){y5.Dom.removeNode(this.control)}else{this.deleteUserpicHandlerError()}};Friends.UserpicDeletable.prototype.deleteUserpicHandlerError=function(){y5.Classes.remove(this.userpic,"faded")};y5.loaded("{Friends}.UserpicDeletable")});y5.require(["Events","Strings","Dom","Classes","{Friends}.classes.ClassPictureLoader","{Friends}.UserpicDeletable"],function(){Friends.PictureLoaderAvatar=function(a,c){if(arguments.length>0){var b=new Friends.PictureLoaderAvatar();b.init.apply(b,arguments);return b}};Friends.PictureLoaderAvatar.prototype=new Friends.ClassPictureLoader();Friends.PictureLoaderAvatar.prototype.showPicture=function(a){var g=this;var b=a.name;var e=g_globals.userpic_base+g_source.id+"/"+b+"-"+this.size;var d=this.image;d.onerror=function(h){d.onerror=null;y5.Events.notify("y5:error",g.element,true,null)};y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");d.src=e;this.response=a;y5.Events.notify("y5:load",this.element,true,b);if(!this.params.simpleForm){var f=this.element.cloneNode(true);var c=new Friends.UserpicDeletable(f,{userpic:b,host_id:this.params.host_id});y5.Dom.insertBefore(c.control,this.element);y5.cssQuery('input[type="file"]',c.control).forEach(function(h){y5.Dom.removeNode(h)});y5.cssQuery('input[name="userpic"]',c.control).forEach(function(h){h.value=b});this.deleteImage();c.modeChoosed()}};Friends.PictureLoaderAvatar.prototype.saveUserpic=function(a){};Friends.PictureLoaderAvatar.prototype.saveUserpicHandler=function(c){var b=c.responseText;var a=y5.JSON.decode(b);if(a.name===false){y5.Events.notify("y5:error",this.element,true,null);return false}};Friends.PictureLoaderAvatar.prototype.saveUserpicErrorHandler=function(){y5.Events.notify("y5:error",this.element,true,null)};Friends.PictureLoaderAvatar.prototype.init=function(a,b){this.initBase(a,b);this.image=this.getElement("image");y5.Events.observe("click",function(){y5.Events.notify("y5:userpic_clicked",this,true)},this.image,true,this);this.size=b.size||"normal";this.params=b};Friends.PictureLoaderAvatar.prototype.urlModify=function(){return g_globals.upics_simple_upload};Friends.PictureLoaderAvatar.prototype.sendPicture=function(){this.sendPictureBase();y5.Classes.swap(this.label,"new","load");y5.Classes.remove(this.label,"error");this.sendForm(this.urlModify())};y5.loaded("{Friends}.PictureLoaderAvatar")});var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                            У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                            '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                            "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                            /ig,"
                                            ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b=0)&&b(f,!g)}});e(function(){var f=document.body,c=f.appendChild(c=document.createElement("div"));e.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=c.offsetHeight===100;e.support.selectstart="onselectstart" in c;f.removeChild(c).style.display="none"});e.extend(e.ui,{plugin:{add:function(f,c,h){f=e.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g0){return true}f[c]=1;g=f[c]>0;f[c]=0;return g},isOverAxis:function(f,c,g){return f>c&&f'))}function N(a){return a.bind("mouseout",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==C){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.15"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('
                                            '))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f==""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]}a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b){b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";if(b==""){return null}var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l){throw"Invalid date"}return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}if(c=this._get(a,"onSelect")){e=this._formatDate(a);c.apply(a.input?a.input[0]:null,[e,a])}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+n+"";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+s+"":f?"":''+s+"";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
                                            '+(c?h:"")+(this._isInRange(a,s)?'":"")+(c?"":h)+"
                                            ":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x1){switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}}y+='">'}y+='
                                            '+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'
                                            ';var z=j?'":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="=5?' class="ui-datepicker-week-end"':"")+'>'+q[r]+""}y+=z+"";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,z)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q";var R=!j?"":'";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&ro;R+='";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+""}g++;if(g>11){g=0;m++}y+="
                                            '+this._get(a,"weekHeader")+"
                                            '+this._get(a,"calculateWeek")(r)+""+(F&&!D?" ":L?''+r.getDate()+"":''+r.getDate()+"")+"
                                            "+(l?""+(i[0]>0&&G==i[1]-1?'
                                            ':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'':"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='
                                            ',o="";if(h||!j){o+=''+i[b]+""}else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(k+=o+(h||!(j&&l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l){k+=''+c+""}else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u){k+=(h||!(j&&l)?" ":"")+o}k+="
                                            ";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.15";window["DP_jQuery_"+B]=d})(jQuery);jQuery(function(a){a.datepicker.regional.ru={closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.ru)});(function(a,b){a.namespace("locales.ru");a.locales.ru.chooseDate="выберите дату";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){b(document).ready(function(){b.datepicker.setDefaults(b.datepicker.regional.ru);var f=b(".b-control-datepicker"),h="yy-mm-dd",e="dd.mm.yy";f.datepicker({showOn:"button",buttonImage:g_globals.img_base+"b-calendar-button.png ",buttonImageOnly:true,dateFormat:e,buttonText:a.locale.chooseDate});var d=f[0];if(d&&d.form){b(d.form).bind("submit",function(){d.value=b.datepicker.formatDate(h,f.datepicker("getDate"))})}var c=f[0]?f[0].value:null;if(c){f.datepicker("setDate",b.datepicker.parseDate(h,c))}var g=b(".other-list");if(!a.support_columns(g)){g.columnize({width:200})}})})(window.ya,jQuery); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/_y.js b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/_y.js new file mode 100644 index 0000000..4f3ce8c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/_y.js @@ -0,0 +1,8 @@ +(function(b){var a={};a.imageError=function(c){var d=c.parentNode,e=d.parentNode.childNodes.length>2?d:d.parentNode;e.innerHTML='
                                            Картинка недоступна
                                            '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                            ${content}
                                            ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                            '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                            ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                            #{title}
                                            ');b.setFooter('
                                             
                                            ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                            a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                            "+""+"
                                            ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                            t
                                            ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                            ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                            ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                            ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                            ","
                                            "],thead:[1,"","
                                            "],tr:[2,"","
                                            "],td:[3,"","
                                            "],col:[2,"","
                                            "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                            ","
                                            "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                            ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Пригласить друга — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Сменить портрет — я.ру
                                            + + + +
                                            ПоискПочтаДискКалендарьДеньгиМой КругФотки
                                            + + Выход

                                            Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                                            (^_^)

                                            Сменить портрет

                                            или посмотреть, что получится
                                             
                                            или продолжить редактирование

                                            + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_userpic.xml b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_userpic.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_userpic.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                              {popup_items}
                                            '].join(""),popup_item:'
                                          • {title}
                                          • ',popup_item_selected:'
                                          • {title}
                                          • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                                            ','','
                                            ','
                                            ','','','','
                                            {content}',"
                                            ","
                                            ","
                                            ","
                                            "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                              {items}
                                            ',""].join(""));a.templates.menuItem=a.template(['
                                          • ','
                                            ','{title}',"
                                            ","
                                          • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                                            ','',"
                                            ",""].join("")),itemResult:a(['
                                            ','
                                            ','
                                            ','
                                            ',"
                                            {title}",'{count}',"
                                            ","
                                            "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                                            {items}{actions}
                                            '),actionLink:a('
                                            {title}
                                            '),expired:a('
                                            {title}
                                            ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                                            ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                                             
                                            ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                                            обновление...
                                            ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                                            {(moreAsUpdate)[
                                            я в курсе
                                            ]}
                                            {(allItems)({(moreAsUpdate)()[]})}
                                            '),viewportLayout:b('
                                            {(titleButton)({titleButton})}
                                            показать ещё
                                            '),group:b('
                                            {timestamp}
                                            {items}
                                            '),item:b('
                                            {user} — {title}
                                            '),likeItem:b('
                                            {user} {appreciate} запись {title}
                                            '),recommendItem:b(''),replyItem:b('
                                            {user}{separator} {title}
                                            '),photoItem:b('
                                            {alt}
                                            '),videoItem:b('
                                            {duration}
                                            '),videoContainer:b('
                                            {items}
                                            '),albumsContainer:b('
                                            {items}
                                            '),videoCollection:a.template('
                                            {content}
                                            ',{content:""}),videoCollectionItem:b('
                                            {count} видео
                                            '),albumItem:b('
                                            {title}
                                            {count}
                                            '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                                            {title}
                                            '),wishlistItem:b('
                                            {title}
                                            {title}
                                            '),wishlistPromisedItem:b('
                                            {info}
                                            {title}
                                            отменить
                                            '),ratingInfo:b(''),onload:b('
                                             
                                            '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                                            ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                                            "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/_post-add-includes.js b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/_post-add-includes.js new file mode 100644 index 0000000..0ac80c6 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/_post-add-includes.js @@ -0,0 +1,11 @@ +(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                                            ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                                            ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);window.g_sizePicture=function(){return"normal"};Friends.ClassPictureLoader=function(){};Friends.ClassPictureLoader.prototype={className:"pictureloader-",getElement:function(a){return y5.Dom.getDescendant(this.element,"*",this.className+a)},default_enctype:"",initBase:function(a,b){this.__listeners=[];this.element=a;this.file=this.getElement("file");this.form=this.file.form;this.filename=this.getElement("filename");this.filename.value=y5.Utils.generateId();this.label=this.getElement("label")||document.createElement("label");this.__listeners.push(y5.Events.observe("y5:"+y5.Utils.getUniqueId(this.form),this.change,this.form,true,this));this.__listeners.push(y5.Events.observe("y5:load",this.clearFile,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:error",this.error,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:readyforsend",this.sendPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:send",this.showPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:disableByRename",this.disableByRename,this.form,true,this));y5.Events.create("submit",this.enableByRename,this.form,true,this);return this.form},createFromTag:function(a,b){this.initBase(a,b)},sendPictureBase:function(){this.getElement("filename").value=y5.Utils.generateId()},change:function(){this.sendPicture(this.form);if(!this.delListener){var a=this.getElement("delete");if(a){this.delListener=new y5.AEventListener("click",this.deleteImage,a,false,this)}}if(this.delListener){this.delListener.add()}},error:function(){this.deleteImage(this.filename,this.label);y5.Classes.remove(this.label,"active");y5.Classes.remove(this.label,"load");y5.Classes.add(this.label,"error");this.clearFile();if(this.delListener){this.delListener.remove()}},deleteImage:function(){this.filename.value="";y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");y5.Classes.remove(this.label,"active");y5.Classes.add(this.label,"new");try{Friends.ChangeUserpicControl.Constructor.prototype.instance.activateCurrent()}catch(a){}if(this.delListener){this.delListener.remove()}},clearFile:function(){this.filename.value="";var a=this.file.parentNode;a.innerHTML=a.innerHTML;this.file=a.firstChild},sendForm:function(action){var _this=this;y5.Events.notify("y5:disableByRename",_this.form,true,_this.element);_this.enableByRename();_this.setFormEnctype();function response(result,trace){if(!result||!y5.Strings.trim(result)){y5.Events.notify("y5:error",_this.element,true,null);return}result=eval("("+result+")");if(!result.name){y5.Events.notify("y5:error",_this.element,true,null);return}y5.Events.notify("y5:send",_this.element,true,result);_this.restoreFormEnctype()}function error(result,trace){y5.Events.notify("y5:error",_this.element,true,null);_this.restoreFormEnctype()}if($("input[name='sk']").length){var ticketInput=$(''),utInput=$('');$(this.form).append(ticketInput,utInput)}ya.controls.pictureUpload(action,this.form,{},function(_this){return function(){_this.sendFormHandler.apply(_this,arguments)}}(this),error)},sendFormHandler:function(a,b){if(!a||!a.name){y5.Events.notify("y5:error",this.element,true,null);return}y5.Events.notify("y5:send",this.element,true,a);this.restoreFormEnctype();$("input[name='ticket']",this.form).remove();$("input[name='ut']",this.form).remove()},disableByRename:function(b){if(b==this.element){return}var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(c){if(c.name.indexOf("_disabledByRename")===-1){c.name=c.name+"_disabledByRename"}})},enableByRename:function(){var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(b){if(b.name.indexOf("_disabledByRename")!==-1){b.name=b.name.replace("_disabledByRename","")}})},restoreFormEnctype:function(){if(!y5.is_ie){this.form.enctype=this.default_enctype}},setFormEnctype:function(){this.default_enctype=this.form.enctype;this.form.enctype="multipart/form-data"},dectruct:function(){var b,a;for(b=0,a=this.__listeners.length;b"+b.innerHTML+"";new y5.AEventListener("click",this.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,this);y5.Classes.replace(this.dom_status,"load","new");this.imageURL_input.value=a;y5.Events.notify("y5:load",this.element,true,c)};Friends.ClassPictureLoaderOnePhoto.prototype.showPictureByURL=function(b,d){this.modeLoading();var c=new Image(),a=this;$(c).bind("load",function(){var e=document.createElement("img");e.src=b;a.delPhoto();y5.Classes.add(a.dom_status,"new");y5.Classes.remove(a.dom_status,"error");var h=document.createElement("div");var f=document.createElement("i");f=h.appendChild(f);f.className="del";h.appendChild(e);var g=y5.$("photo-holder");g.innerHTML="
                                            "+h.innerHTML+"
                                            ";new y5.AEventListener("click",a.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,a);y5.Classes.replace(a.dom_status,"load","new");a.dom_image_link.value=d;a.imageURL_input.value=""});$(c).bind("error",function(){a.modeNormal()});c.src=b};y5.loaded("{Friends}.classes.ClassPictureLoaderOnePhoto")});y5.require(["Ajax","AjaxForm","Dom","Events","Utils","Classes","{Friends}.classes.ClassPictureLoader"],function(){Friends.PictureLoader=new Friends.ClassPictureLoader();y5.loaded("{Friends}.PictureLoader")});y5.require(["Events","Strings","Dom","Classes","{Friends}.PictureLoader"],function(){Friends.PictureLoaderPhoto=function(f,g){this.initBase(f,g);this.list=this.getPhotoList();var d=y5.Dom.getDescendants(y5.$("photo-holder"),"i","del");for(var e=0,c=d.length;ethis.last_id){this.last_id=c}}}}this.last_id+=1;return this.last_id};var b="b-input-empty",a=function(){};Friends.PictureLoaderPhoto.prototype.restore=a;Friends.PictureLoaderPhoto.prototype.normalize=function(){var c=this.form.elements,d,f={},e="";for(d=0;d0){$(this.control).find("div.b-write-submit,div.b-preview-write-submit").find("input.submit").each(function(c){var d=a.previewModeBtns[c];var b=this;if(d){$(d).removeClass("i-hidden");if(!d.onclick&&a.params.comment){$(d).unbind("click").click(function(){$(b).click()})}d.onclick=b.onclick;d.value=b.value}});if(!a.params.comment){$(this.previewModeBtns[0]).unbind("click").click(function(){$(a.control).submit()})}}if(this.previewButton){$(this.previewButton).unbind("click").click(function(){a.togglePreview()})}if(this.editButton){$(this.editButton).unbind("click").click(function(){a.toggleEdit()})}if(!this.params.comment){$(this.control).submit(function(b){a.safeSaving();b.preventDefault()})}},getPostType:function(){return this.postType.value},showMessage:function(a){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible"},togglePreview:function(){if(!this.renderPreviewBtn){return}var _this=this;$(".b-captcha").remove();if(_this.params.comment){$('[name="item_no"]',this.control).attr("name","_item_no");$('[name="access_type"]',this.control).attr("name","_access_type")}var prevewReq=new y5.Request.Form(this.url.Preview,{transport:"XML"});function _restoreInput(){if(_this.params.comment){$('[name="_item_no"]',this.control).attr("name","item_no");$('[name="_access_type"]',this.control).attr("name","access_type")}}prevewReq.onload=function(resp){_restoreInput();var response=resp.responseText;var respJSON=null;try{respJSON=y5.JSON.decode(response)}catch(e){this.onerror(e);return}if(respJSON.status&&respJSON.status=="Success"){_this.stopAjaxAnim();_this.toggleState();_this.noteCurrent=$(_this.previewContainer).find("b.b-note-attention")[0];$(_this.previewContent).html(respJSON.html);y5.Components.init(_this.previewContent);ya.helpers.smileHelper.processSmiles(_this.previewContent);$(_this.previewContent).find(".b-control-vote").each(function(i,e){ya.instances.push(new ya.controls.Vote(e))});$(_this.previewContent).yshow();if($.browser.webkit&&navigator.platform&&navigator.platform.match(/win/i)){ya.forceRedraw($(_this.previewContent)[0])}var match,scriptRe=/]*>((.|\n)+?)<\/script>/img;while((match=scriptRe.exec(response))!==null){eval(match[1])}_this.previewInProgress=false}else{this.onerror(respJSON)}};prevewReq.onerror=function(e){_restoreInput();var error_msg=_this.createErrorMessage(e&&e.reason);_this.stopAjaxAnim();$(_this.noteCurrent).html(error_msg);_this.noteCurrent.style.visibility="visible";_this.previewInProgress=false};prevewReq.onexception=prevewReq.onerror;blogCompose.sanitize();if(!this.previewInProgress){this.startAjaxAnim();prevewReq.send(_this.control);this.previewInProgress=true}},toggleEdit:function(){$(".b-captcha").remove();this.noteCurrent.style.visibility="hidden";this.noteCurrent=this.noteEdit;this.toggleState();$(this.previewContent).addClass("i-hidden");if(g_globals.current_location.page=="posts_add_wishlist"){y5.Events.notify("click",$("div.notfound span.b-inplace-action")[0],true)}if(this.textarea){this.textarea.value=this.textarea.value.replace(//ig,"\n")}},onSubmitEnabled:function(){this.renderPreviewBtn=true;$(this.previewBtnContainer).removeClass("disabled")},onSubmitDisabled:function(){this.renderPreviewBtn=false;$(this.previewBtnContainer).addClass("disabled")},toggleState:function(){$(this.formTable).toggleClass("i-hidden");$(this.previewContainer).toggleClass("i-hidden");this.noteCurrent.style.visibility="hidden"},startAjaxAnim:function(){$(this.noteCurrent).removeClass("b-note-attention").addClass("b-note-loading");this.noteCurrent.innerHTML=" ";this.noteCurrent.style.visibility="visible"},stopAjaxAnim:function(){this.noteCurrent.style.visibility="hidden";$(this.noteCurrent).removeClass("b-note-loading").addClass("b-note-attention")},createErrorMessage:function(b){var a;if(b){a=b}else{a="К сожалению, действие совершить не удалось.
                                            Попробуйте ещё раз."}return a},createCaptcha:function(a,b){return'

                                            '+this.params.dps["save-error--captcha"]+'

                                             

                                            '},validate:function(){var a="";if(g_globals.current_location.page=="posts_add_invite"){if(y5.Strings.isVoid($(this.control).find(".FieldValidator-field")[0].value)){a="email не задан."}}return a},successHandler:function(a){y5.Events.notify("Friends:formSaved",this.control);window.location.href=a.url},safeSaving:function(){if(this.savingInProcess){return}var a=this.validate();if(a.length){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible";return}var c=this;c.startAjaxAnim();var b=new y5.Request.Form(friendsURL(this.url.Posting),{method:"post",transport:"XML"});b.onload=function(g){c.stopAjaxAnim();if(window.w5GControl){window.w5GControl.clearLocalStorage()}var d="";try{d=g.json(g.responseText)}catch(f){this.onerror();return}if(d.status&&d.status==="Success"){c.successHandler(d)}else{this.onerror(d)}};b.onerror=function(d){var g=typeof d==="object"?d:{reason:false};if(d&&typeof d.responseText==="string"){try{g=y5.JSON.decode(d.responseText)}catch(j){g={reason:false}}}c.savingInProcess=false;c.stopAjaxAnim();var f=$(".b-captcha");if(g.captcha){var i=c.createCaptcha(g.captcha,g.reason);if(f.length){f.replaceWith(i)}else{$(c.noteCurrent).before(i)}}else{if(f.length){f.remove()}}if(g.dps!="post--captcha_key-NOT_EMPTY"){var h=c.createErrorMessage(g.reason);c.noteCurrent.innerHTML=h;c.noteCurrent.style.visibility="visible"}};b.onexception=function(d){this.onerror(d)};blogCompose.sanitize();if(!this.savingInProcess){this.savingInProcess=true;b.send(this.control);this.startAjaxAnim()}}};y5.require(["Dom","Events","Request.Form","URL"],function(){y5.loaded("{Friends}.PostPreviewAndSaving")});y5.require(["Dom","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(d,e){this.control=d;this.params=e||{};this.whether_loaded=false;var b=y5.Dom.getDescendantOrSelf(this.control,"code","Friends-later-ImageLoadable");var f=b.onclick()||{};this.params.src=f.src;var c=document.createElement("img");y5.Classes.add(c,"i-hidden");y5.Dom.replaceNode(b,c);this.image=c;y5.Events.observe("load",this.onLoadHandler,this.image,true,this)};a.prototype.load=function(){if(!this.whether_loaded){this.image.src=this.params.src;this.whether_loaded=true}};a.prototype.onLoadHandler=function(){y5.Classes.remove(this.image,"i-hidden")};Friends.ImageLoadable=a;y5.loaded("{Friends}.ImageLoadable")});Friends.ChooseUserpicControlCached=function(a){this.control=a;this.radios=null;this.userpics=null;this.active=0;this.chooserText=0;this.prevChooser=0;this.nextChooser=0;this.removeText=0;this.init()};Friends.ChooseUserpicControlCached.prototype.showActive=function(e,d){if(!this.userpics.length){return}var a,c,b;this.active=(this.userpics.length+this.active+d)%this.userpics.length;for(c=0,b=this.userpics.length;c'+this.source.getUserpicContent({id:e,size:"normal",src:h})+"";g.appendChild(f);this.userpics.push(f);this.tbody.appendChild(g);this.showActive(null,this.userpics.length-this.active-1);var d,a;if(this.userpics.length>1){for(d=0,a=this.userpics.length;d'+this.source.getUserpicContent({id:c,size:"normal",src:f})+"";e.appendChild(d);this.tbody.appendChild(e);e.style.display="block";d.style.display="block"};Friends.ChooseUserpicControlCached.prototype.del=function(b){var a=this.active;if(typeof(b)!=="undefined"){a=b}y5.Dom.replaceNode(this.userpics[a].control.parentNode);this.userpics.splice(a,1);this.radios.splice(a,1);this.showActive(null,(this.active==0)?0:-1);this.setChooserText();y5.Events.notify("y5:deleteUploadUserpic",Friends,true,row.getElementsByTagName("input")[0].value)};Friends.ChooseUserpicControlCached.prototype.createSelector=function(e,h,j,f){var b=document.createElement("a"),i="";var c=document.createElement("img");c.src=g_globals.img_base+"control/userpic-"+e+i+".gif";c.alt=j;c.title="";var g=(this.userpics.length<2);y5.Classes.add(b,e);b.appendChild(c);b.title=f;return b};Friends.ChooseUserpicControlCached.prototype.changeSelector=function(f,e,d,b){var a=f.firstChild;if(e){y5.Classes.add(f,"disabled");if(a.src.indexOf("-disabled")===-1){a.src=a.src.replace(/.gif/,"-disabled.gif")}a.parentNode.onclick=null;a.parentNode.onmouseover=null;a.parentNode.onmouseout=null}else{var c=a.src.indexOf("userpic-");y5.Classes.remove(f,"disabled");a.src=a.src.replace(/-disabled/,"");a.parentNode.onclick=associateEventWithObject(this,"showActive",d);a.parentNode.onmouseover=associateEventWithObject(this,"mouseover",b);a.parentNode.onmouseout=associateEventWithObject(this,"mouseout",b)}};Friends.ChooseUserpicControlCached.prototype.setChooserText=function(){if(this.userpics.length===0){this.addDefaultUserpic();y5.Classes.add(this.nextChooser,"i-hidden");y5.Classes.add(this.prevChooser,"i-hidden")}var c,a=this.userpics.length;if(a==0){c="нет картинок"}else{if(a==1){c="1 картинка"}else{c=(this.active+1)+" из "+a}}if(this.removeText){if(!a||this.radios[this.active].value==""){y5.Classes.add(this.removeText,"remove-disabled")}else{y5.Classes.remove(this.removeText,"remove-disabled")}}var b=(a<=1);this.changeSelector(this.prevChooser,b,-1,"prev");this.changeSelector(this.nextChooser,b,+1,"next");this.chooserText.innerHTML=c};Friends.ChooseUserpicControlCached.prototype.init=function(){this.tbody=y5.Dom.getDescendant(this.control,"tbody","*");if(!this.tbody){return}var g=this.tbody.getElementsByTagName("tr");var f=g.length;this.radios=new Array(f);this.userpics=new Array(f);this.source=g_source;for(var c=0;c-6){a(this.userpics,b+this.active);b--}};Friends.ChooseUserpicControlCached.prototype.destruct=function(){this.control.control=null;this.control=null};y5.require(["Dom","Events","Classes","Strings","{Friends}.ImageLoadable"],function(){y5.loaded("{Friends}.ChooseUserpicControlCached")});Friends.SubmitShortcut=function(){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.SubmitShortcut.prototype.init=function(d){this.__listeners=[];this.submit_btn=y5.Dom.getDescendant(d,"input","submit");this.submited=false;var f=this.submit_btn.form;y5.Events.observe("y5:form_destructed",b,f,true,this);this.__listeners.push(y5.Events.observe("submit",a,f,true,this));var c=this,g=function(h){if(h.keyCode=="13"&&h.ctrlKey){e.call(c)}};this.__listeners.push(y5.Events.observe("keydown",g,f,true,c));this.__listeners.push(y5.Events.observe("y5:w5g_ctrlEnter",e,Friends,true,this));this.__listeners.push(y5.Events.observe("y5:enableSubmit",function(){this.submited=false},Friends,true,this));function a(h){if(this.submited){h.preventDefault()}this.submited=true}function e(){new y5.Event("click",this.submit_btn,true);this.submit_btn.click()}function b(){var j,h;for(j=0,h=this.__listeners.length;j');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u)}}}d.style.display="none";document.body.appendChild(d);d.submit();return false},fields:["body","title","userpic","access","tags","item_time_day","item_time_month","item_time_year","item_time_minute","URL","url","uid","id","login"]};y5.require(["Dom","Events"],function(){y5.loaded("{Friends}.SaveStateForm")});y5.require([],function(){var a=function(){};a.prototype.init=function(b){this.params=b;this.next_link=b.next_link;this.prev_link=b.prev_link;this.visible_length=b.visible_length||4;y5.Events.observe("click",this.nextLink,this.next_link,true,this);y5.Events.observe("click",this.prevLink,this.prev_link,true,this);return this};a.prototype.setCollection=function(b){this.collection=b;this.left_index=0;this.setLeftmostIndex(0);return this};a.prototype.setLeftmostIndex=function(d){if(!this.collection){return false}this.collection.items.forEach(function(e){y5.Events.notify("y5:UICarousel:hide",this,true,{item:e})},this);this.left_index=(this.collection.items.length+d)%this.collection.items.length;y5.Events.notify("y5:UICarousel:set_index",this,true,{index:d});var b=function(f){var e=this.collection.items;f=(e.length+f)%e.length;var g=e[f];y5.Events.notify("y5:UICarousel:show",this,true,{item:g})},c;for(c=0;c0){this.init.apply(this,arguments)}};a.prototype.init=function(){};a.prototype.select=function(){};a.prototype.unselect=function(){};a.prototype.selectIf=function(b,c){if(c){this.select(b)}};a.prototype.unselectIf=function(b,c){if(c){this.unselect(b)}};a.prototype.add=function(c,d){var b=y5.Utils.getUniqueId(c);if(!(b in this.uids)){this.items.push(c);this.uids[b]={item:c,index:this.items.length-1,data:d};y5.Events.notify("y5:UICollection:add",this,true,{item:c});this.addEvents(c);return false}return true};a.prototype.get=function(e){var d,c;if(typeof e==="number"){d=this.items[e];if(!d){return false}c=y5.Utils.getUniqueId(d)}else{if(typeof e==="string"){c=e}else{if(typeof e==="object"){c=y5.Utils.getUniqueID(d)}}}if(!(c in this.uids)){return false}var b=this.uids[c];return b};a.prototype.remove=function(c){var b=y5.Utils.getUniqueId(c);if(b in this.uids){var d=this.uids[b];this.items.splice(d.index,1);delete this.uids[b];y5.Events.notify("y5:UICollection:remove",this,true,{item:c});return false}return true};a.prototype.addEvents=function(b){};Friends.UICollection=a;y5.loaded("{Friends}.UICollection")});y5.require(["{Friends}.UICollection"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype=new Friends.UICollection();a.prototype.init=function(b){this.items=[];this.uids={};this.selectedItem=null;this.params=b||{};return this};a.prototype.addEvents=function(b){if(!this.params.noclick){y5.Events.observe("click",function(c){this.select(b)},b,true,this)}};a.prototype.select=function(c){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];this.unselect(this.selectedItem);this.selectedItem=c;y5.Events.notify("y5:UICollection:select",this,true,{item:c,data:d.data})};a.prototype.unselect=function(c){if(c!==null){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];y5.Events.notify("y5:UICollection:unselect",this,true,{item:c,data:d.data})}};Friends.UICollectionRadio=a;y5.loaded("{Friends}.UICollectionRadio")});y5.require(["{Friends}.UICollectionRadio","{Friends}.UICarousel","Widget","Utils"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype.init=function(b,c){y5.Events.observe("y5:make",function(d){this.widget=d;this.initAsControl(d.window,this.params);if(!this.has_been_inited){this.initWidgetEvents();this.has_been_inited=true}y5.Classes.add(d.button_ok,"i-hidden")},b,true,this);y5.Events.observe("y5:show",function(d){if(typeof d.caller==="object"){this.caller=d.caller;this.showWidget(b)}},window,true,this);return this};a.prototype.initWidgetEvents=function(){y5.Events.observe("y5:ok",function(){y5.Events.notify("y5:card:ok",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:esc",function(){y5.Events.notify("y5:card:esc",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:cancel",function(){y5.Events.notify("y5:card:cancel",this.caller,true,{caller:this});return true},this.widget.element,true,this)};a.prototype.initAsControl=function(c,d){this.control=c;this.params=d;var b=y5.Dom.getDescendant(this.control,"b","ff");var e=y5.Dom.getDescendant(this.control,"b","rev");this.carousel=new Friends.UICarousel().init({next_link:b,prev_link:e});y5.Events.observe("y5:UICarousel:prev",this.carouselPrev,this.carousel,true,this);y5.Events.observe("y5:UICarousel:next",this.carouselNext,this.carousel,true,this);y5.Events.observe("y5:UICarousel:hide",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.add(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:show",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.remove(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:set_index",function(g){var h=g.index;var f=this.carousel.collection.items.length;var i=this.carousel.visible_length;var j=(i+h-f);if(h==0){y5.Classes.add(this.carousel.prev_link,"i-hidden")}else{y5.Classes.remove(this.carousel.prev_link,"i-hidden")}if(h+i>=f){y5.Classes.add(this.carousel.next_link,"i-hidden")}else{y5.Classes.remove(this.carousel.next_link,"i-hidden")}},this.carousel,true,this);this.holiday_links=new Friends.UICollectionRadio().init();y5.cssQuery("ul.b-list-links li",this.control).forEach(function(f){var h=f.onclick().holiday;var g=y5.Dom.getDescendant(this.control,"tr","holiday_".concat(h));var i=this.initCardsCollection(g);this.holiday_links.add(f,{holiday_id:h,dom_cards:g,cards_collection:i})},this);y5.Events.observe("y5:UICollection:select",this.selectHoliday,this.holiday_links,true,this);y5.Events.observe("y5:UICollection:unselect",this.unselectHoliday,this.holiday_links,true,this);this.holiday_links.select(this.holiday_links.items[0])};a.prototype.showWidget=function(b){y5.Widget.make(b,"Widget.Dialog.Standard",{title:"Вставить открытку",valign:"30%"})};a.prototype.carouselPrev=function(b){};a.prototype.carouselNext=function(b){};a.prototype.initCardsCollection=function(b){var c=new Friends.UICollectionRadio().init();y5.cssQuery("img.postcard",b).forEach(function(d){c.add(d)});y5.Events.observe("y5:UICollection:select",this.choosePostcard,c,true,this);return c};a.prototype.choosePostcard=function(b){this.selected_card=b.item.onclick();this.widget.fireOk()};a.prototype.selectHoliday=function(b){var c=b.item;y5.Classes.add(c,"active");y5.Classes.remove(b.data.dom_cards,"i-hidden");var d=b.data.cards_collection;this.carousel.setCollection(d)};a.prototype.unselectHoliday=function(b){var c=b.item;y5.Classes.remove(c,"active");y5.Classes.add(b.data.dom_cards,"i-hidden")};Friends.Postcard=a;y5.loaded("{Friends}.Postcard")});Friends.ChangeUserpicControl=function(a){if(arguments.length>0){var b=new Friends.ChangeUserpicControl();b.init.apply(this,arguments);return b}};Friends.ChangeUserpicControl.prototype.init=function(a){var b=this;this.control=a;this.current=null;this.pointer=null;this.selected_span=0;this.form=y5.Dom.getAncestorOrSelf(this.control,"form");this.submit=y5.cssQuery('input[type="submit"]',this.form)[0];y5.Events.observe("y5:choose_userpic",this.chooseUserpic,this,true,this);Friends.ChangeUserpicControl.lastCreatedInstance=this};Friends.ChangeUserpicControl.prototype.chooseUserpic=function(a){if(this.pointer!=null){this.pointer.modeUnchoosed()}this.pointer=a.userpic};y5.loaded("{Friends}.ChangeUserpicControl");y5.require(["{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(c,d){this.control=c;this.params=d;this.options=y5.cssQuery("li.answer",this.control);this.options.forEach(function(e,f){y5.cssQuery("input",e).forEach(function(g){this.disableSubmit(g)},this)},this);this.dom_options_holder=y5.Dom.getAncestor(this.options[0],"ul");this.dom_add_option=y5.cssQuery("div.add span",this.control)[0];y5.Events.observe("click",this.addOption,this.dom_add_option,true,this);this.dom_remove_option=y5.cssQuery("span.js-remove",this.control);this.dom_remove_option.forEach(function(f){b(f)})};a.prototype.disableSubmit=function(c){y5.Events.observe("keypress",function(d){var e=d.keyCode;if(e==13){d.stopPropagation();d.preventDefault()}},c,true,this)};a.prototype.addOption=function(){y5.cssQuery(".answer .js-remove",this.control).forEach(function(g){y5.Classes.add(g,"i-hidden")});var c=document.createElement("span");c.innerHTML="";c.className="remove js-remove";b(c);var d=this.options[0].cloneNode(true);var f=y5.cssQuery("li.answer input",this.control);var e=Number(f[f.length-1].id)+1;y5.cssQuery("input",d).forEach(function(g){g.id=e;g.value="";g.name="option".concat(e);this.disableSubmit(g);y5.Dom.insertAfter(c,g)},this);this.dom_options_holder.appendChild(d);this.options.push(d)};var b=function(c){y5.Events.observe("click",function(){y5.Dom.removeNode(y5.Dom.getAncestors(c,"li","answer")[0]);var d=y5.cssQuery("li.answer .js-remove",this.control);if(d.length-1>=0){y5.Classes.remove(d[d.length-1],"i-hidden")}},c,true,this)};Friends.Poll=a;y5.loaded("{Friends}.Poll")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);var b=a.prototype;b.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initUrlBlock();this.initMarketSearchBlock();return this};b.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};b.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};b.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};b.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};b.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};b.initUrlBlock=function(){this.dom_url_block_switcher=y5.Dom.getDescendant(this.control,"span","action-link");this.dom_url_block=y5.Dom.getDescendant(this.control,"div","b-write-link");this.dom_input_url=y5.Dom.getDescendant(this.dom_url_block,"input","*");var c=y5.Dom.getDescendant(this.dom_url_block,"a","*");if(this.dom_input_url.value!=""){this.showURLBlock("nofocus")}y5.Events.observe("click",this.followURL,c,true,this);y5.Events.observe("click",this.showURLBlock,this.dom_url_block_switcher,true,this)};b.showURLBlock=function(){y5.Classes.remove(this.dom_url_block,"i-hidden");if(this.dom_url_block_switcher){y5.Classes.add(this.dom_url_block_switcher,"i-hidden")}if(arguments.length==0){this.dom_input_url.focus()}};b.fillURL=function(c){this.showURLBlock();this.dom_input_url.value=this.processURL(c)};b.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};b.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};b.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};b.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};b.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};b.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};b.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};b.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};b.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};b.notFoundMessage=function(){this.modeNotFound()};b.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};b.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_input_url);this.inputOff(this.dom_title);this.photoloader.disable()};b.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearch:select",a,true);this.modeNormal();this.fillURL(c.model_url);this.server_market_id.value=c.model_id;this.server_market_url.value=c.model_url;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};b.cancelWishcard=function(){this.photoloader.delPhoto();this.dom_input_url.value="";this.server_market_id.value="";this.server_market_url.value="";this.inputOn(this.dom_input_url);this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearch:unselect",a,true)};b.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};b.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.Wishlist=a;y5.loaded("{Friends}.Wishlist")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor","{Friends}.CheckChangesSaved"],function(){var b=Friends.CommonConstructor(Friends.BasicControl);var a=b.prototype;a.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initMarketSearchBlock();return this};a.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};a.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};a.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};a.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};a.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};a.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};a.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};a.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};a.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.dom_changemind=this.dom_changemind||document.createElement("div");this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};a.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};a.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};a.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};a.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};a.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};a.notFoundMessage=function(){this.modeNotFound()};a.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};a.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_title);this.photoloader.disable()};a.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearchGrades:fillWishcard",b,true);this.modeNormal();this.server_market_id.value=c.model_id;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};a.cancelWishcard=function(){this.photoloader.delPhoto();this.server_market_id.value="";this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearchGrades:cancelWishcard",b,true)};a.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};a.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.MarketSearchGrades=b;y5.loaded("{Friends}.MarketSearchGrades")});y5.require(["{Friends}.CommonConstructor","{Friends}.UICollectionRadio","{Friends}.MarketSearchGrades"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(d,e){this.control=d;this.params=e;this.whether_editing_post=!y5.Strings.isVoid(y5.cssQuery('input[name="market_id"]',this.control)[0].value);var c=y5.Dom.getDescendant(this.control,"*","js-major-grades");this.major_smiles=new Friends.UICollectionRadio().init();this.additional_smiles=[];this.dom_all_grades=y5.Dom.getDescendant(this.control,"*","js-all-grades");this.grades_table=y5.Dom.getDescendant(this.control,"*","js-all-grades-table");y5.cssQuery("tr",this.grades_table).forEach(function(f){this.createGradesLine(f)},this);this.on("click",function(){if(this.whether_advanced_grades){this.hideAdvancedGrades()}else{this.showAdvancedGrades()}},this.dom_all_grades);var b=y5.cssQuery("div.active",this.grades_table).length>0;b=b||y5.cssQuery(".js-advanced-grades input").some(function(f){return f.value.length>0});if(b){this.showAdvancedGrades()}y5.Events.observe("y5:UICollection:select",function(f){var g=f.data;y5.Classes.add(f.item,"active");this.show(f.data.dom);g.server.value=g.value},this.major_smiles,true,this);y5.Events.observe("y5:UICollection:unselect",function(f){y5.Classes.remove(f.item,"active");this.hide(f.data.dom)},this.major_smiles,true,this);y5.cssQuery("div.smile",c).forEach(function(f){var g=f.onclick();var h=y5.cssQuery(g.server_selector,this.control)[0];var i=y5.cssQuery(g.selector,c)[0];this.major_smiles.add(f,{dom:i,server:h,value:g.value});var j=y5.Classes.test(f,"active");this.major_smiles.selectIf(f,j)},this);this.on("y5:MarketSearch:select",this.modeAdvanced,Friends.MarketSearchGrades);this.on("y5:MarketSearch:unselect",this.modeSimple,Friends.MarketSearchGrades);if(this.whether_editing_post){this.modeAdvanced(".js-mode-advanced:not(.js-not-editable)")}};a.prototype.enable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.show(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.removeAttribute("disabled")},this)},this)};a.prototype.disable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.hide(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.setAttribute("disabled","disabled")},this)},this)};a.prototype.modeAdvanced=function(b){b=b||".js-mode-advanced";this.enable(b)};a.prototype.modeSimple=function(b){b=b||".js-mode-advanced";this.disable(b);this.hideAdvancedGrades()};a.prototype.showAdvancedGrades=function(){this.whether_advanced_grades=true;y5.Classes.add(this.dom_all_grades,"open");this.enable(".js-advanced-grades")};a.prototype.hideAdvancedGrades=function(){this.whether_advanced_grades=false;y5.Classes.remove(this.dom_all_grades,"open");this.disable(".js-advanced-grades")};a.prototype.createGradesLine=function(c){var b=new Friends.UICollectionRadio().init();y5.Events.observe("y5:UICollection:select",function(d){var e=d.data;y5.Classes.add(d.item,"active");e.server.value=e.value},b,true,this);y5.Events.observe("y5:UICollection:unselect",function(d){y5.Classes.remove(d.item,"active")},b,true,this);y5.cssQuery("div.smile",c).forEach(function(d){var e=d.onclick();var f=y5.cssQuery(e.server_selector,this.control)[0];b.add(d,{server:f,value:e.value});var g=y5.Classes.test(d,"active");b.selectIf(d,g)});this.additional_smiles.push(b)};Friends.MarketGrades=a;y5.loaded("{Friends}.MarketGrades")});Friends.KeywordsControl=new function(){this.createFromTag=function(a,b){new Friends.KeywordsControl.Constructor(a,b)}};Friends.KeywordsControl.Constructor=function(a,b){this.control=a;this.max=b.tagsCount||5;this.keywords=[];this.init()};Friends.KeywordsControl.Constructor.prototype=new function(){this.addKeyword=function(b){var a=y5.Strings.trim(this.input.value);if(a==y5.Strings.EMPTY){return}this.input.value=this.pushTags(a,true).join(", ")};this.delKeyword=function(a,b){y5.Dom.removeNode(a);this.keywords.splice(this.keywords.indexOf(b,0),1);this.saveKeywords();this.showKeywordsLine();this.input.focus()};this.getPreviewKeywords=function(){var c=[],b,a;for(b=0,a=this.keywords.length;b'+y5.Strings.escapeHTML(this.keywords[b])+""}return c.join(", ")};this.addUserTag=function(b){var a=y5.Strings.unescapeHTML(b.target.innerHTML);if(this.pushTag(a)){this.addKeywordElem(a)}};this.pushTags=function(f,g){var e=[],b=f.split(/[,;]/g),c,a;for(c=0,a=b.length;c=this.max){if(!j){var j=document.createElement("span");d.appendChild(j);y5.Classes.add(j,"all-tags");j.appendChild(document.createTextNode(", "))}d=j}var h=d.appendChild(b);new y5.AEventListener("click",this.addUserTag,h,true,this);if((e!=this.max-1)&&(e0){var a=new Friends.UserpicCurrent();a.createFromTag.apply(this,arguments);return a}};Friends.UserpicCurrent.prototype.createFromTag=function(a,b){this.control=a;this.params=b;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.dom_mode=y5.Dom.getDescendant(this.control,"div");y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);this.modeChoosed()};Friends.UserpicCurrent.prototype.modeChoosed=function(){this.is_choosed=true;y5.Classes.remove(this.dom_mode,"unselected");y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});y5.cssQuery('input[name="userpic"]:checked').forEach(function(a){a.checked=false});y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.remove(a,"i-hidden")})};Friends.UserpicCurrent.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.add(this.dom_mode,"unselected");y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.add(a,"i-hidden")})};y5.loaded("{Friends}.UserpicCurrent")});y5.require(["Events","{Friends}.ChangeUserpicControl","{Friends}.CommonConstructor"],function(){Friends.UserpicDeletable=function(){if(arguments.length>0){var a=new Friends.UserpicDeletable();a.createFromTag.apply(a,arguments);return a}};Friends.UserpicDeletable.prototype.createFromTag=function(b,c){this.control=b;this.control_label=y5.Dom.getDescendant(this.control,"label");this.params=c;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.createDrawButton();this.server=new y5.Request.XML("ajax/userpic_do_delete.xml",{method:"POST",callbackContext:this});this.server.onload=this.deleteUserpicHandler;this.server.onerror=this.deleteUserpicHandlerError;y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);var a=y5.Classes.test(this.control_label,"active");if(a){this.modeChoosed()}else{this.modeUnchoosed()}};Friends.UserpicDeletable.prototype.modeChoosed=function(){if(this.is_choosed){return}y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});this.is_choosed=true;y5.Classes.add(this.control_label,"active");y5.Classes.add(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0];a.checked=true};Friends.UserpicDeletable.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.remove(this.control_label,"active");y5.Classes.remove(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0]};Friends.UserpicDeletable.prototype.createDrawButton=function(){this.delete_button=y5.Elements.create(' ');y5.Classes.add(this.userpic.parentNode,"delete-userpic-holder");this.userpic.parentNode.appendChild(this.delete_button);y5.Events.observe("click",this.clickDeleteButton,this.delete_button,true,this)};Friends.UserpicDeletable.prototype.clickDeleteButton=function(a){a.stopPropagation();a.preventDefault();this.deleteUserpic()};Friends.UserpicDeletable.prototype.deleteUserpic=function(){y5.Classes.add(this.userpic,"faded");this.server.send({name:this.params.userpic,host_id:this.params.host_id})};Friends.UserpicDeletable.prototype.deleteUserpicHandler=function(a){var b=y5.JSON.decode(a.responseText);if(b.status==="Success"){y5.Dom.removeNode(this.control)}else{this.deleteUserpicHandlerError()}};Friends.UserpicDeletable.prototype.deleteUserpicHandlerError=function(){y5.Classes.remove(this.userpic,"faded")};y5.loaded("{Friends}.UserpicDeletable")});y5.require(["Events","Strings","Dom","Classes","{Friends}.classes.ClassPictureLoader","{Friends}.UserpicDeletable"],function(){Friends.PictureLoaderAvatar=function(a,c){if(arguments.length>0){var b=new Friends.PictureLoaderAvatar();b.init.apply(b,arguments);return b}};Friends.PictureLoaderAvatar.prototype=new Friends.ClassPictureLoader();Friends.PictureLoaderAvatar.prototype.showPicture=function(a){var g=this;var b=a.name;var e=g_globals.userpic_base+g_source.id+"/"+b+"-"+this.size;var d=this.image;d.onerror=function(h){d.onerror=null;y5.Events.notify("y5:error",g.element,true,null)};y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");d.src=e;this.response=a;y5.Events.notify("y5:load",this.element,true,b);if(!this.params.simpleForm){var f=this.element.cloneNode(true);var c=new Friends.UserpicDeletable(f,{userpic:b,host_id:this.params.host_id});y5.Dom.insertBefore(c.control,this.element);y5.cssQuery('input[type="file"]',c.control).forEach(function(h){y5.Dom.removeNode(h)});y5.cssQuery('input[name="userpic"]',c.control).forEach(function(h){h.value=b});this.deleteImage();c.modeChoosed()}};Friends.PictureLoaderAvatar.prototype.saveUserpic=function(a){};Friends.PictureLoaderAvatar.prototype.saveUserpicHandler=function(c){var b=c.responseText;var a=y5.JSON.decode(b);if(a.name===false){y5.Events.notify("y5:error",this.element,true,null);return false}};Friends.PictureLoaderAvatar.prototype.saveUserpicErrorHandler=function(){y5.Events.notify("y5:error",this.element,true,null)};Friends.PictureLoaderAvatar.prototype.init=function(a,b){this.initBase(a,b);this.image=this.getElement("image");y5.Events.observe("click",function(){y5.Events.notify("y5:userpic_clicked",this,true)},this.image,true,this);this.size=b.size||"normal";this.params=b};Friends.PictureLoaderAvatar.prototype.urlModify=function(){return g_globals.upics_simple_upload};Friends.PictureLoaderAvatar.prototype.sendPicture=function(){this.sendPictureBase();y5.Classes.swap(this.label,"new","load");y5.Classes.remove(this.label,"error");this.sendForm(this.urlModify())};y5.loaded("{Friends}.PictureLoaderAvatar")});var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                            У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                            '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                            "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                            /ig,"
                                            ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b=0)&&b(f,!g)}});e(function(){var f=document.body,c=f.appendChild(c=document.createElement("div"));e.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=c.offsetHeight===100;e.support.selectstart="onselectstart" in c;f.removeChild(c).style.display="none"});e.extend(e.ui,{plugin:{add:function(f,c,h){f=e.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g0){return true}f[c]=1;g=f[c]>0;f[c]=0;return g},isOverAxis:function(f,c,g){return f>c&&f'))}function N(a){return a.bind("mouseout",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==C){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.15"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('
                                            '))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f==""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]}a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b){b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";if(b==""){return null}var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l){throw"Invalid date"}return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}if(c=this._get(a,"onSelect")){e=this._formatDate(a);c.apply(a.input?a.input[0]:null,[e,a])}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+n+"";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+s+"":f?"":''+s+"";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
                                            '+(c?h:"")+(this._isInRange(a,s)?'":"")+(c?"":h)+"
                                            ":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x1){switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}}y+='">'}y+='
                                            '+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'
                                            ';var z=j?'":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="=5?' class="ui-datepicker-week-end"':"")+'>'+q[r]+""}y+=z+"";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,z)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q";var R=!j?"":'";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&ro;R+='";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+""}g++;if(g>11){g=0;m++}y+="
                                            '+this._get(a,"weekHeader")+"
                                            '+this._get(a,"calculateWeek")(r)+""+(F&&!D?" ":L?''+r.getDate()+"":''+r.getDate()+"")+"
                                            "+(l?""+(i[0]>0&&G==i[1]-1?'
                                            ':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'':"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='
                                            ',o="";if(h||!j){o+=''+i[b]+""}else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(k+=o+(h||!(j&&l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l){k+=''+c+""}else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u){k+=(h||!(j&&l)?" ":"")+o}k+="
                                            ";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.15";window["DP_jQuery_"+B]=d})(jQuery);jQuery(function(a){a.datepicker.regional.ru={closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.ru)});(function(a,b){a.namespace("locales.ru");a.locales.ru.chooseDate="выберите дату";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){b(document).ready(function(){b.datepicker.setDefaults(b.datepicker.regional.ru);var f=b(".b-control-datepicker"),h="yy-mm-dd",e="dd.mm.yy";f.datepicker({showOn:"button",buttonImage:g_globals.img_base+"b-calendar-button.png ",buttonImageOnly:true,dateFormat:e,buttonText:a.locale.chooseDate});var d=f[0];if(d&&d.form){b(d.form).bind("submit",function(){d.value=b.datepicker.formatDate(h,f.datepicker("getDate"))})}var c=f[0]?f[0].value:null;if(c){f.datepicker("setDate",b.datepicker.parseDate(h,c))}var g=b(".other-list");if(!a.support_columns(g)){g.columnize({width:200})}})})(window.ya,jQuery); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/_y.js b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/_y.js new file mode 100644 index 0000000..4f3ce8c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/_y.js @@ -0,0 +1,8 @@ +(function(b){var a={};a.imageError=function(c){var d=c.parentNode,e=d.parentNode.childNodes.length>2?d:d.parentNode;e.innerHTML='
                                            Картинка недоступна
                                            '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                            ${content}
                                            ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                            '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                            ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                            #{title}
                                            ');b.setFooter('
                                             
                                            ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                            a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                            "+""+"
                                            ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                            t
                                            ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                            ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                            ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                            ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                            ","
                                            "],thead:[1,"","
                                            "],tr:[2,"","
                                            "],td:[3,"","
                                            "],col:[2,"","
                                            "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                            ","
                                            "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                            ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Сменить портрет — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1Создать опрос — я.ру
                                            + + + +
                                            ПоискПочтаДискКалендарьДеньгиМой КругФотки
                                            + + Выход

                                            Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                                            1 из 11
                                            портрет для этой записи

                                            Кто увидит запись:

                                            Создать опрос

                                            Выбирать можно:
                                            добавить ещё пункт

                                            Добавить метки
                                            Метки
                                            Основные: Debian, EVE, Linux, Windows, Геленджик, Интернет, Книги, Музыка, Я, Яндекс
                                            или посмотреть, что получится
                                            Запись будет опубликована в вашем дневнике. Опубликовать в клубе:
                                             
                                            или продолжить редактирование

                                            +
                                            \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_poll.xml b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_poll.xml new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2Fposts_add_poll.xml @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                              {popup_items}
                                            '].join(""),popup_item:'
                                          • {title}
                                          • ',popup_item_selected:'
                                          • {title}
                                          • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                                            ','','
                                            ','
                                            ','','','','
                                            {content}',"
                                            ","
                                            ","
                                            ","
                                            "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                              {items}
                                            ',""].join(""));a.templates.menuItem=a.template(['
                                          • ','
                                            ','{title}',"
                                            ","
                                          • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                                            ','',"
                                            ",""].join("")),itemResult:a(['
                                            ','
                                            ','
                                            ','
                                            ',"
                                            {title}",'{count}',"
                                            ","
                                            "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                                            {items}{actions}
                                            '),actionLink:a('
                                            {title}
                                            '),expired:a('
                                            {title}
                                            ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                                            ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                                             
                                            ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                                            обновление...
                                            ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                                            {(moreAsUpdate)[
                                            я в курсе
                                            ]}
                                            {(allItems)({(moreAsUpdate)()[]})}
                                            '),viewportLayout:b('
                                            {(titleButton)({titleButton})}
                                            показать ещё
                                            '),group:b('
                                            {timestamp}
                                            {items}
                                            '),item:b('
                                            {user} — {title}
                                            '),likeItem:b('
                                            {user} {appreciate} запись {title}
                                            '),recommendItem:b(''),replyItem:b('
                                            {user}{separator} {title}
                                            '),photoItem:b('
                                            {alt}
                                            '),videoItem:b('
                                            {duration}
                                            '),videoContainer:b('
                                            {items}
                                            '),albumsContainer:b('
                                            {items}
                                            '),videoCollection:a.template('
                                            {content}
                                            ',{content:""}),videoCollectionItem:b('
                                            {count} видео
                                            '),albumItem:b('
                                            {title}
                                            {count}
                                            '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                                            {title}
                                            '),wishlistItem:b('
                                            {title}
                                            {title}
                                            '),wishlistPromisedItem:b('
                                            {info}
                                            {title}
                                            отменить
                                            '),ratingInfo:b(''),onload:b('
                                             
                                            '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                                            ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                                            "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/_post-add-includes.js b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/_post-add-includes.js new file mode 100644 index 0000000..0ac80c6 --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/_post-add-includes.js @@ -0,0 +1,11 @@ +(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                                            ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                                            ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);window.g_sizePicture=function(){return"normal"};Friends.ClassPictureLoader=function(){};Friends.ClassPictureLoader.prototype={className:"pictureloader-",getElement:function(a){return y5.Dom.getDescendant(this.element,"*",this.className+a)},default_enctype:"",initBase:function(a,b){this.__listeners=[];this.element=a;this.file=this.getElement("file");this.form=this.file.form;this.filename=this.getElement("filename");this.filename.value=y5.Utils.generateId();this.label=this.getElement("label")||document.createElement("label");this.__listeners.push(y5.Events.observe("y5:"+y5.Utils.getUniqueId(this.form),this.change,this.form,true,this));this.__listeners.push(y5.Events.observe("y5:load",this.clearFile,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:error",this.error,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:readyforsend",this.sendPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:send",this.showPicture,this.element,true,this));this.__listeners.push(y5.Events.observe("y5:disableByRename",this.disableByRename,this.form,true,this));y5.Events.create("submit",this.enableByRename,this.form,true,this);return this.form},createFromTag:function(a,b){this.initBase(a,b)},sendPictureBase:function(){this.getElement("filename").value=y5.Utils.generateId()},change:function(){this.sendPicture(this.form);if(!this.delListener){var a=this.getElement("delete");if(a){this.delListener=new y5.AEventListener("click",this.deleteImage,a,false,this)}}if(this.delListener){this.delListener.add()}},error:function(){this.deleteImage(this.filename,this.label);y5.Classes.remove(this.label,"active");y5.Classes.remove(this.label,"load");y5.Classes.add(this.label,"error");this.clearFile();if(this.delListener){this.delListener.remove()}},deleteImage:function(){this.filename.value="";y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");y5.Classes.remove(this.label,"active");y5.Classes.add(this.label,"new");try{Friends.ChangeUserpicControl.Constructor.prototype.instance.activateCurrent()}catch(a){}if(this.delListener){this.delListener.remove()}},clearFile:function(){this.filename.value="";var a=this.file.parentNode;a.innerHTML=a.innerHTML;this.file=a.firstChild},sendForm:function(action){var _this=this;y5.Events.notify("y5:disableByRename",_this.form,true,_this.element);_this.enableByRename();_this.setFormEnctype();function response(result,trace){if(!result||!y5.Strings.trim(result)){y5.Events.notify("y5:error",_this.element,true,null);return}result=eval("("+result+")");if(!result.name){y5.Events.notify("y5:error",_this.element,true,null);return}y5.Events.notify("y5:send",_this.element,true,result);_this.restoreFormEnctype()}function error(result,trace){y5.Events.notify("y5:error",_this.element,true,null);_this.restoreFormEnctype()}if($("input[name='sk']").length){var ticketInput=$(''),utInput=$('');$(this.form).append(ticketInput,utInput)}ya.controls.pictureUpload(action,this.form,{},function(_this){return function(){_this.sendFormHandler.apply(_this,arguments)}}(this),error)},sendFormHandler:function(a,b){if(!a||!a.name){y5.Events.notify("y5:error",this.element,true,null);return}y5.Events.notify("y5:send",this.element,true,a);this.restoreFormEnctype();$("input[name='ticket']",this.form).remove();$("input[name='ut']",this.form).remove()},disableByRename:function(b){if(b==this.element){return}var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(c){if(c.name.indexOf("_disabledByRename")===-1){c.name=c.name+"_disabledByRename"}})},enableByRename:function(){var a=y5.Dom.getDescendants(this.element,"input","*");a.forEach(function(b){if(b.name.indexOf("_disabledByRename")!==-1){b.name=b.name.replace("_disabledByRename","")}})},restoreFormEnctype:function(){if(!y5.is_ie){this.form.enctype=this.default_enctype}},setFormEnctype:function(){this.default_enctype=this.form.enctype;this.form.enctype="multipart/form-data"},dectruct:function(){var b,a;for(b=0,a=this.__listeners.length;b"+b.innerHTML+"";new y5.AEventListener("click",this.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,this);y5.Classes.replace(this.dom_status,"load","new");this.imageURL_input.value=a;y5.Events.notify("y5:load",this.element,true,c)};Friends.ClassPictureLoaderOnePhoto.prototype.showPictureByURL=function(b,d){this.modeLoading();var c=new Image(),a=this;$(c).bind("load",function(){var e=document.createElement("img");e.src=b;a.delPhoto();y5.Classes.add(a.dom_status,"new");y5.Classes.remove(a.dom_status,"error");var h=document.createElement("div");var f=document.createElement("i");f=h.appendChild(f);f.className="del";h.appendChild(e);var g=y5.$("photo-holder");g.innerHTML="
                                            "+h.innerHTML+"
                                            ";new y5.AEventListener("click",a.delPhoto,y5.Dom.getDescendant(g,"i","del"),true,a);y5.Classes.replace(a.dom_status,"load","new");a.dom_image_link.value=d;a.imageURL_input.value=""});$(c).bind("error",function(){a.modeNormal()});c.src=b};y5.loaded("{Friends}.classes.ClassPictureLoaderOnePhoto")});y5.require(["Ajax","AjaxForm","Dom","Events","Utils","Classes","{Friends}.classes.ClassPictureLoader"],function(){Friends.PictureLoader=new Friends.ClassPictureLoader();y5.loaded("{Friends}.PictureLoader")});y5.require(["Events","Strings","Dom","Classes","{Friends}.PictureLoader"],function(){Friends.PictureLoaderPhoto=function(f,g){this.initBase(f,g);this.list=this.getPhotoList();var d=y5.Dom.getDescendants(y5.$("photo-holder"),"i","del");for(var e=0,c=d.length;ethis.last_id){this.last_id=c}}}}this.last_id+=1;return this.last_id};var b="b-input-empty",a=function(){};Friends.PictureLoaderPhoto.prototype.restore=a;Friends.PictureLoaderPhoto.prototype.normalize=function(){var c=this.form.elements,d,f={},e="";for(d=0;d0){$(this.control).find("div.b-write-submit,div.b-preview-write-submit").find("input.submit").each(function(c){var d=a.previewModeBtns[c];var b=this;if(d){$(d).removeClass("i-hidden");if(!d.onclick&&a.params.comment){$(d).unbind("click").click(function(){$(b).click()})}d.onclick=b.onclick;d.value=b.value}});if(!a.params.comment){$(this.previewModeBtns[0]).unbind("click").click(function(){$(a.control).submit()})}}if(this.previewButton){$(this.previewButton).unbind("click").click(function(){a.togglePreview()})}if(this.editButton){$(this.editButton).unbind("click").click(function(){a.toggleEdit()})}if(!this.params.comment){$(this.control).submit(function(b){a.safeSaving();b.preventDefault()})}},getPostType:function(){return this.postType.value},showMessage:function(a){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible"},togglePreview:function(){if(!this.renderPreviewBtn){return}var _this=this;$(".b-captcha").remove();if(_this.params.comment){$('[name="item_no"]',this.control).attr("name","_item_no");$('[name="access_type"]',this.control).attr("name","_access_type")}var prevewReq=new y5.Request.Form(this.url.Preview,{transport:"XML"});function _restoreInput(){if(_this.params.comment){$('[name="_item_no"]',this.control).attr("name","item_no");$('[name="_access_type"]',this.control).attr("name","access_type")}}prevewReq.onload=function(resp){_restoreInput();var response=resp.responseText;var respJSON=null;try{respJSON=y5.JSON.decode(response)}catch(e){this.onerror(e);return}if(respJSON.status&&respJSON.status=="Success"){_this.stopAjaxAnim();_this.toggleState();_this.noteCurrent=$(_this.previewContainer).find("b.b-note-attention")[0];$(_this.previewContent).html(respJSON.html);y5.Components.init(_this.previewContent);ya.helpers.smileHelper.processSmiles(_this.previewContent);$(_this.previewContent).find(".b-control-vote").each(function(i,e){ya.instances.push(new ya.controls.Vote(e))});$(_this.previewContent).yshow();if($.browser.webkit&&navigator.platform&&navigator.platform.match(/win/i)){ya.forceRedraw($(_this.previewContent)[0])}var match,scriptRe=/]*>((.|\n)+?)<\/script>/img;while((match=scriptRe.exec(response))!==null){eval(match[1])}_this.previewInProgress=false}else{this.onerror(respJSON)}};prevewReq.onerror=function(e){_restoreInput();var error_msg=_this.createErrorMessage(e&&e.reason);_this.stopAjaxAnim();$(_this.noteCurrent).html(error_msg);_this.noteCurrent.style.visibility="visible";_this.previewInProgress=false};prevewReq.onexception=prevewReq.onerror;blogCompose.sanitize();if(!this.previewInProgress){this.startAjaxAnim();prevewReq.send(_this.control);this.previewInProgress=true}},toggleEdit:function(){$(".b-captcha").remove();this.noteCurrent.style.visibility="hidden";this.noteCurrent=this.noteEdit;this.toggleState();$(this.previewContent).addClass("i-hidden");if(g_globals.current_location.page=="posts_add_wishlist"){y5.Events.notify("click",$("div.notfound span.b-inplace-action")[0],true)}if(this.textarea){this.textarea.value=this.textarea.value.replace(//ig,"\n")}},onSubmitEnabled:function(){this.renderPreviewBtn=true;$(this.previewBtnContainer).removeClass("disabled")},onSubmitDisabled:function(){this.renderPreviewBtn=false;$(this.previewBtnContainer).addClass("disabled")},toggleState:function(){$(this.formTable).toggleClass("i-hidden");$(this.previewContainer).toggleClass("i-hidden");this.noteCurrent.style.visibility="hidden"},startAjaxAnim:function(){$(this.noteCurrent).removeClass("b-note-attention").addClass("b-note-loading");this.noteCurrent.innerHTML=" ";this.noteCurrent.style.visibility="visible"},stopAjaxAnim:function(){this.noteCurrent.style.visibility="hidden";$(this.noteCurrent).removeClass("b-note-loading").addClass("b-note-attention")},createErrorMessage:function(b){var a;if(b){a=b}else{a="К сожалению, действие совершить не удалось.
                                            Попробуйте ещё раз."}return a},createCaptcha:function(a,b){return'

                                            '+this.params.dps["save-error--captcha"]+'

                                             

                                            '},validate:function(){var a="";if(g_globals.current_location.page=="posts_add_invite"){if(y5.Strings.isVoid($(this.control).find(".FieldValidator-field")[0].value)){a="email не задан."}}return a},successHandler:function(a){y5.Events.notify("Friends:formSaved",this.control);window.location.href=a.url},safeSaving:function(){if(this.savingInProcess){return}var a=this.validate();if(a.length){this.noteCurrent.innerHTML=a;this.noteCurrent.style.visibility="visible";return}var c=this;c.startAjaxAnim();var b=new y5.Request.Form(friendsURL(this.url.Posting),{method:"post",transport:"XML"});b.onload=function(g){c.stopAjaxAnim();if(window.w5GControl){window.w5GControl.clearLocalStorage()}var d="";try{d=g.json(g.responseText)}catch(f){this.onerror();return}if(d.status&&d.status==="Success"){c.successHandler(d)}else{this.onerror(d)}};b.onerror=function(d){var g=typeof d==="object"?d:{reason:false};if(d&&typeof d.responseText==="string"){try{g=y5.JSON.decode(d.responseText)}catch(j){g={reason:false}}}c.savingInProcess=false;c.stopAjaxAnim();var f=$(".b-captcha");if(g.captcha){var i=c.createCaptcha(g.captcha,g.reason);if(f.length){f.replaceWith(i)}else{$(c.noteCurrent).before(i)}}else{if(f.length){f.remove()}}if(g.dps!="post--captcha_key-NOT_EMPTY"){var h=c.createErrorMessage(g.reason);c.noteCurrent.innerHTML=h;c.noteCurrent.style.visibility="visible"}};b.onexception=function(d){this.onerror(d)};blogCompose.sanitize();if(!this.savingInProcess){this.savingInProcess=true;b.send(this.control);this.startAjaxAnim()}}};y5.require(["Dom","Events","Request.Form","URL"],function(){y5.loaded("{Friends}.PostPreviewAndSaving")});y5.require(["Dom","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(d,e){this.control=d;this.params=e||{};this.whether_loaded=false;var b=y5.Dom.getDescendantOrSelf(this.control,"code","Friends-later-ImageLoadable");var f=b.onclick()||{};this.params.src=f.src;var c=document.createElement("img");y5.Classes.add(c,"i-hidden");y5.Dom.replaceNode(b,c);this.image=c;y5.Events.observe("load",this.onLoadHandler,this.image,true,this)};a.prototype.load=function(){if(!this.whether_loaded){this.image.src=this.params.src;this.whether_loaded=true}};a.prototype.onLoadHandler=function(){y5.Classes.remove(this.image,"i-hidden")};Friends.ImageLoadable=a;y5.loaded("{Friends}.ImageLoadable")});Friends.ChooseUserpicControlCached=function(a){this.control=a;this.radios=null;this.userpics=null;this.active=0;this.chooserText=0;this.prevChooser=0;this.nextChooser=0;this.removeText=0;this.init()};Friends.ChooseUserpicControlCached.prototype.showActive=function(e,d){if(!this.userpics.length){return}var a,c,b;this.active=(this.userpics.length+this.active+d)%this.userpics.length;for(c=0,b=this.userpics.length;c'+this.source.getUserpicContent({id:e,size:"normal",src:h})+"";g.appendChild(f);this.userpics.push(f);this.tbody.appendChild(g);this.showActive(null,this.userpics.length-this.active-1);var d,a;if(this.userpics.length>1){for(d=0,a=this.userpics.length;d'+this.source.getUserpicContent({id:c,size:"normal",src:f})+"";e.appendChild(d);this.tbody.appendChild(e);e.style.display="block";d.style.display="block"};Friends.ChooseUserpicControlCached.prototype.del=function(b){var a=this.active;if(typeof(b)!=="undefined"){a=b}y5.Dom.replaceNode(this.userpics[a].control.parentNode);this.userpics.splice(a,1);this.radios.splice(a,1);this.showActive(null,(this.active==0)?0:-1);this.setChooserText();y5.Events.notify("y5:deleteUploadUserpic",Friends,true,row.getElementsByTagName("input")[0].value)};Friends.ChooseUserpicControlCached.prototype.createSelector=function(e,h,j,f){var b=document.createElement("a"),i="";var c=document.createElement("img");c.src=g_globals.img_base+"control/userpic-"+e+i+".gif";c.alt=j;c.title="";var g=(this.userpics.length<2);y5.Classes.add(b,e);b.appendChild(c);b.title=f;return b};Friends.ChooseUserpicControlCached.prototype.changeSelector=function(f,e,d,b){var a=f.firstChild;if(e){y5.Classes.add(f,"disabled");if(a.src.indexOf("-disabled")===-1){a.src=a.src.replace(/.gif/,"-disabled.gif")}a.parentNode.onclick=null;a.parentNode.onmouseover=null;a.parentNode.onmouseout=null}else{var c=a.src.indexOf("userpic-");y5.Classes.remove(f,"disabled");a.src=a.src.replace(/-disabled/,"");a.parentNode.onclick=associateEventWithObject(this,"showActive",d);a.parentNode.onmouseover=associateEventWithObject(this,"mouseover",b);a.parentNode.onmouseout=associateEventWithObject(this,"mouseout",b)}};Friends.ChooseUserpicControlCached.prototype.setChooserText=function(){if(this.userpics.length===0){this.addDefaultUserpic();y5.Classes.add(this.nextChooser,"i-hidden");y5.Classes.add(this.prevChooser,"i-hidden")}var c,a=this.userpics.length;if(a==0){c="нет картинок"}else{if(a==1){c="1 картинка"}else{c=(this.active+1)+" из "+a}}if(this.removeText){if(!a||this.radios[this.active].value==""){y5.Classes.add(this.removeText,"remove-disabled")}else{y5.Classes.remove(this.removeText,"remove-disabled")}}var b=(a<=1);this.changeSelector(this.prevChooser,b,-1,"prev");this.changeSelector(this.nextChooser,b,+1,"next");this.chooserText.innerHTML=c};Friends.ChooseUserpicControlCached.prototype.init=function(){this.tbody=y5.Dom.getDescendant(this.control,"tbody","*");if(!this.tbody){return}var g=this.tbody.getElementsByTagName("tr");var f=g.length;this.radios=new Array(f);this.userpics=new Array(f);this.source=g_source;for(var c=0;c-6){a(this.userpics,b+this.active);b--}};Friends.ChooseUserpicControlCached.prototype.destruct=function(){this.control.control=null;this.control=null};y5.require(["Dom","Events","Classes","Strings","{Friends}.ImageLoadable"],function(){y5.loaded("{Friends}.ChooseUserpicControlCached")});Friends.SubmitShortcut=function(){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.SubmitShortcut.prototype.init=function(d){this.__listeners=[];this.submit_btn=y5.Dom.getDescendant(d,"input","submit");this.submited=false;var f=this.submit_btn.form;y5.Events.observe("y5:form_destructed",b,f,true,this);this.__listeners.push(y5.Events.observe("submit",a,f,true,this));var c=this,g=function(h){if(h.keyCode=="13"&&h.ctrlKey){e.call(c)}};this.__listeners.push(y5.Events.observe("keydown",g,f,true,c));this.__listeners.push(y5.Events.observe("y5:w5g_ctrlEnter",e,Friends,true,this));this.__listeners.push(y5.Events.observe("y5:enableSubmit",function(){this.submited=false},Friends,true,this));function a(h){if(this.submited){h.preventDefault()}this.submited=true}function e(){new y5.Event("click",this.submit_btn,true);this.submit_btn.click()}function b(){var j,h;for(j=0,h=this.__listeners.length;j');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u);u=y5.Elements.createFromHTML('');d.appendChild(u)}}}d.style.display="none";document.body.appendChild(d);d.submit();return false},fields:["body","title","userpic","access","tags","item_time_day","item_time_month","item_time_year","item_time_minute","URL","url","uid","id","login"]};y5.require(["Dom","Events"],function(){y5.loaded("{Friends}.SaveStateForm")});y5.require([],function(){var a=function(){};a.prototype.init=function(b){this.params=b;this.next_link=b.next_link;this.prev_link=b.prev_link;this.visible_length=b.visible_length||4;y5.Events.observe("click",this.nextLink,this.next_link,true,this);y5.Events.observe("click",this.prevLink,this.prev_link,true,this);return this};a.prototype.setCollection=function(b){this.collection=b;this.left_index=0;this.setLeftmostIndex(0);return this};a.prototype.setLeftmostIndex=function(d){if(!this.collection){return false}this.collection.items.forEach(function(e){y5.Events.notify("y5:UICarousel:hide",this,true,{item:e})},this);this.left_index=(this.collection.items.length+d)%this.collection.items.length;y5.Events.notify("y5:UICarousel:set_index",this,true,{index:d});var b=function(f){var e=this.collection.items;f=(e.length+f)%e.length;var g=e[f];y5.Events.notify("y5:UICarousel:show",this,true,{item:g})},c;for(c=0;c0){this.init.apply(this,arguments)}};a.prototype.init=function(){};a.prototype.select=function(){};a.prototype.unselect=function(){};a.prototype.selectIf=function(b,c){if(c){this.select(b)}};a.prototype.unselectIf=function(b,c){if(c){this.unselect(b)}};a.prototype.add=function(c,d){var b=y5.Utils.getUniqueId(c);if(!(b in this.uids)){this.items.push(c);this.uids[b]={item:c,index:this.items.length-1,data:d};y5.Events.notify("y5:UICollection:add",this,true,{item:c});this.addEvents(c);return false}return true};a.prototype.get=function(e){var d,c;if(typeof e==="number"){d=this.items[e];if(!d){return false}c=y5.Utils.getUniqueId(d)}else{if(typeof e==="string"){c=e}else{if(typeof e==="object"){c=y5.Utils.getUniqueID(d)}}}if(!(c in this.uids)){return false}var b=this.uids[c];return b};a.prototype.remove=function(c){var b=y5.Utils.getUniqueId(c);if(b in this.uids){var d=this.uids[b];this.items.splice(d.index,1);delete this.uids[b];y5.Events.notify("y5:UICollection:remove",this,true,{item:c});return false}return true};a.prototype.addEvents=function(b){};Friends.UICollection=a;y5.loaded("{Friends}.UICollection")});y5.require(["{Friends}.UICollection"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype=new Friends.UICollection();a.prototype.init=function(b){this.items=[];this.uids={};this.selectedItem=null;this.params=b||{};return this};a.prototype.addEvents=function(b){if(!this.params.noclick){y5.Events.observe("click",function(c){this.select(b)},b,true,this)}};a.prototype.select=function(c){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];this.unselect(this.selectedItem);this.selectedItem=c;y5.Events.notify("y5:UICollection:select",this,true,{item:c,data:d.data})};a.prototype.unselect=function(c){if(c!==null){var b=y5.Utils.getUniqueID(c);var d=this.uids[b];y5.Events.notify("y5:UICollection:unselect",this,true,{item:c,data:d.data})}};Friends.UICollectionRadio=a;y5.loaded("{Friends}.UICollectionRadio")});y5.require(["{Friends}.UICollectionRadio","{Friends}.UICarousel","Widget","Utils"],function(){var a=function(){if(arguments.length>0){this.init.apply(this,arguments)}};a.prototype.init=function(b,c){y5.Events.observe("y5:make",function(d){this.widget=d;this.initAsControl(d.window,this.params);if(!this.has_been_inited){this.initWidgetEvents();this.has_been_inited=true}y5.Classes.add(d.button_ok,"i-hidden")},b,true,this);y5.Events.observe("y5:show",function(d){if(typeof d.caller==="object"){this.caller=d.caller;this.showWidget(b)}},window,true,this);return this};a.prototype.initWidgetEvents=function(){y5.Events.observe("y5:ok",function(){y5.Events.notify("y5:card:ok",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:esc",function(){y5.Events.notify("y5:card:esc",this.caller,true,{caller:this});return true},this.widget.element,true,this);y5.Events.observe("y5:cancel",function(){y5.Events.notify("y5:card:cancel",this.caller,true,{caller:this});return true},this.widget.element,true,this)};a.prototype.initAsControl=function(c,d){this.control=c;this.params=d;var b=y5.Dom.getDescendant(this.control,"b","ff");var e=y5.Dom.getDescendant(this.control,"b","rev");this.carousel=new Friends.UICarousel().init({next_link:b,prev_link:e});y5.Events.observe("y5:UICarousel:prev",this.carouselPrev,this.carousel,true,this);y5.Events.observe("y5:UICarousel:next",this.carouselNext,this.carousel,true,this);y5.Events.observe("y5:UICarousel:hide",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.add(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:show",function(g){var f=y5.Dom.getAncestor(g.item,"td");y5.Classes.remove(f,"i-hidden")},this.carousel,true,this);y5.Events.observe("y5:UICarousel:set_index",function(g){var h=g.index;var f=this.carousel.collection.items.length;var i=this.carousel.visible_length;var j=(i+h-f);if(h==0){y5.Classes.add(this.carousel.prev_link,"i-hidden")}else{y5.Classes.remove(this.carousel.prev_link,"i-hidden")}if(h+i>=f){y5.Classes.add(this.carousel.next_link,"i-hidden")}else{y5.Classes.remove(this.carousel.next_link,"i-hidden")}},this.carousel,true,this);this.holiday_links=new Friends.UICollectionRadio().init();y5.cssQuery("ul.b-list-links li",this.control).forEach(function(f){var h=f.onclick().holiday;var g=y5.Dom.getDescendant(this.control,"tr","holiday_".concat(h));var i=this.initCardsCollection(g);this.holiday_links.add(f,{holiday_id:h,dom_cards:g,cards_collection:i})},this);y5.Events.observe("y5:UICollection:select",this.selectHoliday,this.holiday_links,true,this);y5.Events.observe("y5:UICollection:unselect",this.unselectHoliday,this.holiday_links,true,this);this.holiday_links.select(this.holiday_links.items[0])};a.prototype.showWidget=function(b){y5.Widget.make(b,"Widget.Dialog.Standard",{title:"Вставить открытку",valign:"30%"})};a.prototype.carouselPrev=function(b){};a.prototype.carouselNext=function(b){};a.prototype.initCardsCollection=function(b){var c=new Friends.UICollectionRadio().init();y5.cssQuery("img.postcard",b).forEach(function(d){c.add(d)});y5.Events.observe("y5:UICollection:select",this.choosePostcard,c,true,this);return c};a.prototype.choosePostcard=function(b){this.selected_card=b.item.onclick();this.widget.fireOk()};a.prototype.selectHoliday=function(b){var c=b.item;y5.Classes.add(c,"active");y5.Classes.remove(b.data.dom_cards,"i-hidden");var d=b.data.cards_collection;this.carousel.setCollection(d)};a.prototype.unselectHoliday=function(b){var c=b.item;y5.Classes.remove(c,"active");y5.Classes.add(b.data.dom_cards,"i-hidden")};Friends.Postcard=a;y5.loaded("{Friends}.Postcard")});Friends.ChangeUserpicControl=function(a){if(arguments.length>0){var b=new Friends.ChangeUserpicControl();b.init.apply(this,arguments);return b}};Friends.ChangeUserpicControl.prototype.init=function(a){var b=this;this.control=a;this.current=null;this.pointer=null;this.selected_span=0;this.form=y5.Dom.getAncestorOrSelf(this.control,"form");this.submit=y5.cssQuery('input[type="submit"]',this.form)[0];y5.Events.observe("y5:choose_userpic",this.chooseUserpic,this,true,this);Friends.ChangeUserpicControl.lastCreatedInstance=this};Friends.ChangeUserpicControl.prototype.chooseUserpic=function(a){if(this.pointer!=null){this.pointer.modeUnchoosed()}this.pointer=a.userpic};y5.loaded("{Friends}.ChangeUserpicControl");y5.require(["{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor();a.prototype.init=function(c,d){this.control=c;this.params=d;this.options=y5.cssQuery("li.answer",this.control);this.options.forEach(function(e,f){y5.cssQuery("input",e).forEach(function(g){this.disableSubmit(g)},this)},this);this.dom_options_holder=y5.Dom.getAncestor(this.options[0],"ul");this.dom_add_option=y5.cssQuery("div.add span",this.control)[0];y5.Events.observe("click",this.addOption,this.dom_add_option,true,this);this.dom_remove_option=y5.cssQuery("span.js-remove",this.control);this.dom_remove_option.forEach(function(f){b(f)})};a.prototype.disableSubmit=function(c){y5.Events.observe("keypress",function(d){var e=d.keyCode;if(e==13){d.stopPropagation();d.preventDefault()}},c,true,this)};a.prototype.addOption=function(){y5.cssQuery(".answer .js-remove",this.control).forEach(function(g){y5.Classes.add(g,"i-hidden")});var c=document.createElement("span");c.innerHTML="";c.className="remove js-remove";b(c);var d=this.options[0].cloneNode(true);var f=y5.cssQuery("li.answer input",this.control);var e=Number(f[f.length-1].id)+1;y5.cssQuery("input",d).forEach(function(g){g.id=e;g.value="";g.name="option".concat(e);this.disableSubmit(g);y5.Dom.insertAfter(c,g)},this);this.dom_options_holder.appendChild(d);this.options.push(d)};var b=function(c){y5.Events.observe("click",function(){y5.Dom.removeNode(y5.Dom.getAncestors(c,"li","answer")[0]);var d=y5.cssQuery("li.answer .js-remove",this.control);if(d.length-1>=0){y5.Classes.remove(d[d.length-1],"i-hidden")}},c,true,this)};Friends.Poll=a;y5.loaded("{Friends}.Poll")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);var b=a.prototype;b.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initUrlBlock();this.initMarketSearchBlock();return this};b.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};b.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};b.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};b.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};b.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};b.initUrlBlock=function(){this.dom_url_block_switcher=y5.Dom.getDescendant(this.control,"span","action-link");this.dom_url_block=y5.Dom.getDescendant(this.control,"div","b-write-link");this.dom_input_url=y5.Dom.getDescendant(this.dom_url_block,"input","*");var c=y5.Dom.getDescendant(this.dom_url_block,"a","*");if(this.dom_input_url.value!=""){this.showURLBlock("nofocus")}y5.Events.observe("click",this.followURL,c,true,this);y5.Events.observe("click",this.showURLBlock,this.dom_url_block_switcher,true,this)};b.showURLBlock=function(){y5.Classes.remove(this.dom_url_block,"i-hidden");if(this.dom_url_block_switcher){y5.Classes.add(this.dom_url_block_switcher,"i-hidden")}if(arguments.length==0){this.dom_input_url.focus()}};b.fillURL=function(c){this.showURLBlock();this.dom_input_url.value=this.processURL(c)};b.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};b.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};b.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};b.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};b.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};b.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};b.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};b.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};b.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};b.notFoundMessage=function(){this.modeNotFound()};b.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};b.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_input_url);this.inputOff(this.dom_title);this.photoloader.disable()};b.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearch:select",a,true);this.modeNormal();this.fillURL(c.model_url);this.server_market_id.value=c.model_id;this.server_market_url.value=c.model_url;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};b.cancelWishcard=function(){this.photoloader.delPhoto();this.dom_input_url.value="";this.server_market_id.value="";this.server_market_url.value="";this.inputOn(this.dom_input_url);this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearch:unselect",a,true)};b.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};b.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.Wishlist=a;y5.loaded("{Friends}.Wishlist")});y5.require(["Classes","Dom","Events","Strings","Form","Types","{Friends}.PictureLoaderOnePhoto","{Friends}.CommonConstructor","{Friends}.CheckChangesSaved"],function(){var b=Friends.CommonConstructor(Friends.BasicControl);var a=b.prototype;a.init=function(c){this.control=c;this.photoloader=Friends.PictureLoaderOnePhoto;this.register(["dom_post","textarea.b-write-post"]);this.initPhotoBlock();this.initMarketSearchBlock();return this};a.inputOn=function(c){c.removeAttribute("readOnly","readOnly");y5.Classes.remove(c,"read-only");return c};a.inputOff=function(c){c.setAttribute("readOnly","readOnly");y5.Classes.add(c,"read-only");return c};a.hasWishcardLoaded=function(){var c=Boolean(this.server_market_id.value);return c};a.initPhotoBlock=function(){this.register(["dom_photo_block_switcher","a.action-photo"],["dom_photo_block","div.b-upload-photo"]);y5.Events.observe("click",this.showPhotoBlock,this.dom_photo_block_switcher,true,this);return this};a.showPhotoBlock=function(){this.show(this.dom_photo_block);if(this.dom_photo_block_switcher){this.hide(this.dom_photo_block_switcher)}};a.fillPhotoLink=function(c){this.showPhotoBlock();c=this.processURL(c);this.photoloader.showPictureByURL(c,c)};a.processURL=function(c){if(y5.Types.string(c)){if(!/^https?:\/\//i.test(c)){c="http://".concat(c)}}return c};a.followURL=function(c,e){var d=this.dom_input_url.value;if(d==0){c.preventDefault();return}e.href=this.processURL(d)};a.initMarketSearchBlock=function(){this.register(["dom_title","#title"],["dom_marketsearch_block","div.b-find-market"],["dom_notfound","div.notfound"],["dom_error","div.error"],["dom_offers","div.suggest"],["dom_changemind","div.changemind"],["dom_changemind_img",".cancel-wishcard"],["dom_marketsearch_button","span.h-find-market-link span.b-inplace-action",this.dom_marketsearch_block],["server_market_id",'input[name="market_id"]'],["server_market_url",'input[name="market_url"]']);this.dom_changemind=this.dom_changemind||document.createElement("div");this.marketsearch_text=y5.Dom.textContent(this.dom_marketsearch_button);this.modeNormal();y5.Events.observe("click",this.startNewSearch,this.dom_marketsearch_button,true,this);y5.Events.observe("click",function(){this.modeNormal()},y5.cssQuery("span.b-inplace-action",this.dom_notfound)[0],true,this);y5.Events.observe("click",this.cancelWishcard,y5.cssQuery("span.b-inplace-action",this.dom_changemind)[0],true,this);y5.Events.observe("keypress",function(c){var d=c.keyCode;if(d==13){c.preventDefault()}},this.dom_title,true,this);y5.Events.observe("keyup",this.testWhetherDisableSearch,this.dom_title,true,this);y5.Events.observe("focus",this.testWhetherDisableSearch,this.dom_title,true,this);this.testWhetherDisableSearch();if(this.hasWishcardLoaded()){this.disable()}};a.testWhetherDisableSearch=function(){var d=this.dom_title.value;var c=d==0;c=c||d===this.dom_title.getAttribute("placeholder");if(c){y5.Classes.add(this.dom_marketsearch_button,"disabled")}else{y5.Classes.remove(this.dom_marketsearch_button,"disabled")}};a.modeSearch=function(){this.modeNormal();this.dom_marketsearch_button.innerHTML=this.marketsearch_text.replace(/./g," ");y5.Classes.add(this.dom_marketsearch_block,"searchmode");this.mode="search"};a.modeNormal=function(){y5.Classes.remove(this.dom_marketsearch_block,"searchmode");this.dom_marketsearch_button.innerHTML=this.marketsearch_text;this.show("dom_marketsearch_block");this.hide("dom_notfound","dom_error","dom_offers","dom_changemind");this.mode="normal"};a.modeNotFound=function(){this.modeNormal();this.mode="notfound";this.show("dom_notfound");this.dom_title.focus()};a.modeShowingOffers=function(){this.modeNormal();this.mode="offers";this.show("dom_offers")};a.notFoundMessage=function(){this.modeNotFound()};a.startNewSearch=function(){var f=this;var d=this.dom_marketsearch_button.onclick();var g=this.dom_title.value;d.text=g;if(this.mode!="search"){var c=(g==0)||(g==undefined);c=c||g===this.dom_title.getAttribute("placeholder");if(c){this.modeNormal();this.dom_title.focus();return false}this.modeSearch();var e=new y5.Request.XML("ajax/search_at_market.xml",{method:"post"});e.onload=function(h){f.onStartNewSearchHandler(h)};e.send(d)}};a.disable=function(){this.show("dom_changemind");this.hide(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.inputOff(this.dom_title);this.photoloader.disable()};a.fillWishcard=function(c){if("url" in c){if("opinion_url" in c){y5.Events.notify("Friends:formSaved",Friends.CheckChangesSaved.control,true);document.location.href=c.opinion_url;return}y5.Events.notify("y5:MarketSearchGrades:fillWishcard",b,true);this.modeNormal();this.server_market_id.value=c.model_id;if(y5.Types.string(c.model_pic)&&c.model_pic!=0){this.fillPhotoLink(c.model_pic)}else{this.photoloader.delPhoto()}this.dom_post.focus();this.disable()}else{this.notFoundMessage()}};a.cancelWishcard=function(){this.photoloader.delPhoto();this.server_market_id.value="";this.inputOn(this.dom_title);this.hide("dom_changemind","dom_changemind_img");this.show(y5.cssQuery(".h-find-market-link",this.dom_marketsearch_block)[0]);this.dom_title.focus();this.photoloader.enable();y5.Events.notify("y5:MarketSearchGrades:cancelWishcard",b,true)};a.showOffers=function(c){this.modeShowingOffers();var d=y5.Elements.create(c);y5.Dom.replaceNode(this.dom_offers,d);this.dom_offers=d;var f=y5.cssQuery("div.close .b-inplace-action",d)[0];if(f){y5.Events.observe("click",function(){this.modeNormal()},f,true,this)}var e=y5.cssQuery("td.suggest-card",d);e.forEach(function(g){var i=y5.cssQuery('input[type="hidden"]',g);var h={};i.forEach(function(j){h[j.name]=j.value},this);h.url=h.model_url;h.image_from_link=h.model_pic;y5.Events.observe("click",function(k){var m=k.target||k.srcElement;var l=y5.Dom.getAncestorOrSelf(m,"img","*");var n=y5.Dom.getAncestorOrSelf(m,"span","*");var j=l||n;if(j){this.fillWishcard(h)}},g,true,this)},this);return true};a.onStartNewSearchHandler=function(d){var c=y5.Strings.isVoid(d.responseText);if(c){this.notFoundMessage()}else{this.showOffers(d.responseText)}};Friends.MarketSearchGrades=b;y5.loaded("{Friends}.MarketSearchGrades")});y5.require(["{Friends}.CommonConstructor","{Friends}.UICollectionRadio","{Friends}.MarketSearchGrades"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(d,e){this.control=d;this.params=e;this.whether_editing_post=!y5.Strings.isVoid(y5.cssQuery('input[name="market_id"]',this.control)[0].value);var c=y5.Dom.getDescendant(this.control,"*","js-major-grades");this.major_smiles=new Friends.UICollectionRadio().init();this.additional_smiles=[];this.dom_all_grades=y5.Dom.getDescendant(this.control,"*","js-all-grades");this.grades_table=y5.Dom.getDescendant(this.control,"*","js-all-grades-table");y5.cssQuery("tr",this.grades_table).forEach(function(f){this.createGradesLine(f)},this);this.on("click",function(){if(this.whether_advanced_grades){this.hideAdvancedGrades()}else{this.showAdvancedGrades()}},this.dom_all_grades);var b=y5.cssQuery("div.active",this.grades_table).length>0;b=b||y5.cssQuery(".js-advanced-grades input").some(function(f){return f.value.length>0});if(b){this.showAdvancedGrades()}y5.Events.observe("y5:UICollection:select",function(f){var g=f.data;y5.Classes.add(f.item,"active");this.show(f.data.dom);g.server.value=g.value},this.major_smiles,true,this);y5.Events.observe("y5:UICollection:unselect",function(f){y5.Classes.remove(f.item,"active");this.hide(f.data.dom)},this.major_smiles,true,this);y5.cssQuery("div.smile",c).forEach(function(f){var g=f.onclick();var h=y5.cssQuery(g.server_selector,this.control)[0];var i=y5.cssQuery(g.selector,c)[0];this.major_smiles.add(f,{dom:i,server:h,value:g.value});var j=y5.Classes.test(f,"active");this.major_smiles.selectIf(f,j)},this);this.on("y5:MarketSearch:select",this.modeAdvanced,Friends.MarketSearchGrades);this.on("y5:MarketSearch:unselect",this.modeSimple,Friends.MarketSearchGrades);if(this.whether_editing_post){this.modeAdvanced(".js-mode-advanced:not(.js-not-editable)")}};a.prototype.enable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.show(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.removeAttribute("disabled")},this)},this)};a.prototype.disable=function(b){b=b||".js-mode-advanced";y5.cssQuery(b,this.control).forEach(function(c){this.hide(c);y5.cssQuery("input, select, textarea",c).forEach(function(d){d.setAttribute("disabled","disabled")},this)},this)};a.prototype.modeAdvanced=function(b){b=b||".js-mode-advanced";this.enable(b)};a.prototype.modeSimple=function(b){b=b||".js-mode-advanced";this.disable(b);this.hideAdvancedGrades()};a.prototype.showAdvancedGrades=function(){this.whether_advanced_grades=true;y5.Classes.add(this.dom_all_grades,"open");this.enable(".js-advanced-grades")};a.prototype.hideAdvancedGrades=function(){this.whether_advanced_grades=false;y5.Classes.remove(this.dom_all_grades,"open");this.disable(".js-advanced-grades")};a.prototype.createGradesLine=function(c){var b=new Friends.UICollectionRadio().init();y5.Events.observe("y5:UICollection:select",function(d){var e=d.data;y5.Classes.add(d.item,"active");e.server.value=e.value},b,true,this);y5.Events.observe("y5:UICollection:unselect",function(d){y5.Classes.remove(d.item,"active")},b,true,this);y5.cssQuery("div.smile",c).forEach(function(d){var e=d.onclick();var f=y5.cssQuery(e.server_selector,this.control)[0];b.add(d,{server:f,value:e.value});var g=y5.Classes.test(d,"active");b.selectIf(d,g)});this.additional_smiles.push(b)};Friends.MarketGrades=a;y5.loaded("{Friends}.MarketGrades")});Friends.KeywordsControl=new function(){this.createFromTag=function(a,b){new Friends.KeywordsControl.Constructor(a,b)}};Friends.KeywordsControl.Constructor=function(a,b){this.control=a;this.max=b.tagsCount||5;this.keywords=[];this.init()};Friends.KeywordsControl.Constructor.prototype=new function(){this.addKeyword=function(b){var a=y5.Strings.trim(this.input.value);if(a==y5.Strings.EMPTY){return}this.input.value=this.pushTags(a,true).join(", ")};this.delKeyword=function(a,b){y5.Dom.removeNode(a);this.keywords.splice(this.keywords.indexOf(b,0),1);this.saveKeywords();this.showKeywordsLine();this.input.focus()};this.getPreviewKeywords=function(){var c=[],b,a;for(b=0,a=this.keywords.length;b'+y5.Strings.escapeHTML(this.keywords[b])+""}return c.join(", ")};this.addUserTag=function(b){var a=y5.Strings.unescapeHTML(b.target.innerHTML);if(this.pushTag(a)){this.addKeywordElem(a)}};this.pushTags=function(f,g){var e=[],b=f.split(/[,;]/g),c,a;for(c=0,a=b.length;c=this.max){if(!j){var j=document.createElement("span");d.appendChild(j);y5.Classes.add(j,"all-tags");j.appendChild(document.createTextNode(", "))}d=j}var h=d.appendChild(b);new y5.AEventListener("click",this.addUserTag,h,true,this);if((e!=this.max-1)&&(e0){var a=new Friends.UserpicCurrent();a.createFromTag.apply(this,arguments);return a}};Friends.UserpicCurrent.prototype.createFromTag=function(a,b){this.control=a;this.params=b;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.dom_mode=y5.Dom.getDescendant(this.control,"div");y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);this.modeChoosed()};Friends.UserpicCurrent.prototype.modeChoosed=function(){this.is_choosed=true;y5.Classes.remove(this.dom_mode,"unselected");y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});y5.cssQuery('input[name="userpic"]:checked').forEach(function(a){a.checked=false});y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.remove(a,"i-hidden")})};Friends.UserpicCurrent.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.add(this.dom_mode,"unselected");y5.cssQuery("span.selected",this.control).forEach(function(a){y5.Classes.add(a,"i-hidden")})};y5.loaded("{Friends}.UserpicCurrent")});y5.require(["Events","{Friends}.ChangeUserpicControl","{Friends}.CommonConstructor"],function(){Friends.UserpicDeletable=function(){if(arguments.length>0){var a=new Friends.UserpicDeletable();a.createFromTag.apply(a,arguments);return a}};Friends.UserpicDeletable.prototype.createFromTag=function(b,c){this.control=b;this.control_label=y5.Dom.getDescendant(this.control,"label");this.params=c;this.userpic=y5.cssQuery("a.b-userpic img",this.control)[0];this.createDrawButton();this.server=new y5.Request.XML("ajax/userpic_do_delete.xml",{method:"POST",callbackContext:this});this.server.onload=this.deleteUserpicHandler;this.server.onerror=this.deleteUserpicHandlerError;y5.Events.observe("click",function(){this.modeChoosed()},this.userpic,true,this);var a=y5.Classes.test(this.control_label,"active");if(a){this.modeChoosed()}else{this.modeUnchoosed()}};Friends.UserpicDeletable.prototype.modeChoosed=function(){if(this.is_choosed){return}y5.Events.notify("y5:choose_userpic",Friends.ChangeUserpicControl.lastCreatedInstance,true,{userpic:this});this.is_choosed=true;y5.Classes.add(this.control_label,"active");y5.Classes.add(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0];a.checked=true};Friends.UserpicDeletable.prototype.modeUnchoosed=function(){this.is_choosed=false;y5.Classes.remove(this.control_label,"active");y5.Classes.remove(this.delete_button,"i-hidden");var a=y5.cssQuery('input[name="userpic"]',this.control_label)[0]};Friends.UserpicDeletable.prototype.createDrawButton=function(){this.delete_button=y5.Elements.create(' ');y5.Classes.add(this.userpic.parentNode,"delete-userpic-holder");this.userpic.parentNode.appendChild(this.delete_button);y5.Events.observe("click",this.clickDeleteButton,this.delete_button,true,this)};Friends.UserpicDeletable.prototype.clickDeleteButton=function(a){a.stopPropagation();a.preventDefault();this.deleteUserpic()};Friends.UserpicDeletable.prototype.deleteUserpic=function(){y5.Classes.add(this.userpic,"faded");this.server.send({name:this.params.userpic,host_id:this.params.host_id})};Friends.UserpicDeletable.prototype.deleteUserpicHandler=function(a){var b=y5.JSON.decode(a.responseText);if(b.status==="Success"){y5.Dom.removeNode(this.control)}else{this.deleteUserpicHandlerError()}};Friends.UserpicDeletable.prototype.deleteUserpicHandlerError=function(){y5.Classes.remove(this.userpic,"faded")};y5.loaded("{Friends}.UserpicDeletable")});y5.require(["Events","Strings","Dom","Classes","{Friends}.classes.ClassPictureLoader","{Friends}.UserpicDeletable"],function(){Friends.PictureLoaderAvatar=function(a,c){if(arguments.length>0){var b=new Friends.PictureLoaderAvatar();b.init.apply(b,arguments);return b}};Friends.PictureLoaderAvatar.prototype=new Friends.ClassPictureLoader();Friends.PictureLoaderAvatar.prototype.showPicture=function(a){var g=this;var b=a.name;var e=g_globals.userpic_base+g_source.id+"/"+b+"-"+this.size;var d=this.image;d.onerror=function(h){d.onerror=null;y5.Events.notify("y5:error",g.element,true,null)};y5.Classes.remove(this.label,"load");y5.Classes.remove(this.label,"error");d.src=e;this.response=a;y5.Events.notify("y5:load",this.element,true,b);if(!this.params.simpleForm){var f=this.element.cloneNode(true);var c=new Friends.UserpicDeletable(f,{userpic:b,host_id:this.params.host_id});y5.Dom.insertBefore(c.control,this.element);y5.cssQuery('input[type="file"]',c.control).forEach(function(h){y5.Dom.removeNode(h)});y5.cssQuery('input[name="userpic"]',c.control).forEach(function(h){h.value=b});this.deleteImage();c.modeChoosed()}};Friends.PictureLoaderAvatar.prototype.saveUserpic=function(a){};Friends.PictureLoaderAvatar.prototype.saveUserpicHandler=function(c){var b=c.responseText;var a=y5.JSON.decode(b);if(a.name===false){y5.Events.notify("y5:error",this.element,true,null);return false}};Friends.PictureLoaderAvatar.prototype.saveUserpicErrorHandler=function(){y5.Events.notify("y5:error",this.element,true,null)};Friends.PictureLoaderAvatar.prototype.init=function(a,b){this.initBase(a,b);this.image=this.getElement("image");y5.Events.observe("click",function(){y5.Events.notify("y5:userpic_clicked",this,true)},this.image,true,this);this.size=b.size||"normal";this.params=b};Friends.PictureLoaderAvatar.prototype.urlModify=function(){return g_globals.upics_simple_upload};Friends.PictureLoaderAvatar.prototype.sendPicture=function(){this.sendPictureBase();y5.Classes.swap(this.label,"new","load");y5.Classes.remove(this.label,"error");this.sendForm(this.urlModify())};y5.loaded("{Friends}.PictureLoaderAvatar")});var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                            У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                            '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                            "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                            /ig,"
                                            ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b=0)&&b(f,!g)}});e(function(){var f=document.body,c=f.appendChild(c=document.createElement("div"));e.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=c.offsetHeight===100;e.support.selectstart="onselectstart" in c;f.removeChild(c).style.display="none"});e.extend(e.ui,{plugin:{add:function(f,c,h){f=e.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g0){return true}f[c]=1;g=f[c]>0;f[c]=0;return g},isOverAxis:function(f,c,g){return f>c&&f'))}function N(a){return a.bind("mouseout",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==C){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.15"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('
                                            '))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f==""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]}a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b){b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";if(b==""){return null}var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l){throw"Invalid date"}return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}if(c=this._get(a,"onSelect")){e=this._formatDate(a);c.apply(a.input?a.input[0]:null,[e,a])}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+n+"";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+s+"":f?"":''+s+"";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
                                            '+(c?h:"")+(this._isInRange(a,s)?'":"")+(c?"":h)+"
                                            ":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x1){switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}}y+='">'}y+='
                                            '+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'
                                            ';var z=j?'":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="=5?' class="ui-datepicker-week-end"':"")+'>'+q[r]+""}y+=z+"";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,z)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q";var R=!j?"":'";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&ro;R+='";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+""}g++;if(g>11){g=0;m++}y+="
                                            '+this._get(a,"weekHeader")+"
                                            '+this._get(a,"calculateWeek")(r)+""+(F&&!D?" ":L?''+r.getDate()+"":''+r.getDate()+"")+"
                                            "+(l?""+(i[0]>0&&G==i[1]-1?'
                                            ':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'':"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='
                                            ',o="";if(h||!j){o+=''+i[b]+""}else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(k+=o+(h||!(j&&l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l){k+=''+c+""}else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u){k+=(h||!(j&&l)?" ":"")+o}k+="
                                            ";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.15";window["DP_jQuery_"+B]=d})(jQuery);jQuery(function(a){a.datepicker.regional.ru={closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.ru)});(function(a,b){a.namespace("locales.ru");a.locales.ru.chooseDate="выберите дату";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){b(document).ready(function(){b.datepicker.setDefaults(b.datepicker.regional.ru);var f=b(".b-control-datepicker"),h="yy-mm-dd",e="dd.mm.yy";f.datepicker({showOn:"button",buttonImage:g_globals.img_base+"b-calendar-button.png ",buttonImageOnly:true,dateFormat:e,buttonText:a.locale.chooseDate});var d=f[0];if(d&&d.form){b(d.form).bind("submit",function(){d.value=b.datepicker.formatDate(h,f.datepicker("getDate"))})}var c=f[0]?f[0].value:null;if(c){f.datepicker("setDate",b.datepicker.parseDate(h,c))}var g=b(".other-list");if(!a.support_columns(g)){g.columnize({width:200})}})})(window.ya,jQuery); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/_y.js b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/_y.js new file mode 100644 index 0000000..4f3ce8c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/_y.js @@ -0,0 +1,8 @@ +(function(b){var a={};a.imageError=function(c){var d=c.parentNode,e=d.parentNode.childNodes.length>2?d:d.parentNode;e.innerHTML='
                                            Картинка недоступна
                                            '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                            ${content}
                                            ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                            '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                            ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                            #{title}
                                            ');b.setFooter('
                                             
                                            ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/b-calendar-button.png b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/b-calendar-button.png new file mode 100644 index 0000000..e46c04b Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/b-calendar-button.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/delete.gif b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/delete.gif new file mode 100644 index 0000000..f5e84ad Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/delete.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                            a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                            "+""+"
                                            ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                            t
                                            ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                            ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                            ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                            ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                            ","
                                            "],thead:[1,"","
                                            "],tr:[2,"","
                                            "],td:[3,"","
                                            "],col:[2,"","
                                            "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                            ","
                                            "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                            ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Создать опрос — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1 + Что нового у друзей Кразя — я.ру +
                                            + + + +
                                            ПоискПочтаДискКалендарьДеньгиМой КругФотки
                                            + + Выход

                                            Друзья, этим летом мы закрываем Я.ру. Приносим вам свои извинения. Подробнее о том, как быть со своими записями.

                                            Что нового
                                            я в курсе
                                            я в курсе
                                            я в курсе
                                            я в курсе
                                            6 июля
                                            Всемирный день поцелуя
                                            я в курсе
                                            типы записей ▼

                                            выделить все / снять выделение

                                            Показать
                                            Santiago26 написал
                                            28 июня, 00:38
                                            (^_^)
                                            В клубe «XMPP / Jabber»
                                            Закрытие Ярушки

                                            В связи с закрытием, хочется узнать, что будет сделано для того, чтобы не потерять местный контент. Имхо, он представляет довольно большой пласт истории XMPP.

                                            Если его можно экспортировать в ru_jabber, это было бы разумно. Но прямым текстом Яндекс говорит только о том, что записи клубов можно будет получить в html. В таком случае, хотелось бы, чтобы архив был опубликован, а html появился на jawiki и jabberworld.

                                            > Ваши записи на Я.ру будут сохранены на Яндекс.Диске — независимо от того, захотите вы переезжать в «Живой Журнал» или нет. Вам будут доступны ваши посты, комментарии к ним, а также записи из созданных вами клубов.

                                            Если всем лень, я готов этим заняться, выдайте доступы.

                                            Илья aka Mirspo опубликовал новость
                                            19 мая, 08:59
                                            (^_^)
                                            В клубe «VirtualBox»
                                            Корректирующий выпуск системы виртуализации VirtualBox 4.3.12

                                            Компания Oracle выпустила корректирующий релиз системы виртуализации VirtualBox 4.3.12, в котором отмечено около 27 исправлений, направленных на увеличение стабильности и устранение регрессивных изменений.

                                             

                                            Скачать

                                            http://download.virtualbox.org/virtualbox/4.3.12/

                                             

                                            Подробности

                                            http://www.virtualbox.org/wiki/Changelog

                                            http://www.opennet.ru/opennews/art.shtml?num=39794

                                            r2d2 написал
                                            изменено 5 мая, в 20:49
                                            (^_^)
                                            В клубe «Windows PowerShell»
                                            проверим автозагрузку

                                            # пример осуществляет поиск программ, автоматически загружающихся при старте системы

                                            #источник : http://www.windowsfaq.ru/content/view/707/94/

                                            # ps. на самом деле путей автозагрузки много больше(дополняйте своими )

                                            #

                                            function GetAutoexec ($hives) {

                                              # Если функции не передается входной массив ключей реестра,

                                              # используем этот:

                                              $hives = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run", `

                                              "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run", `

                                              "HKLM:\Software\Microsoft\Windows\CurrentVersion\policies\Explorer\Run"

                                              # Выодим заголовок и переносим строку

                                              Write-Host "Список автозагрузки`n"

                                              # Начинаем перебирать элементы массива - ветви реестра

                                              Foreach ($hive in $hives){

                                                # Выводим название ветви зеленым цветом

                                                Write-Host "Ветвь $hive" -ForegroundColor Green

                                                # Проверяем, существует ли ветвь в реестре

                                                if (Test-Path $hive){

                                                  # Получаем очередной ключ реестра

                                                  [Microsoft.Win32.RegistryKey]$param = Get-Item $hive

                                                  # для каждого ключа...

                                                  foreach ($p in $param){

                                                    # ...получаем список его параметров

                                                    foreach ($key in $p.getvalueNames()){

                                                      # выводим название параметра и его значение

                                                      "Загрузка $key из " + $p.GetValue($key)

                                                    }

                                                  }

                                                }

                                                # переносим строку

                                                Write-Host "`n"

                                              }

                                            }

                                            # осуществляем вызов самой функции

                                            GetAutoexec

                                            r2d2 написал
                                            изменено 5 мая, в 20:36
                                            (^_^)
                                            В клубe «Windows PowerShell»
                                            PowerShel & md5

                                             

                                             

                                            cls ; # очистим экран(не обязательно - можете убрать )
                                            $files = dir "C:\WINDOWS\*.exe";
                                            foreach ($fil in $files)
                                            {
                                            $a = (Get-MD5($fil))+" "+"*"+$fil.name;
                                            echo $a ;
                                            }

                                            function Get-MD5([System.IO.FileInfo] $file = $(throw 'Usage: Get-MD5 [System.IO.FileInfo]'))
                                            {
                                            $stream = $null;
                                            $cryptoServiceProvider = [System.Security.Cryptography.MD5CryptoServiceProvider] ;
                                            $hashAlgorithm = new-object $cryptoServiceProvider
                                            $stream = $file.OpenRead()  ;
                                            $hashByteArray = $hashAlgorithm.ComputeHash($stream)  ;
                                            $stream.Close()  ; 
                                            ## We have to be sure that we close the file stream if any exceptions are thrown.
                                            trap
                                            {
                                            if ($stream -ne $null)
                                            {
                                            $stream.Close()  ;
                                            } 
                                            break;
                                            }

                                            # return [string]$hashByteArray; # возвращает массив десятичных чисел,

                                            #немного переделаем 

                                            $formattedHash = [string]::join("",($hashByteArray | foreach {$_.tostring("X2")}))  ;
                                            return [string]$formattedHash;
                                            }

                                             

                                             

                                             

                                             

                                             

                                            Что получается:  +   + изменить  +
                                            Подписаться на комментарии к записи

                                            Получать уведомления о всех ответах в этом обсуждении.

                                             
                                            Отписаться от комментарев к записи

                                            Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.

                                             
                                            К сожалению, комментарий не удалось отправить. Попробуйте ещё раз.я в курсе
                                            + + \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2F b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2F new file mode 100644 index 0000000..277458e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/-data=url=http%3A%2F%2Fmy.ya.ru%2F @@ -0,0 +1 @@ +/* counted */ diff --git a/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/La6qi18Z8LwgnZdsAr1qy1GwCwo.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png new file mode 100644 index 0000000..4e986ca Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/X31pO5JJJKEifJ7sfvuf3mGeD_8.png differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/_common.js b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/_common.js new file mode 100644 index 0000000..ee15d4f --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/_common.js @@ -0,0 +1,43 @@ +/*! +Copyright 2010 Google Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +var CJS=CJS||{};CJS.start=function(){CJS.init();CJS.findScripts();CJS.downloadScripts();if(CJS.defer){if("undefined"!=typeof(document.readyState)&&"complete"===document.readyState){CJS.processScripts()}else{CJS.addHandler(window,"load",CJS.processScripts)}}else{alert("Immediate processing is not currently supported.");CJS.processScripts()}};CJS.findScripts=function(){var d=document.getElementsByTagName("script");var a=d.length;for(var c=0;c",e)+9;if(-1!=d){var c=f.substring(0,e);var a=f.substring(e,d);var b=f.substring(d+1);if(c){CJS.dprint("docwrite: "+c.substring(0,64));CJS.curScript.docwriteTarget.innerHTML+=c+b}CJS.docwriteScript(a)}}}else{CJS.dprint("ERROR: There's a problem with the async override of document.write.")}};CJS.docwriteScript=function(b){var a=b.match(/src='([^']*)/i)||b.match(/src="([^"]*)/i)||b.match(/src=([^ >]*)/i);if(a){var c=a[1];CJS.dprint("docwriteScript url = "+c);var d=document.createElement("script");d.src=c;document.body.appendChild(d)}else{}};CJS.start(); +/*! + * See https://github.com/douglascrockford/JSON-js + */ +var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i10){new WrappingText(d)}}}function getParams(_element){var f=_element.onclick;if(f){return f()}var params=String(_element.getAttribute("onclick"));var pos=params.indexOf("[");if(pos!=-1){return eval(params.substring(pos,params.indexOf("]")+1))}return null}function yauser(a,c){var e=c||false;var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$");var b=a.title&&/\S+/.test(a.title)?a.title.match(d):a.login.match(d);if(b){return ya.templates.user.Ya({url:friendsFullURL(a.login),userWithUpperLetter:ya.templates.user.userWithUpperLetter({firstPart:b[2],secondPart:b[3]}),qu:(e&&a.qu)?ya.templates.user.Qu({qu:a.qu}):""})}return null}function yausercardBase(a){var d=new RegExp("^(\\W*?)(\\w|[\u00a0-\uffff]|S(?!.*\\w))(.*)$"),c=a.name?a.name:a.title?a.title:a.login?a.login:"",b=c.match(d),e=a.picture_url?a.picture_url+"small":g_source.getDefaultUserpicName(a.sex,"small");if(b){return''+ya.xmlEscape(b[1])+''+ya.xmlEscape(b[2])+""+ya.xmlEscape(b[3])+""}else{return""}}function yausercard(a,b){var c=yausercardBase(a);b=b||"b-usercard";if(c){return''+c+""}else{return""}}function yausercardWithButton(a,c,b){var d=yausercardBase(a);b=b||"b-usercard";if(d){return''+d+''+c+''}else{return""}}function yausercardWithLink(b,d,c,e,a){var f=yausercardBase(b);e=e||"b-usercard";if(f){return''+f+''+d+""}else{return""}}function errImg(a,b){a.onerror=null;a.src=g_globals.img_base+"empty_userpic-"+b+".png"}function viewText(b){var a=document.getElementById(b);var c=document.getElementById(b+"-d");if(c.style.display=="block"){c.style.display="none";a.src=g_globals.img_base+"txt9-plus.gif"}else{c.style.display="block";a.src=g_globals.img_base+"txt9-minus.gif"}return false}function saveStateForm(a){var b=document.forms.post;if(!b){return true}b.action=a;b.submit();return false}function checkChangeForm(){window.onbeforeunload=function(a){return"Вы не сохранили изменения. Действительно хотите уйти отсюда?"}}function WrappingText(a,c,b){this.wrapping_length=c||10;this.wrapping_length_min=b||3;this.wrapping_regexp=new RegExp("\\S{"+(this.wrapping_length+1)+"}");this.wrapTextNodes(this._searchTextNodes(a))}WrappingText.prototype={_searchTextNodes:function(b){var c=[];for(var a=0;a0)},getUserpicsCount:function(){return this.userpics.length},getUserpicId:function(b){var a=b||0;if(this.userpics[a]){return this.userpics[a][0]}return null},getUserpicName:function(c,b){var a=c||0;if(this.userpics[a]){return this.userpics[a][1]}return this.getDefaultUserpicNameShort(null,b)},getDefaultUserpicNameShort:function(b,a){return this.getDefaultUserpicName(b,a).replace(/^\w+:\/\/[^\/]+/i,"")},getDefaultUserpicName:function(d,b){b=b||"normal";if(this.type=="community"){return this.userpic.replace("normal(.png)?$",b)}var c=this.sex||d||"man";var a=(typeof this.default_userpic=="object"?this.default_userpic[c]:this.default_userpic)+b;return a},getUserpic:function(a){var c=a.id||0;var b=a.size||"normal";if(this.userpics[c]&&this.userpics[c][1]!=""){return g_globals.userpic_base+this.id+"/"+this.getUserpicName(c)+"-"+b}return this.getDefaultUserpicName(0,a.size)},getUserpicContent:function(a){var c=a.size||"normal";var f=a.simple||false;var e=a.src||this.getUserpic(a);var b=a.loaded!==false;var d;if(b){d=""}else{d=""}if(!f){d=""+d+""}return d},yauser:function(b){var c=b||false;var a=this.title&&/\S+/.test(this.title)?this.title:this.login;a=y5.Strings.normalize(a);var a=''+a.substr(0,1)+""+a.substring(1)+"";if(c&&this.qu){a+=""+this.qu+""}a+="";return a}};window.JZ=(function(b){(function(c){c.proxy||(c.proxy=function(f,e,d){if(arguments.length===2){if(typeof e==="string"){d=f;f=d[e];e=undefined}else{if(e&&!jQuery.isFunction(e)){d=e;e=undefined}}}if(!e&&f){e=function(){return f.apply(d||this,arguments)}}if(f){e.guid=f.guid=f.guid||e.guid||jQuery.guid++}return e})})(jQuery);(function(g){var d=(function(){_}).toString().indexOf("_")>-1,c=g.browser.msie,e=c?["toString","valueOf"]:null,h=function(){};function f(j,i,k){var m=false;if(c){var l=[];g.each(e,function(){k.hasOwnProperty(this)&&(m=true)&&l.push({name:this,val:k[this]})});if(m){g.each(k,function(n){l.push({name:n,val:this})});k=l}}g.each(k,function(o,p){if(m){o=p.name;p=p.val}if(g.isFunction(j[o])&&g.isFunction(p)&&(!d||p.toString().indexOf(".__base")>-1)){var n=j[o];i[o]=function(){var s=this.__base;this.__base=n;var q=p.apply(this,arguments);this.__base=s;return q}}else{i[o]=p}})}g.inherit=function(){var j=g.isFunction(arguments[0]),p=j?arguments[0]:h,l=arguments[j?1:0]||{},n=arguments[j?2:1],i=l.__constructor||(j&&p.prototype.__constructor)?function(){this.__constructor.apply(this,arguments)}:function(){};if(!j){i.prototype=l;i.prototype.__self=i.prototype.constructor=i;return g.extend(i,n)}g.extend(i,p);var m=function(){},k=p.prototype;m.prototype=p.prototype;i.prototype=new m();var o=i.prototype;o.__self=o.constructor=i;f(k,o,l);n&&f(p,i,n);return i}})(jQuery);(function(c){c.extend({debounce:function(e,f,g,d){if(arguments.length==3&&typeof g!="boolean"){d=g;g=false}var h;return function(){var i=arguments;d=d||this;if(g&&!h){e.apply(d,i)}clearTimeout(h);h=setTimeout(function(){if(!g){e.apply(d,i)}h=null},f)}},throttle:function(g,h,f){var i,e,d;return function(){e=arguments;d=true;if(!i){(function(){if(d){g.apply(f,e);d=false;i=setTimeout(arguments.callee,h)}else{i=null}})()}}}})})(jQuery);(function(d){var c=1;d.identify=function(e){return e.__id||(e.__id=c++)}})(jQuery);(function(d){var c=function(h,f,g){var e=[d.identify(h),d.identify(f)];d.each(g,function(){e.push(typeof this,this)});return e.join("\x0B")};d.memoize=function(e){return function(){!e.__memoize&&(e.__memoize={});var f=c(e,this,arguments);return e.__memoize[f]||(e.__memoize[f]=e.apply(this,arguments))}}})(jQuery);(function(){var c={getSelection:function(){var d=this.jquery?this[0]:this;return(("selectionStart" in d&&function(){var e=d.selectionEnd-d.selectionStart;return{start:d.selectionStart,end:d.selectionEnd,length:e,text:d.value.substr(d.selectionStart,e)}})||(document.selection&&function(){d.focus();var f=document.selection.createRange();if(f==null){return{start:0,end:d.value.length,length:0}}var e=d.createTextRange();var g=e.duplicate();e.moveToBookmark(f.getBookmark());g.setEndPoint("EndToStart",e);return{start:g.text.length,end:g.text.length+f.text.length,length:f.text.length,text:f.text}})||function(){return{start:0,end:d.value.length,length:0}})()},replaceSelection:function(){var d=this.jquery?this[0]:this;var f=arguments[0]||"";return(("selectionStart" in d&&function(){d.value=d.value.substr(0,d.selectionStart)+f+d.value.substr(d.selectionEnd,d.value.length);return this})||(document.selection&&function(){d.focus();document.selection.createRange().text=f;return this})||function(){d.value+=f;return this})()}};jQuery.each(c,function(d){jQuery.fn[d]=this})})();var a={CSS_CLASS_WIDGET:"jz",onInit:function(d,c){d.bind("init.jz",c).each(function(){b(this).data("jz")&&c.call(window,b.Event("init.jz"),b(this).data("jz"))})},registerWidget:function(c,f,d,e){this.Builder.registerWidget(c,f,d,e);return this},_throwException:function(c){throw"JZException: "+c},_identifyNode:function(c){return c.id||("__id-"+b.identify(c))}};b.fn.jz=function(d){var c;this.each(function(g){var j=b(this),e=j.data("jz");if(d===false){e&&e.remove(true)}else{if(!e){var h=j.closest("form");if(h[0]){var f=h.data("jz-builder");(f||new a.Builder()).build(f?j:h)}}}g==0&&(c=j.data("jz"))});return c};a.Observable=b.inherit({bind:function(j,k,h,e){this._observers||(this._observers={});if(b.isFunction(k)){e=h;h=k}var g=0,f=j.split(" "),c,d;while(c=f[g++]){d=c.indexOf(".")>-1;c=d?c.split("."):c;j=d?c.shift():c;(this._observers[j]||(this._observers[j]=[])).push({ns:d?c.sort().join("."):null,fn:h,data:k,ctx:e})}return this},unbind:function(l,n){if(this._observers){if(l){var d=0,c,g=l.split(" "),f,h,k,e,m;while(k=g[d++]){e=k.indexOf(".")>-1;k=e?k.split("."):k;l=e?k.shift():k;m=e?new RegExp("(^|\\.)"+k.sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(l){f=this._observers[l];if(f){c=0;while(h=f[c++]){if((!n||n===h.fn)&&(!e||(e&&h.ns&&m.test(h.ns)))){f.splice(--c,1)}}}}else{for(l in this._observers){f=this._observers[l];c=0;while(h=f[c++]){if((!n||n===h.fn)&&h.ns&&m.test(h.ns)){f.splice(--c,1)}}}}}}else{delete this._observers}}return this},trigger:function(k,j){if(this._observers){typeof k==="string"&&(k=b.Event(k));var c=k.type.indexOf(".")>-1,h=c?k.type.split("."):null;if(c){k.type=h.shift();h=new RegExp("(^|\\.)"+h.sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}var l=this._observers[k.type];if(l){var g=0,d,f;while(d=l[g++]){if(!c||(d.ns&&h.test(d.ns))){k.data=d.data;f=d.fn.call(d.ctx||window,k,j);if(typeof f!=="undefined"){k.result=f;if(f===false){k.preventDefault();k.stopPropagation()}}}}}}return this}});a.Widget=b.inherit(a.Observable,{__constructor:function(c,d,e){this._elem=c.data("jz",this);this._classElem=d||c;this._params=b.extend(this._getDefaultParams(e),e);this._parent=this._form=null;this._isInited=this._isRequired=false;this._isValid=true;this._isEnabled=!this._elem.attr("disabled");this._val=this._initialVal=null;this._dependencies={};this._dependFromIds={}},getElement:function(){return this._elem},getId:b.memoize(function(){return a._identifyNode(this._elem[0])}),getName:b.memoize(function(){return this._extractName()}),focus:function(){this._elem[0].focus();return this},hasCSSClass:function(c){return this._classElem.hasClass(c)},addCSSClass:function(c){this._classElem.addClass(c);return this},removeCSSClass:function(c){this._classElem.removeClass(c);return this},replaceCSSClass:function(c,d){this.hasCSSClass(c)&&this.removeCSSClass(c);return this.addCSSClass(d)},init:function(){return this._isInited?this._reinit():this._init()},isRequired:function(){return this._isRequired},isValid:function(){return this._isValid},isReady:function(){return !this.isEnabled()||(!this.isRequired()&&this.isValid())},isEnabled:function(){return this._isEnabled},show:function(){return this.removeCSSClass(this.__self.CSS_CLASS_INVISIBLE)},hide:function(){return this.addCSSClass(this.__self.CSS_CLASS_INVISIBLE)},enable:function(c){if(this.isEnabled()||!this._parent.isEnabled()){return this}if(c&&this._dependencies.enabled){return this._checkDependencies("enabled")}this._enableElems();var d=this.removeCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=true;d!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",true);return this.trigger("enable",this)},disable:function(){if(this.isEnabled()){this._disableElems();var c=this.addCSSClass(this.__self.CSS_CLASS_DISABLED).isReady();this._isEnabled=false;c!=this.isReady()&&this.trigger("ready-change",this);this.isChanged()&&this.trigger("initial-value-change",false);this.trigger("disable",this)}return this},val:function(c){return typeof c=="undefined"?this._val.get():this._setVal(this._processVal(this._createVal(c)))},getValue:function(){return this.val()},setValue:function(c){return this.val(c)},addDependence:function(d,c){this._dependencies[d]=c;var e=this;b.each(c.getFrom(),function(){e._dependFromIds[this.getId()]||(e._bindTo(this,{"value-change enable disable":this._onChangeDependFromWidget,remove:this._onRemoveDependFromWidget})._dependFromIds[this.getId()]=true)})},remove:function(c){this._triggerRemove()._parent&&this._parent._removeChild(this);var d=this._classElem;this._destruct();c&&d.remove()},reset:function(){if(this._hasVal()){this._setNoReady(false);this._setVal(this._initialVal)}return this},addChild:function(){},_bindTo:function(f,d,e,c){if(b.isFunction(e)){c=e;e=null}var g=this;typeof d=="string"?f.bind(d,e,b.proxy(c,g)):b.each(d,function(h){g._bindTo(f,h,e,this)});return g},_bindToElem:function(d,e,c){return this._bindTo(this._elem,d,e,c)},_init:function(){this._bindEvents()._hasVal()&&this._initVal();this._isInited=true;this._params.focusOnInit&&this.focus();return this},_reinit:function(){if(this._hasVal()){this._setNoReady(false);this.isChanged()&&this.removeCSSClass(this.__self.CSS_CLASS_CHANGED);this._initialVal=this._val}return this},_extractName:function(){return this._elem.attr("name")},_createVal:function(c){return new a.Value(c)},_processVal:function(c){return c},_getVal:function(){return this._val},_setVal:function(e,c){if(!this._val.isEqual(e)){var d=this.isChanged();this._val=e;c||this._setValToElem(e);d==this.trigger("value-change",this).isChanged()||this[(d?"remove":"add")+"CSSClass"](this.__self.CSS_CLASS_CHANGED).trigger("initial-value-change",!d)}return this},_setForm:function(c){(this._form=c)._addWidget(this);return this},_getDefaultParams:function(c){return{focusOnInit:false}},_delete:function(){var c=this;b.each(arguments,function(d,e){delete c[e]})},_destruct:function(){this._unbindAll();this._elem.removeData("jz");this._delete("_elem","_classElem","_params","_parent","_val","_initialVal","_dependencies","_dependFromIds")},_unbindAll:function(){this._elem.unbind();this._classElem.unbind();this.unbind()},_hasVal:function(){return false},_initVal:function(){this._initialVal=(this._val=this._createVal(this._extractValFromElem())).clone()},isChanged:function(){return this._hasVal()&&!this._initialVal.isEqual(this._val)},_updateValue:function(){this._setVal(this._createVal(this._extractValFromElem()),true)},_checkDependencies:(function(){var c=["enabled","valid","required"];return function(g,k,l){var f=0,j,m,e=!!g?[g]:c,d=e.length,h=this.isReady();while(f'+this._params.placeholder+"").insertBefore(this._elem.attr("id",this.getId()))}),_destruct:function(){this._params.placeholder&&this._getPlaceholder().remove();this.__base()}},{CSS_CLASS_PLACEHOLDER:a.CSS_CLASS_WIDGET+"-placeholder"});a.Widget.Input.Text.Combo=b.inherit(a.Widget.Input.Text,{__constructor:function(){this.__base.apply(this,arguments);this._isListShowed=this._preventOnBlur=this._preventOnFocus=this._preventUpdate=this._focusOnBlur=false;this._hilightedIndex=-1;this._itemsCount=0;this._lastSearchVal=this._keyDownValue=this._updateList=this._reposTimer=this._lastOffset=null},_init:function(){this.__base()._elem.attr("autocomplete","off");this._params.arrow&&this._params.arrow.attr("tabIndex",-1);this._updateList=b.debounce(function(d){if(this._elem){if(!this._params.showListOnEmpty&&this._elem.val()===""){return this._hideList()}var c=typeof d=="undefined"?this._elem.val():d;if(this._lastSearchVal===this._elem.val()&&typeof d=="undefined"){return this._showList()}this._getStorage().filter(this._lastSearchVal=c,b.proxy(this._onStorageFilter,this))}},this._params.debounceInterval);return this},_onStorageFilter:function(d,e){if(this._lastSearchVal==d){this._itemsCount=e.length;this._hilightedIndex=-1;if(!e.length){return this._hideList()}var c=this._elem.val(),f=this;this._getList().html(b.map(e,function(h,g){c==h&&(f._hilightedIndex=g);return f._params.listItemRenderFn(h,c,d)}).join(""));this._showList()}},_bindEvents:function(){var c=b.browser.opera?"keypress":"keydown",d={keyup:this._onKeyUp};d[c]=this._onKeyDown;this.__base()._bindToElem(d);var e=this._params.arrow;e&&this._bindTo(e,{mousedown:this._onArrowMouseDown,mouseup:this._onArrowMouseUp,click:this._onArrowClick});return this},_onFocus:function(){if(!this._preventOnFocus){this.__base();if(!this._preventUpdate){if(this._params.showAllOnFocus){this._updateList("");this._lastSearchVal=this._elem.val()}else{this._updateList()}}else{this._preventUpdate=false}}else{this._preventOnFocus=false}},_onBlur:function(){if(!this._preventOnBlur){this.__base();this._hideList()}else{this._preventOnBlur=false}if(this._focusOnBlur){this._focusOnBlur=false;setTimeout(b.proxy(function(){this.focus()._refocus()},this),0)}},_onArrowMouseDown:function(){if(this.isEnabled()){this._preventOnBlur=true;this._params.arrow.addClass(this.__self.CSS_CLASS_ARROW_PRESSED)}},_onArrowMouseUp:function(){this.isEnabled()&&this._params.arrow.removeClass(this.__self.CSS_CLASS_ARROW_PRESSED)},_onArrowClick:function(){if(!this.isEnabled()){return}if(this._isListShowed){this._hideList();this._preventOnFocus=true;this.focus()}else{this._preventUpdate=true;this.focus()._refocus()._updateList("");this._preventOnBlur=false}return false},_onKeyDown:function(c){if(this._keyDownValue!==null){return}this._keyDownValue=this._elem.val();if(c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}switch(c.keyCode){case 13:if(this._isListShowed){this._itemsCount=0;this._hilightedIndex=-1;this.val(this._lastSearchVal=this._keyDownValue)._hideList();return false}break;case 38:this._prev();return false;case 40:this._next();return false}},_onKeyUp:function(c){if(!this._isFocused||c.metaKey||c.ctrlKey||c.shiftKey||c.altKey){return}c.keyCode!=9&&this._keyDownValue!=this._elem.val()&&this._updateList();this._keyDownValue=null},_prev:function(){this._isListShowed&&this._hilightItemByIndex((this._hilightedIndex>0?this._hilightedIndex:this._itemsCount)-1)},_next:function(){this._isListShowed&&this._hilightItemByIndex(this._hilightedIndex','
                                              {popup_items}
                                            '].join(""),popup_item:'
                                          • {title}
                                          • ',popup_item_selected:'
                                          • {title}
                                          • '}};(function(b,d){var e=function(f,h){var g=null;d.each(f,function(k,l){var j=l[h.name]&&l[h.name]==h.value;if(l[h.name]&&l[h.name]==h.value){g=l}});return g};var c=function(f){return f.replace(/\./,"")};var a=function(i,g){var f=this;this.$bindedElement=d(i);this.$bindedForm=this.$bindedElement.parents("form");this.$bindedElement.attr("autocomplete","off");this.options=d.extend({},this.options,g);this.$container=this.$bindedForm.find(this.options.cssSelectors.container);this.options.htmlSelectors={};d.each(this.options.cssSelectors,function(k,l){f.options.htmlSelectors[k]=c(l)});this.$popupElement=null;this.selectedItem=null;this.$container.append(ya.processTemplate(this.options.templates.darr,this.options.htmlSelectors));var j=e(this.options.items,{name:"selected",value:true});var h=function(k){f.$bindedElement.attr("title",k.title);f.selectedItem=k;f.prepareForm(k,f.options.templates.form_item)};if(j){h(j)}f.initChooser();f.initFocusChanger()};a.prototype.setDefaultValue=function(){this.$bindedElement[0].value=this.$bindedElement.attr("title")};a.prototype.initFocusChanger=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors;var g=function(){if(f.$bindedElement.attr("title")===f.$bindedElement[0].value){f.$bindedElement[0].value=""}f.$bindedForm.addClass(k.inputFocus)};if(f.$bindedElement.val()){g()}else{f.setDefaultValue()}var j=function(){f.$bindedForm.removeClass(k.popupActive).removeClass(k.inputFocus);f.setDefaultValue()};var i=function(){if(!f.$bindedElement[0].value.length&&f.$bindedElement.attr("title")!=f.$bindedElement[0].value&&!f.$bindedForm.hasClass(k.popupActive)){j()}};f.$bindedElement.focus(function(l){g()}).blur(function(l){window.setTimeout(i,200)})};a.prototype.prepareForm=function(k,g){var j=k.form,f=this,i=f.options.cssSelectors,l=f.options.htmlSelectors;if(!/^https?\:\/\//.test(j.action)){j.action=window.ya.base+j.action}ya.log(j.action);this.$bindedForm[0].action=j.action;this.$bindedForm.find(i.selector_arrow).text(k.title).addClass(l.selector_with_value);var h=function(m){if(m.useExisted){f.$bindedElement[0].name=m.name}else{if(f.$bindedForm[0][m.name]){f.$bindedForm[0][m.name].value=m.value}else{m.form_item=l.form_item;f.$bindedForm.prepend(ya.processTemplate(g,m))}}};d(i.form_item).remove();if(j.params){d.each(j.params,function(m,n){h(n)})}return true};a.prototype.initChooser=function(){var f=this,h=f.options.cssSelectors,k=f.options.htmlSelectors,g=f.$container.children(h.selector_arrow);var j=function(){if(f.$popupElement){f.$bindedElement[0].focus();f.$bindedForm.removeClass(k.popupActive);f.$popupElement.remove();f.$popupElement=null}};var i=function(){f.$popupElement=f.createPopup();f.$bindedForm.addClass(k.popupActive);var l=f.$popupElement.find(h.popup_item);l.click(function(n){var p=ya.getParamsFromAttr(n.target,"onclick");var o=p.type;var m=e(f.options.items,{name:"key",value:o});if(m){f.setSelectItem(m)}if(f.prepareForm(m,f.options.templates.form_item)){j()}});d(document).keydown(function(m){if(m.keyCode==27&&!(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)){j()}}).click(function(m){if(!d(m.target).is(h.selector_arrow)&&!d(m.target).is(h.popup)){j()}})};g.click(function(){if(f.$popupElement){j()}else{i()}})};a.prototype.setSelectItem=function(f){this.$bindedForm.find(this.options.cssSelectors.selector_arrow).html(f.title);this.selectedItem=f};a.prototype.createPopup=function(){var g=this,i=g.options.cssSelectors,m=g.options.htmlSelectors,j=g.options.templates;if(g.$bindedForm.children(i.popup)[0]){return}var f=e(g.options.items,{name:"default",value:true});var h=function(){var n=[];d.each(g.options.order,function(q,p){var s=g.options.items[p];if(s){var o=(g.selectedItem&&s.key===g.selectedItem.key)?ya.processTemplate(j.popup_item_selected,m):ya.processTemplate(j.popup_item,m);n.push(ya.processTemplate(o,s))}});return n.join("")}();g.$container.append(ya.processTemplate(j.popup,{popup_items:h,popup:m.popup}));var l=g.$bindedForm.find(i.popup),k=g.$bindedForm.find(i.selector_arrow).offset();return l};b.MultiSearch=a})(window,jQuery);$(document).ready(function(a){$(document).delegate(".b-login-popup","click",function(b){if(Lego&&Lego.block&&Lego.block["b-domik_type_popup"]&&Lego.block["b-domik_type_popup"].login&&Lego.block["b-domik_type_popup"].login instanceof Function){Lego.block["b-domik_type_popup"].login();b.preventDefault();b.stopPropagation()}})});(function(a){var b="i-hidden";a.fn.extend({yhide:function(){var c=arguments[0]||this;if(c instanceof a){return c.addClass(b)}},yshow:function(){var c=arguments[0]||this;if(c instanceof a){return c.removeClass(b)}},ytoggle:function(){var c=arguments[0]||this;if(c instanceof a){c.each(function(){var d=a(this);if(d.hasClass(b)){d.yshow()}else{d.yhide()}});return c}}})})(jQuery);(function(b,a){a.namespace("controls");a.controls.ChooseControlPermission=function(){this.controlSelector=".b-choose-permission";this.exportSelector=".b-export-item";var d=this;d.exportElements=[];var c=function(h){b.each(d.exportElements,function(j,k){k.disabled=h})};var g={"public":function(){c(false)},all_friends:function(){c(true)},"private":function(){c(true)}};var f=function(h){g[this.value].call(this)};var e=function(){b(d.exportSelector).each(function(h,j){d.exportElements.push(j)});b(d.controlSelector+":checked").each(f);b(d.controlSelector).bind("click",f)};return{init:e}};b(a.controls.ChooseControlPermission).trigger("ready")})(jQuery,ya);var targetNS=window.ya;(function(a,b){a.namespace("templates");a.templates.popup=a.template(['
                                            ','','
                                            ','
                                            ','','','','
                                            {content}',"
                                            ","
                                            ","
                                            ","
                                            "].join(""))})(targetNS,jQuery);(function(a,d){var c=function(f){this.params=d.extend({id:"#id"+ya.random(),content:"",target:ya.getIdSelector(d("body")[0]),direction:"down"},f);this.info="Popup "+this.params.id+":";this.init()},b=10,e=9;c.prototype={bindTo:function(f){this.contextElementId=f;this.rebind()},selectors:{body:".b-popupa",content:".b-popupa__content",tail:".b-popupa__tail",visible:".i-popup_visibility_visible",hidden:".i-popup_visibility_hidden"},generatePopup:function(){var f=a.templates.popup({id:this.params.id.substring(1),content:this.params.content,contentClass:this.params.contentClass||""});d(this.params.target).append(f)},getAvailableDirections:function(k,h,t,v,n){var p=d(window).width(),j=d(window).height(),m=k.top-(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-t,s=j+(window.pageYOffset?window.pageYOffset:document.body.scrollTop)-k.top-n-t,g=k.left-h,q=p-k.left-v-h,u,i,l=h/2,f=t/2,o={};m=m<0?-m:0;s=s<0?-s:0;g=g<0?-g:0;q=q<0?-q:0;u=(l>g?0:g-l)-(l>q?0:q-l);i=(f>m?0:m-f)-(f>s?0:s-f);if(Math.abs(u)','
                                              {items}
                                            ',""].join(""));a.templates.menuItem=a.template(['
                                          • ','
                                            ','{title}',"
                                            ","
                                          • "].join(""))})(ya,jQuery);(function(a,c){var b=function(d){this.element=a.getIdSelector(d);this.params=a.getParamsFromAttr(d,"onclick");this.controlInfo="Menu "+this.element+": ";a.log(this.controlInfo+"init");this.attachEvents()};b.prototype={popupInit:function(){a.log(this.controlInfo+"popupInit");var f=this;for(var h=0,g="",e=f.params.items,d=e.length;h','
                                            ','',"
                                            ",""].join("")),itemResult:a(['
                                            ','
                                            ','
                                            ','
                                            ',"
                                            {title}",'{count}',"
                                            ","
                                            "].join("")),itemVoteSingle:a('',{checked:""}),itemVoteMultiply:a('',{checked:""}),layout:a('
                                            {items}{actions}
                                            '),actionLink:a('
                                            {title}
                                            '),expired:a('
                                            {title}
                                            ')}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.vote={vote:"проголосовать",revote:"проголосовать заново",tovote:"вернуться к голосованию",expired:"время голосования истекло",results:"посмотреть результаты",unselected:"Вы не выбрали ни одного варианта",serverError:"Произошла ошибка при работе с сервером"};a.locale=a.locales.ru})(targetNS,jQuery);(function(b,c){var a=function(d){this.info="Vote control: ";this.id=b.getIdSelector(d);this.params=b.getParamsFromAttr(d,"onclick");this.init()};a.prototype={attachEvents:function(){b.log(this.info+"Attach Events");var d=this;c(this.id).delegate(this.selectors.revote,"click",function(){d.params.isResultsMode=false;d.draw()});c(this.id).delegate(this.selectors.results,"click",function(){d.params.isResultsMode=true;d.drawOrGetResults()});c(this.id).delegate(this.selectors.vote,"click",function(){d.params.isResultsMode=true;d.voteAction(true)})},getSelectedValues:function(){var d=[];c(this.id).find(this.selectors.inputChecked).each(function(e,f){d.push(f.value)});return d},update:function(d){c.extend(this.params,d);this.draw()},callbackOK:function(d){b.log(this.info+"callbackOK");this.update(d.data)},callbackNOK:function(){b.log(this.info+"callbackNOK");b.error(this,b.locale.vote.serverError)},voteAction:function(f){var e=null,d=this;if(f&&!this.getSelectedValues().length){b.error(this,b.locale.vote.unselected);return}var g={feed_id:this.params.feed_id,item_no:this.params.item_no,sk:g_globals.secret_key};if(f){g.mode="results";g.vote_for=this.getSelectedValues().join(",")}c.ajax({url:f?ya.url("json_do_vote.xml"):ya.url("jsonp_vote.xml"),type:f?"POST":"GET",dataType:f?"json":"jsonp",data:g,success:function(){d.callbackOK.apply(d,arguments)},error:function(){d.callbackNOK.apply(d,arguments)}})},selectors:{inputChecked:".b-poll__input:checked",revote:".b-action-revote",vote:".b-action-vote",results:".b-action-get-results"},drawOrGetResults:function(){if(this.params.isResultsMode&&!this.params.voteResults){this.voteAction()}else{this.draw()}},init:function(){b.log(this.info+"init");b.log(this.params);this.attachEvents();if(this.params.voteResults){this.draw()}else{this.voteAction()}},getResultById:function(g){b.log(this.info+"getResultById");var f=this.params.voteResults;if(!f){return null}for(var e=0,d=f.length;eСпасибо! Результаты будут доступны "+k.resultsHiddenUntil+""}else{for(var h=0,e=g.length;hРезультаты скрыты от других пользователей до окончания голосования"}}return f.vote.layout({items:d,actions:f.vote.actionLink({title:this.params.isMeVoted?b.locale.vote.revote:b.locale.vote.tovote,selector:this.selectors.revote.substring(1)})})},getViewExpired:function(){b.log(this.info+"getViewExpired");var f=b.templates,k=this.params,g=k.vars,d="",j=null;for(var h=0,e=g.length;h0){return this.init.apply(this,arguments)}};if(c){b.prototype=new c()}return b};Friends.CommonConstructor=a;y5.loaded("{Friends}.CommonConstructor")});y5.require(["Events","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){this.control=c;this.params=d;this.input=y5.cssQuery("input[placeholder]",c)[0];if(!this.input){return}this.init=true;this.input.refInputPlaceholder=this;this.placeholder=this.input.getAttribute("placeholder");this.clearinput=true;var b=this.input.getAttribute("clearinput");if(b&&b=="no"){this.clearinput=false}if(this.placeholder&&this.input.value==""){this.disable(this.placeholder)}this.on("keyup",this.inputOut,this.input);this.on("focus",this.inputEnter,this.input);this.on("blur",this.inputOut,this.input);return this};a.prototype.inputEnter=function(b){if(this.isEmpty()){this.clearInput()}};a.prototype.inputOut=function(b){if(this.isEmpty()){var c=(b.type=="keyup"&&this.input.value!=this.placeholder)?"":this.placeholder;this.disable(c)}else{this.enable(this.input.value)}};a.prototype.isEmpty=function(){var b=(this.input.value==""||this.input.value==this.placeholder);return b};a.prototype.isTaint=function(){return !this.isEmpty()};a.prototype.clearInput=function(b){if(this.clearinput){this.input.value=""}var c=this.clearinput?"":this.input.value;this.disable(c)};a.prototype.disable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.add(this.input,"b-input-empty")};a.prototype.enable=function(b){if(b!=this.input.value){this.input.value=b}y5.Classes.remove(this.input,"b-input-empty")};Friends.InputPlaceholder=a;y5.loaded("{Friends}.InputPlaceholder")});Friends.FriendControl=function(a){this.control=a;this.search=0;this.result=0;this.list=0;this.details=0;this.submit=0;this.textInitial="";this.searchSubmit=0;this.init()};Friends.FriendControl.prototype={clearSearchField:function(a){if(a.target.value==this.textInitial){a.target.value=""}y5.Classes.remove(a.target,"text-initial")},initialSearchField:function(a){if(y5.Strings.isEmpty(a.target.value)){y5.Classes.add(a.target,"text-initial");a.target.value=this.textInitial}},onCheckboxClick:function(b){b.stopPropagation();var a=y5.Dom.getDescendantOrSelf(b.target,"input","*");this.disableControl(a,(a.checked==""))},disableControl:function(g,f){var d=y5.Dom.getFollowing(y5.Dom.getAncestorOrSelf(g,"label","*"),"span","*")[0];y5.Classes.assign(d,"disabled",f);var c=y5.Dom.getDescendants(d,"input","*"),e,b;for(e=0,b=c.length;e');var a=this;g_sources.getSource(d,function(e){a.getUserResponseOK(e,{parent:a})},this.getUserResponseError,{parent:this},true)},getUserResponseOK:function(a,b){y5.Classes.remove(b.parent.details,"details-empty");b.parent.details.innerHTML=a.info||""},getUserResponseError:function(a,b){},onSearch:function(){this.setStatusMessage('Идёт загрузка пользователей
                                            ');var b=["textarea","select","button"];var d="input";var c=this.placeholders.filter(function(e){if(e.isEmpty()){d+='[name!="'+e.input.name+'"]'}return(!e.isEmpty()&&!y5.Strings.isVoid(e.input.value))})==0;b.push(d);if(c){this.setStatusMessage("Задан пустой поисковый запрос.");return false}var a=friendsURL("ajax/search_users",y5.FormCollector.collectTags(this.control,b));(function(e,f){jQuery.ajax({url:a,dataType:"json",success:function(g){e.searchResponseOK(g,f)},error:function(g){e.searchResponseError(g,f)}})})(this,{parent:this});return false},searchResponseOK:function(a,b){var c=b.parent;c.listParentNode.innerHTML=a.html;c.list=c.listParentNode.firstChild;if(c.list.length===0){c.setStatusMessage("никого не найдено");return}new y5.AEventListener("change",c.showUserInfo,c.list,true,c);c.list.selectedIndex=-1;c.setStatusMessage("← выберите человека")},searchResponseError:function(a){},setStatusMessage:function(a){y5.Classes.add(this.details,"details-empty");this.details.innerHTML=a},init:function(){var g=(y5.cssQuery('input[name="type"][type="hidden"]')[0]||{value:"unknown"}).value;y5.cssQuery(".b-write-friend-search input",this.control).forEach(function(a){y5.Events.observe("keypress",function(h){if(h.keyCode==13){h.preventDefault();h.stopPropagation();this.onSearch()}},a,true,this)},this);this.placeholders=y5.cssQuery(".Friends-later-InputPlaceholder",this.control).map(function(a){return new Friends.InputPlaceholder(a)});this.search=y5.Dom.getDescendant(this.control,"div","b-write-friend-search");this.searchSubmit=y5.Dom.getDescendant(this.search,"input","submit");y5.Events.observe("click",this.onSearch,this.searchSubmit,true,this);this.textInput=y5.Dom.getDescendant(this.search,"input","text");this.textInitial=this.textInput.value;new y5.AEventListener("focus",this.clearSearchField,this.textInput,true,this);new y5.AEventListener("blur",this.initialSearchField,this.textInput,true,this);var c=y5.Dom.getDescendants(this.search,"p","*"),d,b;for(d=0,b=c.length;d0){y5.Events.observe("click",this.onCheckboxClick,f[0],true,this);this.disableControl(f[0],true)}}this.result=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.list=y5.Dom.getDescendants(y5.Dom.getDescendant(this.result,"td","list"),"select","*")[0];this.listParentNode=this.list.parentNode;this.details=y5.Dom.getDescendant(this.result,"td","details");var e=y5.Dom.getDescendant(this.control.parentNode,"div","b-write-submit");if(["congratulation","text"].indexOf(g)>-1){e=false}}};y5.require(["Strings","Dom","Classes","Events","Ajax","AjaxJS","FormCollector","{Friends}.InputPlaceholder"],function(){y5.loaded("{Friends}.FriendControl")});Friends.ProfileView=function(a){this.control=a;this.controlEdit=null;this.controlEditElements=[];this.headerId=null;this.contentNodeId=null;this.init();this.prevClassName=null};Friends.ProfileView.prototype={TAGNAME:"div",CLASSNAME:"c-profile-view",selectControl:function(b){var a=y5.Dom.getAncestorOrSelf(this.control,"*","b-profile-section-holster").parentNode;if(y5.Classes.test(a,"special")){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor="#ffdba9"}else{this.control.style.borderColor="#c7c8ca"}},unselectControl:function(a){this.control.style.borderColor=this.control.style.backgroundColor=getById(this.headerId).style.backgroundColor=""},saveControlEditElements:function(){this.controlEditElements=[];var b=this.control.getElementsByTagName("input"),d,a;for(d=0,a=b.length;d-1){this.controlEditElements.push({element:e,value:e.value})}else{if(["checkbox","radio"].indexOf(e.type.toLowerCase())>-1){this.controlEditElements.push({element:e,checked:e.checked})}}}var c=this.control.getElementsByTagName("select");for(d=0,a=c.length;d0){var a=new Friends.PseudoWidgetControl();a.init.apply(a,arguments);return a}};Friends.PseudoWidgetControl.prototype={init:function(a,b){this.control=a;this.btn_update=null;this.ajaxMethod_get=(b.ajaxMethod_get.indexOf("/")===-1?"ajax/":"")+b.ajaxMethod_get;this.ajaxMethod_post="ajax/"+b.ajaxMethod_post;this.ajaxParamName=b.ajaxParamName;if(b.dont_update){this.show(this.control.innerHTML)}else{this.update()}},enliveReloadLinks:function(){y5.cssQuery("a.js-pseudowidget-reload",this.control).forEach(function(a){this.createNavigationLink(a)},this)},createNavigationLink:function(a){y5.Events.observe("click",function(){var b=a.onclick();this.update(null,b.href)},a,true,this)},update:function(g,d){var i,h=this,c;if(!this.btn_update){d=d||friendsURL(this.ajaxMethod_get);i="GET"}else{g.preventDefault();g.stopPropagation();var a=this.btn_update.onclick();if(a){c=y5.Elements.createFromHTML('
                                             
                                            ');y5.Dom.insertBefore(c,this.btn_update);d=friendsURL(this.ajaxMethod_post,this.ajaxParamName+"="+a);i="POST"}else{return false}}function b(e){y5.Dom.removeNode(c);y5.Classes.add(this.control,"i-hidden");y5.Events.notify("y5:widget:responseError",this.control,true)}var f=new y5.Request.XML(d,{callbackContext:this,method:i});f.onload=this.responseOK;f.onerror=b;f.send()},responseOK:function(a){if(!a.responseText){y5.Classes.add(this.control,"i-hidden")}this.show(a.responseText);y5.Events.notify("y5:widget:responseOK",this.control,true);ya.queue.exec("onload",this.control);ya.queue.exec("moods",this.control)},show:function(a){this.control.innerHTML=a;y5.Events.notify("y5:widget:html",this.control,true);y5.Components.init(this.control);this.enliveReloadLinks();this.btn_update=y5.Dom.getDescendant(this.control,"a","update");if(!this.btn_update){return}new y5.AEventListener("click",this.update,this.btn_update,true,this)}};if(y5.is_opera){Friends.PseudoWidgetControl.showOpera=Friends.PseudoWidgetControl.show;Friends.PseudoWidgetControl.show=function(a){this.control.innerHTML="";y5.Utils.setTimeout(function(){this.showOpera(a)},1,this)}}y5.require(["Ajax","AjaxObject","Dom","Events","Elements","Utils","Classes","Fx"],function(){y5.loaded("{Friends}.PseudoWidgetControl")});y5.require(["Fx","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.BasicControl);a.prototype.init=function(c,d){var b=this;this.control=c;this.params=d;this.host_id=this.params.host_id||"host_id";this.common_link_selectors=[".js-widget-navigation a","div.b-pager a"];if(this.params.link_selectors){this.common_link_selectors=this.common_link_selectors.concat(this.params.link_selectors)}this.onInit();if(this.params.hot_load){this.loadWidget(this.params.src,{},{no_fader:true})}else{this.onLoadHandler()}};a.prototype.onInit=function(){};a.prototype.onLoadHandler=function(){};a.prototype.modeLoading=function(c){this.mode="loading";if(c){jQuery(this.control).find(".b-viewport-loading").remove()}else{var b=$('
                                            обновление...
                                            ');b.css({height:$(this.control).height()});jQuery(this.control).prepend(b)}};a.prototype._addParams=function(k,e){var d=new (y5.URL)(location.href),h={},g,c;for(g=1;g
                                            {(moreAsUpdate)[
                                            я в курсе
                                            ]}
                                            {(allItems)({(moreAsUpdate)()[]})}
                                            '),viewportLayout:b('
                                            {(titleButton)({titleButton})}
                                            показать ещё
                                            '),group:b('
                                            {timestamp}
                                            {items}
                                            '),item:b('
                                            {user} — {title}
                                            '),likeItem:b('
                                            {user} {appreciate} запись {title}
                                            '),recommendItem:b(''),replyItem:b('
                                            {user}{separator} {title}
                                            '),photoItem:b('
                                            {alt}
                                            '),videoItem:b('
                                            {duration}
                                            '),videoContainer:b('
                                            {items}
                                            '),albumsContainer:b('
                                            {items}
                                            '),videoCollection:a.template('
                                            {content}
                                            ',{content:""}),videoCollectionItem:b('
                                            {count} видео
                                            '),albumItem:b('
                                            {title}
                                            {count}
                                            '),avatar:b("{user}"),holidayItem:b(''),linkItem:b('
                                            {title}
                                            '),wishlistItem:b('
                                            {title}
                                            {title}
                                            '),wishlistPromisedItem:b('
                                            {info}
                                            {title}
                                            отменить
                                            '),ratingInfo:b(''),onload:b('
                                             
                                            '),empty:b(""),textResponse:b("{page}")}})(ya);(function(a,c){var b=function(d,e){this.$target=c(d);this.data=e;if(typeof d.onclick==="function"){c.extend(this.data,d.onclick())}this.ids="";this.data.layoutTemplateName=this.data.layoutTemplateName||"layout";this.data.groupTemplateName=this.data.groupTemplateName||"group";this.data.itemTemplateName=this.data.itemTemplateName||"item";this.data.containerTemplate=this.data.containerTemplate||a.template("{content}",{content:""});this.data.data=this.data.data||{};this.bindEvents=this.data.bindEvents?this.data.bindEvents:null;if(this.data.updateCallback){this.updateCallback=this.data.updateCallback}this.init()};b.prototype={selectors:{content:".b-yaru-widget-line",title:".b-yaru-widget__title-link"},destroy:function(){this.$target.html("");this.$target.yhide()},updateCallback:function(e){var d="",f,j,h=e.data,g=[];if(e.title){this.$title.html(e.title)}this.ids="";if(!h.length){if(this.data.emptyTemplateName){this.$inner.html(a.templates.widgets[this.data.emptyTemplateName](e));this.$target.yshow()}else{this.$target.yhide()}}else{for(f=0,j=h.length;f0)?e+" ":"";if(k){if(e===0){g+=k.zero}else{if(i){g+=k.many}else{if((f>=5)&&(f<=20)){g+=k.some}else{if(c==1){g+=k.one}else{if(c>=2&&c<=4){g+=k.many}else{g+=k.some}}}}}}return g}})(ya,jQuery);(function(a,b){a.getTextByGender=function(e,c){var d=e||"man",f=c||null;if(d&&f){switch(d){case"man":return f;case"woman":return(f+="a");default:return(f+="о")}}else{return""}}})(ya,jQuery);(function($){$.fn.columnize=function(options){var defaults={width:400,columns:false,buildOnce:false,overflow:false,doneFunc:function(){},target:false,ignoreImageLoading:true,columnFloat:"left",lastNeverTallest:false,accuracy:false};var options=$.extend(defaults,options);if(typeof(options.width)=="string"){options.width=parseInt(options.width);if(isNaN(options.width)){options.width=defaults.width}}return this.each(function(){var $inBox=options.target?$(options.target):$(this);var maxHeight=$(this).height();var $cache=$("
                                            ");var lastWidth=0;var columnizing=false;var adjustment=0;$cache.append($(this).contents().clone(true));if(!options.ignoreImageLoading&&!options.target){if(!$inBox.data("imageLoaded")){$inBox.data("imageLoaded",true);if($(this).find("img").length>0){var func=function($inBox,$cache){return function(){if(!$inBox.data("firstImageLoaded")){$inBox.data("firstImageLoaded","true");$inBox.empty().append($cache.children().clone(true));$inBox.columnize(options)}}}($(this),$cache);$(this).find("img").one("load",func);$(this).find("img").one("abort",func);return}}}$inBox.empty();columnizeIt();if(!options.buildOnce){$(window).resize(function(){if(!options.buildOnce&&$.browser.msie){if($inBox.data("timeout")){clearTimeout($inBox.data("timeout"))}$inBox.data("timeout",setTimeout(columnizeIt,200))}else{if(!options.buildOnce){columnizeIt()}else{}}})}function columnize($putInHere,$pullOutHere,$parentColumn,height){while($parentColumn.height()counter2){oText=oText.substring(oText.indexOf(" ",counter2))}else{oText=""}}if($parentColumn.height()>=height&&latestTextNode!=null){$putInHere[0].removeChild(latestTextNode);oText=latestTextNode.nodeValue+oText}if(oText.length){$item[0].nodeValue=oText}else{return false}}if($pullOutHere.children().length){$pullOutHere.prepend($item)}else{$pullOutHere.append($item)}return $item[0].nodeType==3}function split($putInHere,$pullOutHere,$parentColumn,height){if($pullOutHere.children().length){$cloneMe=$pullOutHere.children(":first");$clone=$cloneMe.clone(true);if($clone.prop("nodeType")==1&&!$clone.hasClass("dontend")){$putInHere.append($clone);if($clone.is("img")&&$parentColumn.height()"));$col=$inBox.children().eq($inBox.children().length-1);$destroyable=$cache.clone(true);if(options.overflow){targetHeight=options.overflow.height;columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;i"));$col=$inBox.children(":last");$col.append($cache.clone());maxHeight=$col.height();$inBox.empty();var targetHeight=maxHeight/numCols;var firstTime=true;var maxLoops=3;var scrollHorizontally=false;if(options.overflow){maxLoops=1;targetHeight=options.overflow.height}else{if(options.height&&options.width){maxLoops=1;targetHeight=options.height;scrollHorizontally=true}}for(var loopCount=0;loopCount"))}var i=0;while(i"))}var $col=$inBox.children().eq(i);columnize($col,$destroyable,$col,targetHeight);if(!$destroyable.contents().find(":first-child").hasClass("dontend")){split($col,$destroyable,$col,targetHeight)}else{}while(checkDontEndColumn($col.children(":last").length&&$col.children(":last").get(0))){var $lastKid=$col.children(":last");$lastKid.remove();$destroyable.prepend($lastKid)}i++}if(options.overflow&&!scrollHorizontally){var IE6=false +/*@cc_on || @_jscript_version < 5.7 @*/ +;var IE7=(document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1);if(IE6||IE7){var html="";var div=document.createElement("DIV");while($destroyable[0].childNodes.length>0){var kid=$destroyable[0].childNodes[0];for(var i=0;imax){max=h;lastIsMax=true}if(h30){targetHeight=avgH+30}else{if(Math.abs(avgH-targetHeight)>20){targetHeight=avgH}else{loopCount=maxLoops}}}}else{$inBox.children().each(function(i){$col=$inBox.children().eq(i);$col.width(options.width+"px");if(i==0){$col.addClass("first")}else{if(i==$inBox.children().length-1){$col.addClass("last")}else{$col.removeClass("first");$col.removeClass("last")}}});$inBox.width($inBox.children().length*options.width+"px")}}$inBox.append($("
                                            "))}$inBox.find(".column").find(":first.removeiffirst").remove();$inBox.find(".column").find(":last.removeiflast").remove();$inBox.data("columnizing",false);if(options.overflow){options.overflow.doneFunc()}options.doneFunc()}})}})(jQuery);jQuery(document).ready(function(){ya.queue.exec("onload");if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=9){y5.Notify("dom:loaded",y5,null,true)}$(".b-informer-switcher").live("click",function(a){$(this).closest(".b-important-info").find(".b-informer-block").toggleClass("i-hidden");a.preventDefault()})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/_lenta-includes.js b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/_lenta-includes.js new file mode 100644 index 0000000..e337d4b --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/_lenta-includes.js @@ -0,0 +1 @@ +Friends.YauserSearch=function(a,b){if(arguments.length>0){this.init.apply(this,arguments)}};Friends.YauserSearch.prototype={init:function(a,b){this.control=a;this.control.YauserSearchControl=this;this.params=b;this.searchError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[0];this.search_input=y5.Dom.getDescendant(this.control,"input","text");this.usersList_table=y5.Dom.getDescendant(this.control,"table","b-write-users-list");this.search_btn=y5.Dom.getDescendants(this.control,"input","submit")[0];this.myFriends_link=y5.Dom.getDescendant(this.control,"a","my-friends");this.friendControl=new Friends.FriendControl(this.control);this.search_btn.disabled=false;this.INVALID_SEARCH_TEXT="Логин или имя пользователя должны быть заданы";this.ajaxMethod_search="ajax/search_users_by_name_not_me";if(this.params){this.ajaxMethod_get="ajax/"+this.params.ajaxMethod_get}this.setEvents()},setEvents:function(){var a=this;$(this.control).find(".my-friends").die("click.yausersearch").live("click.yausersearch",function(g){a.hideErrorMessages();a.resetSearchResults();g.preventDefault();a.friendControl.setStatusMessage('Идёт загрузка пользователей
                                            ');y5.Events.notify("y5:usersAreFound",a.friendControl,true);if(a.friendsHTML){a.onFriendsSearch(a.friendsHTML);return}var b=a;function f(e,h){b.onFriendsSearch(e.html);b.friendsHTML=e.html}function d(e){a.friendControl.setStatusMessage("ошибка "+e)}var c=friendsURL(a.ajaxMethod_get);jQuery.ajax({url:c,dataType:"json",success:f,error:d})});y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(b){return new y5.Event("click",this.search_btn,true)},this.search_input,{checkTarget:false,context:this})},onFriendsSearch:function(a){this.fillUsers_select(a);if(this.users_select.options.length===0){this.friendControl.setStatusMessage("никого не найдено");return}this.users_select.selectedIndex=0;this.friendControl.setStatusMessage("← выберите человека");this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true);new y5.AEventListener("change",function(){this.friendControl.list=this.users_select;this.friendControl.showUserInfo();y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)},fillUsers_select:function(a){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];var b=this.users_select.parentNode;a=a.replace(/'/g,"\x27");b.innerHTML=a;this.users_select=b.firstChild},onSearch:function(){this.resetSearchResults();if(!this.isYauserLogin()){this.showErrorMessage(this.searchError_b,this.INVALID_SEARCH_TEXT);return false}y5.Events.notify("y5:usersAreFound",this.friendControl,true);return true},isYauserLogin:function(){return !y5.Strings.isVoid(this.search_input.value)},showErrorMessage:function(a,b){if(b){a.innerHTML=b}y5.Classes.remove(a,"i-hidden")},hideErrorMessages:function(a){y5.Classes.add(this.searchError_b,"i-hidden");y5.Events.notify("y5:hideErrorMessages",this.friendControl,true)},resetSearchResults:function(){this.hideErrorMessages();y5.Events.notify("y5:resetSearchResults",this.friendControl,true)},initUsers_select:function(){this.users_select=y5.Dom.getDescendant(this.control,"td","list").getElementsByTagName("select")[0];new y5.AEventListener("change",function(){y5.Events.notify("y5:userIsSelected",this.friendControl,true)},this.users_select,true,this)}};y5.require(["Dom","Events","ShortCuts","{Friends}.FriendControl"],function(){y5.loaded("{Friends}.YauserSearch");Friends.FriendControl.prototype.searchResponseOKOld=Friends.FriendControl.prototype.searchResponseOK;Friends.FriendControl.prototype.searchResponseOK=function(a,b){var c=b.parent;c.searchResponseOKOld(a,b);if(c.list.length){c.list.selectedIndex=0;c.showUserInfo();c.control.YauserSearchControl.initUsers_select();y5.Events.notify("y5:userIsSelected",c.control.YauserSearchControl.friendControl,true)}};Friends.FriendControl.prototype.searchResponseError=function(a){var b=a.parent;b.setStatusMessage("ошбика "+a)};Friends.FriendControl.prototype.onSearch=function(){if(!this.control.YauserSearchControl.onSearch()){return false}var c=this;this.setStatusMessage('Идёт загрузка пользователей
                                            ');var a=getByTagName("input",this.submit.form);var b=friendsURL(this.control.YauserSearchControl.ajaxMethod_search,y5.FormCollector.collectTags(this.control));jQuery.ajax({url:b,dataType:"json",success:function(d){c.searchResponseOK(d,{parent:c})},error:function(d){c.searchResponseError(d,{parent:c})}});return false}});y5.require(["{Friends}.YauserSearch","{Friends}.CommonConstructor"],function(){var a=Friends.CommonConstructor(Friends.YauserSearch);a.prototype.init=function(){Friends.YauserSearch.prototype.init.apply(this,arguments);this.insertError_b=y5.Dom.getDescendants(this.control,"b","b-note-attention")[1];this.yauser_span=y5.Dom.getDescendant(this.control,"b","b-user");this.yauserPreview_div=y5.Dom.getDescendant(this.control,"div","b-friend-name-preview");this.toChange_link=y5.Dom.getDescendant(this.control,"a","to-change");this.yauserName_input=y5.cssQuery('input[name="yauser-name"]',this.control)[0];this.dialogBtns=y5.Dom.getDescendant(this.control,"div","y5-w-buttons");this.ajaxMethod_search="ajax/search_users_by_name";this.ajaxMethod_get="ajax/get_friends";y5.Events.observe("y5:userIsSelected",this.showPreviewBlock,this.friendControl,true,this);y5.Events.observe("y5:usersAreFound",this.showSearchResult,this.friendControl,true,this);y5.Events.observe("y5:resetSearchResults",this.resetSearchResults,this.friendControl,true,this);y5.Events.observe("y5:hideErrorMessages",function(){y5.Classes.add(this.insertError_b,"i-hidden")},this.friendControl,true,this);y5.Events.observe("click",function(b){this.hideErrorMessages();this.yauserName_input.value=this.yauserName;y5.Classes.add(this.yauserPreview_div,"b-friend-name-preview-edit");this.yauserName_input.focus();this.yauserName_input.select();b.preventDefault()},this.toChange_link,true,this);if(!this.has_been_inited){y5.Events.observe("y5:show",function(b){if(typeof b.caller==="object"){this.caller=b.caller;this.caller_params=b.caller_params||{};this.title=this.caller_params.title||"Вставить ссылку на страницу пользователя Я.ру";this.showWidget()}},a,true,this);y5.Events.observe("y5:make",function(c){this.dialog=c;this.control=c.window;var b=this.dialog.element;this.init(this.control);y5.ShortCut.down([{key:y5.ShortCut.ENTER}],function(d){y5.Events.notify("click",this.dialog.button_ok)},this.yauserName_input,{checkTarget:false,context:this});y5.Events.notify("y5:yauser_make",this.caller,true,{caller:this});this.initDialogEvents()},this.getWidgetInitElement(),true,this);this.has_been_inited=true}y5.loaded("{Friends}.YauserSearchInPostInstance")};a.prototype.showSearchResult=function(){y5.Classes.remove(this.usersList_table,"i-hidden")};a.prototype.resetSearchResults=function(){this.yauserLogin="";this.yauserName="";this.yauser_span.innerHTML="";y5.Classes.add(this.usersList_table,"i-hidden");y5.Classes.add(this.yauserPreview_div,"i-hidden");if(this.dialogBtns){y5.Classes.add(this.dialogBtns,"i-hidden")}};a.prototype.showPreviewBlock=function(){y5.Classes.add(this.insertError_b,"i-hidden");if(!this.caller_params.dont_preview){y5.Classes.remove(this.yauserPreview_div,"i-hidden");y5.Classes.remove(this.yauserPreview_div,"b-friend-name-preview-edit")}var c=this.users_select;$(".b-friend-name-preview").yhide();if(c.options&&c.options.length){var b=c.options[this.users_select.selectedIndex];this.yauserLogin=b.id;var d=b.onclick();this.yauserName=d.title;this.data=d;this.data.id=b.value;this.setYauserName();$(".b-friend-name-preview").yshow();y5.Classes.remove(this.dialogBtns,"i-hidden")}};a.prototype.setYauserName=function(){this.yauser_span.innerHTML=this.createYauserLink(this.yauserLogin,this.yauserName)};a.prototype.createYauserLink=function(b,d){var e=d.substring(0,1);var c=d.substring(1);return''+ya.xmlEscape(e)+""+ya.xmlEscape(c)+""};a.prototype.defineYauserName=function(){if(!y5.Strings.isVoid(this.yauserName_input.value)){this.yauserName=this.yauserName_input.value;this.setYauserName()}};a.prototype.getWidgetInitElement=function(){var b=this.dialog?this.dialog.element:this.control;return b};a.prototype.showWidget=function(){var b={title:this.title},d=this.caller_params;if("valign" in d){b.valign=d.valign}if("halign" in d){b.halign=d.halign}var c=y5.Widget.make(this.getWidgetInitElement(),"Widget.Dialog.Standard",b)};a.prototype.showErrorMessage=function(b,c){if(c){b.innerHTML=c}y5.Classes.remove(b,"i-hidden")};a.prototype.initDialogEvents=function(){var b=this.dialog.element;y5.Events.observe("y5:ok",this.onDialogOK,b,true,this);y5.Events.observe("y5:esc",this.onDialogEsc,b,true,this);y5.Events.observe("y5:cancel",this.onDialogCancel,b,true,this);this.initDialogEvents=function(){}};a.prototype.onDialogOK=function(){this.hideErrorMessages();this.defineYauserName();if(this.yauserName.length){y5.Events.notify("y5:yauser_defined",this.caller,true,{login:this.yauserLogin,name:this.yauserName,inflects:this.data.inflects,id:this.data.id})}else{this.showErrorMessage(this.insertError_b,"Не задано имя пользователя");return false}return true};a.prototype.onDialogEsc=function(){y5.Events.notify("y5:yauser_src",this.caller,true,{caller:this});return true};a.prototype.onDialogCancel=function(){y5.Events.notify("y5:yauser_cancel",this.caller,true,{caller:this});return true};Friends.YauserSearchInPost=a;y5.loaded("{Friends}.YauserSearchInPost")});(function(b,a){var c={regAll:/\s?b-smile-(\w+)/ig,regText:/b-smile-disabled/ig,themeText:" b-smile-disabled",processSmiles:function(d){if(!d||typeof(d)=="function"){d=document}b(d).find(".b-smile").each(function(){var e=this;e.className=e.className.replace(c.regAll,"");e.className+=c.themeCurrent;e.onclick=function(){var f=e.className;if(c.regText.test(f)){e.className=f.replace(c.regAll,c.themeCurrent)}else{e.className=f.replace(c.regAll,c.themeText)}}})}};a.namespace("helpers");a.helpers.smileHelper=c;a.queue.add("onload",function(){c.themeCurrent=" b-smile-"+(a.options?a.options.theme:"default");c.processSmiles.apply(this,arguments)})})(jQuery,ya);(function(a,d){var c,b=[{name:"yaru",title:"Я.ру"},{name:"vkontakte",title:"ВКонтакте"},{name:"twitter",title:"Twitter"},{name:"facebook",title:"Facebook"},{name:"lj",title:"LiveJournal"},{name:"odnoklassniki",title:"Одноклассники"},{name:"friendfeed",title:"FriendFeed"},{name:"moimir",title:"Мой Мир"},{name:"moikrug",title:"Мой круг"}];a.namespace("controls");a.controls.share={templates:{layout:a.template('
                                            Поделится с друзьями!
                                            {items}
                                            '),item:a.template('{serviceTitle}')},bind:function(){var e=this;c=new a.Popup();d(".b-share-shortcut").live("click.share",function(){e.onClickOn(this)});d(c.params.id).undelegate("selectUrl").delegate(".b-share-popup__input__input","click.selectUrl",function(){this.select()})},onClickOn:function(l){var n=a.getId(l),g=l.onclick(),m="",j,h,k,f=encodeURIComponent(g.link||window.location),e=encodeURIComponent(g.title||document.title);for(h=0,k=b.length;h0){for(h=0,k=j.length;h','
                                              ',"
                                            ","",'
                                            ','

                                            Метки

                                            ','
                                              ','
                                            • ','
                                              ','','',"
                                              ","
                                            • ",'
                                            • добавлять метки могут только модераторы клуба
                                            • ',"
                                            ","
                                            ",'
                                            ','

                                            Основные:

                                            ','
                                              ',"
                                            ","
                                            "].join(""),keyword:['
                                          • ','
                                            ','{title}',"
                                            ","
                                          • "].join(""),active:['
                                          • ','
                                            ','{title} x',"","
                                            ","
                                          • "].join("")}})(ya,jQuery);(function(a,c){var b=function(e,d){this.$target=c(e);this.init(d||{})};b.prototype={selectors:{prev:"span.slider-prev",next:"span.slider-next",item:"span.b-userlist__item"},write:function(f,q){var h=this,r=this.templates,j=f.data,n=j.length,s=f.count,e=1,g,o="",m,d="";var k=Math.ceil(s/this.capacity);var p=function(i,t){return(i||t)?a.processTemplate(r.slider,{prev:a.processTemplate(i?r.prev:r.prevEmpty),next:a.processTemplate(t?r.next:r.nextEmpty)}):""};var l=function(){h.$target.find(h.selectors.prev).click(function(){h.updateFrom({offset:h.offset-e})});h.$target.find(h.selectors.next).click(function(){h.updateFrom({offset:h.offset+e})})};if(!n){if(this.noResultCallback&&this.offset){this.$target.html(a.processTemplate(r.layout,{html:this.noPageResultCallback(q)+p(this.offset>0,false)}));l()}else{if(this.noResultCallback){this.$target.html(a.processTemplate(r.layout,{html:this.noResultCallback(q)}))}}}else{for(g=0;g0,this.offset+1',"{html}",""].join(""),slider:'
                                            {prev}{next}
                                            ',prev:'пред.',prevEmpty:'пред.',next:'след.',nextEmpty:'след.'}})(ya,jQuery);(function(a,d){var c=function(e){if(g_source){this.$target=d(e);this.templates=a.templates.Userpics;this.init()}},b={list:"div.b-userpic-choose__list",slideLeft:"span.b-pseudo-link_direction_back",slideRight:"span.b-pseudo-link_direction_forward"};c.prototype={getUserpic:function(){return this.currentUserpic?g_source.getUserpicName(this.currentUserpic):""},changeTo:function(e){this.$target.find(b.slideRight).css("visibility",e===0?"hidden":"visible");this.$target.find(b.slideLeft).css("visibility",e>=this.userpicCount-1?"hidden":"visible");this.currentUserpic=e;this.$list.css("margin-left",(-this.currentUserpic*50)+"px")},init:function(){var f=this,e="",h,g;if(g_source&&g_source.getUserpicsCount()){h=g_source.getUserpicsCount();this.userpicCount=h;for(g=0;g=0){f.changeTo(f.currentUserpic-1)}})}else{this.$target.html("")}}};a.namespace("controls");a.controls.Userpics=c;a.namespace("templates");a.templates.Userpics={userpics:['
                                            ','
                                            ',"{userpics}","
                                            ",'
                                            ','◄','►',"
                                            ","
                                            "].join(""),userpic:['"].join("")}})(ya,jQuery);(function(c,a,e){var b=['
                                            ','
                                            ','

                                            Запись будет опубликована в вашем дневнике.

                                            ','
                                              ','
                                            • ','
                                              ','Опубликовать в клубе?',"
                                              ","
                                            • ","
                                            ","
                                            ",'",'","
                                            "].join(""),f='{first}{second}';function d(g,h,i){this.parent=g;this.after=h;this.callback=i;this.note=e(g).find("b-keywords-user-hint")[0];this.getClubs()}d.prototype.getClubs=function(){var g=this;e.ajax({url:"jsonp_clubs_list.xml",dataType:"jsonp",success:function(h){g.showClubs(h)},error:function(){g.showClubs([])}})};d.prototype.showClubs=function(p){if(!p.length){return}var n=e(b)[0],o=this;e(this.parent).find(this.after).after(n);var l=e("div.b-menu_layout_horiz div.target-current,",this.parent),j=e("div.b-menu_layout_horiz div.target-other,",this.parent),g=e("div.b-menu_layout_horiz div.target-club,",this.parent),r=function(s){var i=e(o.parent).find("input[name='tb_feed_id']");if(i.length<1){i=e('')[0];e(o.parent).find(o.after).after(i)}else{i.attr("value",s)}o.callback(s)},q=function(){e(o.parent).find("input[name='tb_feed_id']").remove();o.callback(g_source.id)};e("ul.change span",l).click(function(){e(l).hide();e(j).show();e(g).hide();var i=e(j).find(".other-list");if(!a.support_columns(i)&&!i.data("columnized")){i.columnize({width:200});i.data("columnized",true)}});e("img.b-ico",g).click(function(){e(l).show();e(j).hide();e(g).hide();e("b.b-user",g).children().remove();q()});var k=e(j).find(".other-list");for(var m=0;m'+a.xmlEscape(p[m].title)+"

                                            ")[0];k.append(h);(function(i,s){e(h).find(".b-pseudo-link").click(function(){e(j).hide();e(g).show();e("b.b-user",g).html(a.processTemplate(f,{first:i.substr(0,1),second:i.substr(1)}));r(s)})})(p[m].title,p[m].id)}};a.namespace("controls");a.controls.LinkToClub=d})(window,ya,jQuery);(function(ya,$){var freeIframesStack=[],doTheJob=function(data){data.$form.attr("target",data.id);data.$iFrame.bind("load",data,function(e){var response="",data=e.data;try{response=eval("("+window.frames[data.id].document.body.innerHTML+")")}catch(error){data.error(error);return}finally{data.$params.remove();data.$form.attr("action",data.action).attr("enctype",data.enctype).attr("method",data.method).attr("target",data.target);$.each(data.handlers,function(i,handler){data.$form.bind("submit",handler.handler)});data.$iFrame.unbind("load");freeIframesStack.push(data.id)}data.callback(response)});data.$form.submit()};ya.namespace("controls");ya.controls.pictureUpload=function(url,form,parameters,callbackOK,callbackNOK){var upID,$form=$(form),$iFrame,str="",key,action=$form.attr("action"),enctype=$form.attr("enctype"),target=$form.attr("target"),method=$form.attr("method"),$params,submitHandlers=[],events=$form.data("events");str='
                                            ';for(key in parameters){if(parameters.hasOwnProperty(key)){str+=''}}str+="
                                            ";$params=$(str);$form.append($params).attr("action",url).attr("enctype","multipart/form-data").attr("method","post");if(events&&events.submit){$.each(events.submit,function(){submitHandlers.push(this)})}$form.unbind("submit");upID=freeIframesStack.pop();if(!upID){upID="uploader"+String(Math.random()).substr(2,12);$iFrame=$('');$("body").append($iFrame)}else{$iFrame=$('iframe[name="'+upID+'"]')}window.setTimeout(function(){doTheJob({$form:$form,$params:$params,$iFrame:$iFrame,id:upID,action:action,enctype:enctype,method:method,target:target,callback:callbackOK||function(){},error:callbackNOK||function(){},handlers:submitHandlers})},200)}})(ya,jQuery);(function(j){var c=function(){},k=function(r){},e=function(t,r,s){},f=function(){},m=function(r){$(r).find("textarea").focus()},p=function(){return $(this).find("textarea").val()},d=function(r){if(r){$(this).find("textarea").val(r)}},l=function(r){return j.templates.actions[this.action].title},i=function(s,r){s.html(this.templates.buttons(r));this.okButton=s.find('input[type="submit"]')},o=function(r){r=r||"im";return function(s){var t=g_sources.addSource(s.author);var u="Yaru";if(t.social){u=t.social.provider==="yandex"?"Light":"Social"}return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t.social||t,u,false,r)})}},a=function(s){var r=s.club&&s.club.type==="community"?s.club:s.whom,t=g_sources.addSource(r);return j.processTemplate(j.templates.actions[this.action].title,{name:j.getViewUserByType(t)})},h=function(r,s){},q=function(r,s){},n=function(){var t="",s=this.hiddens,r;for(r in s){if(s.hasOwnProperty(r)){t+=''}}return t},g=function(r,v,s){var u={},t="";v.templates=j.templates.actions[this.action];v.action=this.action;v.init=this.init;v.destruct=this.destruct;v.callbackError=this.callbackError;v.onSubmitSuccess=this.onSubmitSuccess;v.onSubmit=this.onSubmit;v.buttons=this.buttons;v.getText=this.getText;v.setText=this.setText;v.hiddens={item_no:r.item_no,parent_id:r.parent_id||0,host_id:r.source.id,sk:r.secret_key,access_type:r.access,type:this.action};u=this.prepare.call(v,r,this.action)||{};t=j.processTemplate(v.templates.content,u);if(r.transparent){t+=v.templates.joinCheckbox}t+=n.call(v);v.innerHTML=t;this.init.call(v,r,this.action);this.buttons.call(v,s,u);this.select(v,s)};function b(){this.init=q;this.destruct=c;this.callbackError=k;this.onSubmitSuccess=e;this.onSubmit=f;this.bind=g;this.prepare=h;this.title=l;this.buttons=i;this.titleWithAuthor=o;this.titleWithClub=a;this.select=m;this.getText=p;this.setText=d}j.namespace("controls.actions");j.controls.actions.common=new b();j.namespace("templates.actions");j.templates.actions.common={buttons:j.template(['
                                            ','',"
                                            ",'
                                            {buttonOK}
                                            ','
                                            {buttonNOK}
                                            ',"{(checkbox)(",'
                                            ','','',"
                                            ",")[",'',"]}","{(noPreview)[",'
                                            ','посмотреть, что получится',"
                                            ","]}",""].join(""),{buttonOK:j.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:j.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),joinCheckbox:'
                                            '}})(ya,jQuery);(function(j,e){var d="comment",c=function(){if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(m){}}this.innerHTML=""},k=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return e(this).find("textarea").val()},f=function(m){if(m){if(this.w5GControl){this.w5GControl.setContent(m)}else{e(this).find("textarea").val(m)}}},h=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}},g=function(){var m;if(!g_source){m=friendsURL("replies_do_add_from_session_safe");Lego.block["b-domik_type_popup"].login(m);return false}},i=function(){this.hiddens.type="text";return{checkbox:g_source&&g_source.hasActiveJournal?true:false,noTrackback:true,noPreview:!g_source?true:false}},l=function(m){var o="w5g_comment"+String(Math.random()).substr(2,12),n={elements:o,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};if(!g_source){e(this).trigger("setRequestUrl",friendsURL("ajax/replies_do_save_in_session"))}w5ginit(n);this.w5GControl=new W5GControl(this,o,false)};function b(){this.action=d;this.title=this.titleWithAuthor("rod");this.init=l;this.prepare=i;this.onSubmit=h;this.onSubmitSuccess=g;this.destruct=c;this.getText=k;this.setText=f}b.prototype=j.controls.actions.common;j.controls.actions[d]=new b();function a(){this.title="Ответить на запись {name}";this.content=['
                                            ','
                                              ','
                                            • ','
                                              ','','
                                              ','с оформлением','HTML-режим',"
                                              ","
                                              ","
                                            • ","
                                            ","
                                            "].join("")}a.prototype=j.templates.actions.common;j.templates.actions[d]=new a()})(ya,jQuery);(function(a,e){var b=function(j){var l,k="",m=a.templates.actions.menu.item;for(l=0;l1){this.innerHTML=b(i)}this.links=e(this).find("span.b-pseudo-link");this.handle(j)},h=function(j,i){j.switchTo=f;j.handle=d;g.call(j,i)};function c(){this.action="menu";this.bind=h}c.prototype=a.controls.actions.common;a.controls.actions.menu=new c();a.namespace("templates.actions");a.templates.actions.menu={layout:'
                                            {items}
                                            ',item:['
                                            ','
                                            ','{title}',"
                                            ","
                                            "].join("")}})(ya,jQuery);(function(h,d){var b="photo",j={photoHolder:"ul.b-menu__layout",hidden:'input[name="id_list_with_authors"]',file:'input[type="file"]',item:".b-menu__layout-cell",closeImg:"b-ico"},c=function(){var n=[],m;for(m in this.photos){if(this.photos.hasOwnProperty(m)){n.push(m)}}return n.join(",")},e=function(){d(this).find(j.hidden).val(this.getListOfPhotos())},g=function(m){this.hiddens.user=m.source.id;this.hiddens.id_list_with_authors="";this.hiddens.ticket=this.hiddens.sk;return{checkbox:true}},a=function(o){var n=this,m=d(h.processTemplate(this.templates.item,{src:o.name}));m.data("name",o.login+"."+o.id);this.photos[m.data("name")]=true;this.$photoPlaceholder.append(m)},l=function(n){var m=this,o={retpage:friendsURL("posts_ret_add_photo"),ut:2,access:"private"};h.controls.pictureUpload(h.getParams().fotki.upload,n,o,function(p){m.writePhoto(p)})},k=function(m,q){var o=this,r=d(this),p=r.find(j.file),n=p.closest("form");this.$photoPlaceholder=d(this).find(j.photoHolder);this.upload=l;this.writePhoto=a;this.photos={};this.getListOfPhotos=c;p.change(function(){o.upload(n)});this.$photoPlaceholder.delegate(j.item,"click",function(s){if(d(s.target).hasClass(j.closeImg)){delete o.photos[d(this).data("name")];d(this).remove()}})};function i(){this.action=b;this.prepare=g;this.init=k;this.onSubmit=e}i.prototype=h.controls.actions.common;h.controls.actions[b]=new i();function f(){this.title="Вывесить в ответ свои фото";this.content=['
                                            ','
                                              ',"
                                              ",'
                                              ','
                                                ','
                                              • ','
                                                ','','',"
                                                ","
                                              • ",'
                                              • ','
                                                ','','',"
                                                ","
                                              • ","
                                              ","
                                              "].join("");this.item=['
                                            • ','
                                              ','','x',"
                                              ","
                                            • "].join("")}f.prototype=h.templates.actions.common;h.templates.actions[b]=new f()})(ya,jQuery);(function(g,e){var c="summon",i={uSearchHolder:"div.userlist-holder",findButton:".b-find-user",searchTextbox:".b-input-search",chooseFriends:"div.b-search-list__title span"},f=function(){return{imgBase:g_globals.img_base,noTrackback:true}},h=function(k){e(k).find('input[name="summon"]').focus()},b=function(){if(this.tm){clearTimeout(this.tm)}try{delete this.userSearch}catch(k){}},j=function(k,m){var r=this,p=e(this),o=friendsURL("jsonp_search_users"),n=friendsURL("jsonp_friends_list");var l=function(){r.userSearch.$target.html('
                                              '+g.templates.popupLoader()+"
                                              ")};var s=function(v,u){var t=u||null;if(v.length&&(v!==r.currentSearchedValue||t)){r.currentSearchedValue=v;if(r.tm){clearTimeout(r.tm)}r.tm=setTimeout(function(){r.userSearch.updateFrom({url:o,query:{text:v}})},300)}};var q=function(t){if(t.keyCode===13||(t.ctrlKey&&t.keyCode===13)){s(this.value,true);t.preventDefault()}};this.uSearchHolder=p.find(i.uSearchHolder);this.$searchTextbox=p.find(i.searchTextbox);this.userSearch=new g.controls.UserSearch(this.uSearchHolder,{qPage:"p",capacity:12,noResultCallback:function(t){return g.processTemplate(r.templates.emptyResults,{request:t.text})},noPageResultCallback:function(t){return r.templates.emptyPageResults()},busyCallback:function(){l()},clickCallback:function(u,t){l();r.$searchTextbox.val(t.login);e(i.uSearchHolder).yhide()},onAjaxSuccess:function(){e(i.uSearchHolder).yshow()}});p.find(i.chooseFriends).click(function(){r.userSearch.updateFrom({url:n,query:{}})});e(i.findButton).click(function(t){s(r.$searchTextbox.val(),true);return false});e(i.searchTextbox).live("keydown",q);e(i.searchTextbox).live("keypress",q);e(i.searchTextbox).live("keyup",function(){s(this.value)});e(i.searchTextbox).live("mouseup",function(){s(this.value)})};function a(){this.action=c;this.init=j;this.destruct=b;this.prepare=f;this.select=h}a.prototype=g.controls.actions.common;g.controls.actions[c]=new a();function d(){this.title="Призвать в комментарии";this.content=['
                                              ','
                                              Найти или выбрать из списка друзей',"
                                              ",'',"",'",'","","
                                              ','','','',"",'',"","','',"
                                              ","
                                              ",'
                                              ','
                                              ','
                                                ','
                                              • ','
                                                ','','',"
                                                ","
                                              • ","
                                              ","
                                              "].join("");this.emptyResults=['
                                              ',"Не найдено ни одного человека с именем или логином «{request}».
                                              ","Попробуйте уточнить запрос.
                                              "].join("");this.emptyPageResults=g.template('
                                              Пользователи не найдены.
                                              ')}d.prototype=g.templates.actions.common;g.templates.actions[c]=new d()})(ya,jQuery);(function(a,d){var c="slashme";function e(){this.action=c}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();function b(){this.title="ответить действием";this.content=['
                                              ','
                                                ','
                                              • ','',"
                                                ","
                                              • ","
                                              ","
                                              "].join("")}b.prototype=a.templates.actions.common;a.templates.actions[c]=new b()})(ya,jQuery);(function(j){var a="friend",l="unfriend",d="friend_too",n="unfriend_too",i=function(o){this.hiddens.user=o.author.id},b=function(o){this.hiddens.user=o.whom.id},f=function(o){var p=g_sources.addSource(o.whom);return j.processTemplate(j.templates.actions[this.action].title,{name:p.yauser(false)})};function c(){this.action=a;this.prepare=i;this.title=this.titleWithAuthor("tvor")}function g(){this.action=l}function m(){this.prepare=b;this.title=f}function k(){this.prepare=b;this.title=f}c.prototype=j.controls.actions.common;j.controls.actions[a]=new c();g.prototype=j.controls.actions[a];j.controls.actions[l]=new g();m.prototype=j.controls.actions[a];k.prototype=j.controls.actions[l];j.controls.actions[d]=new m();j.controls.actions[n]=new k();j.namespace("templates.actions");function e(){this.title="В ответ подружиться с {name}";this.content=['
                                              ','
                                                ','
                                              • ','
                                                ','','',"
                                                ","
                                              • ","
                                              ","
                                              "].join("")}function h(){this.title="В ответ поссориться с {name}"}e.prototype=j.templates.actions.common;j.templates.actions[a]=new e();h.prototype=j.templates.actions[a];j.templates.actions[l]=new h()})(ya);(function(h,d){var b="rename",c="status",e=function(p,m){var o=m.data,l="",n,k=d(p).find(".b-menu_layout_horiz")[0];if(!o.length){return}for(n=0;n','
                                                ','
                                              • ','
                                                ','',"
                                                ","
                                              • ","
                                              ","",'
                                              ','

                                              Предыдущие:

                                              ',"Загрузка…","
                                              ",'
                                              ','
                                                ','
                                              • ','
                                                ','','',"
                                                ","
                                              • ","
                                              ","
                                              "].join("");this.list='
                                                {items}
                                              ';this.item=['
                                            • ','
                                              ','{title}',"
                                              ","
                                            • "].join("")}function a(){this.title="Сменить в ответ своё настроение";this.content=['
                                              ','
                                                ','
                                              • ','
                                                ','',"
                                                ","
                                              • ","
                                              ","
                                              ",'
                                              ','

                                              Предыдущие:

                                              ',"Загрузка…","
                                              "].join("")}i.prototype=h.templates.actions.common;h.templates.actions[b]=new i();a.prototype=h.templates.actions[b];h.templates.actions[c]=new a()})(ya,jQuery);(function(h,d){var i="join",b="unjoin",g=function(k,l){this.club=k.club&&k.club.type==="community"?k.club:k.whom;this.hiddens.user=this.club.id},c=function(k,l,m){if(!m&&l.is_in_private_club){window.location.reload();return false}};function e(){this.action=i;this.title=h.controls.actions.common.titleWithClub;this.prepare=g}function j(){this.action=b;this.onSubmitSuccess=c}e.prototype=h.controls.actions.common;h.controls.actions[i]=new e();j.prototype=h.controls.actions[i];h.controls.actions[b]=new j();function f(){this.title="Вступить в клуб {name}";this.joinCheckbox=""}function a(){this.title="Уйти из клуба {name}"}f.prototype=h.templates.actions.friend;h.templates.actions[i]=new f();a.prototype=h.templates.actions[i];h.templates.actions[b]=new a()})(ya,jQuery);(function(g,e){var d="userpic",i=0,b=function(l){var n=g_globals.userpic_base+g_source.id+"/"+l+"-middle",m=i++,o="userpic-"+m;return g.processTemplate(g.templates.actions[d].item,{src:n,id:o,first:(m===0?" b-menu__layout-cell_position_first":""),active:(m==g_source.currentUserpicId?" b-menu__item_state_current":"")})},h=function(l){this.$current.removeClass("b-menu__item_state_current");this.$current=e(l);this.$current.addClass("b-menu__item_state_current");this.userpicHidden.value=/\/([\d\w]*(?:\.\d\d\d\d)?)-middle/ig.exec(this.$current.find("img").attr("src"))[1]},f=function(n,o){var t=g_source.userpics,s=g_globals.userpic_base+g_source.id+"/",p,r,l="",m="",q="";for(p=0,r=t.length;p','
                                                {items}
                                              ',"",'
                                              ','
                                                ','
                                              • ','
                                                ','','',"
                                                ","
                                              • ",'
                                              • ','
                                                ','','","
                                                ","
                                              • ","
                                              ","
                                              "].join("");this.item=['
                                            • ','","
                                            • "].join("")}a.prototype=g.templates.actions.common;g.templates.actions[d]=new a()})(ya,jQuery);(function(a,d){var c="complaint",b=function(){return{okText:"Пожаловаться",noTrackback:true}};function e(){this.action=c;this.title=this.titleWithAuthor("vin");this.prepare=b}e.prototype=a.controls.actions.common;a.controls.actions[c]=new e();a.namespace("templates.actions");ComplaintTemplate=function(){this.title="пожаловаться на {name}";this.content=['
                                              ','
                                                ','
                                              • ','',"
                                              • ","
                                              ","
                                              ",'
                                              ','
                                                ','
                                              • ','
                                                ','',"
                                                ","
                                              • ","
                                              ","
                                              "].join("")};ComplaintTemplate.prototype=a.templates.actions.common;a.templates.actions[c]=new ComplaintTemplate()})(ya,jQuery);(function(a,c){var j="link",q="wishlist",r=function(u){var s=c(this).find("div.keywords");try{delete this.tags}catch(t){this.tags=null}this.tags=new a.controls.Keywords(s,friendsURL("ajax/jsonp_keywords"),{id:u},friendsURL("ajax/tags-suggest")+"?person="+u+"&callback=?","part")},n=function(){c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},p=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}c(this).find('input[name="tags"]').val(this.tags.getActiveKeywords())},k=function(){try{delete this.tags;delete this.linkToClub}catch(s){this.tags=null;this.linkToClub=null}if(this.w5GControl){this.w5GControl.removeEditor();try{delete this.w5GControl}catch(s){}}this.innerHTML=""},b=function(s,v){var t=this,w=c(t),u=w.find("div.keywords");r.call(this,g_source.id)},d=function(){if(this.w5GControl){this.w5GControl.saveHTMLAsText()}return c(this).find("textarea").val()},i=function(s){if(s){if(this.w5GControl){this.w5GControl.setContent(s)}else{c(this).find("textarea").val(s)}}},f=function(s,w){var t=this,x=c(t),v="w5g_comment"+parseInt(Math.random()*1000,10),u={elements:v,theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,link,unlink,|,yablockquote,yauser,yasmile",plugins:"insertYauser,insertBlockquote,insertLink,insertSmile"};w5ginit(u);this.w5GControl=new W5GControl(this,v,false);r.call(this,g_source.id);this.linkToClub=new a.controls.LinkToClub(x,"div.keywords",function(y){r.call(t,y)})},m=function(t,y){var s=c(this).parents(".b-post"),u=s.find("div.b-wish"),w=this.hiddens,x=u[0].onclick(),v;w.tags="";for(v in x){if(x.hasOwnProperty(v)){w[v]=x[v]}}w.image_from_link=w.img;w.img=null;return{}},o=function(w){var A=c(this).parents(".b-post"),z=A.find("div.b-post-title__title:first"),y=z.find("a"),v=A.find("div.b-text:first"),x=v.length?v[0]:null,B="",t="",s="",D=false,u=(w.access&&w.access!=="public"),C=A.children("div:first").hasClass("b-post-activity_video"),E=A.children("div:first").hasClass("b-post-activity_fotki");if(y.length){t=y.attr("href");B=y.html()}else{t=friendsFullURL(w.source,"replies","item_no="+w.item_no+(!w.parent_id||w.parent_id==="0"?"":"&parent_id="+w.parent_id+"&with_parent=1#reply-"+w.source.login+"-"+w.parent_id));B=z.html()}B&&(B=B.replace(/<\/?\w+[^<>]*?\/?>/ig,""));if(B===""||B==undefined){B="[Без заголовка]"}if(x){onclickToSrc(x);D=x.offsetHeight>350;s=x.innerHTML}t=t.replace(/"/g,""");B=B.replace(/"/g,""");s=s.replace(/&/g,"&").replace(/"/g,""").replace(//g,">");if(D){s="<cut>"+s+"</cut>"}if(u){s=this.templates.quoteDisabled}else{if(w.is_reply||C||E){s=""}else{s=a.processTemplate(this.templates.quoteEnabled,{quote:s,cut:D})}}this.hiddens.title=B;this.hiddens.URL=t;this.hiddens.tags="";return{quote:s}};function e(){this.action=q;this.prepare=m;this.onSubmit=n;this.init=b;this.destruct=k}function l(){this.action=j;this.prepare=o;this.init=f;this.onSubmit=p;this.getText=d;this.setText=i}e.prototype=a.controls.actions.common;a.controls.actions[q]=new e();l.prototype=a.controls.actions[q];a.controls.actions[j]=new l();function h(){this.title="Захотеть то же самое";this.content=['
                                              ','
                                                ','
                                              • ','
                                                ','
                                                как сильно хочу:
                                                ','','','',"",'','','',"",'','','',"","
                                                ","
                                              • ","
                                              ","
                                              ",'
                                              ','
                                                ','
                                              • ','
                                                ','',"
                                                ","
                                              • ","
                                              ","
                                              ",'
                                              '].join("");this.quoteEnabled=['
                                              ','','',"{(cut)(",'
                                              под врезкой
                                              ',")}","
                                              "].join("");this.quoteDisabled=['
                                              ','
                                              ','lock Цитировать источник нельзя, т.к. доступ к нему ограничен',"
                                              ","
                                              "].join("")}function g(){this.title="Поделиться ссылкой с друзьями";this.content=['
                                              ','
                                                ','
                                              • ',"{quote}","
                                              • ","
                                              ","
                                              ",'
                                              ','
                                                ','
                                              • ','
                                                ','','
                                                ','с оформлением','HTML-режим',"
                                                ","
                                                ","
                                              • ","
                                              ","
                                              ",'
                                              '].join("")}h.prototype=a.templates.actions.common;a.templates.actions[q]=new h();g.prototype=a.templates.actions[q];a.templates.actions[j]=new g()})(ya,jQuery);(function(b,f){var e="subscribe",d=function(i){var j;if(this.toSubscribe===true){j=f("#js-action-subscribe-info div.js-status-ok-subscribe").clone()}else{j=f("#js-action-subscribe-info div.js-status-ok-unsubscribe").clone()}j.find("a.js-action-subscribe").click(function(){f(this).parents(".b-post-actions2")[0].shortcut("subscribe");j.html("");return false});f(this).parents("div.b-post__i").find("div.b-menu__item_type_pa-edit-delete div.b-subscribe:first").replaceWith(j);j.yshow()},c=function(i,j){return{noTrackback:true,noPreview:true,src:g_globals.img_base+"spin.gif"}},h=function(i,k){var j=this,l=f(j).find("div.b-holder");this.data=i;f.ajax({url:friendsURL("ajax/post_is_subscribed"),data:{feed_id:i.source.id,item_no:i.item_no},dataType:"json",success:function(m){if(m.message==="yes"){l.html(j.templates.unsubscribe);j.okButton.val(" ОК ");j.toSubscribe=false}else{l.html(j.templates.subscribe);j.okButton.val("Подписаться");j.toSubscribe=true}},error:function(){l.html(j.templates.subscribe)}})};function a(){this.action=e;this.prepare=c;this.init=h;this.onSubmitSuccess=d}a.prototype=b.controls.actions.common;b.controls.actions[e]=new a();function g(){this.title="Подписаться на комментарии к записи";this.content=['
                                              ','
                                                ','
                                              • ','
                                                ',"
                                              • ","
                                              ","
                                              ",''].join("");this.subscribe=["Получать уведомления о всех ответах в этом обсуждении.",''].join("");this.unsubscribe=["Получать уведомления только о тех ответах в этом обсуждении, которые адресованы лично вам.",''].join("")}g.prototype=b.templates.actions.common;b.templates.actions[e]=new g()})(ya,jQuery);(function(a,f){var e="congratulation",b=function(h){this.hiddens.event=h.holiday.id},g=function(h){function l(i,o){if(i.title_inflections&&i.title_inflections[o]){return i.title_inflections[o]}return i.title}var k=[];if(h.holiday.id==="birthday"){if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))})}else{k.push({id:h.author.id,name:a.xmlEscape(l(h.author,"vin"))});if(h.whom){k.push({id:h.whom.id,name:a.xmlEscape(l(h.whom,"vin"))})}}k.push({id:"",name:"друзей"});var n=[];for(var j=0;j'+k[j].name+"")}var n='";var m=g_sources.addSource(h.holiday.id==="birthday"?h.whom:h.author);return a.processTemplate(a.templates.actions[this.action].title,{name:m.yauser(false),prep:h.holiday.preposition,holiday:h.holiday.title,choice:n})};function d(){this.action=e;this.title=g;this.prepare=b}d.prototype=a.controls.actions.common;a.controls.actions[e]=new d();function c(){this.title="В ответ поздравить {choice} {holiday}";this.content=['
                                              ','
                                                ','
                                              • ','
                                                ','',"
                                                ","
                                              • ","
                                              ","
                                              "].join("")}c.prototype=a.templates.actions.common;a.templates.actions[e]=new c()})(ya,jQuery);(function(k,g){var l="ban_and_delete",h="approve",c=function(n,o){this.hiddens.author_uid=n.author.id;if(n.item.trackbackId){this.hiddens.host_id=n.item.feed_id}return{noTrackback:!!n.item.trackbackId,noPreview:true,okText:"Забанить и удалить",where:(n.source.type==="community"?"этом клубе":"моём дневнике")}},b=function(n,o){this.hiddens.author_uid=n.author.id;return{noTrackback:true,noPreview:true,okText:"Принять"}},a=function(n){g(n).find("input:first").focus()},e=function(o,n){n.find("input:first").focus()};var f=function(){k.log("ModerateControl: action complete");location.reload()};function i(){this.action=l;this.prepare=c;this.title=this.titleWithAuthor("im");this.select=a;this.onSubmitSuccess=f}function m(){this.action=h;this.prepare=b;this.select=e;this.onSubmitSuccess=f}i.prototype=k.controls.actions.common;k.controls.actions[l]=new i();m.prototype=k.controls.actions[l];k.controls.actions[h]=new m();function j(){this.title="Забанить пользователя {name} и удалить эту запись";this.content=['
                                              ','
                                                ','
                                              • ','
                                                ','','',"
                                                ","
                                              • ","
                                              ","
                                              "].join("")}function d(){this.title="Принять эту запись";this.content=['
                                              ',"
                                              "].join("")}j.prototype=k.templates.actions.common;k.templates.actions[l]=new j();d.prototype=k.templates.actions[l];k.templates.actions[h]=new d()})(ya,jQuery);(function(e,a){var c={layout:a.template('
                                                {items}
                                              '),item:a.template('
                                            • {title}
                                            • ')},d,b={bind:function(){var f=this;d=new a.Popup({contentClass:"b-popupa__content_type_more"});e(".b-menu-shortcut").live("click.more",function(){f.onClickOn(this)})},onClickOn:function(l){var g=a.getId(l),k=e(l).closest(".b-post-actions2"),m=k[0].onclick().actions,j="",h,f;for(h=0,f=m.length;h
                                              Редактирование ответа
                                              {content}
                                              {buttonOK}
                                              {buttonNOK}
                                              Текст не написан.
                                              '),hidden:a.template(''),text:a.template('
                                              '),wysiwyg:a.template(a.templates.actions.comment.content),photo:a.template(a.templates.actions.photo.content)},c=function(m){var j,g=m.length,k={},h;for(j=0;j','
                                              ','
                                              {title}
                                              ','',"","",'",'",'',"","","
                                              ','
                                              ',"
                                              ',"
                                              ",'
                                              ','
                                              Текст не написан.
                                              ',"
                                              ","
                                              ",'
                                              ',"
                                              ","
                                              ",'
                                              ','
                                              ','
                                              ','
                                              ','',"
                                              ",'
                                              {buttonOK}
                                              ','
                                              {buttonNOK}
                                              ','
                                              ','или продолжить редактирование',"
                                              ","
                                              ","
                                              ",""].join(""),{buttonOK:b.templates["lego.b-form-button"]({name:"OK",value:"OK",type:"submit",title:"OK"}),buttonNOK:b.templates["lego.b-form-button"]({name:"nok",value:"Отменить",type:"button",title:"Отменить",cssclass:"js-cancel"})}),captcha:b.template(['
                                              ','
                                              ',"В связи с увеличившейся активностью спамеров, мы вынуждены включить дополнительную проверку записей на спам. ","Чтобы опубликовать запись, пожалуйста, введите цифры с картинки в текстовое поле справа. Спасибо за понимание.","
                                              ",'
                                              ',' ','',"
                                              ","
                                              "].join(""))}});c.prototype={selectors:{content:".b-leave-comment__center div",title:".b-leave-comment__title",menu:".b-leave-comment__right",buttons:".b-ok-cancel:first",errorBox:".b-notify_type_error",userpics:"div.b-leave-comment__left-i",blocks:".b-leave-comment__i",previewContainer:".b-post_type_mini",userpicSlideLeft:"span.b-pseudo-link_direction_back",userpicSlideRight:"span.b-pseudo-link_direction_forward",progressIndicator:".b-ok-cancel__item_type_loading",simplify:function(g){return g.replace(/\./g,"")}},templates:b.templates.actionControl,switchTo:function(h){if(this.control&&h===this.control.action){this.destruct();return}var g=this,i;if(!g.control){g.generateContainer()}else{i=g.control.getText&&g.control.getText();if(g.control.destruct){g.control.destruct()}}g.isPreview=false;g.$title.html(g.actionsList[h].title(g.data));g.menu.switchTo(h);g.$rootElement.attr("class",g.$rootElement.attr("class").replace(/b-leave-comment_type_\w*/,""));g.$rootElement.addClass("b-leave-comment_type_"+h);g.$rootElement.yshow().closest(".b-comment__i").addClass("b-comment__i_state_visible");g.actionsList[h].bind(g.data,g.control,g.$buttons);g.control.setText(i);g.$rootElement.find(".b-ok-cancel__item span.b-pseudo-link").unbind("click.preview").bind("click.preview",function(){g.previewToggle()});g.$rootElement.find(".b-ok-cancel__item input.js-cancel").unbind("click.destruct").bind("click.destruct",function(){g.destruct()})},generateContainer:function(){var g=this,h=g.selectors;g.$rootElement.html(g.templates.container({title:"Заголовок",action:friendsURL("replies_do_add"),transparent:g.data.transparent}));g.control=g.$rootElement.find(h.content)[0];g.$title=g.$rootElement.find(h.title);g.$buttons=g.$rootElement.find(h.buttons);g.menu=g.$rootElement.find(h.menu)[0];g.blocks=g.$rootElement.find(h.blocks);g.$errorBox=g.$rootElement.find(h.errorBox);g.userpics=new b.controls.Userpics(h.userpics);g.$form=this.$rootElement.find("form");g.actionsList.menu.bind(g.menu,g);g.bindEvents()},bindEvents:function(){var g=this;g.$form.submit(function(h){g.$errorBox.yhide();g.submitHandler(this,g.url,function(i){g.destruct();b.log(g.info+"submitHandler");g.$placeHolder.closest(".b-entry").trigger("update")});h.preventDefault();h.stopPropagation();return false});g.$form.bind("keydown",function(h){if(h.keyCode===13&&h.ctrlKey){g.$form.submit();return false}});g.$rootElement[0].destruct=function(){g.destruct()}},startProgress:function(){if(this.inProgress){return false}this.inProgress=true;this.$rootElement.find(this.selectors.progressIndicator).yshow();return true},stopProgress:function(){this.inProgress=false;this.$rootElement.find(this.selectors.progressIndicator).yhide()},submitHandler:function(k,h,o,j){var p=this,m={userpic:p.userpics.getUserpic()},n,g=k.elements,l;if(p.startProgress()){p.control.onSubmit();for(n=0;n','{counterText}',"
                                              "].join(""))}})(ya,jQuery);(function(a,c){var b=function(){this.info="Replies:";this.attachEvents()};b.prototype={selectors:{actionsControl:".b-post-actions2",replies:".b-replies",showReplies:".b-replies-show",hideReplies:".b-replies-hide",moreReplies:".b-more-replies-show",moreRepliesContainer:".b-comment_state_more",busyIndicator:".b-menu__item_type_pa-reply > .b-candy",busyIndicatorOn:".b-candy_state_on",repliesContainer:".b-comments",counter:".b-menu__item_type_pa-reply > .b-total-count > .b-total-count__text",counterContainer:".b-menu__item_type_pa-reply",post:".b-entry"},showReplies:function(e){a.log(this.info+"showReplies");var d=e.find(this.selectors.busyIndicator)[0];this.setBusyOn(d);this.params=a.getParamsFromAttr(e[0],"onclick");this.load({vars:{source:this.params.source.id,item_no:this.params.item_no,parent_id:this.params.parent_id,with_parent:0},callbackNOK:function(){this.setBusyOff(d);a.log(this.info+"showReplies done with error result")},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"showReplies done with OK result:"+g);var h=this.getCommentsContainer(e),f=this;if(g){h.html(g.html);this.updateCounter(e,g.count)}h.yshow();this.toggleSwitcher(e,true);a.queue.exec("onload",h)}})},updateCounter:function(g,e){a.log(this.info+" update counter ");var h=g.find(this.selectors.counter);if(e==0){h.remove();return}var f=e+" "+a.decline(e,a.texts["ответ"]);if(h[0]){h.html(f)}else{var d=friendsFullURL(this.params.source,"replies.xml?item_no="+this.params.item_no+(this.params.parent_id?"&parent_id="+this.params.parent_id:""));g.find(this.selectors.counterContainer).append(a.templates.replies.counter({counterText:f,modeClass:this.selectors.hideReplies.substring(1),url:d}))}},toggleSwitcher:function(f,d){var e=this.selectors,h=d?e.showReplies:e.hideReplies,g=d?e.hideReplies:e.showReplies;a.replaceSelector(f.find(h)[0],h,g)},hideReplies:function(d){a.log(this.info+"hideReplies");var e=this.getCommentsContainer(d);e.html("");e.yhide();this.toggleSwitcher(d)},getCommentsContainer:function(d){return d.closest(this.selectors.post).find(this.selectors.repliesContainer).first()},getMoreReplies:function(e){c.extend(this.params,a.getParamsFromAttr(e,"onclick"));a.log(this.info+"getMoreReplies");var d=e;this.setBusyOn(d);this.load({vars:{source:this.params.source.id,parent_id:this.params.parent_id,item_no:this.params.item_no,with_parent:0,from:this.params.from},callbackOK:function(g){this.setBusyOff(d);a.log(this.info+"getMoreReplies done with OK result:"+g);var f=c(g.html);c(e).closest(this.selectors.moreRepliesContainer).replaceWith(f);a.queue.exec("onload",f)}})},setBusyOn:function(d){a.bindSelector(d,this.selectors.busyIndicatorOn)},setBusyOff:function(d){a.unbindSelector(d,this.selectors.busyIndicatorOn)},load:function(e){a.log(this.info+"load");var d=this;c.ajax({url:a.url("ajax/replies.xml"),type:"GET",dataType:"json",data:e.vars,success:function(){e.callbackOK.apply(d,arguments)},error:function(){e.callbackNOK.apply(d,arguments)}})},attachEvents:function(){a.log(this.info+"attachEvents");var f=this.selectors,d=this,e=c(d.id);c(f.replies).live("click",function(g){if(c(this).hasClass(f.showReplies.substring(1))){d.showReplies(c(this).closest(f.actionsControl))}else{d.hideReplies(c(this).closest(f.actionsControl))}return false});c(f.post).live("update",function(g){a.log(d.info+"make update");d.showReplies(c(this).find(f.actionsControl));g.stopPropagation()});c(f.moreReplies).live("click",function(h){var g=c(this).closest(f.post).find(".b-post-actions2:first");d.params=a.getParamsFromAttr(g[0],"onclick");d.getMoreReplies(this)})}};a.namespace("ya.controls");a.controls.Replies=new b()})(ya,$);var targetNS=window.ya;(function(b,c){b.namespace("templates");var a=b.template;b.templates.likeDetails={userYa:a(['
                                              ','','','',"{user}","
                                              "].join("")),usersList:a('
                                              {users}
                                              '),userSocial:a(['
                                              ','',"{user}","
                                              "].join("")),pager:a(['
                                              ','{prev} ','{next}',"
                                              "].join(""))}})(targetNS,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.likeDetails={next:"вперед",prev:"назад"};a.locale=a.locales.ru})(targetNS,jQuery);(function(a,b){var c=function(d){this.id=d.elementId;this.info="LikeDetails "+this.id+":";this.params=d;this.params.step=7;this.params.from=0;a.log(this.info+"init");this.attachEvents()};c.prototype={selectors:{control:".b-like-details",prev:".b-control-prev",next:".b-control-next",linkUnactive:".b-pseudo-link_disabled_yes"},callbackOK:function(f){a.log(this.info+"callbackOK");var e="",d="";b.each(f.users,function(h,g){var j=g.url?a.templates.likeDetails.userYa:a.templates.likeDetails.userSocial;e+=j({user:a.getViewUserByType(g,g.provider?(g.provider==="ya"?"Light":"Social"):""),userpic:g.picture_url+"small",url:g.url?g.url:""})});if(this.params.count>this.params.step){d=a.templates.likeDetails.pager({next:a.locale.likeDetails.next,prev:a.locale.likeDetails.prev,nextSelectorState:(this.params.from+this.params.step)','','','{title}',"{counter}",""].join("")),counter:a.template(['','{count}',""].join(""))}})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.like={like:"оценить",unlike:"я оценил",error:"Ошибка: попробуйте еще раз"};a.locale=a.locales.ru})(ya,jQuery);(function(a,c){a.action=function(f,g,d,e){c.ajax({url:f,type:"POST",dataType:"json",data:g,success:d,error:e})};var b=function(d){this.attachEvents()};b.prototype={selectors:{loader:".b-candy",link:".b-appreciate > .b-appreciate__i",like:".b-like-control"},superLike:function(d){a.log(this.controlInfo+"superlike");var e=this,f=d.data("params")||a.getParamsFromAttr(d[0],"onclick");a.action(a.url("ajax/jsonp_do_"+(f.ilike?"un":"")+"like.xml"),{id:f.id,sk:g_globals.secret_key},function(g){e.callbackOK.call(e,d,g)},function(){e.callbackNOK.call(e,d)})},processStop:function(d){a.log(this.controlInfo+"processStop");d.data("processed",false);d.find(this.selectors.loader).removeClass("b-candy_state_on")},processStart:function(d){a.log(this.controlInfo+"processStart");d.data("processed",true);d.find(this.selectors.loader).addClass("b-candy_state_on")},callbackNOK:function(d){a.log(this.controlInfo+"callbackError");var e=this;this.processStop(d);d.parent().append(a.templates.error({text:a.locale.like.error}));window.setTimeout(function(){d.find("~ .b-error").remove()},1000)},callbackOK:function(d,e){if(e.status=="Success"){a.log(this.controlInfo+"callbackOK");this.processStop(d);d.data("params",e);this.draw(d,e)}else{this.callbackNOK.apply(this,arguments)}},toggleStateByClick:function(e){var d=c(e).closest(this.selectors.like);a.log(this.controlInfo+"toggleStateByClick");if(!d.data("processed")){if(g_source){this.superLike(d);this.processStart(d)}else{Lego.block["b-domik_type_popup"].login()}}},attachEvents:function(){a.log(this.controlInfo+"attachEvents");var d=this;c(this.selectors.link).live("click.like",function(f){d.toggleStateByClick.call(d,this)})},draw:function(d,f){var e=a.templates.like.control({title:f.ilike?a.locale.like.unlike:a.locale.like.like,counter:f.count?a.templates.like.counter({count:f.count}):""});a.log("Like draw");d.html(e);c(a).trigger("draw",[{type:"like",elementId:a.getIdSelector(d[0]),count:f.count,id:f.id}])},drawWithin:function(d){var e=this;a.log("drawWithin"+d);c(d).find(this.selectors.like).each(function(){e.draw(c(this),a.getParamsFromAttr(this,"onclick"))})}};a.namespace("controls");a.controls.Like=b;a.ready("ya.instances",function(){var d=new a.controls.Like();a.queue.add("onload",function(e){d.drawWithin(e)})})})(ya,jQuery);ya.onReadyNamespace("ya.controls",function(a){var b={blockPromise:ya.template('
                                              {contents}
                                              '),promise:ya.template('
                                              пообещать
                                              '),cancel:ya.template('
                                              отменить
                                              '),happens:ya.template('
                                              пометить как сбывшееся
                                              '),happened:ya.template('
                                              пожелание сбылось отменить
                                              '),promised:ya.template('
                                              обещано
                                              ')};a.WishOnPost=function(c){this.element=$(c).closest(" .b-entry").find(this.selectors.promise+", "+this.selectors.fulfil);this.params=ya.getParamsFromAttr(c,"onclick");$(c).addClass("b-wish-control-inited");this.attachEvents()};a.WishOnPost.prototype.selectors={promise:".b-promise-shortcut",fulfil:".b-fulfil-shortcut"};a.WishOnPost.prototype.locale={promise:"пообещать",unpromise:"отменить обещание",fulfil:"пометить как сбывшееся",unfulfil:"пометить как несбывшееся"};a.WishOnPost.prototype.draw=function(){var c=this;$(c.element).html(!c.params.isMy?c.params.isPromised?c.locale.unpromise:c.locale.promise:c.params.isRealised?c.locale.unfulfil:c.locale.fulfil)};a.WishOnPost.prototype.attachEvents=function(){var e=this;var f=function(g,h){$.ajax({url:g,type:"POST",data:"feed_id="+e.params.fid+"&item_no="+e.params.pid,success:function(i){h(i)}})};var d=function(){f(ya.url("ajax/wish_do_"+(e.params.isPromised?"un":"")+"promise.xml"),function(g){e.params.isPromised=!e.params.isPromised;e.draw()})};var c=function(){f(ya.url("ajax/wish_do_"+(e.params.isRealised?"un":"")+"fulfill.xml"),function(g){e.params.isRealised=!e.params.isRealised;e.draw()})};if($(e.element).is(e.selectors.promise)){$(e.element).unbind("click.promise").bind("click.promise",function(g){d()})}else{$(e.element).unbind("click.fulfil").bind("click.fulfil",function(g){c()})}};ya.queue.add("onload",function(c){$(c).find(".b-wish-control").not(".b-wish-control-inited").each(function(d,f){ya.instances.push(["ya.controls.WishOnPost",new ya.controls.WishOnPost(f)])})})});(function(a,b){a.namespace("templates");a.templates.postDelete=a.template(['
                                              {text}
                                              '].join(""));a.templates.postDeleteForm=a.template(['
                                              ','','','','',"
                                              "].join(""))})(ya,jQuery);(function(a,b){a.namespace("locales.ru");a.locales.ru.postDelete="Запись с ответом была удалена";a.locales.ru.commentDeleteConfirm="Удалить этот комментарий?";a.locales.ru.postDeleteConfirm="Удалить эту запись?";a.locale=a.locales.ru})(ya,jQuery);(function(a,b){a.ready("ya.controls",function(c){c.PostDelete={selectors:{action:".b-post-delete"},postDelete:function(i){a.log("PostDelete: handler post delete");var f=this,k=a.getParamsFromAttr(b(f).closest(".b-post-actions2")[0],"onclick"),g=b(f).closest(".b-entry"),h=window.confirm(g.hasClass("b-comment")?a.locale.commentDeleteConfirm:a.locale.postDeleteConfirm),l=/item_no=(\d*)/.exec(g_globals.current_location.params),d=l&&l[1]===k.item_no&&!k.parent_id;if(k&&h){a.log("PostDelete: delete with params "+k);if(d){var j="id"+a.random();b("body").append(a.templates.postDeleteForm({id:j,action:a.url("post_do_delete.xml"),retpath:friendsURL("posts"),item_no:k.item.item_no,secret_key:k.secret_key}));b("#"+j).submit()}else{b.ajax({url:b(f).hasClass("b-comment-delete")?a.url("ajax/reply_do_delete.xml"):a.url("post_do_delete.xml"),type:"POST",data:{item_no:k.item.item_no,host_id:k.source.id,feed_id:k.item.feed_id,parent_id:k.item.comment_id,sk:k.secret_key,ajax:1,userefer:"yes"},success:function(m){a.log("PostDelete: success with "+m);var e=b(f).closest(".b-entry");b(f).closest(".b-post").trigger("update");if(!e.hasClass("b-comment")){e.remove()}},error:function(){var e={info:"ya.controls.PostDelete",params:f.params};a.error(e,": В процессе удаления произошла ошибка")}})}}i.preventDefault()},bind:function(){a.log("PostDelete: init");b(".b-post-delete").live("click",c.PostDelete.postDelete)}};c.PostDelete.bind()})})(ya,$);var tinyMCESettings={mode:"exact",width:"100%",forced_root_block:"p",force_br_newlines:false,force_p_newlines:true,tab_focus:":prev,:next",convert_newlines_to_brs:true,theme:"yaru",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,bullist,numlist,|,link,unlink,|,yauser,yacut,yablockquote,yaimage,yavideo,yasmile,yahtml",language:"ru",plugins:"insertYauser,insertSmile,insertCut,insertImage,insertVideo,insertBlockquote,insertLink,safari,insertHTML",valid_elements:["@[id|class|style|title|dir')[0];$(this.control).append(this.wysiwygFlag);var c=!this.textarea.value,a=null;if(b&&c){a=this.getLocalStorageMode();if(a!==null){this.mode=a}}if(this.mode==1){this.modeRich()}else{this.modeHTML()}if(b){this.initLocalStorage(a)}}W5GControl.prototype.convertBrToNewLines=function(){this.textarea.value=this.textarea.value.replace(//ig,"\n")};W5GControl.prototype.modeHTML=function(){var a=this;if(tinyMCE.activeEditor){tinyMCE.execCommand("mceRemoveControl",false,this.id);$(this.buttonRichOff).addClass("active");$(this.buttonRichOn).removeClass("active");if($.browser.msie){this.textarea.style.zoom=1.001;window.setTimeout(function(){a.textarea.style.zoom=1},0)}}this.convertBrToNewLines();this.textarea.focus();this.setWysiwygFlag(0)};W5GControl.prototype.modeRich=function(){tinyMCE.execCommand("mceAddControl",false,this.id);$(this.buttonRichOff).removeClass("active");$(this.buttonRichOn).addClass("active");if(tinyMCE.activeEditor){if($.browser.mozilla&&$.browser.version>="1.9"){var a=tinyMCE.activeEditor.contentDocument;a.designMode="Off"}tinyMCE.activeEditor.focus()}this.setWysiwygFlag(1)};W5GControl.prototype.setWysiwygFlag=function(a){this.mode=a;this.wysiwygFlag.value=a;g_globals.wysiwyg_c=a};W5GControl.prototype.removeEditor=function(){var a=tinyMCE.get(this.id);if(a){this.textarea.value="";a.save();tinyMCE.execCommand("mceFocus",false,this.id);tinyMCE.execCommand("mceRemoveControl",false,this.id)}};W5GControl.prototype.saveHTMLAsText=function(){var a=tinyMCE.get(this.id);if(a&&this.isActive()){this.textarea.value="";a.save()}};W5GControl.prototype.isActive=function(){var b=this.control.parentNode,a=b&&(b.nodeType!=11)&&this.mode==1;return a};W5GControl.prototype.initLocalStorage=function(a){if(typeof window.localStorage==="undefined"){return}var b=this;if(a!==null){this.showHint(a)}setInterval(function(){b.saveLocalStorage.apply(b)},20*1000)};W5GControl.prototype.showHint=function(d){var c=$('
                                              У вас есть сохраненный черновик, вы можете восстановить его или удалить.
                                              '),b=window.localStorage.getItem(this.id+"wysiwygText"),a=window.localStorage.getItem(this.id+"wysiwygTitle"),e=this;$("div.b-write-title").before(c);$(c).children("span.draft-load").click(function(){if(d==1){e.modeRich()}else{e.modeHTML()}e.setContent(b);if(a){e.setTitle(a)}e.clearLocalStorage();$(c).remove()});$(c).children("span.draft-remove").click(function(){e.clearLocalStorage();$(c).remove()})};W5GControl.prototype.saveLocalStorage=function(){var b=this.getContent();if(b!==""){window.localStorage.setItem(this.id+"wysiwygText",b);window.localStorage.setItem(this.id+"wysiwygMode",this.mode);var a=$("input[placeholder]")[0];window.localStorage.setItem(this.id+"wysiwygTitle",$(a).hasClass("b-input-empty")?"":a.value)}else{this.clearLocalStorage()}};W5GControl.prototype.getLocalStorageMode=function(){if(typeof window.localStorage==="undefined"){return null}var a=window.localStorage.getItem(this.id+"wysiwygMode");if(a!==null){return Number(a)}else{return null}};W5GControl.prototype.getContent=function(){if(tinyMCE.activeEditor){var a=tinyMCE.activeEditor.getContent();return(a!==""&&a!=="
                                              "?a:"")}else{return this.textarea.value}};W5GControl.prototype.setContent=function(a){if(this.mode){if(tinyMCE.activeEditor){tinyMCE.activeEditor.setContent(a)}tinyMCE.onCustomSetContent=function(){this.setContent(a)}}else{this.textarea.value=a}};W5GControl.prototype.setTitle=function(a){$("input[placeholder]").removeClass("b-input-empty").val(a)};W5GControl.prototype.clearLocalStorage=function(){if(typeof window.localStorage==="undefined"){return}window.localStorage.removeItem(this.id+"wysiwygText");window.localStorage.removeItem(this.id+"wysiwygMode");window.localStorage.removeItem(this.id+"wysiwygTitle")};function XMLDOM(){if(y5.is_ie){try{this.doc=new ActiveXObject("MSXML2.DOMDocument")}catch(a){try{this.doc=new ActiveXObject("Microsoft.XmlDom")}catch(a){}}if(this.doc){this.msxml_mode=true;this.doc.async=false}}else{if(typeof DOMParser==="function"){this.parser=new DOMParser()}if(typeof XMLSerializer==="function"){this.serializer=new XMLSerializer()}if(document.implementation){this.xhtml_doc=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)}this.doc=document}}XMLDOM.prototype.parseStringIntoBuffer=function(d){var b=function(e){var f=document.createElement("div");f.innerHTML=e;f.simple_parse=true;return f};d=d||"";var c;if(y5.is_ie){d=d.replace(/&/g,"&");d=""+d+"";var a=this.doc.loadXML(d);if(!a){c=b(d)}else{c=this.doc;c=c.documentElement}}else{if(y5.is_gecko){d=d.replace(/&/g,"&");d=""+d+"";c=new DOMParser().parseFromString(d,"text/xml");if(c.documentElement.nodeName=="parsererror"){c=b(d)}else{c=c.documentElement}}else{c=b(d)}}return c};var HAS_NAMESPACE_BY_DEFAULT=false;if(typeof XMLSerializer!=="undefined"){HAS_NAMESPACE_BY_DEFAULT=new XMLSerializer().serializeToString(document.createElement("div")).indexOf("xmlns")!==-1}XMLDOM.prototype.createElement=function(a,b){var c=(b||this.doc).createElement(a);if(HAS_NAMESPACE_BY_DEFAULT&&this.doc.createElementNS){c=this.doc.createElementNS("",a)}else{c=this.doc.createElement(a)}return c};XMLDOM.prototype.textContent=function(a){return a.textContent||a.text};XMLDOM.prototype.serialize=function(c,d){var j;if(c.nodeType==3){j=c.nodeValue}else{if(y5.is_ie){j=c.xml||(d?c.outerHTML:c.innerHTML);j=j.replace(/^$/im,"").replace(/^/im,"").replace(/<\/root>$/im,"");j=j.replace(/&/img,"&")}else{if(y5.is_gecko){if(c.simple_parse){j=c.innerHTML}else{j=this.serializer.serializeToString(c)}j=j.replace(/^$/i,"").replace(/^/i,"").replace(/<\/root>$/i,"");j=j.replace(/&/ig,"&");var g=j.match(/<[-0-9a-zA-Z.]+(\s+)?(?=\/>)/ig);var h={ya:1,"ya-smile":1};var e={input:1,br:1,hr:1,frame:1,link:1,col:1,param:1,area:1,map:1};var f,b;if(g){for(f=0,b=g.length;f","ig");j=j.replace(k,"")}}}}else{j=d?c.outerHTML:c.innerHTML;j=j.replace(/
                                              /ig,"
                                              ")}}}return j};XMLDOM.prototype.serializeCollection=function(a,c){var e="",b;for(b=0;b .b-pseudo-link").bind("click",function(j){f.apply(this,[j,i])})};var f=function(h,j){var i=c.getParamsFromAttr(this),g=this;e(g).addClass("b-candy_state_on");e.ajax({url:c.url("ajax/unread_recommendations_do_update_safe.xml"),type:"POST",dataType:"json",data:{sk:g_globals.secret_key,markType:i.markType,markText:"seen,accepted",user:i.uid,unread:i.id,type:i.type,access_type:j.data.accessType,feed_id:g_source.id},success:function(k){b(j,k)}});h.preventDefault()};c.controls.recommendations=function(){return{updateCallback:function(){b(this,arguments[0])}}}()})(ya,jQuery);jQuery(document).ready(function(){var c=$(".b-jsonp-widget"),a=function(e){var d=this,f=this.data,g=this.$target.find(".update");if(!e||!e.data.length){g.yhide();return}reload_widget=function(h){f.data[f.ajaxParamName]=h;jQuery.ajax({url:f.ajaxMethod_get,dataType:"json",type:"post",data:f.data,success:function(i){d.update(i)}})};f.data[f.ajaxParamName]=this.ids;g.unbind("click.widgetUpdate").bind("click.widgetUpdate",function(){var h=this;$(h).addClass("b-candy_state_on");jQuery.ajax({url:f.ajaxMethod_post,dataType:"json",type:"post",data:f.data,success:function(i){$(h).removeClass("b-candy_state_on");d.update(i)}})})},b=ya.controls.JsonpWidget.hideLinks;c.filter(".b-widget-replies").each(function(){return new ya.controls.JsonpWidget(this,{ajaxMethod_get:"widgets/get_recent_unread_replies.xml",ajaxMethod_post:"widgets/unread_replies_do_update_safe.xml",ajaxParamName:"unread",groupBy:"timestamp",itemTemplateName:"replyItem",emptyTemplateName:"empty",allItems:"все ответы",moreLink:friendsURL("replies_history_all"),bindEvents:a})});c.filter(".b-widget-likes").each(function(){return new ya.controls.JsonpWidget(this,{ajaxMethod_get:"ajax/get_recent_unread_likes.xml",ajaxMethod_post:"ajax/unread_likes_do_update.xml",ajaxParamName:"unread",itemTemplateName:"likItem",groupBy:"timestamp",title:"Мои записи оценили",bindEvents:a,updateCallback:function(e){var g=[],d=ya.templates.widgets.likeItem,f=[];$.each(e.data,function(h,j){f.push(j.id)});this.ids=f.join(",");$.each(e.data,function(h,j){j.appreciate=ya.getTextByGender(j.user.sex,"оценил");j.user=ya.getViewUserByType(j.user,j.userType);g.push(d(j))});resultHTML=g.join("");if(resultHTML){this.$inner.html(this.data.containerTemplate({content:resultHTML}));if(this.bindEvents instanceof Function){this.bindEvents(e)}}else{this.$target.yhide()}}})});c.filter(".b-widget-recommendedFriends").each(function(){return new ya.controls.JsonpWidget(this,{ajaxMethod_get:"ajax/get_recommendations.xml",ajaxMethod_post:"ajax/unread_recommendations_do_update_safe.xml",data:{markType:"FriendProposal,ClubProposal",markText:"seen",accessType:"private"},ajaxParamName:"unread",title:"Вам могут быть интересны",updateCallback:ya.controls.recommendations.updateCallback})});c.filter(".b-widget-recommendedClubs").each(function(){return new ya.controls.JsonpWidget(this,{ajaxMethod_get:"ajax/get_recommendations.xml",ajaxMethod_post:"ajax/unread_recommendations_do_update_safe.xml",data:{markType:"ClubProposal",type:"join",accessType:"private"},title:"Вам могут быть интересны клубы",ajaxParamName:"unread",updateCallback:ya.controls.recommendations.updateCallback,actionTitle:"присоединиться"})});c.filter(".b-widget-friends").each(function(){return new ya.controls.JsonpWidget(this,{ajaxMethod_get:"widgets/get_recent_friends-of.xml",ajaxMethod_post:"widgets/friends-of_do_update_safe.xml",ajaxParamName:"ids",itemTemplateName:"avatar",allItems:"все люди",moreLink:friendsURL("profile_friends_friendof"),bindEvents:a})});c.filter(".b-widget-clubs").each(function(){new ya.controls.JsonpWidget(this,{ajaxMethod_get:"ajax/get_recent_unread_clubs_notifications.xml",ajaxMethod_post:"ajax/unread_clubs_notifications_do_update_safe.xml",ajaxParamName:"unread",groupBy:"timestamp",bindEvents:a})});c.filter(".b-widget-birthday").each(function(){new ya.controls.JsonpWidget(this,{ajaxMethod_get:"widgets/birthdays.xml",groupBy:"timestamp",title:"Ближайшие дни рождения",itemTemplateName:"avatar",bindEvents:b})});c.filter(".b-widget-fotki").each(function(){new ya.controls.JsonpWidget(this,{ajaxMethod_get:"ajax/recent_fotki_replies.xml",ajaxMethod_post:"ajax/recent_fotki_replies_do_update_safe.xml",ajaxParamName:"unread",allItems:"все ответы",moreLink:"http://fotki.yandex.ru/users/"+g_globals.current_location.source.login+"/comments/",groupBy:"timestamp",bindEvents:a})});c.filter(".b-widget-holiday").each(function(){new ya.controls.JsonpWidget(this,{ajaxMethod_get:"ajax/holiday.xml",groupBy:"timestamp",title:"Праздники",itemTemplateName:"holidayItem",bindEvents:b})});c.filter(".b-widget-foaf").each(function(){new ya.controls.JsonpWidget(this,{ajaxMethod_get:"ajax/foaf.xml",ajaxMethod_post:"ajax/foaf.xml",ajaxParamName:"uids",itemTemplateName:"avatar",allItems:"ещё",moreAsUpdate:true,moreLink:"profile_friends_friendof",bindEvents:a})})}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/_y.js b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/_y.js new file mode 100644 index 0000000..4f3ce8c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/_y.js @@ -0,0 +1,8 @@ +(function(b){var a={};a.imageError=function(c){var d=c.parentNode,e=d.parentNode.childNodes.length>2?d:d.parentNode;e.innerHTML='
                                              Картинка недоступна
                                              '};b.ya=a})(window); +/*! + * Copyright (c) 2010, Yahoo! Inc. All rights reserved. + * Code licensed under the BSD License: + * http://developer.yahoo.com/yui/license.html + * version: 2.8.2r1 +*/ +ya.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e=u;w--){this[w+x]=this[w]}for(w=0,u=x;w2){var u;var s=this.slice(z);this.length=z;for(w=2,u=v.length;w>>0;var u=Number(arguments[1])||0;u=(u<0)?Math.ceil(u):Math.floor(u);if(u<0){u+=s}for(;u=s){u=s-1}}}for(;u>-1;u--){if(u in this&&this[u]===t){return u}}return -1},every:function(t){var s=this.length>>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array();var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var w=new Array(s);var v=arguments[1];for(var u=0;u>>0;if(typeof t!="function"){throw new TypeError()}var u=arguments[1];for(;v>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=0;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u++];break}if(++u>=s){throw new TypeError()}}while(true)}for(;u>>0;if(typeof t!="function"){throw new TypeError()}if(s==0&&arguments.length==1){throw new TypeError()}var u=s-1;if(arguments.length>=2){var v=arguments[1]}else{do{if(u in this){v=this[u--];break}if(--u<0){throw new TypeError()}}while(true)}for(;u>=0;u--){if(u in this){v=t.call(null,v,this[u],u,this)}}return v}};for(var b in i){if(!h[b]){h[b]=i[b]}}(function(){var s=function(v,t,u){var w=t[u];if(typeof w!="function"&&v[u]){return false}v[u]=function(){return w.call.apply(w,arguments)};return v[u]};["every","filter","forEach","indexOf","lastIndexOf","map","reduce","reduceRight","some"].forEach(function(t){s(Array,Array.prototype,t)})})();var d=String.prototype,q="";if(q.indexOf(q)!=0){d.indexOfBug=d.indexOf;d.indexOf=function(s){if(this.toString()==q&&s===q){return 0}return this.indexOfBug(s)};d.lastIndexOfBug=d.lastIndexOf;d.lastIndexOf=function(s){var t=this.lastIndexOfBug(s);if(s===q){t++}return t}}if(q.replace(/^/,String)){var p=/(g|gi)$/,c=d.replace;d.replace=function(y,v){if(typeof v=="function"){var x,w,u,t=this,s=q;if(y&&y.constructor==RegExp){x=y;w=x.global;if(w==null){w=p.test(x)}if(w){x=new RegExp(x.source)}}else{x=new RegExp(rescape(y))}while(t&&(u=x.exec(t))){s+=t.slice(0,u.index)+v.apply(this,u);t=t.slice(u.index+u[0].length);if(!w){break}}return s+t}return c.apply(this,arguments)}}var r=String.fromCharCode;if(!d.charCodeAt){d.charCodeAt=function(A){var w=0,y=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var z=0,v=y.length;z1){B=(x+u)>>1;s=r(B);if(s>t){x=B}else{if(s>4]+k[s&15]}function g(t,u){t=t.toString().replace(/\r\n/g,"\n");var v="",y,x=0,w=t.length,s="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(u){s+="#$&+,-/:;=?@"}for(;x127)&&(y<2048)){v+=escape(r((y>>6)|192)+r((y&63)|128))}else{v+=escape(r((y>>12)|224)+r(((y>>6)&63)|128)+r((y&63)|128))}}}return v}window.encodeURIComponent=g;window.encodeURI=function(s){return g(s,true)}}if(!window.decodeURIComponent){var n=6,m=2,j=14,a="malformed URI sequence";function l(y){y=unescape(y.toString());var t="",A=y.length,v=0,x,z=0,w=0,u=0;while(v191)&&(z<224)){w=y.charCodeAt(v+1);if(!((z>>5)==n&&(w>>6)==m)){throw a}x=r(((z&31)<<6)|(w&63));v+=2}else{w=y.charCodeAt(v+1);u=y.charCodeAt(v+2);if(!((z>>4)==j&&(w>>6)==m&&(u>>6)==m)){throw a}x=r(((z&15)<<12)|((w&63)<<6)|(u&63));v+=3}}t+=x}return t}window.decodeURIComponent=window.decodeURI=l}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(t,s){Node[t+"_NODE"]=s+1})}})();var y5=(function(){var o={},c=[],E={},i=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,D={},k="y5",u=[],B=document.getElementsByTagName("script"),y,g,w;function F(I){if(typeof I=="function"){I()}}function b(I){return !!o[I]}function d(I){return !o[I]}function m(I){return I.every(b)}function A(K){for(var J=0,I=c.length;J=0){var N={path:O.substring(0,O.lastIndexOf("/")+1),charset:P||J.getAttribute("charset")||"utf-8"};var M=O.lastIndexOf("?");if(M>=0){N.query=O.substring(M,O.length)}return N}}return null}function z(I,J,K){if(typeof J=="string"){J={path:J,charset:K}}if(J.path.lastIndexOf("/")!=J.path.length-1){J.path+="/"}if(!J.charset){J.charset="utf-8"}if(!J.query){J.query=""}t(I,J)}function n(J,I){try{return D[J][I]}catch(K){return null}}var r={version:1.5,domloaded:false,require:function(){var L=arguments,K=[],O=y5.VOID,N=y5.Types;for(var M=0,J=L.length;M4.9;a.is_ie55up=a.ie_ver>5.4;a.is_ie6up=a.ie_ver>5.9;a.is_ie7up=a.ie_ver>6.9;a.is_ie6down=a.is_ie&&a.ie_ver<6;a.is_ie7down=a.is_ie&&a.ie_ver<7;a.is_ie8down=a.is_ie&&a.ie_ver<8;a.is_ie8=a.is_ie&&a.ie_ver==8;a.cookieEnabled=d.cookieEnabled;return a}};(function(){var b;var a=y5.Browser.get(window.navigator);for(b in a){y5.Vars[b]=a[b]}for(b in y5.Vars){y5[b]=y5.Vars[b]}})();y5.Loader=(function(){function b(i,h){for(var j in h){var k=h[j];if(k){i.setAttribute(j,k)}}}function g(h,i){h.insertBefore(i,h.firstChild)}var d;if(y5.is_opera&&y5.opera_ver<8){d=function(i,h){if(!document.body){return null}var k=document.createElement("span");k.style.display="none";k.innerHTML="<"+i+">";var j=k.getElementsByTagName(i).item(0);b(j,h);g(document.body,k);return j}}else{var c=document.getElementsByTagName("head")[0];d=function(i,h){var j=document.createElement(i);b(j,h);g(c,j);return j}}function a(i,l){var j=10,k=null;function h(){if(!--j){window.clearTimeout(k);return false}var m=d("script",i);if(m){if(typeof l=="function"){l(m)}window.clearTimeout(k);return true}return false}if(!h()){k=window.setInterval(h,10)}}return{loadScript:function(h,k,j,i){a({src:h,charset:k,type:"text/javascript",id:i},j)},loadObject:d}})();y5.Scripts={createScript:function(a,c,b){y5.Loader.loadScript(a,c,b)}};(function(){var a=y5.VOID;y5.Console={log:a,info:a,warn:a,error:a,trace:a,dir:a,dirxml:a,group:a,groupEnd:a}})();y5.Exception=function(c,g,b){if(!y5.DEBUG){return true}var a="y5."+b+"."+g+": "+c;var d=new Error(a);if(d.stack){d.message+="\nStack:\t"+d.stack.replace(/\n/ig,"\n\t")}return d};y5.Exception.prototype=new Error();(function(){var b=y5.UNDEF;function a(d,c){return(d&&d.nodeType&&d.nodeType==c)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(d){var c=this.TYPES[typeof d];if(d===null){return this.NULL}if(c==this.OBJECT){if(d.nodeName||this.document(d)){return this.NODE}}if(c==this.OBJECT||c==this.FUNCTION){switch(d.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(d)){return this.EVENT}return c},test:function(d,c){return !!(this.type(d)&c)},def:function(c){return typeof c!=b},undef:function(c){return typeof c==b},object:function(c){return typeof c=="object"},func:function(c){return typeof c=="function"},number:function(c){return typeof c=="number"},string:function(c){return typeof c=="string"},bool:function(c){return typeof c=="boolean"},nul:function(c){return c===null},array:function(c){return c instanceof Array},regexp:function(c){return c instanceof RegExp},date:function(c){return c instanceof Date},event:function(c){return c&&typeof c.type!=b&&typeof(c.stopPropagation||c.cancelBubble)!=b},element:function(c){return a(c,Node.ELEMENT_NODE)},attribute:function(c){return a(c,Node.ATTRIBUTE_NODE)},text:function(c){return a(c,Node.TEXT_NODE)},document:function(c){return(c&&typeof c.documentElement!=b)||false},comment:function(c){return a(c,Node.COMMENT_NODE)},node:function(c){return(c&&typeof c.nodeType!=b)}}})();y5.GC={data:[],collect:function(a){this.data.push(a);return a},remove:function(b){var a=this.data.indexOf(b);if(a!=-1){this.destruct(a);this.data.splice(a,1)}},destruct:function(a){var b=this.data[a];if(b){if(typeof b.cleanup=="function"){b.cleanup()}else{if(typeof b.destruct=="function"){b.destruct()}}}this.data[a]=null},cleanup:function(){for(var a=this.data.length-1;a>=0;a--){this.destruct(a)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var t=y5.Types,r=y5.UNDEF,s=y5.GC;function q(A,z,C,B){return(z?A.call(z,C,B):A(C,B))}var v="DOMAttrModified",d="propertychange",i="DOMMouseScroll",u="mousewheel",a={};if(document.attachEvent){a[v]=d}else{a[d]=v}if(y5.is_ie||y5.is_opera||y5.is_safari){a[i]=u}else{a[u]=i}function n(z){return a[z]||z}var x,w={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function o(){this.returnValue=false}function h(){this.cancelBubble=true}x=function(B){B.timeStamp=new Date().getTime();B.charCode=B.type=="keypress"?B.keyCode:0;B.isChar=B.charCode>0;B.target=B.srcElement;B.metaKey=B.altKey;B.attrName=B.propertyName=="className"?"class":B.propertyName;B.preventDefault=o;B.stopPropagation=h;var A=document.documentElement,z=document.body;B.pageX=B.clientX+(A.scrollLeft||z.scrollLeft);B.pageY=B.clientY+(A.scrollTop||z.scrollTop);switch(B.type){case"mouseout":B.relatedTarget=B.toElement;break;case"mouseover":B.relatedTarget=B.fromElement;break}B.scrollDetail=0;if(B.wheelDelta){B.scrollDetail=-B.wheelDelta/40}}}else{if(y5.is_safari){w={L:[0,65535,1],M:[2],R:[3]};x=function(z){if(!t.func(z.preventDefault)){z.preventDefault=y5.NULL}if(!t.func(z.stopPropagation)){z.stopPropagation=y5.NULL}if(z.target&&(z.target.nodeType==3||z.target.nodeType==4)){z.target=z.target.parentNode}if(z.wheelDelta){z.scrollDetail=-z.wheelDelta/400}}}else{if(y5.is_opera){x=function(z){z.scrollDetail=0;if(z.wheelDelta){z.scrollDetail=z.wheelDelta/40}if(y5.opera_ver>=9.2){z.scrollDetail*=-1}};if(y5.opera_ver<8){w={L:[1],M:[2],R:[3]}}}else{x=function(z){try{z.scrollDetail=z.detail}catch(z){}}}}}if(y5.is_ie||y5.is_konq){w={L:[1],M:[4],R:[2]}}function k(A){var z;try{z=A.button}catch(A){}if(typeof z!=r){A.buttonL=w.L.indexOf(z)!=-1;A.buttonM=w.M.indexOf(z)!=-1;A.buttonR=w.R.indexOf(z)!=-1}else{A.buttonL=A.buttonM=A.buttonR=false}x(A);return A}y5.AEventListener=function(C,D,B,E,A,z){this.type=n(C);this.element=B||document;this.blocked=false;this.added=false;this.runOnce=z||false;var F=this;this.listener=function(G){var H=typeof G!=r?k(G):{};if(F.blocked){H.stopPropagation();H.preventDefault();return}q(D,A,H,F.element);if(F.runOnce){F.cleanup()}};if(E){this.add()}s.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return}this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return}this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var p=y5.AEventListener;if(document.attachEvent){p.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};p.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var j={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},g=[0,1,2];if(y5.is_safari){g=[0,2,3]}if(y5.is_safari||y5.is_opera){delete j.Key}y5.Event=function(B,A,z,C){this.type=n(B||"click");this.element=A||document;this.params=C||{};this.init();if(typeof z==r){z=true}if(z){this.dispatch()}s.collect(this)};y5.Event.prototype={init:function(){for(var z in j){if(j[z].test(this.type)){this.eventType=z;break}}},dispatch:function(C,B,z){if(typeof C==r){C=this.params}B=B||true;z=z||true;var A=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":A.initMouseEvent(this.type,B,z,document.defaultView,C.detail||0,C.screenX||0,C.screenY||0,C.clientX||0,C.clientY||0,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,g[C.button||0],null);break;case"Key":A.initKeyEvent(this.type,B,z,document.defaultView,C.ctrlKey||false,C.altKey||false,C.shiftKey||false,C.metaKey||false,C.keyCode||0,C.charCode||0);break;default:A.initEvent(this.type,B,z);break}return this.element.dispatchEvent(A)},cleanup:function(){this.element=null}};var y=y5.Event;if(document.createEventObject){g=[1,4,2];function b(A,D){for(var z in D){try{var B;switch(z){case"button":B=g[D.button||0];break;default:B=D[z];break}A[z]=B}catch(C){}}return A}y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){if(typeof A==r){A=this.params}var z=b(document.createEventObject(),A);return this.element.fireEvent("on"+this.type,z)}}else{if(!document.createEvent){y.prototype.init=y5.NULL;y.prototype.dispatch=function(A){try{return this.element[this.type](A)}catch(z){y5.Console.warn("Browser is too old",["Event"]);return false}}}}y.prototype.dispatchEvent=y.prototype.dispatch;(function(){var A={notifiers:{},observers:{},dispatchNotify:function(B,E,C){var J=true,G=this.observers[B];if(G){var I=[].concat(G),F=0,D=I.length;for(;F');this.frame=document.createElement('';m.Window=function(r,s,t){this.init(r,s,t)};m.Window.prototype={classContainer:"y5-w-content",defaultParams:{text:null,modal:false,event:null,element:"y5:viewport",halign:"center",valign:"middle",relative:false,fixed:false,saveState:false,savePosition:false,className:null,template:"default"},toString:function(){return b},init:function(r,s,t){this.element=r;this.content=s;this.params={};this.window=null;this.events={};this.callbacks={};this.shortcuts={};this.isActive=false;h.init();this.initParams=k.objectCopy(t);this.makeParams(t);this.create();this.make(t)},initOnce:function(){this.event("init");this.initOnce=i},box:function(s){var r=y5.Widget.Templates.get(this.toString(),this.params.template);return y5.T(r.getHTML(),s)},create:function(){var s=this.params;var r="y5-w-window"+(this.className?" "+this.className:"")+(s.className?" "+s.className:"")+(s.modal?" y5-w-window-modal":"");this.window=a.create("div",{style:"position:absolute;left:-999em;","class":r});this.window.innerHTML=this.box();this.dragWindowInitOnce()},getContainerOnce:function(){this.container=j.getElementByClass(this.classContainer,this.window);this.getContainerOnce=i},getFooterOnce:function(){this.footer=j.getElementByClass("y5-w-buttons",this.window);this.getFooterOnce=i},fillContainer:function(r){this.container.appendChild(this.params.saveState?r:r.cloneNode(true))},refreshContent:function(){if(this.params.text){this.container.innerHTML=y5.Strings.text2html(this.params.text)}else{if(this.params.html){this.container.innerHTML=this.params.html}else{j.clearNode(this.container);this.content.forEach(this.fillContainer,this)}}},setContent:function(){this.getContainerOnce();try{this.refreshContent()}catch(r){y5.Console.error("Find container",[b])}},convertPosition:function(u,s,v,t){var r=0;if(u.indexOf("%")!=-1){r+=(v-t)*(parseFloat(u)/100)}else{if(u.indexOf("em")!=-1){r+=j.em2px(parseFloat(u),s)}else{r+=parseFloat(u)}}return parseInt(r,10)},getScrollX:function(){return(this.params.fixed?j.getPageScrollX():0)},getScrollY:function(){return(this.params.fixed?j.getPageScrollY():0)},getPosition:function(){var u=this.params;var t;var v,s;if(u.element=="y5:viewport"||j.testTagName(u.element,["html","body"])){t=j.getBody();var r=j.viewPort();v=r[0];s=r[1]}else{t=u.element;v=t.clientWidth||t.offsetWidth;s=t.clientHeight||t.offsetHeight}var w=j.getOffset(t);w[0]+=this.convertPosition(u.halign,t,v,(u.relative?this.window.clientWidth:0));w[1]+=this.convertPosition(u.valign,t,s,(u.relative?this.window.clientHeight:0));return w},dragWindowInitOnce:function(){this.caption=j.getElementByClass("y5-w-titlebar",this.window);if(this.caption){var x=this;var u;function w(){u=j.getOffset(x.window)}function t(B,A,y,z){y=[y[0]+(u[0]-z[0]),y[1]+(u[1]-z[1])];x.dragWindowMove(A,y)}function v(){x.dragWindowStart()}function s(){x.dragWindowUp()}var r=new y5.ObjectMove(this.caption,document,{down:w,start:v,move:t,up:s});r.disableEvents=r.enableEvents=y5.VOID}this.dragWindowInitOnce=i},dragWindowStart:function(){q.add(this.window,"y5-w-window-moved")},dragWindowUp:function(){q.remove(this.window,"y5-w-window-moved")},dragWindowMove:function(v,t){if(v.clientX<0){t[0]-=v.clientX}if(v.clientY<0){t[1]-=v.clientY}var s=j.viewPort();var u=v.clientX-s[0];if(u>0){t[0]-=u}var r=v.clientY-s[1];if(r>0){t[1]-=r}this.moveTo(this.getMoveTo(this.X=t[0],this.Y=t[1]))},initPosition:function(){var y=this.getMoveTo(this.X,this.Y);var x=y[0];var w=y[1];var r=j.viewPort();var v=Math.floor(x-r[0]*0.07);var t=Math.floor(w-r[1]*0.07);var u=j.getPageScrollX();var s=j.getPageScrollY();if(x-1;r--){if(this.opens[r].params.modal){this.containerView.insertBefore(this.modalLayer,this.opens[r].window);return}}if(this.modalLayer){this.modalLayer.style.display="none"}},hide:function(r){r.window.style.left="-999em";this.removeOpen(r);this.hideBase(r)},createModalLayerElement:function(s){var r=(y5.is_opera&&y5.opera_ver<9)?"y5-w-modal-opera":"y5-w-modal";this.modalLayer=a.create("div",{"class":r,style:s});new l("click",function(t){t.stopPropagation()},this.modalLayer,true);if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){this.modalLayer.appendChild(a.create(c))}this.containerView.appendChild(this.modalLayer)},createModalLayerOnce:function(){this.createModalLayerElement("position:fixed; display:none; left:0; top:0; width:100%; height:100%");this.createModalLayerOnce=i},addOpen:function(r){var s=0;this.opens.forEach(function(t){t.setZIndex(s++);t.disableShortcuts()});this.opens.push(r);if(r.params.modal){this.modalLayer.style.zIndex=s++}r.setZIndex(s)},removeOpen:function(u){var v=this.opens;var t=v.lastIndexOf(u);v.splice(t,1);var r=v.length;if(r){v[r-1].enableShortcuts()}var x=0;v.forEach(function(y){y.setZIndex(x++)});if(u.params.modal){var w=false;for(var s=v.length-1;s>=0;s--){if(v[s].params.modal){v[s].setZIndex(s+1);this.modalLayer.style.zIndex=s;w=true;break}}if(!w){this.modalLayer.style.zIndex=-1}}}};if(y5.is_ie){h.createModalLayerOnce=function(){this.createModalLayerElement("position:absolute; display:none");this.createModalLayerOnce=i}}if(!m.Templates.get(b,"default")){var n=new m.Template(b,null,"default");n.loadCSSModule(b);var g='
                                              ${content}
                                              ';if(!y5.is_opera||y5.opera_ver>=9){g+='
                                              '}if(y5.is_ie7down||(y5.is_linux&&y5.is_gecko)){g+=c}n.setFrame(g);n.setBody('
                                              ')}y5.loaded("Widget.Window")});y5.require("Dom",function(){var i=y5.Dom,h=["a","input","textarea","select","button"],g=[h[1],h[2],h[3]],j=["submit","button","reset"];function a(k){if(k&&k.focus){k.focus();return k}return null}function d(k){if(k&&k.select){k.select();return k}return null}function c(k){return i.getDescendants(k,h)}function b(k){return(k.disabled||!k.offsetHeight||i.getAncestorsOrSelf(k).some(function(l){return y5.Elements.css(l,"visibility")=="hidden"}))}y5.Form={focusFirstElement:function(k,l){return a(this.getFirstElement(k,l))},focusLastElement:function(k,l){return a(this.getLastElement(k,l))},activateFirstElement:function(k){return d(this.focusFirstElement(k,true))},getFirstElement:function(m,q){var p=c(m);for(var n=0,k=p.length;n=0;l--){var m=n[l];if(this.checkElement(m,o)){return m}}return null},checkElement:function(m,o){if(b(m)){return false}var k=m.tagName.toLowerCase(),n=m.type;if(k=="input"&&n=="file"){return false}if(o){var l=g.indexOf(k)!=-1;if(l){l=j.indexOf(n)==-1}return l}return h.indexOf(k)!=-1},checkElementHasTabIndex:function(k){if(b(k)){return false}return(y5.Types.def(k.tabIndex)&&k.tabIndex)>=0}};y5.loaded("Form")});y5.require(["Utils","Dom","Form","Events","ShortCuts","Widget.Window"],function(){var d="Widget.Dialog",g=y5.ShortCut,a=y5.Form,c=y5.Dom,h=y5.AEventListener;y5.Widget.Dialog=function(i,j,k){this.Window(i,j,k)};y5.Widget.Dialog.prototype={className:"y5-w-dialog y5-w-dialog",defaultParams:{modal:true,relative:true,title:"",okButton:{title:" Ok "},cancelButton:{title:"\u041E\u0442\u043C\u0435\u043D\u0430"},noButton:{title:" \u041D\u0435\u0442 "}},box:function(){var i=this.params;return this.Window.prototype.box.call(this,{title:i.title,okButton:i.okButton.title,noButton:i.noButton.title,cancelButton:i.cancelButton.title})},toString:function(){return d},setEventsOnce:function(){var i=this.events;this.button_close=c.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){i.close=new h("click",this.cancel,this.button_close,false,this)}this.button_ok=c.getElementByClass("y5-w-okbutton",this.footer);if(this.button_ok){i.ok=new h("click",this.ok,this.button_ok,false,this)}this.button_no=c.getElementByClass("y5-w-nobutton",this.footer);if(this.button_no){i.no=new h("click",this.no,this.button_no,false,this)}this.button_cancel=c.getElementByClass("y5-w-cancelbutton",this.footer);if(this.button_cancel){i.cancel=new h("click",this.cancel,this.button_cancel,false,this)}this.blurTarget=c.getBody();i.body_onblur=new h("blur",function(j){this.blurTarget=j.target},c.getBody(),false,this);this.Window.prototype.setEventsOnce.apply(this)},ok:function(i){this.action(i,"ok")},no:function(i){this.action(i,"no")},cancel:function(i){this.action(i,"cancel")},setCallBacksOnce:function(){["fireOk","fireNo","fireCancel","setTitle"].forEach(function(i){this.callbacks[i]=new y5.Observer("y5:"+i,this[i],this.element,true,this)},this);this.Window.prototype.setCallBacksOnce.apply(this)},fireOk:function(){new y5.Event("click",this.button_ok)},fireNo:function(){new y5.Event("click",this.button_no)},fireCancel:function(){this.kill()},setTitle:function(j){var i=c.getElementByClass("y5-w-title",this.window);i.innerHTML=y5.T("#{title}",{title:j})},setShortcutsOnce:function(){var i=this.shortcuts;i.esc=g.down([{key:g.ESC}],this.esc,document,{checkTarget:false,context:this});i.ctrlEnter=g.down([{ctrl:true,key:g.ENTER}],this.fireOk,this.window,{checkTarget:false,context:this});if(this.params.modal){i.shiftTab=g.press([{key:g.TAB,shift:true}],function(j){if(this.getFirstElement()==j.target){this.getLastElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false});i.tab=g.press([{key:g.TAB}],function(j){if(this.getLastElement()==j.target){this.getFirstElement().focus();j.preventDefault()}},this.window,{checkTarget:false,context:this,preventDefault:false})}this.Window.prototype.setShortcutsOnce.apply(this)},getFirstElement:function(){var i=a.getFirstElement(this.container);if(!i){i=a.getFirstElement(this.footer)}return i},getLastElement:function(){var i=a.getLastElement(this.footer);if(!i){i=a.getLastElement(this.container)}return i},esc:function(i){this.action(i,"esc")},make:function(i){this.Window.prototype.make.apply(this,[i]);this.setTitle(this.params.title);if(!a.activateFirstElement(this.window)&&!(y5.is_opera&&y5.opera_ver>=9.5)){a.focusFirstElement(this.window)}},kill:function(){this.Window.prototype.kill.apply(this);try{if(this.blurTarget!=c.getBody()){this.blurTarget.focus()}}catch(i){}}};y5.Utils.objectExtends(y5.Widget.Dialog,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(d,"default")){var b=new y5.Widget.Template(d,"Widget.Window","default");b.loadCSSModule(d);b.setHeader('
                                              #{title}
                                              ');b.setFooter('
                                               
                                              ')}y5.loaded(d)});y5.require(["Utils","Template","Widget.Dialog"],function(){var a="Widget.Dialog.Standard";y5.Widget.Dialog.Standard=function(b,c,d){this.Dialog(b,c,d)};y5.Widget.Dialog.Standard.prototype={className:"y5-w-dialog y5-w-dialog-standard",toString:function(){return a}};y5.Utils.objectExtends(y5.Widget.Dialog.Standard,y5.Widget.Dialog,"Dialog");if(!y5.Widget.Templates.get(a,"default")){new y5.Widget.Template(a,"Widget.Dialog","default")}y5.loaded(a)});y5.require(["Utils","Dom","Events","ShortCuts","Template","Widget.Window"],function(){var b="Widget.Popup";y5.Widget.Popup=function(c,d,g){this.Window(c,d,g)};y5.Widget.Popup.prototype={className:"y5-w-popup",defaultParams:{halign:"left",valign:"bottom",showCaption:false,title:""},toString:function(){return b},cancel:function(c){this.action(c,"cancel")},setEventsOnce:function(){this.button_close=y5.Dom.getElementByClass("y5-w-closebutton",this.window);if(this.button_close){this.events.close=new y5.AEventListener("click",this.cancel,this.button_close,false,this)}this.events.hide_click=new y5.AEventListener("mousedown",this.hide_click,document,false,this);this.Window.prototype.setEventsOnce.apply(this)},hide_click:function(c){if(!y5.Dom.isChild(c.target,this.window)){this.kill()}},setShortcutsOnce:function(){this.shortcuts.esc=y5.ShortCut.down([{key:y5.ShortCut.ESC}],this.esc,document,{checkTarget:false,context:this});this.Window.prototype.setShortcutsOnce.apply(this)},esc:function(c){this.action(c,"esc")}};y5.Utils.objectExtends(y5.Widget.Popup,y5.Widget.Window,"Window");if(!y5.Widget.Templates.get(b,"default")){var a=new y5.Widget.Template(b,"Widget.Window","default");a.loadCSSModule(b)}y5.loaded(b)}); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/ajax-loader.gif b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/ajax-loader.gif new file mode 100644 index 0000000..f2a1bc0 Binary files /dev/null and b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/ajax-loader.gif differ diff --git a/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/jquery.min.js b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/jquery.min.js new file mode 100644 index 0000000..16ad06c --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/jquery.min.js @@ -0,0 +1,4 @@ +/*! jQuery v1.7.2 jquery.com | jquery.org/license */ +(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;e=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
                                              a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
                                              "+""+"
                                              ",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
                                              t
                                              ",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
                                              ",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function( +a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

                                              ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
                                              ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
                                              ","
                                              "],thead:[1,"","
                                              "],tr:[2,"","
                                              "],td:[3,"","
                                              "],col:[2,"","
                                              "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
                                              ","
                                              "]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f +.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
                                              ").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/mega-y5.js b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/mega-y5.js new file mode 100644 index 0000000..108cb9e --- /dev/null +++ b/ПБ017 - Свой Яру/Внешний вид/Что нового у друзей Кразя — я.ру_files/mega-y5.js @@ -0,0 +1 @@ +try{undefined}catch(e){window.undefined=void 0}try{if(!document.getElementsByTagName("head")[0]){document.getElementsByTagName("html")[0].appendChild(document.createElement("head"))}}catch(e){}(function(){var F=Function.prototype;if(!F.apply){var ac=0;F.apply=function(c,a){var n="__y5_apply__"+(ac++)+"__",r;c=c||window;c[n]=this;switch((a||[]).length){case 0:r=c[n]();break;case 1:r=c[n](a[0]);break;case 2:r=c[n](a[0],a[1]);break;case 3:r=c[n](a[0],a[1],a[2]);break;default:var af=[];if(a){var l=a.length;af=new Array(l);for(var i=0;i=S;U--){this[U+V]=this[U]}for(U=0,S=V;U2){var S;var A=this.slice(X);this.length=X;for(U=2,S=T.length;U=0;R--){if(this[R]==A){return R}}return -1},every:function(T,A){A=A||window;var R=0,S=this.length;for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R++];break}if(++R>=A){throw new TypeError()}}while(true)}for(;R=2){S=arguments[1]}else{do{if(typeof this[R]!="undefined"){S=this[R--];break}if(--R>=A){throw new TypeError()}}while(true)}for(;R>=0;R--){if(typeof this[R]!="undefined"){S=T.call(null,S,this[R],R,this)}}return S}};for(var C in H){if(!G[C]){G[C]=H[C]}}var E=String.prototype,P="";if(P.indexOf(P)!=0){E.indexOfBug=E.indexOf;E.indexOf=function(A){if(this.toString()==P&&A===P){return 0}return this.indexOfBug(A)};E.lastIndexOfBug=E.lastIndexOf;E.lastIndexOf=function(A){var R=this.lastIndexOfBug(A);if(A===P){R++}return R}}if(P.replace(/^/,String)){var O=/(g|gi)$/,D=E.replace;E.replace=function(W,T){if(typeof T=="function"){var V,U,S,R=this,A=P;if(W&&W.constructor==RegExp){V=W;U=V.global;if(U==null){U=O.test(V)}if(U){V=new RegExp(V.source)}}else{V=new RegExp(rescape(W))}while(R&&(S=V.exec(R))){A+=R.slice(0,S.index)+T.apply(this,S);R=R.slice(S.index+S[0].length);if(!U){break}}return A+R}return D.apply(this,arguments)}}var Q=String.fromCharCode;if(!E.charCodeAt){E.charCodeAt=function(Y){var U=0,W=escape(this).match(/(%[\da-fA-F]{2}|%u[\da-fA-F]{4}|.)/g);for(var X=0,T=W.length;X1){Z=(V+S)>>1;A=Q(Z);if(A>R){V=Z}else{if(A>4]+J[A&15]}function F(R,S){R=R.toString().replace(/\r\n/g,"\n");var T="",W,V=0,U=R.length,A="!'()*-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~";if(S){A+="#$&+,-/:;=?@"}for(;V127)&&(W<2048)){T+=escape(Q((W>>6)|192)+Q((W&63)|128))}else{T+=escape(Q((W>>12)|224)+Q(((W>>6)&63)|128)+Q((W&63)|128))}}}return T}window.encodeURIComponent=F;window.encodeURI=function(A){return F(A,true)}}if(!window.decodeURIComponent){var M=6,L=2,I=14,B="malformed URI sequence";function K(V){V=unescape(V.toString());var A="",X=V.length,S=0,U,W=0,T=0,R=0;while(S191)&&(W<224)){T=V.charCodeAt(S+1);if(!((W>>5)==M&&(T>>6)==L)){throw B}U=Q(((W&31)<<6)|(T&63));S+=2}else{T=V.charCodeAt(S+1);R=V.charCodeAt(S+2);if(!((W>>4)==I&&(T>>6)==L&&(R>>6)==L)){throw B}U=Q(((W&15)<<12)|((T&63)<<6)|(R&63));S+=3}}A+=U}return A}window.decodeURIComponent=window.decodeURI=K}if(!window.Node){window.Node={}}if(!Node.ELEMENT_NODE){("ELEMENT,ATTRIBUTE,TEXT,CDATA_SECTION,ENTITY_REFERENCE,ENTITY,PROCESSING_INSTRUCTION,COMMENT,DOCUMENT,DOCUMENT_TYPE,DOCUMENT_FRAGMENT,NOTATION").split(",").forEach(function(R,A){Node[R+"_NODE"]=A+1})}})();var y5=(function(){var M={},C=[],c={},G=/^(\{([^\}]+)\}\.|([^:]+):)?(.+)$/,b={},I="y5",S=[],Z=document.getElementsByTagName("script"),W,E,U;function d(i){if(typeof i=="function"){i()}}function B(i){return !!M[i]}function D(i){return !M[i]}function K(i){return i.every(B)}function Y(m){for(var l=0,k=C.length;l=0){var p={path:q.substring(0,q.lastIndexOf("/")+1),charset:r||k.getAttribute("charset")||"utf-8"};var o=q.lastIndexOf("?");if(o>=0){p.query=q.substring(o,q.length)}return p}}return null}function X(i,j,k){if(typeof j=="string"){j={path:j,charset:k}}if(j.path.lastIndexOf("/")!=j.path.length-1){j.path+="/"}if(!j.charset){j.charset="utf-8"}if(!j.query){j.query=""}R(i,j)}function L(j,i){try{return b[j][i]}catch(k){return null}}var P={version:1.5,domloaded:false,require:function(){var n=arguments,m=[],q=y5.VOID,p=y5.Types;for(var o=0,k=n.length;o4.9;A.is_ie55up=A.ie_ver>5.4;A.is_ie6up=A.ie_ver>5.9;A.is_ie7up=A.ie_ver>6.9;A.is_ie6down=A.is_ie&&A.ie_ver<6;A.is_ie7down=A.is_ie&&A.ie_ver<7;A.is_ie8down=A.is_ie&&A.ie_ver<8;A.is_ie8=A.is_ie&&A.ie_ver==8;A.cookieEnabled=D.cookieEnabled;return A}};(function(){var B;var A=y5.Browser.get(window.navigator);for(B in A){y5.Vars[B]=A[B]}for(B in y5.Vars){y5[B]=y5.Vars[B]}})();y5.Loader=(function(){function B(G,F){for(var H in F){var I=F[H];if(I){G.setAttribute(H,I)}}}function E(F,G){F.insertBefore(G,F.firstChild)}var D;if(y5.is_opera&&y5.opera_ver<8){D=function(G,F){if(!document.body){return null}var I=document.createElement("span");I.style.display="none";I.innerHTML="<"+G+">";var H=I.getElementsByTagName(G).item(0);B(H,F);E(document.body,I);return H}}else{var C=document.getElementsByTagName("head")[0];D=function(G,F){var H=document.createElement(G);B(H,F);E(C,H);return H}}function A(G,J){var H=10,I=null;function F(){if(!--H){window.clearTimeout(I);return false}var K=D("script",G);if(K){if(typeof J=="function"){J(K)}window.clearTimeout(I);return true}return false}if(!F()){I=window.setInterval(F,10)}}return{loadScript:function(F,I,H,G){A({src:F,charset:I,type:"text/javascript",id:G},H)},loadObject:D}})();y5.Scripts={createScript:function(A,C,B){y5.Loader.loadScript(A,C,B)}};(function(){var A=y5.VOID;y5.Console={log:A,info:A,warn:A,error:A,trace:A,dir:A,dirxml:A,group:A,groupEnd:A}})();y5.Exception=function(C,E,B){if(!y5.DEBUG){return true}var A="y5."+B+"."+E+": "+C;var D=new Error(A);if(D.stack){D.message+="\nStack:\t"+D.stack.replace(/\n/ig,"\n\t")}return D};y5.Exception.prototype=new Error();(function(){var B=y5.UNDEF;function A(D,C){return(D&&D.nodeType&&D.nodeType==C)||false}y5.Types={UNDEF:1<<0,UNDEFINED:1<<0,OBJECT:1<<1,FUNCTION:1<<2,NUMBER:1<<3,STRING:1<<4,BOOLEAN:1<<5,DATE:1<<10,REGEXP:1<<11,ARRAY:1<<12,NULL:1<<13,EVENT:1<<14,NODE:1<<15,TYPES:{"undefined":1<<0,object:1<<1,"function":1<<2,number:1<<3,string:1<<4,"boolean":1<<5},type:function(D){var C=this.TYPES[typeof D];if(D===null){return this.NULL}if(C==this.OBJECT){if(D.nodeName||this.document(D)){return this.NODE}}if(C==this.OBJECT||C==this.FUNCTION){switch(D.constructor){case Array:return this.ARRAY;case RegExp:return this.REGEXP;case Date:return this.DATE}}if(this.event(D)){return this.EVENT}return C},test:function(D,C){return !!(this.type(D)&C)},def:function(C){return typeof C!=B},undef:function(C){return typeof C==B},object:function(C){return typeof C=="object"},func:function(C){return typeof C=="function"},number:function(C){return typeof C=="number"},string:function(C){return typeof C=="string"},bool:function(C){return typeof C=="boolean"},nul:function(C){return C===null},array:function(C){return C instanceof Array},regexp:function(C){return C instanceof RegExp},date:function(C){return C instanceof Date},event:function(C){return C&&typeof C.type!=B&&typeof (C.stopPropagation||C.cancelBubble)!=B},element:function(C){return A(C,Node.ELEMENT_NODE)},attribute:function(C){return A(C,Node.ATTRIBUTE_NODE)},text:function(C){return A(C,Node.TEXT_NODE)},document:function(C){return(C&&typeof C.documentElement!=B)||false},comment:function(C){return A(C,Node.COMMENT_NODE)},node:function(C){return(C&&typeof C.nodeType!=B)}}})();y5.GC={data:[],collect:function(A){this.data.push(A);return A},remove:function(B){var A=this.data.indexOf(B);if(A!=-1){this.destruct(A);this.data.splice(A,1)}},destruct:function(A){var B=this.data[A];if(B){if(typeof B.cleanup=="function"){B.cleanup()}else{if(typeof B.destruct=="function"){B.destruct()}}}this.data[A]=null},cleanup:function(){for(var A=this.data.length-1;A>=0;A--){this.destruct(A)}this.data.length=0;if(y5.is_ie&&CollectGarbage){CollectGarbage()}}};(function(){var R=y5.Types,P=y5.UNDEF,Q=y5.GC;function O(Y,X,a,Z){return(X?Y.call(X,a,Z):Y(a,Z))}var T="DOMAttrModified",D="propertychange",G="DOMMouseScroll",S="mousewheel",A={};if(document.attachEvent){A[T]=D}else{A[D]=T}if(y5.is_ie||y5.is_opera||y5.is_safari){A[G]=S}else{A[S]=G}function L(X){return A[X]||X}var V,U={L:[0,65535],M:[1],R:[2]};if(y5.is_ie){function M(){this.returnValue=false}function F(){this.cancelBubble=true}V=function(Z){Z.timeStamp=new Date().getTime();Z.charCode=Z.type=="keypress"?Z.keyCode:0;Z.isChar=Z.charCode>0;Z.target=Z.srcElement;Z.metaKey=Z.altKey;Z.attrName=Z.propertyName=="className"?"class":Z.propertyName;Z.preventDefault=M;Z.stopPropagation=F;var Y=document.documentElement,X=document.body;Z.pageX=Z.clientX+(Y.scrollLeft||X.scrollLeft);Z.pageY=Z.clientY+(Y.scrollTop||X.scrollTop);switch(Z.type){case"mouseout":Z.relatedTarget=Z.toElement;break;case"mouseover":Z.relatedTarget=Z.fromElement;break}Z.scrollDetail=0;if(Z.wheelDelta){Z.scrollDetail=-Z.wheelDelta/40}}}else{if(y5.is_safari){U={L:[0,65535,1],M:[2],R:[3]};V=function(X){if(!R.func(X.preventDefault)){X.preventDefault=y5.NULL}if(!R.func(X.stopPropagation)){X.stopPropagation=y5.NULL}if(X.target&&(X.target.nodeType==3||X.target.nodeType==4)){X.target=X.target.parentNode}if(X.wheelDelta){X.scrollDetail=-X.wheelDelta/400}}}else{if(y5.is_opera){V=function(X){X.scrollDetail=0;if(X.wheelDelta){X.scrollDetail=X.wheelDelta/40}if(y5.opera_ver>=9.2){X.scrollDetail*=-1}};if(y5.opera_ver<8){U={L:[1],M:[2],R:[3]}}}else{V=function(X){try{X.scrollDetail=X.detail}catch(X){}}}}}if(y5.is_ie||y5.is_konq){U={L:[1],M:[4],R:[2]}}function I(Y){var X;try{X=Y.button}catch(Y){}if(typeof X!=P){Y.buttonL=U.L.indexOf(X)!=-1;Y.buttonM=U.M.indexOf(X)!=-1;Y.buttonR=U.R.indexOf(X)!=-1}else{Y.buttonL=Y.buttonM=Y.buttonR=false}V(Y);return Y}y5.AEventListener=function(a,b,Z,c,Y,X){this.type=L(a);this.element=Z||document;this.blocked=false;this.added=false;this.runOnce=X||false;var d=this;this.listener=function(g){var h=typeof g!=P?I(g):{};if(d.blocked){h.stopPropagation();h.preventDefault();return }O(b,Y,h,d.element);if(d.runOnce){d.cleanup()}};if(c){this.add()}Q.collect(this)};y5.AEventListener.prototype={add:function(){if(this.added){return }this._add();this.added=true},_add:function(){this.element.addEventListener(this.type,this.listener,false)},remove:function(){if(!this.added){return }this._remove();this.added=false},_remove:function(){this.element.removeEventListener(this.type,this.listener,false)},block:function(){this.blocked=true},unblock:function(){this.blocked=false},cleanup:function(){this.remove();this.element=null;this.listener=null}};var N=y5.AEventListener;if(document.attachEvent){N.prototype._add=function(){this.element.attachEvent("on"+this.type,this.listener)};N.prototype._remove=function(){this.element.detachEvent("on"+this.type,this.listener)}}var H={Mouse:/^mouse|click/,Key:/^key/,Mutation:/^DOM/,HTML:/./},E=[0,1,2];if(y5.is_safari){E=[0,2,3]}if(y5.is_safari||y5.is_opera){delete H.Key}y5.Event=function(Z,Y,X,a){this.type=L(Z||"click");this.element=Y||document;this.params=a||{};this.init();if(typeof X==P){X=true}if(X){this.dispatch()}Q.collect(this)};y5.Event.prototype={init:function(){for(var X in H){if(H[X].test(this.type)){this.eventType=X;break}}},dispatch:function(a,Z,X){if(typeof a==P){a=this.params}Z=Z||true;X=X||true;var Y=document.createEvent(this.eventType+"Events");switch(this.eventType){case"Mouse":Y.initMouseEvent(this.type,Z,X,document.defaultView,a.detail||0,a.screenX||0,a.screenY||0,a.clientX||0,a.clientY||0,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,E[a.button||0],null);break;case"Key":Y.initKeyEvent(this.type,Z,X,document.defaultView,a.ctrlKey||false,a.altKey||false,a.shiftKey||false,a.metaKey||false,a.keyCode||0,a.charCode||0);break;default:Y.initEvent(this.type,Z,X);break}return this.element.dispatchEvent(Y)},cleanup:function(){this.element=null}};var W=y5.Event;if(document.createEventObject){E=[1,4,2];function B(Y,b){for(var X in b){try{var Z;switch(X){case"button":Z=E[b.button||0];break;default:Z=b[X];break}Y[X]=Z}catch(a){}}return Y}W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){if(typeof Y==P){Y=this.params}var X=B(document.createEventObject(),Y);return this.element.fireEvent("on"+this.type,X)}}else{if(!document.createEvent){W.prototype.init=y5.NULL;W.prototype.dispatch=function(Y){try{return this.element[this.type](Y)}catch(X){return false}}}}W.prototype.dispatchEvent=W.prototype.dispatch;(function(){var Y={notifiers:{},observers:{},dispatchNotify:function(Z,c,a){var k=true,g=this.observers[Z];if(g){var j=[].concat(g),d=0,b=j.length;for(;d');this.frame=document.createElement(''; +var b=a.firstChild;P(function(){var c=d.body||d.documentElement;a.webkitCreateShadowRoot&&(c.appendChild(a),c=a.webkitCreateShadowRoot(),Ya.Metrika_shadowAppRoot=c);c.appendChild(b);try{var s=b.contentWindow.document}catch(g){}s&&(c=Math.random(),f[c]=function(a,b,c,g,d){try{c.postMessage&&(a.onmessage=function(c){c=c||a.event;try{var f=JSON.parse(c.data)}catch(s){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=g.getElementsByTagName("head")[0]; +var h=g.createElement("base");h.href=f.data;c.appendChild(h);h=g.createElement("script");h.src=f.data;c.appendChild(h);-1