/* dyn_menu_gen_1.js */

var SHOW='visible';
var INHERIT='inherit';
var HIDE='hidden';
var NONE='none';
var NULL='null';
var HORIZONTAL='horizontal';
var VERTICAL='vertical';
var CENTER='center';
var LEFT='left';
var RIGHT='right';
var YES='yes';
var NO='no';
var AUTO='auto';
var WINDOWS='windows';
var TRY_LEFT='try_left';
var TRY_AUTO='try_auto';
var TRY_RIGHT= 'try_right';
var menu=new Array();
var do_not_show=false;
var ICN_ARROW_LEFT=0;
var ICN_ARROW_RIGHT=1;
var ICN_ARROW_DOWN=2;
var ICN_LINK_LEFT=3;
var ICN_LINK_RIGHT=4;
var ICN_ONE_PIXEL=5;
if (!pics_url)var pics_url='/Pics/';
var icon=new Array(new Image(),new Image(),new Image(),new Image(),new Image(),new Image());
icon[ICN_ARROW_LEFT].src=pics_url+"spacer.gif";
icon[ICN_ARROW_RIGHT].src=pics_url+"spacer.gif";
icon[ICN_ARROW_DOWN].src=pics_url+"spacer.gif";
icon[ICN_LINK_LEFT].src=pics_url+"spacer.gif";
icon[ICN_LINK_RIGHT].src=pics_url+"spacer.gif";
icon[ICN_ONE_PIXEL].src=pics_url+"spacer.gif";
var win_style_1='<table border="0" cellpadding="0" cellspacing="0" width="';
var win_style_2='" height="';
var win_style_3='"><tr><td rowspan="4" width="1" bgcolor="#C0C0C0"><img src="'+icon[ICN_ONE_PIXEL].src+'"></td>'+
'<td colspan="3" height="1" bgcolor="#C0C0C0"><img src="'+icon[ICN_ONE_PIXEL].src+'"></td>'+
'<td rowspan="4" width="1" bgcolor="#000000"><img src="'+icon[ICN_ONE_PIXEL].src+'"></td></tr>'+
'<tr><td rowspan="2" width="1" bgcolor="#FFFFFF"><img src="'+icon[ICN_ONE_PIXEL].src+'"></td>'+
'<td height="1" bgcolor="#FFFFFF"><img src="'+icon[ICN_ONE_PIXEL].src+'"></td>'+
'<td rowspan="2" width="1" bgcolor="#808080"><img src="'+icon[ICN_ONE_PIXEL].src+'"></td></tr>'+
'<tr><td width="';
var win_style_4='" height="';
var win_style_5='" bgcolor="#C0C0C0"><img src="'+icon[ICN_ONE_PIXEL].src+'"></td></tr>'+
'<tr><td colspan="3" height="1" bgcolor="#808080"><img src="'+icon[ICN_ONE_PIXEL].src+'"></td></tr>'+
'<tr><td colspan="5" height="1" bgcolor="#000000"><img src="'+icon[ICN_ONE_PIXEL].src+'"></td></tr></table>';
function check_parameter(procedure,parameter,value,valid){
string="Menu Generator 2.0\n\n";
if(procedure.substr(0,8)!="generate")string+="Error:\tinvalid parameter on "+procedure+"-definition\n\n";
if(procedure=="generate1")string+="Error:\tparameter not specified or invalid value!\n\tPlease specify correctly in definition-file either at instance- or menu-level!\n\n"; 
if(procedure=="generate2")string+="Error:\tparameter not specified or invalid value!\n\tPlease specify correctly in definition-file either at instance- or menu- or entry-level!\n\n"; 
string+=" Parameter:\t"+parameter+"\n";
string+=" Value: \t"+value+"\n";
string+=" Allowed: \t";
flag = true;
for(var i=0;i<valid.length;i++){
if(valid[i]=="<number>"){
string+="<number> / ";
if(isNaN(value)!=true)flag=false;
}else{
string+=valid[i]+" / ";
if (value==valid[i])flag=false;
}}
string=string.substr(0,string.length-3);
if(flag!=false)alert(string);
}
function create_instance(margin_top,margin_side,alignment,popup_side,pref_sel,pref_deact,pref_lnk,pref_netscape,menu_direction,menu_alignment,outer_margin,inner_margin,content,style,target,width,height,margin,background,selected_background,arrows,selectable,mark_links,deactivate){
check_parameter("instance","margin_top",margin_top,new Array("<number>"));
check_parameter("instance","margin_side",margin_side,new Array("<number>"));
check_parameter("instance","alignment",alignment,new Array("center","left","right"));
check_parameter("instance","popup_side",popup_side,new Array("auto","left","right","try_auto","try_left","try_right"));
if(menu_direction)check_parameter("instance","menu_direction",menu_direction,new Array("horizontal","vertical","none"));
if(menu_alignment)check_parameter("instance","menu_alignment",menu_alignment,new Array("left","center","right","none"));
if(outer_margin)check_parameter("instance","outer_margin",outer_margin,new Array("<number>","windows","none"));
if(inner_margin)check_parameter("instance","inner_margin",inner_margin,new Array("<number>","windows","none"));
if(width)check_parameter("instance","width",width,new Array("<number>","none"));
if(height)check_parameter("instance","height",height,new Array("<number>","windows","none"));
if(margin)check_parameter("instance","margin",margin,new Array("<number>","none"));
if(arrows)check_parameter("instance","arrows",arrows,new Array("yes","no","none"));
if(selectable)check_parameter("instance","selectable",selectable,new Array("yes","no","none"));
if(mark_links)check_parameter("instance","mark_links",mark_links,new Array("yes","no","none"));
if(deactivate)check_parameter("instance","deactivate",deactivate,new Array("yes","no","auto","none"));
this.margin_top=margin_top;
this.margin_side=margin_side;
this.alignment=alignment;
this.popup_side=popup_side;
this.pref_sel=(pref_sel==NONE)?'':pref_sel;
this.pref_lnk=(pref_lnk==NONE)?'':pref_lnk;
this.pref_deact=(pref_deact==NONE)?'':pref_deact;
this.pref_netscape=(pref_netscape==NONE)?'':pref_netscape;
this.menu_direction=(menu_direction)?menu_direction:NONE;
this.menu_alignment=(menu_alignment)?menu_alignment:NONE;
if((outer_margin)||(!isNaN(outer_margin)))this.outer_margin=(outer_margin==WINDOWS)?-6:outer_margin;else this.outer_margin=NONE;
if((inner_margin)||(!isNaN(inner_margin)))this.inner_margin=(inner_margin==WINDOWS)?3:inner_margin;else this.inner_margin=NONE;
this.content=(content)?content:NONE;
this.style=(style)?style:NONE;
this.target=(target)?target:NONE;
this.width=((width)||(!isNaN(width)))?width:NONE;
if(height)this.height=(height==WINDOWS)?17:height;else this.height=NONE;
this.margin=((margin)||(!isNaN(margin)))?margin:NONE;
if(background)this.background=(background==WINDOWS)?'#C0C0C0':background;else this.background=NONE;
if(selected_background)this.selected_background=(selected_background==WINDOWS)?'#000080':selected_background;else this.selected_background=NONE;
this.arrows=(arrows)?arrows:NONE;
this.selectable=(selectable)?selectable:NONE;
this.mark_links=(mark_links)?mark_links:NONE;
this.deactivate=(deactivate)?deactivate:NONE;
}
function create_menu(menu_direction,menu_alignment,outer_margin,inner_margin,content,style,target,width,height,margin,background,selected_background,arrows,selectable,mark_links,deactivate){
if(menu_direction)check_parameter("menu","menu_direction",menu_direction,new Array("horizontal","vertical","none"));
if(menu_alignment)check_parameter("menu","menu_alignment",menu_alignment,new Array("left","center","right","none"));
if(outer_margin)check_parameter("menu","outer_margin",outer_margin,new Array("<number>","windows","none"));
if(inner_margin)check_parameter("menu","inner_margin",inner_margin,new Array("<number>","windows","none"));
if(width)check_parameter("menu","width",width,new Array("<number>","none"));
if(height)check_parameter("menu","height",height,new Array("<number>","windows","none"));
if(margin)check_parameter("menu","margin",margin,new Array("<number>","none"));
if(arrows)check_parameter("menu","arrows",arrows,new Array("yes","no","none"));
if(selectable)check_parameter("menu","selectable",selectable,new Array("yes","no","none"));
if(mark_links)check_parameter("menu","mark_links",mark_links,new Array("yes","no","none"));
if(deactivate)check_parameter("menu","deactivate",deactivate,new Array("yes","no","auto","none"));
this.menu_direction=(menu_direction)?menu_direction:NONE;
this.menu_alignment=(menu_alignment)?menu_alignment:NONE;
if((!outer_margin)&&(isNaN(outer_margin)))outer_margin=NONE;
this.outer_margin=(content==WINDOWS)?-6:outer_margin;
if((!inner_margin)&&(isNaN(inner_margin)))inner_margin=NONE; 
this.inner_margin=(content==WINDOWS)?3:inner_margin;
this.content=(content)?content:NONE;
this.style=(style)?style:NONE;
this.target=(target)?target:NONE;
this.width=(width)?width:NONE;
this.height=(height)?height:NONE;
this.margin=(margin)?margin:NONE;
if(background)this.background=(background==WINDOWS)?'#C0C0C0':background;
else this.background=NONE;
if(selected_background)this.selected_background=(selected_background==WINDOWS)?'#000080':selected_background;
else this.selected_background=NONE;
this.selectable=(selectable)?selectable:NONE;
this.mark_links=(mark_links)?mark_links:NONE;
this.arrows=(arrows)?arrows:NONE;
this.deactivate=(deactivate)?deactivate:NONE;
this.top=NONE;
this.left=NONE;
this.bottom=NONE;
this.right=NONE;
this.menu_width=NONE;
this.menu_height=NONE;
this.parent_instance=NONE;
this.top_parent_menu=NONE;
this.parent_menu=NONE;
this.parent_entry=NONE;
this.temp=NONE;
this.popup_side_diff=NONE;
this.popup_side=NONE;
this.popup_side_now=NONE;
}
function create_entry(text,link,tooltip,child,style,target,width,height,margin,background,selected_background,arrows,selectable,mark_links,deactivate){
if(child)check_parameter("entry","child",child,new Array("<number>","none"));
if(width)check_parameter("entry","width",width,new Array("<number>","none"));
if(height)check_parameter("entry","height",height,new Array("<number>","windows","none"));
if(margin)check_parameter("entry","margin",margin,new Array("<number>","none"));
if(arrows)check_parameter("entry","arrows",arrows,new Array("yes","no","none"));
if(selectable)check_parameter("entry","selectable",selectable,new Array("yes","no","none"));
if(mark_links)check_parameter("entry","mark_links",mark_links,new Array("yes","no","none"));
if(deactivate)check_parameter("entry","deactivate",deactivate,new Array("yes","no","auto","none"));
if(!link)check_parameter("entry","link",link,new Array("<URL>","none"));
this.text=text;
this.link=link;
this.tooltip=(tooltip)?tooltip:NONE;
this.child=(child)?child:NONE;
this.style=(style)?style:NONE;
this.target=(target)?target:NONE;
this.width=(width)?width:NONE;
if(height)this.height=(height==WINDOWS)?17:height; 
else this.height=NONE;
this.margin=(margin)?margin:NONE;
if(background)this.background=(background==WINDOWS)?'#C0C0C0':background;
else this.background=NONE;
if(selected_background)this.selected_background=(selected_background==WINDOWS)?'#000080':selected_background;
else this.selected_background=NONE;
this.arrows=(arrows)?arrows:NONE;
this.selectable=(selectable)?selectable:NONE;
this.mark_links=(mark_links)?mark_links:NONE;
this.deactivate=(deactivate)?deactivate:NONE;
this.top=NONE;
this.left=NONE;
this.bottom=NONE;
this.right=NONE;
this.popup_side_left=NONE;
this.popup_side_right=NONE;
this.image=NONE;
this.selected_image=NONE;
}

