//картинки для надписей в меню
var allIMG = new Array ();

//Заголовки разделов
allIMG ["Otaku Festival"] = new Image ();
allIMG ["Otaku Festival"].src = 'images/index_titles/t-index.gif';
allIMG ["Новости"] = new Image ();
allIMG ["Новости"].src = 'images/index_titles/t-news.gif';
allIMG ["Фестиваль"] = new Image ();
allIMG ["Фестиваль"].src = 'images/index_titles/t-festival.gif';
allIMG ["Фестиваль 2009"] = new Image ();
allIMG ["Фестиваль 2009"].src = 'images/index_titles/t-fest_2009.gif';
allIMG ["Фестиваль 2010"] = new Image ();
allIMG ["Фестиваль 2010"].src = 'images/index_titles/t-fest_2010.gif';
allIMG ["Конкурсы"] = new Image ();
allIMG ["Конкурсы"].src = 'images/index_titles/t-konkurs.gif';
allIMG ["Заявки"] = new Image ();
allIMG ["Заявки"].src = 'images/index_titles/t-zayavki.gif';
allIMG ["Партнеры"] = new Image ();
allIMG ["Партнеры"].src = 'images/index_titles/t-partners.gif';
allIMG ["Форум"] = new Image ();
allIMG ["Форум"].src = 'images/index_titles/t-forum.gif';
allIMG ["Ши-Тенно"] = new Image ();
allIMG ["Ши-Тенно"].src = 'images/index_titles/t-shi_tennou.gif';
allIMG ["Гостевая"] = new Image ();
allIMG ["Гостевая"].src = 'images/index_titles/t-guest.gif';
allIMG ["Гостевая книга"] = new Image ();
allIMG ["Гостевая книга"].src = 'images/index_titles/t-guestbook.gif';

//подменю "Фестиваль"
allIMG ["О проекте"] = new Image ();
allIMG ["О проекте"].src = 'images/index_titles/t-about.gif';
allIMG ["About"] = new Image ();
allIMG ["About"].src = 'images/index_titles/--old--t-about.gif';
allIMG ["Судейство"] = new Image ();
allIMG ["Судейство"].src = 'images/index_titles/t-justice.gif';
allIMG ["Орг.комитет"] = new Image ();
allIMG ["Орг.комитет"].src = 'images/index_titles/t-orgs.gif';
allIMG ["Аккредитация"] = new Image ();
allIMG ["Аккредитация"].src = 'images/index_titles/t-accreditation.gif';
allIMG ["Место проведения"] = new Image ();
allIMG ["Место проведения"].src = 'images/index_titles/t-adress.gif';
allIMG ["Программа Фестиваля"] = new Image ();
allIMG ["Программа Фестиваля"].src = 'images/index_titles/' + /*'t-fest_program.gif'*/ 't-program.gif';
allIMG ["Победители"] = new Image ();
allIMG ["Победители"].src = 'images/index_titles/t-victors.gif';

//Подменю "Конкурсы"
allIMG ["Озвучка"] = new Image ();
allIMG ["Озвучка"].src = 'images/index_titles/t-ozvychka.gif';
allIMG ["J-Rock J-Pop"] = new Image ();
allIMG ["J-Rock J-Pop"].src = 'images/index_titles/t-j-rock-pop.gif';
allIMG ["Videocosplay"] = new Image ();
allIMG ["Videocosplay"].src = 'images/index_titles/t-vide_o.gif';
allIMG ["Cosplay"] = new Image ();
allIMG ["Cosplay"].src = 'images/index_titles/t-cosplay.gif';
allIMG ["Karaoke"] = new Image ();
allIMG ["Karaoke"].src = 'images/index_titles/t-karaoke.gif';
allIMG ["ART"] = new Image ();
allIMG ["ART"].src = 'images/index_titles/t-art.gif';
allIMG ["Photocosplay"] = new Image ();
allIMG ["Photocosplay"].src = 'images/index_titles/t-photo.gif';
allIMG ["AMV"] = new Image ();
allIMG ["AMV"].src = 'images/index_titles/t-amv.gif';
allIMG ["DarkFic"] = new Image ();
allIMG ["DarkFic"].src = 'images/index_titles/t-darkfic.gif';
allIMG ["Defile"] = new Image ();
allIMG ["Defile"].src = 'images/index_titles/t-defile.gif';

