var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); $(document).ready(function(){ initForm(); initCheck() initCufon(); initInputWrap(); initCustomForms(); initScroll(); initCounter(); initList(); $("#content div.calendar table tbody tr:nth-child(even)").addClass("even"); initSlider(); initMenuDropDown(); initGallery(); styleFrontVideo(); initValidate(); }); function initMenuDropDown(){ $('#header li.expanded ul.menu').wrap('
'); $('#header li.expanded .sub').append('
'); $('.menu-bar > ul.menu > li.expanded').each(function(){ $(this).hover( function(){ $(this).find('div.sub').show(); }, function(){ $('li.expanded div.sub').hide(); } ); }); $('#header .menu-bar ul.menu').show(); } function initCounter(){ $('#edit-submitted-project-description').live('keydown',function(){ textCounter('edit-submitted-project-description','count',350); }); } function textCounter(textarea, countdown, maxlimit){ textareaid = document.getElementById(textarea); if (textareaid.value.length > maxlimit){ textareaid.value = textareaid.value.substring(0, maxlimit); } else{ $('#'+countdown).text(maxlimit-textareaid.value.length); } } function initList(){ $('ol li').each(function(){ var text = $(this).html(); $(this).html(''+text+''); }); } function initCufon() { Cufon.replace('.i18n-en #footer .block-menu a, .i18n-en #footer .block-menu ul li span, .i18n-en #container .view-speakers-block .field-content em, .i18n-en #center .summit h2, .i18n-en #center .exhibition h2, .i18n-en #center .highlights h2, .i18n-en .view-news-block .view-header h3,#sidebar-left #nodesinblock-93.nodesinblock h3, .i18n-en #block-views-testimonials-block_1 h2, .i18n-en #block-views-news_block-block_1 h2, .i18n-en .eye-on h3, .i18n-en .view-partners-logos h2, .cufonlight ', { fontFamily: 'Gotham Light', hover: true }); Cufon.replace('.i18n-en #content h2, .i18n-en #content .node-title h1,.i18n-en #content table th, .i18n-en #content .view-summit-partners h3, .video-holder .pager span, .cufonbook', { fontFamily: 'Gotham Book', hover: true }); Cufon.replace('.i18n-en .front .view-speakers-block .field-content a, .cufonbold', { fontFamily: 'Gotham Bold', hover: true }); Cufon.replace('.i18n-en #content .view-news-block .views-field-title span a, .i18n-en #content .view-summit-partners .views-field-title a, .i18n-en .view-working-group .views-field-title span a, .i18n-en .views-field-path a.more, .i18n-en #content .field-content a.more, .i18n-en #content .search-results dt.title,.i18n-en ul#attachment li a, .i18n-en #content .content .partner-info h3, #content .eye-on a.more, .cufonmedium', { fontFamily: 'Gotham Medium', hover: true }); } function initSlider(){ //featured post homepage $('.slider-wrap').append('
'); $('.slider-wrap .slider').cycle({ fx: 'fade', timeout: 9000, speed: 2000, next: '#next', prev: '#prev' }); //speakers var speakers = $('#center .view-speakers-block .view-content .views-row'); for(var i = 0; i < speakers.length; i+=4) { speakers.slice(i, i+4).wrapAll("
"); } $('#center .view-speakers-block .view-content').cycle({ fx: 'fade', speed: 3000, timeout: 9000 }); $('#block-views-testimonials-block_1 h2').after('