$(document).ready(init); function init() { $("div.menu_square1").each( function(i) { $(this).mouseover( function() { $("div.menu_square0").eq(i).css("backgroundColor", "#91aa37"); $("td.menu_padd").eq(i).css("paddingLeft", "10px"); } ) $(this).mouseout( function() { $("div.menu_square0").eq(i).css("backgroundColor", "#abc254"); $("td.menu_padd").eq(i).css("paddingLeft", "8px"); } ) var link = $(this).find("a").eq(0).attr("href"); $(this).click( function() { window.location.href = link } ) } ) order_init(); init2(); } function order_act() { var old = getCookie("order7"); if(old && $.trim(old.replace(/[_]/g, ' '))) document.location.href = '/edu/order'; else ; } function order_init() { var old = getCookie("order7"); if(old) { var arr = $.trim(old.replace(/[_]/g, ' ')).split(' '); var cc = 0; var ec = 0; var catc = 0; for(var i in arr) { var trr = arr[i].split(':'); if(trr && trr.length > 2) { if(trr[1].indexOf('course') != -1) cc++; else if(trr[1].indexOf('exam') != -1) ec++; else if(trr[1].indexOf('catalog') != -1) catc++; } else continue; } $("#course_count span").text(cc); $("#exam_count span").text(ec); $("#catalog_count span").text(catc); } else { $("#course_count span").text("0"); $("#exam_count span").text("0"); $("#catalog_count span").text("0"); } } function order_add(add) { var old = getCookie("order7"); if(!old) { setCookie("order7", add); return true; } else { if(old.indexOf(add) != -1) return false; old += '_' + add; setCookie("order7", old); return true; } } function order_remove(rmv) { var old = getCookie("order7"); if(!old) return false; if(old.indexOf(rmv) != -1) { setCookie("order7", old.replace(rmv, '').replace(/[_]+/g, '_')); return true; } else return false; } var block = 0; function order_tip_(add, text0, text1) { var scr = 0; if(document.documentElement.scrollTop > scr) scr = document.documentElement.scrollTop; if(document.body.scrollTop > scr) scr = document.body.scrollTop; if(block) return; block = 1; var text = ''; if(order_add(add)) text = text0; else text = text1; $("#order_tip").text(text); $("#order_tip").css("top", 200 + scr); $("#order_tip").animate({opacity: 'show'}, 200); setTimeout("$('#order_tip').animate({opacity: 'hide'}, 300); block = 0;", 2000); order_init(); } function extract_value(arg) { var q = window.location.search; if(!q) return ''; if(q.indexOf(arg + "=") != -1) { var r = new RegExp(".*" + arg + "[=]", "i"); q = q.replace(r, ''); q = q.replace(/[&].*/, ''); return q; } return ''; } function add_subtitle(text, href) { var clone = $("#subtitle a:first").clone(); $(clone).html(text); $(clone).attr("href", href); $("#subtitle").html($.trim($("#subtitle").html())); $("#subtitle").append("/"); $("#subtitle").append(clone); } function add_navigation(text, attr, style) { if(attr && attr['href']) { var clone = $("#navigator div:last").clone(); $(clone).css('display', ''); // $(clone).css('font-weight', 'bold'); if ( (text == 'Microsoft Windows XP') || (text == 'Microsoft Windows Server 2008') || (text == 'Microsoft Exchange Server 2010')|| (text == 'Microsoft SQL Server 2008')){ $(clone).find("a").html(text).css('color', '#8B4100');} else $(clone).find("a").html(text); if(attr) for(var i in attr) if(attr[i]) $(clone).find("a").attr(i, attr[i]); if(style) for(var i in style) if(style[i]) $(clone).css(i, style[i]); $("#navigator div:last").before(clone); } else { var clone = $("#navigator div:first").clone(); $(clone).css('display', ''); $(clone).html(text); if(attr) for(var i in attr) if(attr[i]) $(clone).attr(i, attr[i]); if(style) for(var i in style) if(style[i]) $(clone).css(i, style[i]); $("#navigator div:last").before(clone); } } function add_vendor_to_navi(i) { if(!vendor_translation[i]) return; //допроверка на символьность и замена на индекс //результат i - числовой индекс, n - символьный for (n in vendor_translation) { if ((vendor_translation[n] == vendor_translation[i]) && (parseInt(n))) { i=n; } if ((vendor_translation[n] == vendor_translation[i]) && !(parseInt(n))) { sym=n; } } if(flag_top) add_navigation(vendor_translation[i], '', mt_const); else { flag_top = true; add_navigation(vendor_translation[i]); } for(var j in type_translation) if(study_tree[i + '_' + j] && j.indexOf('schedule') != -1) { var attr = new Array(); attr['href'] = '/edu/schedule/index.php#' + i; add_navigation(type_translation[j], attr, ml_const); } else if(study_tree[i + '_' + j] && j.indexOf('course') != -1) { var attr = new Array(); attr['href'] = '/edu/study/index.php?goto=list&vendor=' + sym + '&type=course'; add_navigation(type_translation[j], attr, ml_const); } else if(study_tree[i + '_' + j] && j.indexOf('exam') != -1) { var attr = new Array(); attr['href'] = '/edu/study/index.php?goto=list&vendor=' + sym + '&type=exam'; if (i==9) attr['href'] = '/edu/study/index.php?goto=list&vendor=zend&type=exam'; add_navigation(type_translation[j], attr, ml_const); } else if(study_tree[i + '_' + j] && j.indexOf('certification') != -1) { var attr = new Array(); attr['href'] = '/edu/certification/' + vendor_translation[i].toLowerCase().replace(/[ ]/g, '').replace(/.*(?=office)/g, ''); add_navigation(type_translation[j], attr, ml_const); } else if(study_tree[i + '_' + j] && j.indexOf('catalog') != -1) { var attr = new Array(); attr['href'] = '/edu/study/' + vendor_translation[i].toLowerCase().replace(/[ ]/g, '').replace(/.*(?=office)/g, '') + '/catalog'; add_navigation(type_translation[j], attr, ml_const); } else if(study_tree[i + '_' + j] && j.indexOf('materials') != -1) { var attr = new Array(); attr['href'] = '/edu/study/' + vendor_translation[i].toLowerCase().replace(/[ ]/g, '').replace(/.*(?=office)/g, '') + '/library'; add_navigation(type_translation[j]+' '+vendor_translation[i], attr, ml_const); } else if(study_tree[i + '_' + j] && j.indexOf('openvalue') != -1) { var attr = new Array(); attr['href'] = '/edu/study/' + vendor_translation[i].toLowerCase().replace(/[ ]/g, '').replace(/.*(?=office)/g, '') + '/openvalue'; add_navigation(type_translation[j], attr, ml_const); } } function setCookie(cookieName, cookieValue, nDays) { var today = new Date(); var expire = new Date(); if (nDays == null || nDays == 0) nDays = 1; expire.setTime(today.getTime() + 3600000 * 24 * nDays); // document.cookie = cookieName + "=" + escapeOrig(cookieValue) + ";expires=" + expire.toGMTString() + ";path=/"; document.cookie = cookieName + "=" + cookieValue + ";expires=" + expire.toGMTString() + ";path=/"; } function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } return unescape(dc.substring(begin + prefix.length, end)); } function a_to_q(a) { var q = ''; for(var i in a){ // q += i + '=' + escape(a[i]).replace(/[+]/g, '%2B') + '&';} q += i + '=' + a[i].replace(/[+]/g, '%2B') + '&'; } return q; } //xpoint copyright /* var trans = []; for (var i = 0x410; i <= 0x44F; i++) trans[i] = i - 0x350; trans[0x401] = 0xA8; trans[0x451] = 0xB8; // var escapeOrig = window.escape; window.escape = function(str) { //Ejz code str = $.trim(str); str = str + ''; // var ret = []; for (var i = 0; i < str.length; i++) { var n = str.charCodeAt(i); if (typeof trans[n] != 'undefined') n = trans[n]; if (n <= 0xFF) ret.push(n); } return escapeOrig(String.fromCharCode.apply(null, ret)); } */ //////Navigation Certification function navigation_certification() { var attr = new Array(); } ////// //////Navigation Exam function navigation_exam() { var attr = new Array(); var style = new Array(); style['fontSize'] = '14px'; style['fontWeight'] = 'bold'; //Microsoft attr['href'] = '/edu/exam/index.php?goto=list&vendor=1'; add_navigation('Microsoft', attr, style); attr['href'] = '/edu/exam/index.php?goto=list&vendor=1&certification=6'; add_navigation('MCDST', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=1&certification=7-8'; add_navigation('MCTS', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=1&certification=9-10'; add_navigation('MCITP', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=1&certification=14'; add_navigation('MCSA', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=1&certification=15'; add_navigation('MCSE', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=1&certification=11-12-13'; add_navigation('MCTS .NET', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=1&certification=18'; add_navigation('MCPD', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=1&certification=16'; add_navigation('MCAD', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=1&certification=17'; add_navigation('MCSD', attr, ml_const); //Microsoft Office style['marginTop'] = '5px'; attr['href'] = '/edu/exam/index.php?goto=list&vendor=8'; add_navigation('Microsoft Office', attr, style); attr['href'] = '#'; add_navigation('MOS', attr, ml_const); //Novell attr['href'] = '/edu/exam/index.php?goto=list&vendor=2'; add_navigation('Novell', attr, style); attr['href'] = '/edu/exam/index.php?goto=list&vendor=2&certification=19-20'; add_navigation('CNA', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=2&certification=21-22'; add_navigation('CNE', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=2&certification=23'; add_navigation('MCNE', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=2&certification=24'; add_navigation('LPIC', attr, ml_const); //Red Hat attr['href'] = '/edu/exam/index.php?goto=list&vendor=3'; add_navigation('Red Hat', attr, style); attr['href'] = '/edu/exam/index.php?goto=list&vendor=3&certification=3'; add_navigation('RHCT', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=3&certification=4'; add_navigation('RHCE', attr, ml_const); //Ubuntu attr['href'] = '/edu/exam/index.php?goto=list&vendor=6'; add_navigation('Ubuntu', attr, style); attr['href'] = '/edu/exam/index.php?goto=list&vendor=6&certification=5'; add_navigation('UCP', attr, ml_const); //Cisco attr['href'] = '/edu/exam/index.php?goto=list&vendor=7'; add_navigation('Cisco', attr, style); attr['href'] = '/edu/exam/index.php?goto=list&vendor=7&certification=1'; add_navigation('CCNA', attr, ml_const); attr['href'] = '/edu/exam/index.php?goto=list&vendor=7&certification=2'; add_navigation('CCNP', attr, ml_const); //PHP attr['href'] = '/edu/exam/index.php?goto=list&vendor=49'; add_navigation('Zend (PHP)', attr, style); attr['href'] = '/edu/exam/index.php?goto=list&vendor=49'; add_navigation('Zend (PHP)', attr, ml_const); } ////// var flag_top = false; var mt_const = new Array(); mt_const['marginTop'] = '5px'; var ml_const = new Array(); ml_const['marginLeft'] = '3px'; var vendor_translation = new Array(); vendor_translation['1'] = 'Microsoft'; vendor_translation['8'] = 'Microsoft Office'; vendor_translation['2'] = 'Novell'; vendor_translation['3'] = 'Red Hat'; vendor_translation['4'] = 'Computer Associates'; vendor_translation['5'] = 'ITIL'; vendor_translation['6'] = 'Ubuntu'; vendor_translation['7'] = 'Cisco'; vendor_translation['9'] = 'PHP'; vendor_translation['10'] = 'OpenOffice'; vendor_translation['11'] = 'Convergence Technologies Professional (CTP)'; vendor_translation['12'] = 'Linux Professional Institute Testing'; vendor_translation['13'] = 'Check Point Software Technologies'; vendor_translation['14'] = 'Citrix Systems'; vendor_translation['15'] = 'ACSM'; vendor_translation['16'] = 'Adobe'; vendor_translation['17'] = 'Altiris'; vendor_translation['18'] = 'Aruba Networks '; vendor_translation['19'] = 'Avaya Inc'; vendor_translation['20'] = 'British Computer Society'; vendor_translation['21'] = 'Brocade Communications'; vendor_translation['22'] = 'Business Objects'; vendor_translation['23'] = 'CIW'; vendor_translation['24'] = 'CompTIA'; vendor_translation['25'] = 'CWNP'; vendor_translation['26'] = 'Dassault Systemes'; vendor_translation['27'] = 'EC-Council'; vendor_translation['28'] = 'EMC'; vendor_translation['29'] = 'EXIN'; vendor_translation['30'] = 'Fortinet'; vendor_translation['31'] = 'HDI'; vendor_translation['32'] = 'ILOG'; vendor_translation['33'] = 'Isilon Systems'; vendor_translation['34'] = 'MySQL'; vendor_translation['35'] = 'National Instruments'; vendor_translation['36'] = 'Novell Testing'; vendor_translation['37'] = 'Object Management Group'; vendor_translation['38'] = 'Pegasystems Inc'; vendor_translation['39'] = 'PostgreSOL CE (SRA OSS)'; vendor_translation['40'] = 'PRMIA'; vendor_translation['41'] = 'Riverbed Technology'; vendor_translation['42'] = 'RSA Security Testing'; vendor_translation['43'] = 'Security Certified Program'; vendor_translation['44'] = 'SpringSource'; vendor_translation['45'] = 'VMware'; vendor_translation['46'] = 'VUE Demo'; vendor_translation['47'] = 'VUE Testing'; vendor_translation['48'] = 'Websense'; vendor_translation['49'] = 'Zend Technologies, Ltd.'; vendor_translation['50'] = 'Qt'; vendor_translation['51'] = 'Apple'; vendor_translation['52'] = 'BEA Systems'; vendor_translation['53'] = 'BlackBerry Certification (RIM)'; vendor_translation['54'] = 'Charles Sturt University'; vendor_translation['55'] = 'COGNOS'; vendor_translation['56'] = 'Convergence Technologies Profession'; vendor_translation['57'] = 'Exam Express'; vendor_translation['58'] = 'F5 Networks'; vendor_translation['59'] = 'FileMaker'; vendor_translation['60'] = 'Foundry Networks'; vendor_translation['61'] = 'Fujitsu'; vendor_translation['63'] = 'Genesys Telecommunications Laboratories'; vendor_translation['64'] = 'Green Building Council of Australia'; vendor_translation['65'] = 'Guidance Software'; vendor_translation['66'] = 'H3C'; vendor_translation['67'] = 'Hewlett Packard'; vendor_translation['68'] = 'Hitachi Data Systems'; vendor_translation['69'] = 'IBM'; vendor_translation['70'] = 'IFID Exam -ICM A International Capital Market Association'; vendor_translation['71'] = 'IISFA (International Information Systems Forensics Assoc)'; vendor_translation['72'] = 'Infosys'; vendor_translation['73'] = 'International Consortium of Certified Knowledge Experts'; vendor_translation['74'] = 'ISEB'; vendor_translation['75'] = 'Juniper Networks'; vendor_translation['76'] = 'Nortel'; vendor_translation['77'] = 'Oracle'; vendor_translation['78'] = 'Sun Microsystems'; vendor_translation['79'] = 'Sybase'; vendor_translation['80'] = 'Symantec'; vendor_translation['81'] = 'Siemens'; vendor_translation['82'] = 'Nokia QT'; vendor_translation['83'] = 'iSQI'; vendor_translation['84'] = 'Защита персональных данных'; vendor_translation['microsoft'] = 'Microsoft'; vendor_translation['office'] = 'Microsoft Office'; vendor_translation['novell'] = 'Novell'; vendor_translation['redhat'] = 'Red Hat'; vendor_translation['ca'] = 'Computer Associates'; vendor_translation['itil'] = 'ITIL'; vendor_translation['ubuntu'] = 'Ubuntu'; vendor_translation['cisco'] = 'Cisco'; vendor_translation['php'] = 'PHP'; vendor_translation['openoff'] = 'OpenOffice'; vendor_translation['ctp'] = 'Convergence Technologies Professional (CTP)'; vendor_translation['lpi'] = 'Linux Professional Institute Testing'; vendor_translation['checkpoint'] = 'Check Point Software Technologies'; vendor_translation['citrix'] = 'Citrix Systems'; vendor_translation['acsm'] = 'ACSM'; vendor_translation['adobe'] = 'Adobe'; vendor_translation['altiris'] = 'Altiris'; vendor_translation['aruba'] = 'Aruba Networks '; vendor_translation['avaya'] = 'Avaya Inc'; vendor_translation['britishcomputer'] = 'British Computer Society'; vendor_translation['bcomm'] = 'Brocade Communications'; vendor_translation['businessobjects'] = 'Business Objects'; vendor_translation['ciw'] = 'CIW'; vendor_translation['comptia'] = 'CompTIA'; vendor_translation['cwnp'] = 'CWNP'; vendor_translation['dassault'] = 'Dassault Systemes'; vendor_translation['eccouncil'] = 'EC-Council'; vendor_translation['emc'] = 'EMC'; vendor_translation['exin'] = 'EXIN'; vendor_translation['fortinet'] = 'Fortinet'; vendor_translation['hdi'] = 'HDI'; vendor_translation['ilog'] = 'ILOG'; vendor_translation['isilon'] = 'Isilon Systems'; vendor_translation['mysql'] = 'MySQL'; vendor_translation['ni'] = 'National Instruments'; vendor_translation['novelltest'] = 'Novell Testing'; vendor_translation['objectmanagement'] = 'Object Management Group'; vendor_translation['pegasystems'] = 'Pegasystems Inc'; vendor_translation['postgresql'] = 'PostgreSOL CE (SRA OSS)'; vendor_translation['prmia'] = 'PRMIA'; vendor_translation['riverbed'] = 'Riverbed Technology'; vendor_translation['rsa'] = 'RSA Security Testing'; vendor_translation['securitycertified'] = 'Security Certified Program'; vendor_translation['springsource'] = 'SpringSource'; vendor_translation['vmware'] = 'VMware'; vendor_translation['vuedemo'] = 'VUE Demo'; vendor_translation['vuetest'] = 'VUE Testing'; vendor_translation['websense'] = 'Websense'; vendor_translation['zend'] = 'Zend Technologies, Ltd.'; vendor_translation['qt'] = 'Qt'; vendor_translation['apple'] = 'Apple'; vendor_translation['bea'] = 'BEA Systems'; vendor_translation['blackberry'] = 'BlackBerry Certification (RIM)'; vendor_translation['charlessturt'] = 'Charles Sturt University'; vendor_translation['cognos'] = 'COGNOS'; vendor_translation['convergence'] = 'Convergence Technologies Profession'; vendor_translation['examexpress'] = 'Exam Express'; vendor_translation['f5'] = 'F5 Networks'; vendor_translation['filemaker'] = 'FileMaker'; vendor_translation['foundry'] = 'Foundry Networks'; vendor_translation['fujitsu'] = 'Fujitsu'; vendor_translation['genesys'] = 'Genesys Telecommunications Laboratories'; vendor_translation['greenbuilding'] = 'Green Building Council of Australia'; vendor_translation['guidance'] = 'Guidance Software'; vendor_translation['h3c'] = 'H3C'; vendor_translation['hp'] = 'Hewlett Packard'; vendor_translation['hitachi'] = 'Hitachi Data Systems'; vendor_translation['ibm'] = 'IBM'; vendor_translation['ifid'] = 'IFID Exam -ICM A International Capital Market Association'; vendor_translation['iisfa'] = 'IISFA (International Information Systems Forensics Assoc)'; vendor_translation['infosys'] = 'Infosys'; vendor_translation['internationalconsortium'] = 'International Consortium of Certified Knowledge Experts'; vendor_translation['iseb'] = 'ISEB'; vendor_translation['jnetw'] = 'Juniper Networks'; vendor_translation['nortel'] = 'Nortel'; vendor_translation['oracle'] = 'Oracle'; vendor_translation['sun'] = 'Sun Microsystems'; vendor_translation['sybase'] = 'Sybase'; vendor_translation['symantec'] = 'Symantec'; vendor_translation['siemens'] = 'Siemens'; vendor_translation['nokia'] = 'Nokia QT'; vendor_translation['isqi'] = 'iSQI'; vendor_translation['infosec'] = 'Защита персональных данных'; // var type_translation = new Array(); type_translation['course'] = 'Курсы'; type_translation['exam'] = 'Экзамены'; type_translation['certification'] = 'Сертификация'; type_translation['schedule'] = 'Расписание'; type_translation['catalog'] = 'Каталог'; type_translation['materials'] = 'Брошюры'; type_translation['openvalue'] = 'Бесплатное обучение'; // var type_translation_singular = new Array(); type_translation_singular['course'] = 'Курс'; type_translation_singular['exam'] = 'Экзамен'; // var study_tree = new Array(); study_tree['1_course'] = true; study_tree['1_schedule'] = true; study_tree['1_exam'] = true; study_tree['1_certification'] = true; study_tree['1_catalog'] = true; study_tree['1_openvalue'] = true; // study_tree['2_course'] = true; study_tree['2_schedule'] = true; //study_tree['2_exam'] = true; study_tree['2_certification'] = true; study_tree['2_catalog'] = true; // study_tree['3_course'] = true; study_tree['3_schedule'] = true; study_tree['3_exam'] = true; study_tree['3_certification'] = true; study_tree['3_catalog'] = true; // study_tree['4_course'] = true; study_tree['4_schedule'] = true; // study_tree['5_course'] = true; study_tree['5_schedule'] = true; // study_tree['6_course'] = true; study_tree['6_exam'] = true; study_tree['6_schedule'] = true; study_tree['6_certification'] = true; study_tree['6_catalog'] = true; // study_tree['7_course'] = true; study_tree['7_exam'] = true; study_tree['7_schedule'] = true; study_tree['7_certification'] = true; study_tree['7_catalog'] = true; study_tree['7_materials'] = true; // study_tree['8_course'] = true; //study_tree['8_exam'] = true; study_tree['8_schedule'] = true; study_tree['8_certification'] = true; study_tree['8_catalog'] = true; // study_tree['9_course'] = true; study_tree['9_schedule'] = true; study_tree['9_exam'] = true; // study_tree['10_course'] = true; study_tree['10_schedule'] = true; study_tree['50_course'] = true; study_tree['50_schedule'] = true; study_tree['84_course'] = true; study_tree['84_schedule'] = true; study_tree['45_course'] = true; study_tree['45_exam'] = true; study_tree['45_schedule'] = true; /*study_tree['11_exam'] = true; study_tree['12_exam'] = true; study_tree['13_exam'] = true; study_tree['14_exam'] = true; study_tree['15_exam'] = true; study_tree['16_exam'] = true; study_tree['17_exam'] = true; study_tree['18_exam'] = true; study_tree['19_exam'] = true; study_tree['20_exam'] = true; study_tree['21_exam'] = true; study_tree['22_exam'] = true; study_tree['23_exam'] = true; study_tree['24_exam'] = true; study_tree['25_exam'] = true; study_tree['26_exam'] = true; study_tree['27_exam'] = true; study_tree['28_exam'] = true; study_tree['29_exam'] = true; study_tree['30_exam'] = true; study_tree['31_exam'] = true; study_tree['32_exam'] = true; study_tree['33_exam'] = true;*/