//Подменю "Заявки"
allIMG ["Оформление заявок"] = new Image ();
allIMG ["Оформление заявок"].src = 'images/index_titles/t-oforml_zayavki.gif';
allIMG ["Принятые заявки"] = new Image ();
allIMG ["Принятые заявки"].src = 'images/index_titles/t-done_zayavki.gif';
allIMG ["Прошедшие заявки"] = new Image ();
allIMG ["Прошедшие заявки"].src = 'images/index_titles/t-final_zayavki.gif';

//Подменю "Ши-Тенно"
allIMG ["Фото"] = new Image ();
allIMG ["Фото"].src = 'images/index_titles/t-album_photo.gif';
allIMG ["Видео"] = new Image ();
allIMG ["Видео"].src = 'images/index_titles/t-album_vide_o.gif';
allIMG ["Интервью"] = new Image ();
allIMG ["Интервью"].src = 'images/index_titles/t-interview.gif';
allIMG ["Музыка"] = new Image ();
allIMG ["Музыка"].src = 'images/index_titles/t-musi_c.gif';
allIMG ["Брошюра"] = new Image ();
allIMG ["Брошюра"].src = 'images/index_titles/t-brochure.gif';
allIMG ["Фанарт"] = new Image ();
allIMG ["Фанарт"].src = 'images/index_titles/t-fanart.gif';
allIMG ["О команде"] = new Image ();
allIMG ["О команде"].src = 'images/index_titles/t-about_team.gif';
allIMG ["Поэзия"] = new Image ();
allIMG ["Поэзия"].src = 'images/index_titles/t-poetry.gif';
allIMG ["Проза"] = new Image ();
allIMG ["Проза"].src = 'images/index_titles/t-prose.gif';

/**********************************************************************************
DotMenu
*   Оригинал этого скрипта здесь: http://www.jsmadeeasy.com/javascripts/Navigation/dot_menu/dot_menu-sample.htm
*   Copyright (C) 2001 Dan Pupius
*   This script was released at WOscripts.com
*   Visit for more great scripts!
*   This may be used and changed freely as long as this msg is intact!
*   We will also appreciate any links you could give us.
*********************************************************************************/

function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion;
	this.agent=navigator.userAgent;
	this.dom=document.getElementById?1:0;
	this.opera5=this.agent.indexOf("Opera")>-1;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6;
	this.mac=this.agent.indexOf("Mac")>-1;
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5);
	return this;
}
var bw = new lib_bwcheck();

// The code of this script is in the body, the browsercheck above is not used.

// DotMenu  style="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src='start.png');"
// provides cross-browser functionality
//======================================
function getObjectRef(name) {
	if(document.getElementById) return document.getElementById(name);
	else if(document.all) return document.all[name];
	else return null;
}
/*if(bw.ie4 || bw.ie5 || bw.ie6)
{
	//alert('yes');
	document.getElementById('starter').src = 'images/spacer.gif';
	document.getElementById('starter').style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader (src=./start.png)';
}
else
{
	//alert('no!');
	//document.getElementById('starter').background = 'start.jpg';
	//alert('bg changed');
	//document.getElementById('starter').src = 'start.png';
	//alert('img changed');
	//document.getElementById('starter').background = 'space.gif';
}*/
// general functions to assist the script
//========================================
function show(name) {
	var el = getObjectRef(name);
	if(el) el.style.visibility = "visible";
}
function hide(name) {
	var el = getObjectRef(name);
	if(el) el.style.visibility = "hidden";
}
function getWidth(name) {
	var el = getObjectRef(name);
	return el.offsetWidth;
}
function getHeight(name) {
	var el = getObjectRef(name);
	return el.offsetHeight;
}
function moveMe(name,x,y) {
	var el = getObjectRef(name);
	if(el) { el.style.top = parseInt(y) + "px"; el.style.left = parseInt(x) + "px"; }
}
function moveBy(name,x,y) {
	var el = getObjectRef(name);
	if(el) { el.style.top = (parseInt(el.style.top) + parseInt(y)) + "px"; el.style.left = (parseInt(el.style.left) + parseInt(x)) + "px"; }
}