/* dyn_menu_lst.js */



// menu definitions

// menu 1

menu[0] = new Array();
menu[0][0] = new create_instance(227,290,CENTER,TRY_RIGHT,'sel_','deact_','lnk_','ns_', VERTICAL,LEFT,1,1,NONE, 'entry','_self',115,22,1,"#F2D381","#FFFFFF",NO,NO,NO,NO);

menu[0][1] = new Array();
menu[0][1][0] = new create_menu(HORIZONTAL,CENTER,NONE,NONE,NONE,NONE,NONE,NONE,NONE,NONE,"http://www.onlinecasinos.ru/Pics/topmenuback.gif","http://www.onlinecasinos.ru/Pics/topmenuback.gif",NO,NONE,NONE,NO);
menu[0][1][1] = new create_entry('Как начать' ,'/start.htm' ,'<b>Как начать</b><br>рекомендации начинающим игрокам',2,NONE,NONE,85);
menu[0][1][2] = new create_entry('Казино' ,'/casinos.htm' ,'<b>Казино</b><br>поставщики софта и их казино',3,NONE,NONE,75);
menu[0][1][3] = new create_entry('Правила игр' ,'/rules.htm' ,'<b>Правила игр</b><br>правила основных игр, играемых в казино',4,NONE,NONE,95);
menu[0][1][4] = new create_entry('Стратегии' ,'/strategy.htm' ,'<b>Стратегии</b><br>оптимальные стратегии игры',5,NONE,NONE,85);
menu[0][1][5] = new create_entry('Бонусы' ,'/bonuses.htm' ,'<b>Бонусы</b><br>бесплатные деньги от казино',6, NONE,NONE,80);
menu[0][1][6] = new create_entry('Информация' ,'/info.htm' ,'<b>Информация</b><br>советы, рекомендации и многое другое',7,NONE,NONE,100);

menu[0][2] = new Array();
menu[0][2][0] = new create_menu();
menu[0][2][1] = new create_entry('Приготовления' ,'/prepare.htm' ,'<b>Приготовления</b><br>что нужно, чтобы начать играть' );
menu[0][2][2] = new create_entry('Регистрация' ,'/register.htm' ,'<b>Регистрация</b><br>прохождение процедуры регистрации' );
menu[0][2][3] = new create_entry('Депозит' ,'/deposit.htm' ,'<b>Депозит</b><br>как пополнить Ваш счет в казино' );
menu[0][2][4] = new create_entry('Снятие денег' ,'/withdraw.htm' ,'<b>Снятие денег</b><br>как получить выигрыш' );
menu[0][2][5] = new create_entry('Чеки' ,'/check.htm' ,'<b>Чеки</b><br>что делать с полученным чеком' );

