/* * EN-Addons * кубки, подписи, календарь * * Tucker http://56.en.cx/UserDetails.aspx?uid=19577 * * http://56.en.cx/Addons.aspx?aid=3646 * */ var oscars_data = []; var tmedals_data = []; var medals_data = []; var games_data = []; var seasons = []; seasons[seasons.length] = ""; var g_sid; var desc = []; var hiderank = []; var sch_games = [[],[],[],[],[],[],[],[],[],[],[],[],[]]; var holidays = [[],[],[],[],[],[],[],[],[],[],[],[],[]]; function en_addon(){ var g_init=0; var g_init=0; var oscars = []; var oscars_id = []; var tmedals = []; var tmedals_id = []; var medals = []; var medals_id = []; var games = []; var games_id = []; var users = []; var users_id = []; var teams = []; var teams_id = []; var it_num = []; var lv_sid = -1; this.pv_sid = -1; //************************************************* // для сортировки //************************************************* function sortTeamUser(a,b) { // сравнение по количеству побед for (i in a[5]){if (a[5][i].lengthb[5][i].length){return -1;}} // по последней игре или по id if (a[4]!=b[4]){return a[4]-b[4];} else {return a[0]-b[0];} } //************************************************* // формирование массивов данных //************************************************* function doInit(){ if (lv_sid == -1){lv_sid = g_sid} g_init = 1; var wa_bdat = seasons[lv_sid][0]; var wa_edat=(lv_sid==seasons.length-1)?99999999:seasons[lv_sid+1][0]; it_num[it_num.length] = "I"; it_num[it_num.length] = "II"; it_num[it_num.length] = "III"; for (i in oscars_data){if (oscars_data[i][0]>=wa_bdat && oscars_data[i][0]=wa_bdat && tmedals_data[i][0]=wa_bdat && medals_data[i][0]=wa_bdat && games_data[i][0]"; } else { wa_st += ""; } } } } return wa_st; } //************************************************* // строка кубков //************************************************* function getCupsTop(p_id){ var wa_st = ""; var wa_gpos; var wa_upos = users_id[p_id]; if (wa_upos != null){ var wa_title = ""; for (i in users[wa_upos][5]){ for (j in users[wa_upos][5][i]){ wa_gpos = games_id[users[wa_upos][5][i][j]]; if (games[wa_gpos][2]==0) { wa_title += ""; } else { wa_title += ""; } } } var wa_menu = ""; for (i in users[wa_upos][6]){ wa_gpos = games_id[users[wa_upos][6][i][0]]; if (games[wa_gpos][2]==0) { wa_menu += "
  • "+ " " + games[wa_gpos][3] + "
  • "; } else { wa_menu += "
  • "+ " " + games[wa_gpos][3] + " [" + games[wa_gpos][2] + ".en.cx]
  • "; } } wa_st = ""; } return wa_st; } //************************************************* // строка командных кубков //************************************************* function getTCups(p_id){ var wa_st = ""; var wa_tpos = teams_id[p_id]; if (wa_tpos != null){ for (i in teams[wa_tpos][5]){ for (j in teams[wa_tpos][5][i]){ var wa_gpos = games_id[teams[wa_tpos][5][i][j]]; if (games[wa_gpos][2]==0) { wa_st += ""; } else { wa_st += ""; } } } } return wa_st; } //************************************************* // строка командных кубков //************************************************* function getTCupsTop(p_id){ var wa_st = ""; var wa_gpos; var wa_tpos = teams_id[p_id]; if (wa_tpos != null){ var wa_title = ""; for (i in teams[wa_tpos][5]){ for (j in teams[wa_tpos][5][i]){ wa_gpos = games_id[teams[wa_tpos][5][i][j]]; if (games[wa_gpos][2]==0) { wa_title += ""; } else { wa_title += ""; } } } var wa_menu = ""; for (i in teams[wa_tpos][6]){ wa_gpos = games_id[teams[wa_tpos][6][i][0]]; if (games[wa_gpos][2]==0) { wa_menu += "
  •  " + games[wa_gpos][3] + "
  • "; } else { wa_menu += "
  •  " + games[wa_gpos][3] + " [" + games[wa_gpos][2] + ".en.cx]
  • "; } } wa_st = ""; } return wa_st; } //************************************************* // строка премий //************************************************* function getOscars(p_id){ var wa_st = ""; if (oscars_id[p_id] != null){ for (i in oscars_id[p_id]){ if (oscars[oscars_id[p_id][i]][3] != null) { wa_st += ""; } else { wa_st += ""; } } } return wa_st; } //************************************************* // строка орденов //************************************************* function getMedals(p_id){ var wa_st = ""; if (medals_id[p_id] != null){ for (i in medals_id[p_id]){ if (medals[medals_id[p_id][i]][4] != null) { wa_st += ""; } else { wa_st += ""; } } } return wa_st; } //************************************************* // строка командных орденов //************************************************* function getTMedals(p_id){ var wa_st = ""; if (tmedals_id[p_id] != null){ for (i in tmedals_id[p_id]){ if (tmedals[tmedals_id[p_id][i]][4] != null) { wa_st += ""; } else { wa_st += ""; } } } return wa_st; } //************************************************* // отрисовка наград //************************************************* function doAwards_proc(use_cookie){ var is_pos; var wa_id; var wa_awards; if (g_init != 1){doInit();} if ((navigator.appName.match("Opera")) && ((navigator.appName.match("Mini")) || (navigator.appVersion.match("Mini")))) { exit;} if (location.pathname.match("/Messages.aspx") != null) { // User $('.gbUserTd .gbUserInfo a[href^="/UserDetails.aspx?uid"]').each(function(el) { while ($(this).next().attr('class')=="my_class"){$(this).next().remove();} //цитаты с кубками (было давно, сейчас не знаю) //titleText.indexOf(document.domain) < 0 if ($(this).parent().parent().next().attr('class').indexOf("gbMessage")>=0){ //цитаты без кубков wa_id = $(this).attr('href').match(/uid=(\d+)/)[1]; if (is_pos){ if (users_id[wa_id]!=null){ wa_awards = "("+(users_id[wa_id] - "-1")+") "+getOscars(wa_id)+getMedals(wa_id); } else { wa_awards = getOscars(wa_id)+getMedals(wa_id); } } else { wa_awards = getCups(wa_id)+getOscars(wa_id)+getMedals(wa_id); } if (wa_awards != "") { wa_awards = ''; $(this).after(wa_awards); } } }); // Team $('.gbUserTd .gbUserInfo a[href^="/Teams/TeamDetails.aspx?tid"]').each(function(el) { wa_id = $(this).attr('href').match(/tid=(\d+)/)[1]; wa_awards = getTMedals(wa_id); if (wa_awards != "") { wa_awards = ''; $(this).after(wa_awards); } }); } // Messages if (location.pathname.match("/UserList.aspx") != null) { $('a[id^="UsersRepeater_ctl"][id$="lnkUserInfo"]').each(function(){ wa_id = $(this).attr('href').match(/uid=(\d+)/)[1]; wa_awards = getCups(wa_id)+getOscars(wa_id)+getMedals(wa_id); wa_awards = ''; $(this).parent().next().prepend(wa_awards); }); } // UserList if (location.pathname.match("/TeamList.aspx") != null) { $('a[id^="TeamsRepeater_ctl"][id$="_lnkTeamInfo"]').each(function(){ wa_id = $(this).attr('href').match(/tid=(\d+)/)[1]; wa_awards = getTMedals(wa_id); if (wa_awards != "") { wa_awards = ''; $(this).parent().next().prepend(wa_awards); } }); } // TeamList } // function doAwards_proc() this.doAwards = function(use_cookie){ if ((location.pathname.match("/Messages.aspx") != null) || (location.pathname.match("/UserList.aspx") != null) || (location.pathname.match("/TeamList.aspx") != null) ){ $(document).ready(function(){ doAwards_proc(use_cookie); $(".my_class").animate({opacity: "show"}, "slow") // $(".box-tr").click(function(){return false;}); // $(".ul-tr ul").hide(); // Opera Fix // $(".ul-tr li").hover( // function(){$(this).find('ul:first').show("fast").attr("style","z-index:10000");}, // function(){$(this).find('ul:first').hide("fast").attr("style","z-index:auto");} // ); }); } } // function doAwards() //************************************************* // ТОП-10 игроков //************************************************* function doUTop(p_cnt){ var i; var wa_i = 0; if (g_init != 1){doInit();} if ((p_cnt == 0) || (p_cnt>users.length)) {p_cnt = users.length;} var wa_st=""; for (i=0;i"+users[i][1]+"
    ("+users[i][3]+")"+getCupsTop(users[i][0])+""; } else { wa_st += ""+wa_i+"."+users[i][1]+""+getCupsTop(users[i][0])+""; } } $(".my_utop").append(wa_st); } //************************************************* // ТОП-10 команд //************************************************* function doTTop(p_cnt){ var i; var wa_i = 0; if (g_init != 1){doInit();} if ((p_cnt == 0) || (p_cnt>teams.length)) {p_cnt = teams.length;} var wa_st = ""; for (i=0;i"+teams[i][1]+""+getTCupsTop(teams[i][0])+""; } $(".my_ttop").append(wa_st); } //************************************************* // ТОП-10 игроков и команд //************************************************* this.doTopList = function(p_cnt){ $(document).ready(function(){ doUTop(p_cnt); doTTop(p_cnt); $("#doload").remove(); $(".my_utop").animate({opacity: "show", height: "show"}, "slow"); $(".my_utop td:not(#my_utoptitle)").css("font-size", "9px"); $(".my_ttop").animate({opacity: "show", height: "show"}, "slow"); $(".my_ttop td:not(#my_ttoptitle)").css("font-size", "9px"); $(".box-tr").click(function(){return false;}); $(".ul-tr ul").hide(); // Opera Fix $(".ul-tr li").hover( function(){$(this).find('ul:first').show("fast").attr("style","z-index:10000");}, function(){$(this).find('ul:first').hide("fast").attr("style","z-index:auto");} ); }); } //************************************************* // Общий рейтинг игроков и команд //************************************************* function doTopList2_proc(){ var i; var wa_i = 0; var wa_st=""; if (g_init != 1){doInit();} for (i in users){ wa_i = i; wa_i++; if (users[i][2]!=0){ wa_st += ""+wa_i+"."+users[i][1]+" ("+users[i][3]+")"+getCups(users[i][0])+"  "; } else { wa_st += ""+wa_i+"."+users[i][1]+""+getCups(users[i][0])+"  "; } } $(".my_top").append(wa_st); var wa_td = $(".my_top").children().children().next(); // for (i in teams){ // бага лезет. хз for (i=0;i"+teams[i][1]+""+getTCups(teams[i][0])+""; wa_td.eq(i).append(wa_st); } } this.doTopList2 = function(){ lv_sid = this.pv_sid; $(document).ready(function(){ doTopList2_proc(); $(".doload").remove(); $(".my_top").animate({opacity: "show", height: "show"}, "slow"); }); } // ######################################################## // раздача наград // by Tucker (http://56.en.cx/UserDetails.aspx?uid=19577) // ######################################################## /****************************************************/ // КАЛЕНДАРЬ // взято с http://omsk.en.cx // модифицировано Tucker http://56.en.cx/UserDetails.aspx?uid=19577 //do_calendar(1,"#0d3b00"); // small=1, color="#0d3b00" /****************************************************/ /********************/ /*** calendar ***/ /********************/ function do_calendar_proc(p_small,p_color){ var g_st = ""; /*** fill_day ***/ function fill_day(day, mm, yy, today){ var st_url = ""; var found_day = 0; var out_text=""; // игры for (i=0;i" + sch_games[mm][ii][3] + " [" + sch_games[mm][ii][4] + ".en.cx]" + ""; } } url = "http://cdn.endata.cx/data/games/7338/"+url+".gif"; cell_content = "
    • ∞
        " + wa_menu + "
      "; cell_class = "game"; break; } else { if (sch_games[mm][i][2] == 0) { url = 'utype.' + (sch_games[mm][i][1]); } else { url = ((today) ? 't' : '' )+'type.' + (sch_games[mm][i][1]); } url = "http://cdn.endata.cx/data/games/7338/"+url+".gif"; // cell_content = ""+game_titles[sch_games[mm][i][1]][2]+""; cell_content = ""+game_titles[sch_games[mm][i][1]][2]+""; cell_class = "game"; found_day = 1; } } } // праздники if (found_day == 0) { for (i=0;i"+day+""; cell_class = holidays[mm][i][1]; } else { cell_content = day; cell_class = holidays[mm][i][1]; } found_day = 1; } } } if (found_day == 0) { if (today) { cell_content = day; cell_class = "currentday"; } else if (yy < 6) { cell_content = day; cell_class = "wd"; } else { cell_content = day; cell_class = "def_holiday"; } } out_text = ""+cell_content+""; return out_text; } /********************/ /*** fill_table ***/ /********************/ function fill_table(m_name,m_length,mm) { var day=1; var t_text=0; g_st += ""; var tt_date = new Date(this_year, mm, 1); var start_day = tt_date.getDay(); if (start_day == 0) { start_day = 7; } var m_length = m_length + start_day - 1; var col = Math.ceil(m_length / 7); var max_col = col * 7; g_st += ""; for (var y=1;y<=7;y++) { for (var x=1;x<=col;x++) { if (x == 1) { g_st += ""; } p_day = y + ((x-1) * 7); if (p_day >= start_day) { t_text = p_day - start_day + 1; } else { t_text = 0; } if (p_day > m_length) { t_text = 0; } //today == true - сегодняшний день today = ((p_day - start_day + 1 == this_day) && (this_month == mm)); /* if ((p_day - start_day + 1 == this_day) && (this_month == mm)) { g_st += ""; } else */ { if (t_text != 0) { g_st += fill_day(t_text, mm+1, y, today); } else { // пустые дни - до 1 и после последнего if (y < 6) { g_st += ""; } else { g_st += ""; } } } if (x == col) { g_st += ""; } } } g_st += "
      "+m_name+"
      "+dayw[y]+""+t_text+fill_day(t_text, mm+1, y, 1)+"  
      "; } /*** Объявляем разновидности игр и картинки ***/ var game_titles = []; game_titles[0] = ["Cхватка","/Addons.aspx?aid=336","СХ"]; game_titles[1] = ["Мозговой штурм","/Addons.aspx?aid=342","МШ"]; game_titles[2] = ["Фотоэкстрим", "/Addons.aspx?aid=340","ФЭ"]; game_titles[3] = ["Мокрые войны","/Addons.aspx?aid=338","МВ"]; game_titles[4] = ["Кешинг","/Addons.aspx?aid=341","КШ"]; game_titles[5] = ["Фотоохота","/Addons.aspx?aid=337","ФО"]; game_titles[6] = ["Тайники","/HowTo.aspx?about=TreasureHuntDescription","ТНК"]; game_titles[7] = ["Точки","/HowTo.aspx?about=PointsDescription","ТЧК"]; game_titles[8] = ["Видеоохота","/HowTo.aspx?about=VideoHuntDescription","ВО"]; /***** Константы для календаря *****/ var dayw = ["","Пн","Вт","Ср","Чт","Пт","Сб","Вс"]; var DayOfWeek = ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота']; var month = ["","Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]; var MonthName = ['января','февраля','марта','апреля','мая','июня','июля','августа','сентября','октября','ноября','декабря']; var month_length = [0,31,28,31,30,31,30,31,31,30,31,30,31]; /*** Праздники. Формат: [День, "Стиль CSS", "Комментарий"], ... ***/ if (holidays[1].length == 0) { holidays[1] = [[1, "holiday", "Новогодние каникулы"], [2, "holiday", "Новогодние каникулы"], [3, "holiday", "Новогодние каникулы"], [4, "holiday", "Новогодние каникулы"], [5, "holiday", "Новогодние каникулы"], [6, "holiday", "Новогодние каникулы"], [7, "holiday", "Рождество Христово"], [8, "holiday", "Новогодние каникулы"], [9, "holiday", "Новогодние каникулы"], [10, "holiday", "Новогодние каникулы"], [11, "wd", ""]]; holidays[2] = [[23, "holiday", "День защитника Отечества"]]; holidays[3] = [[8,"holiday", "Международный женский день"],[9, "holiday", "Дополнительный выходной"]]; holidays[4] = [[30, "pre_holiday", "Укороченный день"]]; holidays[5] = [[1, "holiday", "Праздник Весны и Труда"], [8, "pre_holiday", "Укороченный день"], [9, "holiday", "День Победы"],[11, "holiday", "Дополнительный выходной"]]; holidays[6] = [[11, "pre_holiday", "Укороченный день"], [12, "holiday", "День России"]]; holidays[7] = []; holidays[8] = []; holidays[9] = []; holidays[10] = []; holidays[11] = [[3, "pre_holiday", "Укороченный день"], [4, "holiday", "День народного единства"]]; holidays[12] = [[31, "pre_holiday", "Укороченный день"]]; } var today = new Date(); var this_day = today.getDate(); var this_month = today.getMonth(); var this_year = today.getYear(); if (this_year < 2000) { this_year = this_year + 1900; } month_length[2] = (((this_year % 4 == 0) && (this_year % 100 != 0)) || (this_year % 400 == 0)) ? 29 : 28; if (p_small != 1) { g_st += 'Сегодня, ' + this_day + ' ' + MonthName[this_month] + ', ' + DayOfWeek[today.getDay()] +''; g_st += '

      '; } g_st += ""; if (p_small == 1){ var m, k = parseInt (this_month); for (m=0; m<2; m++){ if (k==12) { k = 0; this_year+=1; } if (m==0){ g_st += ''; k++; } } else { var jj = 1; for (var m = 0;m<=11;m++){ if (jj == 1) { if (m>0){ g_st += ""; } g_st += ""; jj = 0; } jj++; } } g_st += "
      '; } else { g_st += '

      '; } fill_table(month[k+1], month_length[k+1], k); g_st += '



      "; } fill_table(month[m+1], month_length[m+1], m); if (jj == 1) { g_st += "  "; } if (jj == 2) { g_st += "  "; } if (jj == 3) { g_st += "
      "; if (p_small!=1){ g_st += ""; g_st += ""; g_st += ""; g_st += ""; g_st += ""; for (var g = 0;g"; } g_st += "
      - Текущая дата
      - Укороченный день
      - Праздник
      - Выходной день
       - "+game_titles[g][0]+" (?)
      "; } return g_st; } this.do_calendar = function(p_small,p_color,p_class){ if (p_class!=null){ $(document).ready(function(){ $(p_class).html(do_calendar_proc(p_small,p_color)); }); } else { document.write(do_calendar_proc(p_small,p_color)); } } //****************************************** // КУКИ //****************************************** function getCookie_( name ) { var start = document.cookie.indexOf( name + '=' ); var len = start + name.length + 1; if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) { return null; } if ( start == -1 ) return null; var end = document.cookie.indexOf( ';', len ); if ( end == -1 ) end = document.cookie.length; return unescape( document.cookie.substring( len, end ) ); } function setCookie_( name, value, expires, path, domain, secure ) { var today = new Date(); today.setTime( today.getTime() ); if ( expires ) { expires = expires * 1000 * 60 * 60 * 24; } var expires_date = new Date( today.getTime() + (expires) ); document.cookie = name+'='+escape( value ) + ( ( expires ) ? ';expires='+expires_date.toGMTString() : '' ) + ( ( path ) ? ';path=' + path : '' ) + ( ( domain ) ? ';domain=' + domain : '' ) + ( ( secure ) ? ';secure' : '' ); } function deleteCookie_( name, path, domain ) { if ( getCookie_( name ) ) document.cookie = name + '=' + ( ( path ) ? ';path=' + path : '') + ( ( domain ) ? ';domain=' + domain : '' ) + ';expires=Thu, 01-Jan-1970 00:00:01 GMT'; } /****************************************************/ // подписи в форуме // // Tucker http://oren.en.cx/UserDetails.aspx?uid=19577 // doDescription(); /****************************************************/ //********* function doDescription_proc(){ var desc_id = []; if (location.pathname.match("/Messages.aspx") != null) { for (i in desc){ if (desc_id[desc[i][0]] == null){ desc_id[desc[i][0]] = []; } desc_id[desc[i][0]].push(i); } $('.gbUserTd .gbUserInfo a[href^="/UserDetails.aspx?uid"]').each(function(el) { wa_text = $(this).parent().parent().next(); if (wa_text.attr('class').indexOf("gbMessage")>=0){ wa_id = $(this).attr('href').match(/uid=(\d+)/)[1]; wa_desc = ""; if (desc_id[wa_id]!=null){ wa_desc = "
      ------"; for (i in desc_id[wa_id]){ wa_desc+= "
      " + desc[desc_id[wa_id][i]][1]; } wa_desc+= "
      "; wa_desc = '
      '; wa_text.append(wa_desc); } } }); }} //********* this.doDescription = function(){ if (location.pathname.match("/Messages.aspx") != null){ $(document).ready(function(){ doDescription_proc(); $(".my_desc").animate({opacity: "show"}, "slow") }); } } // глобальные переменные //********* function doHideAdmRank_proc(){ var rank = ["","Рядовой","Младший сержант","Сержант","Старший сержант","Младший лейтенант","Лейтенант","Старший лейтенант","Капитан","Майор","Подполковник","Полковник","Генерал-полковник"]; if (location.pathname.match("/Messages.aspx") != null) { $('.gbUserTd .gbUserInfo a[href^="/UserDetails.aspx?uid"]').each(function(el) { if ($(this).parent().parent().next().attr('class').indexOf("gbMessage")>=0){ wa_id = $(this).attr('href').match(/uid=(\d+)/)[1]; if (hiderank[wa_id]!=null){ $(this).parent().parent().children().children().children().eq(0).attr('src','http://cdn.endata.cx/images/icons/ranks/rr'+hiderank[wa_id]+'.gif').attr('title',rank[hiderank[wa_id]]).attr('alt',rank[hiderank[wa_id]]); } } }); } if (location.pathname.match("/UserDetails.aspx") != null) { wa_id = location.href.match(/uid=(\d+)/)[1]; if (hiderank[wa_id]!=null){ $('#enUserDetailsPanel_lblPointsVal').next().children().children().attr('src','http://cdn.endata.cx/images/icons/ranks/rr'+hiderank[wa_id]+'.gif').attr('title',rank[hiderank[wa_id]]).attr('alt',rank[hiderank[wa_id]]).parent().parent().next().html(rank[hiderank[wa_id]]); // $('#enUserDetailsPanel_userRank_imgUserRank').attr('src','http://cdn.endata.cx/images/icons/ranks/rr'+hiderank[wa_id]+'.gif').attr('title',rank[hiderank[wa_id]]).attr('alt',rank[hiderank[wa_id]]).parent().parent().next().html(rank[hiderank[wa_id]]); } } if ((location.pathname.match("/Default.aspx") != null)||(location.pathname == "/")) { // $('a[@id*="_TopUserRepeater_"][@id="lnkUserInfo"]').each(function(i){ $('.white24 + br + br + table a[href^="/UserDetails.aspx?uid"]').each(function(el) { wa_id = $(this).attr('href').match(/uid=(\d+)/)[1]; if (hiderank[wa_id]!=null){ $(this).parent().prev().children().children().eq(0).attr('src','http://cdn.endata.cx/images/icons/ranks/rr'+hiderank[wa_id]+'.gif').attr('title',rank[hiderank[wa_id]]).attr('alt',rank[hiderank[wa_id]]); if ($(this).parent().html().match("очков") != null) { var tmp_st = 'очков, '+rank[hiderank[wa_id]]+')'; $(this).parent().html($(this).parent().html().replace(/очков, .*/,tmp_st)); } } }); } if (location.pathname.match("/UserList.aspx") != null) { $('a[id^="UsersRepeater_ctl"][id$="lnkUserInfo"]').each(function(){ wa_id = $(this).attr('href').match(/uid=(\d+)/)[1]; if (hiderank[wa_id]!=null){ $(this).parent().parent().children().eq(2).children().attr('src','http://cdn.endata.cx/images/icons/ranks/rr'+hiderank[wa_id]+'.gif').attr('title',rank[hiderank[wa_id]]).attr('alt',rank[hiderank[wa_id]]); } }); } } //********* this.doHideAdmRank = function(){ if ((location.pathname.match("/Default.aspx") != null)|| (location.pathname == "/")|| (location.pathname.match("/UserDetails.aspx") != null)|| (location.pathname.match("/UserList.aspx") != null)|| (location.pathname.match("/Messages.aspx") != null)){ $(document).ready(function(){ doHideAdmRank_proc(); }); } } /****************************************************/ // подписи в форуме // // doDescription(); /****************************************************/ } /****************************************************/ // для "Подробности" в анонсах /****************************************************/ function do_anons_desc(wa_gid){ $(document).ready(function(){ $("#hide"+wa_gid).click(function(){ $("#box"+wa_gid+"Show").hide(); $("#box"+wa_gid+"Hide").show(); $("#box"+wa_gid).animate({opacity: "hide", height: "hide"}, "slow") return false; }); $("#show"+wa_gid).click(function(){ $("#box"+wa_gid+"Hide").hide(); $("#box"+wa_gid+"Show").show(); $("#box"+wa_gid).animate({opacity: "show", height: "show"}, "slow") return false; }); }); } $(document).ready(function(){ $(".box-tr").click(function(){return false;}); $(".ul-tr ul").hide(); // Opera Fix $(".ul-tr li").hover( function(){$(this).find('ul:first').show("fast").attr("style","z-index:10000");}, function(){$(this).find('ul:first').hide("fast").attr("style","z-index:auto");}); });