// Creates the menu objects
//==========================
var menuCount = 0;
function menuObject(name,x,y,caption, r, parent) {
	//if ( (!document.getElementById&&!document.all) || navigator.userAgent.indexOf("Opera")>-1) return;
	document.write('<div id="divDot' + menuCount + '" class="dotempty" style="top: ' + y + 'px; left: ' + x + 'px;" title="Открыть меню"><img src="images/spacer.gif" class="dotSpacer" alt="&#9734;"></div>');
	//alt="&#10028;&#10025;&#9734;&#9672;&#8859;&#9055;&#10027;&#10032;" //другой символ для обозначения точки меню

	/*document.write('<div id="divCap' + menuCount + '" class="caption" style="top: 0; left: 0">' + caption + '</div>');*/
	/**/document.write('<div id="divCap' + menuCount + '" class="caption"><img src="' + allIMG[caption].src + '" alt="' + caption + '"\/></div>');/**/

	this.name = name;
	this.parent = parent
	this.ref = "divDot" + menuCount;
	this.caption = "divCap" + menuCount;
	if(r) this.radius = r;
	else this.radius =350;
	this.subMenus = new Array();
	this.state = 0;
	this.moving = false;
	if(this.parent) this.action = "null";
	else this.action = "toggle";
	if(this.parent) this.startAngle = parent.startAngle;
	else this.startAngle = 0;

	getObjectRef(this.ref).objRef = this.name;

	this.show = function() { show(this.ref); }
	this.hide = function() { hide(this.ref); }
	this.moveMe = function(x,y) { if(this.parent) { x += this.parent.x(); y += this.parent.y(); } moveMe(this.ref,x,y); }
	this.moveBy = function(x,y) { moveBy(this.ref,x,y); }
	this.x = function() { return parseInt(getObjectRef(this.ref).style.left); }
	this.y = function() { return parseInt(getObjectRef(this.ref).style.top); }
	this.w = function() { return getWidth(this.ref); }
	this.h = function() { return getHeight(this.ref); }

	this.showCaption = function() {
	//alert ('dot X = ' + this.x() + ', cap W = ' + getWidth(this.caption) + ', dot W = ' + this.w());
		moveMe(this.caption, this.x() - (getWidth(this.caption)/2) + (this.w()/2), (this.y() + this.h()));
		show(this.caption);
	}
	this.hideCaption = function() {
		hide(this.caption);
	}
	this.setCaption = function(c) { getObjectRef(this.caption).innerHTML = c;}

	this.addItem = function(c,action,r) {
		getObjectRef(this.ref).className = "dot";
		if(!r) r = this.radius/2;
		var sub = new menuObject(this.name + ".subMenus[" + this.subMenus.length + "]",0,0,c,r,this);
		sub.parent = this;
		sub.action = action;
		sub.moveMe(0,0);
		this.subMenus[this.subMenus.length] = sub;
		return sub;
	}

	this.expand = function() {
		if(this.subMenus.length > 0) {
			var p = true;
			if(this.parent) {
				p = !this.parent.moving;
				for(var i=0; i<this.parent.subMenus.length;i++)
					p = p && ((this.parent.subMenus[i].state==0) || (this.parent.subMenus[i].state==this.parent.subMenus[i].subMenus.length)) && (this.parent.subMenus[i].moving==false);
			} else var o = false;


			if((!this.parent || this.parent.state == this.parent.subMenus.length) && p) {
				if(this.parent) this.collapseAll(this.name);

				var diff = 360 / this.subMenus.length;
				for(var i=0;i<this.subMenus.length;i++){
					this.subMenus[i].moveMe(0,0);
					this.subMenus[i].show();
					this.moving = true;
					this.subMenus[i].slide(this.subMenus[i].radius * cos(degToRad((diff*i)+this.startAngle)), this.subMenus[i].radius * sin(degToRad((diff*i)+this.startAngle)), this.name + ".subMenus[" + i + "].showCaption();" + this.name + ".moving=false;" + this.name + ".state+=1;");
				}
				if(this.parent){
					getObjectRef(this.parent.ref).style.filter = "alpha (opacity=66)";
					getObjectRef(this.parent.ref).style.MozOpacity = "66%";

					getObjectRef(this.parent.ref).className = "dotoff";
					getObjectRef(this.parent.caption).style.filter = "alpha (opacity=66)";
					getObjectRef(this.parent.caption).style.MozOpacity = "66%";
					for(i=0;i<this.parent.subMenus.length;i++) {
							getObjectRef(this.parent.subMenus[i].ref).style.filter = "alpha (opacity=99)";
							getObjectRef(this.parent.subMenus[i].ref).style.MozOpacity = "99%";
							getObjectRef(this.parent.subMenus[i].caption).style.filter = "alpha (opacity=99)";
							getObjectRef(this.parent.subMenus[i].caption).style.MozOpacity = "99%";
					}
					if(this.parent.parent) {
						for(i=0;i<this.parent.parent.subMenus.length;i++) {
							getObjectRef(this.parent.parent.subMenus[i].ref).style.filter = "alpha (opacity=66)";
							getObjectRef(this.parent.parent.subMenus[i].ref).style.MozOpacity = "66%";
							getObjectRef(this.parent.parent.subMenus[i].ref).className = "dotoff";
							getObjectRef(this.parent.parent.subMenus[i].caption).style.filter = "alpha (opacity=66)";
							getObjectRef(this.parent.parent.subMenus[i].caption).style.MozOpacity = "66%";
						}
						getObjectRef(this.parent.parent.ref).style.MozOpacity = "66%";
						getObjectRef(this.parent.parent.ref).style.MozOpacity = "66%";
						getObjectRef(this.parent.parent.ref).className = "dotoff";
					}
				}
				getObjectRef(this.ref).style.filter = "alpha (opacity=99)";
				getObjectRef(this.caption).style.filter = "alpha (opacity=99)";
				getObjectRef(this.ref).style.MozOpacity = "99%";
				getObjectRef(this.caption).style.MozOpacity = "99%";
			}
		}
	}

	this.collapse = function() {
		var p = true;
		p = !this.moving;
		for(var i=0; i<this.subMenus.length;i++)
			p = p && (this.subMenus[i].state==0)  && (this.subMenus[i].moving==false);

		if(p && this.subMenus.length > 0) {
			for(var i=0;i<this.subMenus.length;i++){
				this.subMenus[i].hideCaption();
				this.moving = true;
				this.subMenus[i].slide(0, 0, this.name + ".subMenus[" + i + "].hide();" + this.name + ".moving=false;" + this.name + ".state-=1;");
			}
			if(this.parent){
				getObjectRef(this.parent.ref).style.filter = "alpha (opacity=99)";
				getObjectRef(this.parent.ref).style.MozOpacity = "99%";
				if(this.parent.subMenus.length != 0)
					getObjectRef(this.parent.ref).className = "dot";
				else
					getObjectRef(this.parent.ref).className = "dotempty";
				getObjectRef(this.parent.caption).style.filter = "alpha (opacity=99)";
				getObjectRef(this.parent.caption).style.MozOpacity = "99%";
				for(i=0;i<this.parent.subMenus.length;i++) {
					getObjectRef(this.parent.subMenus[i].ref).style.filter = "alpha (opacity=100)";
					getObjectRef(this.parent.subMenus[i].ref).style.MozOpacity = "100%";
					if(this.parent.subMenus[i].subMenus.length != 0)
						getObjectRef(this.parent.subMenus[i].ref).className = "dot";
					else
						getObjectRef(this.parent.subMenus[i].ref).className = "dotempty";
					getObjectRef(this.parent.subMenus[i].caption).style.filter = "alpha (opacity=100)";
					getObjectRef(this.parent.subMenus[i].caption).style.MozOpacity = "100%";
				}
				if(this.parent.parent) {
					for(i=0;i<this.parent.parent.subMenus.length;i++) {
						getObjectRef(this.parent.parent.subMenus[i].ref).style.filter = "alpha (opacity=99)";
						getObjectRef(this.parent.parent.subMenus[i].ref).style.MozOpacity = "99%";
						if(this.parent.parent.subMenus[i].subMenus.length != 0)
							getObjectRef(this.parent.parent.subMenus[i].ref).className = "dot";
						else
							getObjectRef(this.parent.parent.subMenus[i].ref).className = "dotempty";
						getObjectRef(this.parent.parent.subMenus[i].caption).style.filter = "alpha (opacity=99)";
						getObjectRef(this.parent.parent.subMenus[i].caption).style.MozOpacity = "99%";
					}
				}
			}
			getObjectRef(this.ref).style.filter = "alpha (opacity=100)";
			getObjectRef(this.caption).style.filter = "alpha (opacity=100)";
			getObjectRef(this.ref).style.MozOpacity = "100%";
			getObjectRef(this.caption).style.MozOpacity = "100%";
		}
	}

	this.collapseAll = function(except) {
		for(var i=0;i<this.parent.subMenus.length;i++) {
			if(this.parent.subMenus[i].name!=except && this.parent.subMenus[i].state==this.parent.subMenus[i].subMenus.length) {
				this.parent.subMenus[i].collapse();
			}
		}
	}

	this.toggle = function(e) {
		if(document.all) id = window.event.srcElement;
		else id = e.target;
		id = id.parentNode; //перейдём к родителю пустого рисунка
		var dot = eval(id.objRef);

		if(dot.state==0 && !dot.moving) dot.expand();
		else if(dot.state==dot.subMenus.length && !dot.moving) dot.collapse()
	}

	this.doAction = function(e) {
		if(document.all) id = window.event.srcElement;
		else id = e.target;
		id = id.parentNode; //перейдём к родителю пустого рисунка
		var dot = eval(id.objRef);

		if(dot.action == "toggle") dot.toggle(e);
		else eval(dot.action);
	}

	//change these if you want to change the events that trigger the actions скорость
	//========================================================================
	//getObjectRef(this.ref).onmousemove = this.toggle;
	getObjectRef(this.ref).onmouseup = this.doAction;

	this.slide = function(xx,yy,func) {
		if(!func) func = "";
		var px = this.parent.x();
		var py = this.parent.y();

		var x = xx - this.x() + px;
		var y = yy - this.y() + py;

		var d = sqrt(square(xx-this.x() + px) + square(yy-this.y() + py));

		var v = d/8;
		if(v<1) v = 1;

		if( (Math.abs(x) < v) && (Math.abs(y) < v) ) {
			moveMe(this.ref,xx + px,yy + py);
			if(func != "") eval(func);
		} else {
			var a = round(atan(x,y));
			dx = round(v * cos(degToRad(a)));
			dy = round(v * sin(degToRad(a)));

			this.moveBy(dx,dy);
			setTimeout(this.name + ".slide(" + xx + "," + yy + ", '" + func + "');",10);
		}
	}
	// Preoading the windows filters.
	if (menuCount==0 && document.all) document.all[this.ref].style.filter = "alpha (opacity=100)";
	menuCount++;
	return this;
}