menu[0][3] = new Array();
menu[0][3][0] = new create_menu(NONE,NONE,NONE,NONE,NONE,NONE,NONE,150,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][3][1] = new create_entry('ГлобоТех (Россия)' ,'/globo.htm' ,'<b>ГлобоТех (GloboTech)</b><br>ведущий отечественный поставщик софта');
menu[0][3][2] = new create_entry('Российские казино' ,'/russian.htm' ,'<b>Российские казино</b><br>для тех, кто не знает английский');
menu[0][3][3] = new create_entry('Cryptologic' ,'/crypto.htm' ,'<b>Криптолоджик</b><br>отличный софт с ежемесячными бонусами!' ,8);
menu[0][3][4] = new create_entry('Microgaming' ,'/micro.htm' ,'<b>Микрогейминг</b><br>лидер с множеством отличных казино',13);
menu[0][3][5] = new create_entry('Bossmedia' ,'/boss.htm' ,'<b>Боссмедия</b><br>отстаующий бывший лидер',9);
menu[0][3][6] = new create_entry('PlayTech' ,'/playtech.htm' ,'<b>Плейтек</b><br>крупная и активная компания',10);
menu[0][3][7] = new create_entry('Rival' ,'/rival.htm' ,'<b>Райвэл</b><br>быстрорастущий новичок',11);
menu[0][3][8] = new create_entry('Cassava' ,'/cassava.htm' ,'<b>Кассава</b><br>крупнейшее и авторитетное казино!',12);
menu[0][3][9] = new create_entry('Прочие для СНГ' ,'/othercis.htm' ,'<b>Прочие казино для СНГ</b><br>еще несколько честных казино для СНГ');
menu[0][3][10] = new create_entry('OddsOn' ,'/oddson.htm' ,'<b>ОддсОн</b><br>казино с хорошей репутацией',14);
menu[0][3][11] = new create_entry('RTG' ,'/rtg.htm' ,'<b>РТГ</b><br>какой русские не любит быстрой игры?',15);
menu[0][3][12] = new create_entry('Прочие казино' ,'/other.htm' ,'<b>Прочие казино</b><br>ну если у вас так много времени...');
menu[0][3][13] = new create_entry('Спецпроекты:' , NONE ,'<b>Специальные разделы сайта</b><br>подробно о различных видах казино');
menu[0][3][14] = new create_entry('Покер-румы' ,'http://www.poker-online.ru/reviews.htm' ,'<b>Покер-румы</b><br>любителям клубного покера');
menu[0][3][15] = new create_entry('Русские казино' ,'http://russian.onlinecasinos.ru' ,'<b>Русские интернет казино</b><br>спецпроект по отечественным казино');
menu[0][3][16] = new create_entry('Лучшие казино' ,'http://best.onlinecasinos.ru' ,'<b>Лучшие онлайн казино</b><br>любимые казино мои и других игроков');
menu[0][3][17] = new create_entry('Мобильные казино' ,'http://mobile.onlinecasinos.ru' ,'<b>Мобильные казино и покер</b><br>всё о казино и покере в вашем телефоне');
menu[0][3][18] = new create_entry('Видео казино' ,'http://video.onlinecasinos.ru' ,'<b>Видео казино</b><br>казино с живыми дилерами, почти как реальные');
menu[0][3][19] = new create_entry('Вебмастеру' ,'http://webmaster.onlinecasinos.ru' ,'<b>Азартному вебмастеру</b><br>как создать свой сайт');

menu[0][4]     = new Array();
menu[0][4][0] = new create_menu(NONE,NONE,NONE,NONE,NONE,NONE,NONE,150,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE,NONE,NONE);
menu[0][4][1] = new create_entry('Блэкджек' ,'/bd.htm' ,'<b>Блэкджек</b><br>самая популярная игра в казино!',16 );
menu[0][4][2] = new create_entry('Рулетка' ,'/roulet.htm' ,'<b>Рулетка</b><br>непременный атрибут любого казино' );
menu[0][4][3] = new create_entry('Кости' ,'/craps.htm' ,'<b>Кости</b><br>древнейшая азартная игра');
menu[0][4][4] = new create_entry('Баккара' ,'/baccara.htm' ,'<b>Баккара</b><br>почуствуй себя Бондом!' );
menu[0][4][5] = new create_entry('Sic Bo' ,'/sicbo.htm' ,'<b>Сик Бо</b><br>древняя китайская игра' );
menu[0][4][6] = new create_entry('Pai Gow Poker' ,'/paigow.htm' ,'<b>Покер Пай Гоу</b><br>восток встечается с западом' );
menu[0][4][7] = new create_entry('Caribbean Poker' ,'/caribbean.htm' ,'<b>Карибский покер</b><br>шанс сорвать джекпот!' );
menu[0][4][8] = new create_entry('Трехкарточный покер' ,'/three_card.htm' ,'<b>Трехкарточный покер</b><br>и снова покер' );
menu[0][4][9] = new create_entry('Let it Ride' ,'/letitride.htm' ,'<b>Лет ит райд</b><br>еще одна покерная игра' );
menu[0][4][10] = new create_entry('Red Dog' ,'/reddog.htm' ,'<b>Красная собака</b><br>просто, но со вкусом' );
menu[0][4][11] = new create_entry('Casino War' ,'/casinowar.htm' ,'<b>Война казино</b><br>в Пьяницу можно играть и на деньги' );
menu[0][4][12] = new create_entry('Кено' ,'/keno.htm' ,'<b>Кено</b><br>Спортлото возвращается!' );
menu[0][4][13] = new create_entry('Видеопокер' ,'/vp.htm' ,'<b>Видеопокер</b><br>отличные шансы на выигрыш!' );
menu[0][4][14] = new create_entry('Слоты' ,'/slots.htm' ,'<b>Слоты</b><br>для любителей сорвать джекпот' );
menu[0][4][15] = new create_entry('Спецпроекты:' , NONE ,'<b>Специальные разделы сайта</b><br>подробно о различных видах казино');
menu[0][4][16] = new create_entry('Слоты онлайн' ,'http://slot.onlinecasinos.ru/' ,'<b>Слоты онлайн</b><br>спецпроект по игровым автоматам');
menu[0][4][17] = new create_entry('Бинго' ,'http://bingo.onlinecasinos.ru/' ,'<b>Бинго</b><br>всё про бинго, лото и лотереи' );
menu[0][4][18] = new create_entry('Клубный покер' ,'http://www.poker-online.ru/rules.htm' ,'<b>Клубный покер</b><br>покер против других игроков' );

menu[0][5] = new Array();
menu[0][5][0] = new create_menu();
menu[0][5][1] = new create_entry('Блэкджек' ,'/strbd.htm' ,'<b>Блэкджек</b><br>базовая стратегия игры в блэкджек' );
menu[0][5][2] = new create_entry('Видеопокер' ,'/strvp.htm' ,'<b>Видеопокер</b><br>базовая стратегия игры в видеопокер',17 );
menu[0][5][3] = new create_entry('Pai Gow Poker' ,'/strpaigow.htm' ,'<b>Покер Пай Гоу</b><br>разделяй и властвуй!' );
menu[0][5][4] = new create_entry('Caribbean Poker' ,'/strcaribbean.htm' ,'<b>Карибский покер</b><br>когда делать ставку?' );
menu[0][5][5] = new create_entry('Let it Ride' ,'/strletitride.htm' ,'<b>Лет ит райд</b><br>снимать ставку или нет?' );
menu[0][5][6] = new create_entry('Рулетка' ,'/strroulet.htm' ,'<b>Рулетка</b><br>безвыигрышные стратегии ;)' );
menu[0][5][7] = new create_entry('Прочие' ,'/strother.htm' ,'<b>Прочие</b><br>советы по ставкам' );
menu[0][5][8] = new create_entry('Клубный покер' ,'http://www.poker-online.ru/strategy.htm' ,'<b>Клубный покер</b><br>стратегия игры в техасский холдем' );

