kaires_puses_index
main_menu ‘;
endet_tr = ”;
}
if(MCHN[0].level == 3) {
m_str += ”;
main_menu_tr = ‘ main_menu ‘;
endet_tr = ”;
}
if(MCHN[0].level == 4) {
m_str += ”;
main_menu_tr = ‘ main_menu ‘;
endet_tr = ”;
}
if(MCHN[0].url == ‘#’) {
//menu_link = ‘javascript:MTS4(” + MCHN[0].index + ”);void(0)’;
menu_link = ‘#’;
MCHN[0].target = ”;
}
else
menu_link = MCHN[0].url;
//if(MCHN[0].state == ‘open’) {
if(MCHN.length > 1) {
m_plus = ”;
//
if(MCHN[0].level == 2)
m_plus = ”;
if(MCHN[0].level == 3)
m_plus = ”;
m_plus = ”+m_plus+”;
}
else {
m_plus = ”;
if(MCHN[0].level == 2)
m_plus = ”;
if(MCHN[0].level == 3)
m_plus = ”;
if(MCHN[0].level == 4)
m_plus = ”;
}
if(MCHN[0].target != ” || menu_link.indexOf(‘javascript’) != -1) {
menu_link = menu_link;
}
else
{
if ( MCHN[0].level == 1 && m_has_childs && menu_link == ‘#’)
menu_link = ‘#’;
else
menu_link = ‘javascript:MGTP4(”+menu_link+”, ” + MCHN[0].index + ”);void(0);’;
}
main_menu_tr = main_menu_tr.replace(‘=main_icon=’, m_plus);
if ( menu_link != ‘#’ )
main_menu_tr = main_menu_tr.replace(‘main_menu’, ”+MCHN[0].text+”);
else
main_menu_tr = main_menu_tr.replace(‘main_menu’, ”);
m_str += main_menu_tr;
//
}
/*
else {
if(MCHN.length > 1) {
m_minus = ”;
if(MCHN[0].level == 2)
m_minus = ”;
if(MCHN[0].level == 3)
m_minus = ”;
}
else {
m_minus = ”;
if(MCHN[0].level == 2)
m_minus = ”;
if(MCHN[0].level == 3)
m_minus = ”;
if(MCHN[0].level == 4)
m_minus = ”;
}
if(MCHN[0].target != ” || menu_link.indexOf(‘javascript’) != -1)
menu_link = menu_link;
else
menu_link = ‘javascript:MGTP4(”+menu_link+”, ” + MCHN[0].index + ”);void(0);’;
main_menu_tr = main_menu_tr.replace(‘=main_icon=’, m_minus);
main_menu_tr = main_menu_tr.replace(‘main_menu’, ”+MCHN[0].text+”);
m_str += main_menu_tr;
//
}
}
*/
m_str += endet_tr+”;
if (m_div) m_str += ”;
if(is_last == 1)
{
m_str += ”;
m_str += ”;
m_has_childs=false;
}
//alert(m_has_childs);
/*
if (m_has_childs && MCHN[0].state == ‘open’)
{
m_str += ”;
m_has_childs=false;
}
*/
if(MCHN[0].state == ‘open’)
MWC4(MCHN);
}
//
m_doc.innerHTML = m_str;
}
var NSSB4 = 0;
function MTS4(node_index) {
//var MCRN = nods4[node_index];
//$(this).next(“div”).stop(‘true’,’true’).slideToggle(“slow”);
var id_string = ‘#submenu’+(node_index);
//alert(id_string);
//$(“‘+id_string+'”).slideToggle(“slow”);
//$(“#submenu6”).slideToggle(“slow”);
//alert($(this));
//$(this).slideToggle(“slow”);
/*
if (MCRN[0].state == ‘open’ )
{
op_mn4 = ”;
MCRN[0].state = ‘open’;
if(MCRN[0].level = MCRN[0].level && nods4[c][0].menu_id != MCRN[0].menu_id)
nods4[c][0].state = ‘open’;
else {
if(nods4[c][0].state == ‘open’ && nods4[c][0].menu_id != null) {
op_mn4 += nods4[c][0].menu_id+’;’;
}
}
}
}
else {
for(c=0;c
Prisijungimas gyventojams
Prisijungimas gyventojams