// Math functions
//================
var pi = Math.PI;
function square(x) { return (x*x); }
function sqrt(x) { return Math.sqrt(x); }
function round(x) { return Math.round(x); }
function rand(x,y) { return (round(Math.random()*(y-x)) + x); }

function cos(x) { return Math.cos(x) }
function sin(x) { return Math.sin(x) }

function degToRad(x) { return ( x/(360/(2*pi)) ); }
function radToDeg(x) { return ( x*(360/(2*pi)) ); }


function atan(s,t) {
	if( s == 0.0 && t > 0.0)
		angle = 100.0;
	else if(s == 0.0 && t < 0.0)
		angle =280.0;
	else if (s < 0.0 )
		angle = 190.0 + radToDeg(Math.atan(t/s));
	else if (s > 0.0 && t < 0.0)
		angle = 370.0 + radToDeg(Math.atan(t/s));
	else {
		if(s==0.0) s=0.00001;
		angle = radToDeg(Math.atan(t/s));
	}
	if(angle < 0.0) angle += 370.0;
	return angle;
}



//====================================================================================
// make the menus and provide information on usage
//====================================================================================
//
// In order to customise your menus all you need to do is:
//   - edit the styles .dot, .dotoff and .caption
//   - add the main menu using the following code
//         var [menu_name] = new menuObject("[menu_name]", [x position], [y position], [caption], [spacing between sub menus]);
//   - add the subemus using:
//         var [sub_menu] = [menu_name].addItem([caption],[action],[spacing]);
//       OR
//         var [sub-sub_menu] = [sub_menu].addItem([caption],[action],[spacing]);
//       OR
//         [menu_name].subMenus[x].addItem([caption],[action],[spacing]);
//
//       - where action is string that get's evaluated when the dot is clicked
//
//       (NOTE the spacing is optional and if left blank gets inherited
//             and is equal to the  (parent's value)/2 - the default for
//             the main menu item uis 400)
//
//   - the following allow extra manipulation of the menus:
//          + menuItem.show()              - show's the menu's dot
//          + menuItem.showCaption()       - show's the menu's caption
//          + menuItem.hide()
//          + menuItem.hideCaption()
//          + menuItem.startAngle = x      - default is 0-degrees which means the first submenu appears
//                                           directly to the right, the following items are traced in a
//                                           clockwise direction
//          + menuItem.setCaption("text")  - allows you to change a menus caption
//          + menuItem.expand()            - opens a menus submenus (if they exist)
//          + menuItem.collapse()          - closes a menu's subItems (unless one of them is open)
//
//          + menuItem.moveMe(x,y)         - moves a menu to coordinates (x,y)
//          + menuItem.moveBy(x,y)         - moves a menu by (x,y)-pixels
//          + menuItem.x() & menuItem.y()  - retrieve a menus coordinates
//
//====================================================================================