menu[0][6] = new Array();
menu[0][6][0] = new create_menu(NONE,NONE,NONE,NONE,NONE,NONE,NONE,245,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][6][1] = new create_entry('Без депозита' ,'/nodep.htm' ,'<b>Без депозита</b><br>все любят халяву!' );
menu[0][6][2] = new create_entry('Фиксированные (на первый депозит)' ,'/match.htm' ,'<b>На первый депозит</b><br>бонусы для серьезных игроков');
menu[0][6][3] = new create_entry('Процентные (на первый депозит)' ,'/percent.htm' ,'<b>Процентные бонусы</b><br>большой депозит - большие бонусы' );
menu[0][6][4] = new create_entry('Ежемесячные' ,'/monthly.htm' ,'<b>Ежемесячные</b><br>любимый вид бонуса!' );
menu[0][6][5] = new create_entry('Безрисковые' ,'/riskfree.htm' ,'<b>Безрисковые</b><br>проиграть невозможно!' );
menu[0][6][6] = new create_entry('Комп-поинты' ,'/comps.htm' ,'<b>Комп-поинты</b><br>мы играем, а денежки идут!' );
menu[0][6][7] = new create_entry('Призы, турниры' ,'/prizes.htm' ,'<b>Призы, турниры</b><br>обычно мелочь, но приятно!' );
menu[0][6][8] = new create_entry('Refer-a-Friend' ,'/raf.htm' ,'<b>Порекомендуй друга</b><br>заработай на друзьях!' );
menu[0][6][9] = new create_entry('Бонус за голосования' ,'/voting.htm' ,'<b>Бонус за голосования</b><br>ваш голос дорогого стоит!' );
menu[0][6][10] = new create_entry('Бонус на специальные виды депозита' ,'/methods.htm' ,'<b>Бонус на специальные виды депозита</b><br>есть, да не про нашу честь :(' );
menu[0][6][11] = new create_entry('Поиск бонусов' ,'/bonus-search.htm' ,'<b>Поиск бонусов</b><br>удобный поиск по базе бонусов' );
menu[0][6][12] = new create_entry('Покерные бонусы' ,'http://www.poker-online.ru/bonuses.htm' ,'<b>Покерные бонусы</b><br>Покер - игра для настоящих мужчин!' );

menu[0][7] = new Array();
menu[0][7][0] = new create_menu(NONE,LEFT,NONE,NONE,NONE,NONE,NONE,145,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][7][1] = new create_entry('Выбор казино' ,'/choice.htm' ,'<b>Выбор казино</b><br>сделай правильный выбор!' );
menu[0][7][2] = new create_entry('Лучшие казино' ,'/thebest.htm' ,'<b>Лучшие казино</b><br>мой личный топ');
menu[0][7][3] = new create_entry('Черный список' ,'/blacklist.htm' ,'<b>Черный список</b><br>сдесь лучше не играть' );
menu[0][7][4] = new create_entry('Выплаты' ,'/payout.htm' ,'<b>Выплаты</b><br>выбери самое выгодное казино!' );
menu[0][7][5] = new create_entry('Советы' ,'/advices.htm' ,'<b>Советы</b><br>как получить удовольствие от игры и выиграть');
menu[0][7][6] = new create_entry('Варианты заработка' ,'/addmoney.htm' ,'<b>Дополнетельный заработок</b><br>зарабатывай играючи!' );
menu[0][7][7] = new create_entry('Хитрости' ,'/tricks.htm' ,'<b>Хитрости</b><br>гору нельзя перепрыгнуть, но ее можно обойти!' );
menu[0][7][8] = new create_entry('Частые вопросы' ,'/faq.htm' ,'<b>Частые вопросы</b><br>здесь лежат ответы');
menu[0][7][9] = new create_entry('Статьи' ,'/articles.htm' ,'<b>Статьи</b><br>рекомендации лучших казиноведов' );
menu[0][7][10] = new create_entry('Софт и книги' ,'/soft_books.htm' ,'<b>Софт и книги</b><br>учитесь играть профессионально' );
menu[0][7][11] = new create_entry('Играть' ,'/play.htm' ,'<b>Играть</b><br>здесь можно немного потренироваться' );
menu[0][7][12] = new create_entry('Рассылка' ,'/subscribe.htm' ,'<b>Рассылка</b><br>архив почтовой рассылки' );
menu[0][7][13] = new create_entry('Новости' ,'/news.htm' ,'<b>Новости</b><br>новости сайта и игровой индустрии' );
menu[0][7][14] = new create_entry('Ссылки' ,'/links.htm' ,'<b>Ссылки</b><br>ссылки на другие полезные сайты');
menu[0][7][15] = new create_entry('Словарь-глоссарий' ,'/dict.htm' ,'<b>Словарь-глоссарий</b><br>игровые термины на двух языках' );
menu[0][7][16] = new create_entry('Контроль честности' ,'/honesty_control.htm' ,'<b>Контроль честности</b><br>что это такое и проверка MD5');
menu[0][7][17] = new create_entry('Видео' ,'/vods/index.htm' ,'<b>Видео</b><br>видео-учебники по игре в онлайне' );
menu[0][7][18] = new create_entry('Форум' ,'http://forum.poker.ru/forum/57-onlajn-kazino/' ,'<b>Форум</b><br>есть что сказать? Вам сюда' );

menu[0][8] = new Array();
menu[0][8][0] = new create_menu(NONE,CENTER,NONE,NONE,NONE,NONE,NONE,120,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][8][1] = new create_entry('Обзор казино' ,'/crypto1.htm' ,'<b>Обзор казино</b><br>мой личный опыт' );
menu[0][8][2] = new create_entry('Сводная таблица' ,'/cryptotb.htm' ,'<b>Таблица</b><br>вся информация в одном месте');

menu[0][9] = new Array();
menu[0][9][0] = new create_menu(NONE,CENTER,NONE,NONE,NONE,NONE,NONE,120,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][9][1] = new create_entry('Обзор казино' ,'/boss1.htm' ,'<b>Обзор казино</b><br>мой личный опыт' );
menu[0][9][2] = new create_entry('Сводная таблица' ,'/bosstb.htm' ,'<b>Таблица</b><br>вся информация в одном месте');

menu[0][10] = new Array();
menu[0][10][0] = new create_menu(NONE,CENTER,NONE,NONE,NONE,NONE,NONE,120,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][10][1] = new create_entry('Обзор казино' ,'/playtech1.htm' ,'<b>Обзор казино</b><br>мой личный опыт' );
menu[0][10][2] = new create_entry('Сводная таблица' ,'/playtechtb.htm' ,'<b>Таблица</b><br>вся информация в одном месте');

menu[0][11] = new Array();
menu[0][11][0] = new create_menu(NONE,CENTER,NONE,NONE,NONE,NONE,NONE,120,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][11][1] = new create_entry('Сводная таблица' ,'/btdtb.htm' ,'<b>Таблица</b><br>вся информация в одном месте' );

menu[0][12] = new Array();
menu[0][12][0] = new create_menu(NONE,CENTER,NONE,NONE,NONE,NONE,NONE,120,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][12][1] = new create_entry('Сводная таблица' ,'/cassavatb.htm' ,'<b>Таблица</b><br>вся информация в одном месте');

menu[0][13] = new Array();
menu[0][13][0] = new create_menu(NONE,CENTER,NONE,NONE,NONE,NONE,NONE,120,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][13][1] = new create_entry('Обзор казино' ,'/micro1.htm' ,'<b>Обзор казино</b><br>мой личный опыт' );
menu[0][13][2] = new create_entry('Сводная таблица' ,'/microtb.htm' ,'<b>Таблица</b><br>вся информация в одном месте');

menu[0][14] = new Array();
menu[0][14][0] = new create_menu(NONE,CENTER,NONE,NONE,NONE,NONE,NONE,120,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][14][1] = new create_entry('Сводная таблица' ,'/oddsontb.htm' ,'<b>Таблица</b><br>вся информация в одном месте');

menu[0][15] = new Array();
menu[0][15][0] = new create_menu(NONE,CENTER,NONE,NONE,NONE,NONE,NONE,120,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][15][1] = new create_entry('Сводная таблица' ,'/rtgtb.htm' ,'<b>Таблица</b><br>вся информация в одном месте');

menu[0][16] = new Array();
menu[0][16][0] = new create_menu(NONE,CENTER,NONE,NONE,NONE,NONE,NONE,120,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][16][1] = new create_entry('Дети блэкджека' ,'/bjbased.htm' ,'<b>Понтун, блэкджек свич и в отрытую и др.</b><br>правила игр на основе блэкджека');

menu[0][17] = new Array();
menu[0][17][0] = new create_menu(NONE,CENTER,NONE,NONE,NONE,NONE,NONE,120,NONE,NONE,NONE,NONE,NO,NONE,NONE,NONE);
menu[0][17][1] = new create_entry('Дикие двойки' ,'/strvp1.htm' ,'<b>Dueces Wild</b><br>базовая стратегия игры' );
menu[0][17][2] = new create_entry('Прочие виды ВП' ,'/strvp2.htm' ,'<b>Разновидности видеопокеров</b><br>выплаты для различных игр');

function elt_start(id,top,left,height,width,background,visibility,level,entry_i,entry_j,entry_k){
var delim_1=(NS)?'="':':';
var delim_2=(NS)?'"':';';
var str=(NS)?'<layer':'<div';
if(id)str+=' id="'+id+'"';
if(!NS)str+=' style="';
if((!NS)&&(!isNaN(top)||!isNaN(left)))str+=' position:absolute;';
if(!isNaN(top))str+=' top'+delim_1+top+delim_2;
if(!isNaN(left))str+=' left'+delim_1+left+delim_2;
if(!isNaN(width))str+=' width'+delim_1+width+delim_2;
if(!isNaN(height))str+=' height'+delim_1+height+delim_2;
if(!isNaN(level))str+=' z-index'+delim_1+level+delim_2;
if((!isNaN(width))&&(!isNaN(height))){
if(NS)str+=' clip'+delim_1+'0,0,'+width+','+height+delim_2;
else str+=' clip'+delim_1+'rect(0px '+width+'px '+height+'px 0px)'+delim_2;
}
if(background!=NONE){
if(NS)
str+=' bgColor'+delim_1+background+delim_2;
else
str+=' background'+delim_1+background+delim_2;
}
if(visibility)str+=' visibility'+delim_1+visibility+delim_2;
if(!NS)str+='"';
if(entry_k!=NONE){
str+=' onMouseOver="'
if(menu[entry_i][entry_j][entry_k].link!=NONE)str+='status=menu['+entry_i+']['+entry_j+']['+entry_k+'].link; '
str+='show('+entry_i+','+entry_j+','+entry_k+'); ';
if(menu[entry_i][entry_j][entry_k].tooltip!=NONE)str+='tooltip_start(event,\''+menu[entry_i][entry_j][entry_k].tooltip+'\'); ';
str+='"';
if((!NS)&&(menu[entry_i][entry_j][entry_k].link!=NONE)){
if(menu[entry_i][entry_j][entry_k].link.substr(0,11)=='javascript:'){
str+=" onClick='hide_link("+entry_i+","+entry_j+","+entry_k+");"+menu[entry_i][entry_j][entry_k].link+"'";
}else{
str+=' onClick="hide_link('+entry_i+','+entry_j+','+entry_k+'); do_link('+entry_i+','+entry_j+','+entry_k+')"';
}}
}else{
str+=' onMouseOver="clearTimeout(timer);" onMouseOut="tooltip_hide();status=\'\';set_timer(-1,-1,-1);"';
}
str+='>'
return(str);
}
function elt_end(){
var str;
if(NS)str='</layer>';
else
str='</div>';
return(str);
}
function create_active_tree(i,j,k,id,menu_id,child_id){
this.entry_i=i;
this.entry_j=j;
this.entry_k=k;
this.id=id;
this.menu_id=menu_id
this.child_id=child_id
}
function show(entry_i,entry_j,entry_k){
if(do_not_show){
do_not_show=false;
return;
}
if(active_tree.length > 0){
last_item=active_tree[active_tree.length - 1];
if((last_item.entry_i==entry_i)&&(last_item.entry_j==entry_j)&&(last_item.entry_k==entry_k)){
return;
}}
clearTimeout(timer);
actual_id="v"+entry_i+"v"+entry_j+"v"+entry_k+"vs";
menu_id="v"+entry_i+"v"+entry_j;
get_object(actual_id).zIndex="4";
if(menu[entry_i][entry_j][entry_k].child!=NONE){
child_id="v"+entry_i+"v"+menu[entry_i][entry_j][entry_k].child;
get_object(child_id).visibility=(NS)?"show":"visible";
}else{
child_id=NONE;
}
if(active_tree.length > 0){
last_item=active_tree[active_tree.length - 1];
if(last_item.entry_i==entry_i){
if(last_item.entry_j==entry_j){
if(last_item.child_id!=NONE){
get_object(last_item.child_id).visibility=(NS)?"hide":"hidden";
}
get_object(last_item.id).zIndex="2";
active_tree.pop();
}else{
if(last_item.child_id!=menu_id){
if(last_item.menu_id!=child_id){
if(last_item.child_id!=NONE){
get_object(last_item.child_id).visibility=(NS)?"hide":"hidden";
}
while((active_tree.length > 1)&&(last_item.menu_id!=menu_id)){
get_object(last_item.id).zIndex="2";
get_object(last_item.menu_id).visibility=(NS)?"hide":"hidden";
active_tree.pop();
last_item=active_tree[active_tree.length - 1];
}
}else{
if(last_item.child_id!=NONE){
get_object(last_item.child_id).visibility=(NS)?"hide":"hidden";
}
active_tree.pop();
}
get_object(last_item.id).zIndex="2";
active_tree.pop();
}}
}else{
if(last_item.child_id!=NONE){
get_object(last_item.child_id).visibility=(NS)?"hide":"hidden";
}
while(active_tree.length > 1){
get_object(last_item.id).zIndex="2";
get_object(last_item.menu_id).visibility=(NS)?"hide":"hidden";
active_tree.pop();
last_item=active_tree[active_tree.length - 1];
}
get_object(last_item.id).zIndex="2";
active_tree=new Array();
}}
active_tree[active_tree.length]=new create_active_tree(entry_i,entry_j,entry_k,actual_id,menu_id,child_id);
all_hidden=false;
}
function set_timer(entry_i,entry_j,entry_k){
if(!all_hidden)timer=setTimeout("hide("+entry_i+","+entry_j+","+entry_k+");",300);
}
function hide(entry_i,entry_j,entry_k){
clearTimeout(timer);
last_item=active_tree[active_tree.length - 1];
if(last_item.child_id!=NONE){
get_object(last_item.child_id).visibility=(NS)?"hide":"hidden";
}
while(active_tree.length > 1){
get_object(last_item.id).zIndex="2";
get_object(last_item.menu_id).visibility=(NS)?"hide":"hidden";
active_tree.pop();
last_item=active_tree[active_tree.length - 1];
}
get_object(last_item.id).zIndex="2";
active_tree=new Array();
all_hidden=true;
}
function reposition(){
for(var i=0;i<menu.length;i++){
if(menu[i].length > 0){
id='v'+i+'v'+1;
window_width=(NS)?window.innerWidth:document.body.offsetWidth;
general_diff=0;
if(menu[i][0].alignment==RIGHT)general_diff=window_width -(2 * parseInt(get_object(id).left,10))- menu[i][1][0].width;
if(menu[i][0].alignment==CENTER)general_diff=(window_width / 2)- parseInt(get_object(id).left,10)-(menu[i][1][0].width / 2);
id='v'+i+'v1';
get_object(id).visibility=(NS)?"hide":"hidden";
reposition_tree(i,1,general_diff);
id='v'+i+'v1';
get_object(id).visibility=(NS)?"show":"visible";
}}}
function reposition_tree(i,j,general_diff){
id='v'+i+'v'+j;
get_object(id).left=parseInt(get_object(id).left,10)+general_diff;
if(menu[i][0].popup_side.substr(0,3)=="try"){
if(menu[i][j][0].popup_side!=menu[i][j][0].popup_side_now){
if(menu[i][j][0].popup_side_now==LEFT){
reposition_subtree(i,j,menu[i][j][0].popup_side_diff);
}else{
reposition_subtree(i,j,-menu[i][j][0].popup_side_diff);
}
menu[i][j][0].popup_side_now=menu[i][j][0].popup_side;
}
id='v'+i+'v'+j;
if(parseInt(get_object(id).left,10)< 0){
menu[i][j][0].popup_side_now=RIGHT;
reposition_subtree(i,j,menu[i][j][0].popup_side_diff);
}else{
if((parseInt(get_object(id).left,10)+menu[i][j][0].width)> window_width){
menu[i][j][0].popup_side_now=LEFT;
reposition_subtree(i,j,-menu[i][j][0].popup_side_diff);
}}}
for(var k=1;k<menu[i][j].length;++k){
if(menu[i][j][k].child!=NONE)reposition_tree(i,menu[i][j][k].child,general_diff);
}}
function reposition_subtree(i,j,diff){
id='v'+i+'v'+j;
get_object(id).left=diff+parseInt(get_object(id).left,10);
for(var k=1;k<menu[i][j].length;++k){
if(menu[i][j][k].child!=NONE)reposition_subtree(i,menu[i][j][k].child,diff);
}}
function do_link(entry_i,entry_j,entry_k){
if((menu[entry_i][entry_j][entry_k].link.length > 0)&&(menu[entry_i][entry_j][entry_k].link!=NONE)){
tmp_target=(menu[entry_i][entry_j][entry_k].target!=NONE)?menu[entry_i][entry_j][entry_k].target:menu[entry_i][entry_j][0].target;
if(tmp_target==NONE)tmp_target=menu[entry_i][0].target;
if(tmp_target=="_blank"){
open(unescape(menu[entry_i][entry_j][entry_k].link));
}else{
if(tmp_target=="_top"){
top.location.href=unescape(menu[entry_i][entry_j][entry_k].link);
}else{
if(tmp_target=="_parent"){
parent.location.href=unescape(menu[entry_i][entry_j][entry_k].link);
}else{
if((tmp_target.length==0)||(tmp_target=="_self")||(tmp_target==NONE)){
location.href=unescape(menu[entry_i][entry_j][entry_k].link);
}else{
top.frames[tmp_target].location.href=unescape(menu[entry_i][entry_j][entry_k].link);
}}}}}}
function hide_link(entry_i,entry_j,entry_k){
do_not_show=true;
hide(entry_i,entry_j,entry_k);
}
function get_object(id){
if(NS){
id_tmp=id.split("v");
if(id_tmp.length > 3){
return(document.layers["v"+id_tmp[1]+"v"+id_tmp[2]].document.layers[id]);
}else{
return(document.layers[id]);}
}
if(DOM){
return(document.getElementById(id).style);
}
if(IE)return(document.all[id].style);
}
function coords(my_event){
if((NS)||(NS6)){
tooltip_x=my_event.pageX;
tooltip_y=my_event.pageY;
}else{
tooltip_x=window.event.clientX;
tooltip_y=window.event.clientY;
}}
function tooltip_start(my_event,item){
tooltip_hide();
if(item.length!=0){
if(NS){
document.layers['tooltip'].document.write('<table bgColor="#ffffdd" cellpadding="2" cellspacing="1" border="0"><tr><td><font face="Arial" size="2">'+item+'</font></td></tr></table>');
document.layers['tooltip'].document.close();
}
if(IE)document.all.tooltip.innerHTML='<p style="margin:1"><table bgColor="#ffffdd" cellpadding="2" cellspacing="1" border="0"><tr><td><font face="Arial" size="2">'+item+'</font></td></tr></table></p>';
if(DOM)document.getElementById('tooltip').innerHTML='<p style="margin:1"><table bgColor="#ffffdd" cellpadding="2" cellspacing="1" border="0"><tr><td><font face="Arial" size="2">'+item+'</font></td></tr></table></p>';
tooltip_interval=setInterval("tooltip_check()",50);
}}
function tooltip_check(){
if((tooltip_x!=tooltip_x_old)||(tooltip_y!=tooltip_y_old)){
tooltip_counter=0;
tooltip_x_old=tooltip_x;
tooltip_y_old=tooltip_y;
}else{
tooltip_counter++;
}
if(tooltip_counter >=20){
clearInterval(tooltip_interval);
if(NS){
document.layers['tooltip'].left=tooltip_x;
document.layers['tooltip'].top=tooltip_y+21;
document.layers['tooltip'].zIndex=1;
document.layers['tooltip'].visibility="show";
}
if(IE){
document.all.tooltip.style.left=tooltip_x;
document.all.tooltip.style.top=tooltip_y+21;
document.all.tooltip.style.zIndex=1;
document.all.tooltip.style.visibility="visible";
}
if(DOM){
document.getElementById('tooltip').style.left=tooltip_x;
document.getElementById('tooltip').style.top=tooltip_y+21;
document.getElementById('tooltip').style.zIndex=999;
document.getElementById('tooltip').style.visibility="visible";
}}}
function tooltip_hide(){
clearInterval(tooltip_interval);
if(NS)document.layers['tooltip'].visibility="hidden";
if(DOM)document.getElementById('tooltip').style.visibility="hidden";
if(IE)document.all.tooltip.style.visibility="hidden";
}
TRACE=true;
var DOM=false,IE=false,NS=false;NS6=false;
if(document.getElementById)DOM=true;
if(document.all&&!DOM)IE=true;
if(((navigator.appName=='Netscape')&&(navigator.appVersion.substring(0,1)==4))&&!DOM&&!IE)NS=true;
if(DOM && navigator.appName=='Netscape')NS6=true;
if(!DOM &&!IE &&!NS){
alert("This site was created for:\n\n"+
" - MS Internet Explorer 4.x\tor higher\n"+
" - Netscape 4.x\t\tor higher\n"+
" - Browsers that support DOM\n\n"+
"Your Browser unfortunately doesn?t belong to this group - sorry!\n"+
"Please download an appropriate Browser from the internet to view this page...");
window.history.back();
}
var timer;
var all_hidden=true;
var tooltip_counter=0;
var tooltip_x=0;
var tooltip_y=0;
var tooltip_x_old=0;
var tooltip_y_old=0;
var tooltip_interval;
var active_tree=new Array();
if(NS){
document.writeln('<layer id="tooltip" z-index="1" bgColor="#000000" visibility="hidden">');
document.writeln('</layer>');
}else{
document.writeln('<div id="tooltip" style="position:absolute;top:10;left:10;z-index:1;background:#000000;visibility:visible;">');
document.writeln('</div>');
}
if(NS){
document.captureEvents(Event.MOUSEMOVE);
document.onMouseMove=coords;
}else{
document.onmousemove=coords;
}
for(var i=0;i<menu.length;i++){
test='';
for(var j=1;j<menu[i].length;j++){
for(var k=1;k<menu[i][j].length;++k){
if(menu[i][j][k].child!=NONE){
if(test.indexOf("-"+menu[i][j][k].child+"- ")==-1)
test+="-"+menu[i][j][k].child+"- ";
else alert("Menu Generator Pro\n\nError:submenu '"+menu[i][j][k].child+"'(instance '"+i+"')is referenced more than once!");
if(menu[i][j][k].child > menu[i].length - 1)alert("Menu Generator Pro\n\nError:submenu '"+menu[i][j][k].child+"'(instance '"+i+"')does not exist!");
}}}
for(var j=1;j<menu[i].length;j++){
popup_side=RIGHT;
if(j==1){
menu[i][j][0].top_parent_menu=1;
}else{
if(menu[i][j][0].parent_menu==1){
menu[i][j][0].top_parent_menu=menu[i][j][0].parent_entry;
}else{
menu[i][j][0].top_parent_menu=menu[i][menu[i][j][0].parent_menu][0].top_parent_menu;
}}
if((menu[i][0].popup_side==LEFT)||(menu[i][0].popup_side==TRY_LEFT)||(((menu[i][0].popup_side==AUTO)||(menu[i][0].popup_side==TRY_AUTO))&&(menu[i][j][0].top_parent_menu >(menu[i][1].length / 2))))popup_side=LEFT;
outer_margin=(menu[i][j][0].outer_margin!=NONE)?menu[i][j][0].outer_margin:menu[i][0].outer_margin;
check_parameter("generate1","outer_margin",outer_margin,new Array("<number>"));
inner_margin=(menu[i][j][0].inner_margin!=NONE)?menu[i][j][0].inner_margin:menu[i][0].inner_margin;
check_parameter("generate1","inner_margin",inner_margin,new Array("<number>"));
if(j!=1){
parent_inner_margin=(menu[i][menu[i][j][0].parent_menu][0].inner_margin!=NONE)?menu[i][menu[i][j][0].parent_menu][0].inner_margin:menu[i][0].inner_margin;
check_parameter("generate1","parent_inner_margin",parent_inner_margin,new Array("<number>"));
}
content=(menu[i][j][0].content!=NONE)?menu[i][j][0].content:menu[i][0].content;
if(content==NULL)content='';
if(j==1){
actual_top=menu[i][0].margin_top;
}else{
tmp_direction=(menu[i][menu[i][j][0].parent_menu][0].menu_direction!=NONE)?menu[i][menu[i][j][0].parent_menu][0].menu_direction:menu[i][0].menu_direction;
check_parameter("generate1","menu_direction",tmp_direction,new Array("horizontal","vertical"));
if(tmp_direction==HORIZONTAL){
actual_top=menu[i][menu[i][j][0].parent_menu][menu[i][j][0].parent_entry].bottom+1;
}else{
actual_top=menu[i][menu[i][j][0].parent_menu][menu[i][j][0].parent_entry].top;
}
actual_top+=(tmp_direction==HORIZONTAL)?outer_margin:0;
}
width=0;
for(var k=1;k<menu[i][j].length;++k){
tmp_width=(menu[i][j][k].width!=NONE)?menu[i][j][k].width:menu[i][j][0].width;
if(tmp_width==NONE)tmp_width=menu[i][0].width;
check_parameter("generate menu2","width",tmp_width,new Array("<number>"));
if(tmp_width > width)width=tmp_width;
}
if(j==1){
actual_left_left=menu[i][0].margin_side;
actual_left_right=menu[i][0].margin_side;
}else{
if(tmp_direction==HORIZONTAL){
actual_left_left=menu[i][menu[i][j][0].parent_menu][menu[i][j][0].parent_entry].left - inner_margin;
actual_left_right=actual_left_left;
actual_top+=inner_margin;
}else{
actual_left_left=menu[i][menu[i][j][0].parent_menu][menu[i][j][0].parent_entry].left - width -(2 * inner_margin)- parent_inner_margin;
actual_left_right=menu[i][menu[i][j][0].parent_menu][menu[i][j][0].parent_entry].right+1+parent_inner_margin;
actual_top -=inner_margin;
}
actual_left_right+=(tmp_direction!=HORIZONTAL)?outer_margin:0;
actual_left_left -=(tmp_direction!=HORIZONTAL)?outer_margin:0;
}
menu[i][j][0].top=actual_top;
menu[i][j][0].left=(popup_side==LEFT)?actual_left_left:actual_left_right;
menu[i][j][0].popup_side_diff=actual_left_right - actual_left_left;
menu[i][j][0].popup_side=popup_side;
menu[i][j][0].popup_side_now=popup_side;
str='';
actual_space=0;
actual_top=(content==WINDOWS)?3:inner_margin;
actual_left=(content==WINDOWS)?3:inner_margin;
diff_parent=0;
if(j==1){
}else{
if(tmp_direction==HORIZONTAL){
tmp_menu_alignment=(menu[i][j][0].menu_alignment!=NONE)?menu[i][j][0].menu_alignment:menu[i][0].menu_alignment;
check_parameter("generate1","menu_alignment",tmp_menu_alignment,new Array("left","center","right"));
tmp_width=(menu[i][menu[i][j][0].parent_menu][menu[i][j][0].parent_entry].width!=NONE)?menu[i][menu[i][j][0].parent_menu][menu[i][j][0].parent_entry].width:menu[i][menu[i][j][0].parent_menu][0].width;
if(tmp_width==NONE)tmp_width=menu[i][0].width;
check_parameter("generate2","width",tmp_width,new Array("<number>"));
if(tmp_menu_alignment==RIGHT)diff_parent=width - tmp_width;
if(tmp_menu_alignment==CENTER)diff_parent=(width - tmp_width)/ 2;
}}
for(var k=1;k<menu[i][j].length;++k){
if((k==1)&&(menu[i][j][k].margin==NONE))menu[i][j][k].margin=0;
actual_space=(menu[i][j][k].margin!=NONE)?menu[i][j][k].margin:menu[i][j][0].margin;
if(actual_space==NONE)actual_space=menu[i][0].margin;
check_parameter("generate2","margin",actual_space,new Array("<number>"));
diff=0;
tmp_direction=(menu[i][j][0].menu_direction!=NONE)?menu[i][j][0].menu_direction:menu[i][0].menu_direction;
check_parameter("generate1","menu_direction",tmp_direction,new Array("horizontal","vertical"));
tmp_menu_alignment=(menu[i][j][0].menu_alignment!=NONE)?menu[i][j][0].menu_alignment:menu[i][0].menu_alignment;
tmp_width=(menu[i][j][k].width!=NONE)?menu[i][j][k].width:menu[i][j][0].width;
if(tmp_width==NONE)tmp_width=menu[i][0].width;
check_parameter("generate2","width",tmp_width,new Array("<number>"));
if(tmp_menu_alignment==RIGHT)diff=width - tmp_width;
if(tmp_menu_alignment==CENTER)diff=(width - tmp_width)/ 2;
actual_left+=diff;
if(tmp_direction==VERTICAL )actual_top+=actual_space;
if(tmp_direction==HORIZONTAL)actual_left+=actual_space;
if((NS)&&(menu[i][0].pref_netscape!=NONE)){
pref=menu[i][0].pref_netscape;
}else{
pref='';
}
if((menu[i][j][k].link!=NONE)&&(menu[i][0].pref_lnk!=NONE)){
pref+=menu[i][0].pref_lnk;
}
tmp_deact=(menu[i][j][k].deactivate!=NONE)?menu[i][j][k].deactivate:menu[i][j][0].deactivate;
if(tmp_deact==NONE)tmp_deact=menu[i][0].deactivate;
check_parameter("generate2","deactivate",tmp_deact,new Array("yes","no","auto"));
if((tmp_deact==YES)||((tmp_deact==AUTO)&&((menu[i][j][k].link==NONE)&&(menu[i][j][k].child==NONE)))){
pref+=menu[i][0].pref_deact;
}
background=(menu[i][j][k].background!=NONE)?menu[i][j][k].background:menu[i][j][0].background;
if(background==NONE)background=menu[i][0].background;
if(background==NONE)background='#FFFFFF';
selected_background=(menu[i][j][k].selected_background!=NONE)?menu[i][j][k].selected_background:menu[i][j][0].selected_background;
if(selected_background==NONE)selected_background=menu[i][0].selected_background;
if(selected_background.indexOf(".")!=-1){
menu[i][j][k].selected_image=new Image();
menu[i][j][k].selected_image.src=selected_background;
selected_background=NONE;
}
if(background.indexOf(".")!=-1){
menu[i][j][k].image=new Image();
menu[i][j][k].image.src=background;
background=NONE;
}
tmp_width=(menu[i][j][k].width!=NONE)?menu[i][j][k].width:menu[i][j][0].width;
if(tmp_width==NONE)tmp_width=menu[i][0].width;
tmp_height=(menu[i][j][k].height!=NONE)?menu[i][j][k].height:menu[i][j][0].height;
if(tmp_height==NONE)tmp_height=menu[i][0].height;
check_parameter("generate2","height",tmp_height,new Array("<number>"));
tmp_style=(menu[i][j][k].style!=NONE)?menu[i][j][k].style:menu[i][j][0].style;
if(tmp_style==NONE)tmp_style=menu[i][0].style;
str+=elt_start('v'+i+'v'+j+'v'+k+'vt',actual_top,actual_left,tmp_height,tmp_width,background,INHERIT,3,NONE,NONE,NONE);
if((background==NONE)&&(menu[i][j][k].image!=NONE)){
str+='<img src="'+menu[i][j][k].image.src+'">';
str+=elt_start('v'+i+'v'+j+'v'+k+'vti',0,0,tmp_height,tmp_width,background,INHERIT,NONE,NONE,NONE,NONE);
}
str+='<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"><tr><td valign="middle"><p class="'+pref+tmp_style+'">'+menu[i][j][k].text+'</p></td></tr></table>';
if((background==NONE)&&(menu[i][j][k].image!=NONE)){
str+=elt_end();
}
str+=elt_end();
arrows=(menu[i][j][k].arrows!=NONE)?menu[i][j][k].arrows:menu[i][j][0].arrows;
if(arrows==NONE)arrows=menu[i][0].arrows;
check_parameter("generate2","arrows",arrows,new Array("yes","no"));
selectable=(menu[i][j][k].selectable!=NONE)?menu[i][j][k].selectable:menu[i][j][0].selectable;
if(selectable==NONE)selectable=menu[i][0].selectable;
check_parameter("generate2","selectable",selectable,new Array("yes","no"));
if((selectable==NO)&&(menu[i][j][k].link==NONE)&&(menu[i][j][k].child==NONE)){
str+=elt_start('v'+i+'v'+j+'v'+k+'vs',actual_top,actual_left,tmp_height,tmp_width,background,INHERIT,2,NONE,NONE,NONE);
if((background==NONE)&&(menu[i][j][k].image!=NONE)){
str+='<img src="'+menu[i][j][k].image.src+'">';
str+=elt_start('v'+i+'v'+j+'v'+k+'vsi',0,0,tmp_height,tmp_width,background,INHERIT,NONE,NONE,NONE,NONE);
}
str+='<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"><tr><td valign="middle"><p class="'+pref+tmp_style+'">'+menu[i][j][k].text+'</p></td></tr></table>';
if((background==NONE)&&(menu[i][j][k].image!=NONE)){
str+=elt_end();
}
str+=elt_end();
}else{
if(selectable!=NONE)pref+=menu[i][0].pref_sel;
str+=elt_start('v'+i+'v'+j+'v'+k+'vs',actual_top,actual_left,tmp_height,tmp_width,selected_background,INHERIT,2,NONE,NONE,NONE);
if((selected_background==NONE)&&(menu[i][j][k].selected_image!=NONE)){
str+='<img src="'+menu[i][j][k].selected_image.src+'">';
str+=elt_start('v'+i+'v'+j+'v'+k+'vsi',0,0,tmp_height,tmp_width,selected_background,INHERIT,NONE,NONE,NONE,NONE);
}
str+='<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"><tr><td valign="middle"><p class="'+pref+tmp_style+'">'+menu[i][j][k].text+'</p></td></tr></table>';
if((selected_background==NONE)&&(menu[i][j][k].selected_image!=NONE)){
str+=elt_end();
}
str+=elt_end();
}
mark_links=(menu[i][j][k].mark_links!=NONE)?menu[i][j][k].mark_links:menu[i][j][0].mark_links;
if(mark_links==NONE)mark_links=menu[i][0].mark_links;
check_parameter("generate2","mark_links",mark_links,new Array("yes","no"));
if((menu[i][j][k].link!=NONE)&&(mark_links==YES)){
if(popup_side==LEFT)
mark_left=actual_left+tmp_width - 9;
else
mark_left=actual_left+2;
mark_top=actual_top+(tmp_height / 2)- 3;
str+=elt_start('v'+i+'v'+j+'v'+k+'vm',mark_top,mark_left,6,7,NONE,INHERIT,5,NONE,NONE,NONE);
if(popup_side==LEFT)
str+='<img src="'+icon[4].src+'">';
else
str+='<img src="'+icon[3].src+'">';
str+=elt_end();
}
if((menu[i][j][k].child!=NONE)&&(arrows==YES)){
if(tmp_direction==HORIZONTAL){
if(popup_side==LEFT)
mark_left=actual_left+tmp_width+7;
else
mark_left=actual_left+tmp_width - 14;
mark_top=actual_top+(tmp_height / 2)- 2;
str+=elt_start('v'+i+'v'+j+'v'+k+'vm',mark_top,mark_left,4,7,NONE,INHERIT,5,NONE,NONE,NONE);
str+='<img src="'+icon[2].src+'">';
} else {
if(popup_side==LEFT)
mark_left=actual_left+7;
else
mark_left=actual_left+tmp_width - 11;
mark_top=actual_top+(tmp_height / 2)- 3;
str+=elt_start('v'+i+'v'+j+'v'+k+'vm',mark_top,mark_left,7,4,NONE,INHERIT,5,NONE,NONE,NONE);
if(popup_side==LEFT)
str+='<img src="'+icon[0].src+'">';
else
str+='<img src="'+icon[1].src+'">';
}
str+=elt_end();
}
str+=elt_start('v'+i+'v'+j+'v'+k,actual_top,actual_left,tmp_height,tmp_width,NONE,INHERIT,6,i,j,k);
if((!NS)&&(!NS6))str+='<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%"><tr><td></td></tr></table>';
str+=elt_end();
if(menu[i][j][k].child!=NONE){
menu[i][menu[i][j][k].child][0].parent_instance=i;
menu[i][menu[i][j][k].child][0].parent_menu=j;
menu[i][menu[i][j][k].child][0].parent_entry=k;
}
menu[i][j][k].top=menu[i][j][0].top+actual_top;
menu[i][j][k].left=menu[i][j][0].left+actual_left - diff_parent;
menu[i][j][k].bottom=menu[i][j][k].top+tmp_height - 1;
menu[i][j][k].right=menu[i][j][k].left+tmp_width - 1;
actual_left -=diff;
if(tmp_direction==VERTICAL )actual_top+=tmp_height;
if(tmp_direction==HORIZONTAL)actual_left+=tmp_width;
}
menu[i][j][0].bottom=menu[i][j][k-1].bottom;
menu[i][j][0].right=menu[i][j][k-1].right;
menu[i][j][0].height=menu[i][j][0].bottom - menu[i][j][0].top+1;
menu[i][j][0].width=menu[i][j][0].right - menu[i][j][0].left+1;
menu[i][j][0].height+=(content==WINDOWS)?3:(inner_margin);
menu[i][j][0].width+=(content==WINDOWS)?3:(inner_margin);
menu[i][j][0].bottom+=(content==WINDOWS)?3:(inner_margin);
menu[i][j][0].right+=(content==WINDOWS)?3:(inner_margin);
tmp_x=menu[i][j][0].width - 4;
tmp_y=menu[i][j][0].height - 4;
if(content==WINDOWS)str+=win_style_1+menu[i][j][0].width+win_style_2+menu[i][j][0].height+win_style_3+tmp_x+win_style_4+tmp_y+win_style_5;
if(content!=NONE )str+=content;
str+=elt_end();
if(j==1)mvis=SHOW;
else mvis=HIDE;
str=elt_start('v'+i+'v'+j,menu[i][j][0].top,menu[i][j][0].left,menu[i][j][0].height,menu[i][j][0].width,NONE,mvis,1,NONE,NONE,NONE,NONE)+str;
document.writeln(str);
if(NS){
for(var k=1;k<menu[i][j].length;++k){
if(menu[i][j][k].link!=NONE){
id_1='v'+i+'v'+j;
id_2='v'+i+'v'+j+'v'+k;
document.layers[id_1].document.layers[id_2].captureEvents(Event.CLICK);
if((menu[i][j][k].link.length > 10)&&(menu[i][j][k].link.substr(0,11)=='javascript:'))
document.layers[id_1].document.layers[id_2].onclick=new Function('hide('+i+','+j+','+k+');'+menu[i][j][k].link+';');
else
document.layers[id_1].document.layers[id_2].onclick=new Function('hide('+i+','+j+','+k+'); do_link('+i+','+j+','+k+');');
}}}}}