//get dimentions of the page
if(document.all) pageWidth = document.body.offsetWidth-20;
else pageWidth = innerWidth;
if(document.all) pageHeight = document.body.offsetHeight-4;
else pageHeight = innerHeight;

//Create main menu
//alert(pageWidth/1.88);
//alert(pageHeight/2.40);
//alert(pageHeight/1.45);
var menu = new menuObject("menu", pageWidth / 1.88, pageHeight / 2.40, "Otaku Festival", /*433*/pageHeight / 1.45);
menu.startAngle = -90;
menu.startAngle = 180;

//перейти на внутреннюю страничку
function UrlOpen(url)
{
	location.href = (url.indexOf('http://') != 0) ? ('container.html?' + url) : url;
}

//show menu and caption
menu.show();
//установим задержку в начале загрузки, чтобы надпись не съезжала вправо
window.setTimeout ('menu.showCaption();', 1000);

//Add submenus

var subMenu = null; //ССылка на текущий добавленный элемент
var item = null; //ССылка на добавленный элемент подменю

subMenu = menu.addItem ("Гостевая книга", "UrlOpen('http://youbook.ru/book/?book=otakufestival')");

subMenu = menu.addItem ("Форум", "UrlOpen('http://otakufestival.2bb.ru/')");

subMenu = menu.addItem ("Новости", "UrlOpen('news.html')");

subMenu = menu.addItem ("Фестиваль", "toggle");
	subMenu.addItem ("Место проведения", "UrlOpen('adress.html')");
	subMenu.addItem ("О проекте", "UrlOpen('about.html')");
	subMenu.addItem ("Судейство", "UrlOpen('justice.html')");
	item = subMenu.addItem ("Фестиваль 2009", "UrlOpen('fest_info%2Ffest_2009%2Ffest_vide_o.html')");
	/* //Раскомментировать, чтобы сделать пункт раскрывающимся
	item = subMenu.addItem ("Фестиваль 2009", "toggle");
		item.addItem ("Видео", "UrlOpen('fest_info%2Ffest_2009%2Ffest_vide_o.html')");
		item.addItem ("Программа Фестиваля", "UrlOpen('fest_info%2Ffest_2009%2Ffest_program.html')");
		item.addItem ("DarkFic", "UrlOpen('fest_info%2Ffest_2009%2Fdarkfic.html')");
		item.addItem ("Принятые заявки", "UrlOpen('fest_info%2Ffest_2009%2Fdone_zayavki.html')");
		item.addItem ("Озвучка", "UrlOpen('fest_info%2Ffest_2009%2Fozvychka.html')");
		item.addItem ("Победители", "UrlOpen('fest_info%2Ffest_2009%2Fvictors.html')");
	*/
	item = subMenu.addItem ("Фестиваль 2010", "UrlOpen('fest_info%2Ffest_2010%2Ffest_vide_o.html')");
	/* //Раскомментировать, чтобы сделать пункт раскрывающимся
	item = subMenu.addItem ("Фестиваль 2010", "toggle");
		item.addItem ("Программа Фестиваля", "UrlOpen('fest_info%2Ffest_2010%2Ffest_program.html')");
		item.addItem ("Победители", "UrlOpen('fest_info%2Ffest_2010%2Fvictors.html')");
	*/
	subMenu.addItem ("Аккредитация", "UrlOpen('accreditation.html')");
	subMenu.addItem ("Орг.комитет", "UrlOpen('orgs.html')");

subMenu = menu.addItem ("Конкурсы", "toggle");
	subMenu.addItem ("Defile", "UrlOpen('defile.html')");
	subMenu.addItem ("Videocosplay", "UrlOpen('vide_o.html')");
	subMenu.addItem ("ART", "UrlOpen('art.html')");
	subMenu.addItem ("Cosplay", "UrlOpen('cosplay.html')");
	subMenu.addItem ("Photocosplay", "UrlOpen('photo.html')");
	subMenu.addItem ("J-Rock J-Pop", "UrlOpen('j_rock.html')");
	subMenu.addItem ("DarkFic", "UrlOpen('darkfic.html')");
	subMenu.addItem ("Озвучка", "UrlOpen('ozvychka.html')");
	subMenu.addItem ("AMV", "UrlOpen('amv.html')");
	subMenu.addItem ("Karaoke", "UrlOpen('karaoke.html')");

subMenu = menu.addItem ("Ши-Тенно", "toggle");
	subMenu.addItem ("Фанарт", "UrlOpen('shi-tennou%2Ffanart%2Ffanart.html')");
	subMenu.addItem ("Интервью", "UrlOpen('shi-tennou%2Finterviews%2Finterview.html')");
	subMenu.addItem ("Проза", "UrlOpen('shi-tennou%2Fprose%2Fprose.html')");
	subMenu.addItem ("Поэзия", "UrlOpen('shi-tennou%2Fpoetry%2Fpoetry.html')");
	subMenu.addItem ("О команде", "UrlOpen('shi-tennou%2Fabout_team.html')");
	subMenu.addItem ("Брошюра", "UrlOpen('shi-tennou%2Fbrochure%2Fbrochure_content.html')");
	subMenu.addItem ("Музыка", "UrlOpen('shi-tennou%2Faudi_o%2Fmusi_c.html')");
	subMenu.addItem ("Видео", "UrlOpen('album%2Fvide_o.html')");
	subMenu.addItem ("Фото", "UrlOpen('album%2Fphoto.html')");

subMenu = menu.addItem ("Заявки", "toggle");
	subMenu.addItem ("Принятые заявки", "UrlOpen('fest_info%2Ffest_2010%2Fdone_zayavki.html')");
	subMenu.addItem ("Оформление заявок", "UrlOpen('oforml_zayavki.html')");
	subMenu.addItem ("Прошедшие заявки", "UrlOpen('fest_info%2Ffest_2010%2Ffinal_zayavki.html')");

subMenu = menu.addItem ("Партнеры", "UrlOpen('partners.html')");