Sorry, you need to enable JavaScript to visit this website.

oca

oca
 
").insertAfter(".logo"); jQuery("#block-domain-conf-domain-main-links ul:first-child").children().each(function() { jQuery(this).clone().appendTo('#desktop-main-menu'); }); function checkresponsive() { if (jQuery('#desktop-head').length
    ").insertAfter(".header-agency-logo.desktop"); jQuery("#block-domain-conf-domain-main-links ul:first-child").children().each(function() { jQuery(this).clone().appendTo('#desktop-main-menu'); }); } ////////////// Menu dropdown script ////////////////////// jQuery('.region-header-first-inner li.expanded > a').each(function () { var list = jQuery(this).siblings('ul.menu-sub'); jQuery(this).clone().prependTo(list).wrap('
  • '); }); jQuery('#block-domain-conf-domain-main-links div.content > ul.menu-sub > li.expanded > a').click(function () { console.log("link was clicked"); var list = jQuery(this).children('ul'); jQuery(this).parent().children('ul').slideToggle(); return false; }); }//End function checkresponsive(); //Adds hover class to Top Menu navigation on hover and active secondary level until mouseout jQuery("#desktop-main-menu > li").hover(function(){ jQuery(this).addClass("hover"); jQuery(this).children('ul').show(); }, function(){ jQuery(this).removeClass("hover"); jQuery("#desktop-main-menu li.expanded ul").hide(); }); jQuery("#desktop-main-menu>li a").focus(function(){ jQuery(this).parent().addClass("hover"); jQuery(this).children('ul').show(); }); jQuery("#desktop-main-menu>li .menu-sub").focusout(function(){ jQuery(this).parent().parent().removeClass("hover"); jQuery(this).children('ul').show(); }); //Rewrite event dates const eventDates = document.querySelectorAll(".front .views-field-field-date span"); eventDates.forEach((date)=>{ let eventMonth = date.innerHTML.split('/')[0]; let eventDay = date.innerHTML.split('/')[1]; date.innerHTML = "
    " + eventDay +"
    " + getMonth(eventMonth) + "
    "; }); function getMonth(number){ var monthArray = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul","Aug", "Sep", "Oct", "Nov", "Dec"]; return monthArray[parseInt(number)-1]; } // FAQ toggle if (jQuery('.timeline-top')) { jQuery('.timeline-top').click(function () { console.log('im clicked'); jQuery(this).siblings('div').slideToggle(); jQuery(this).toggleClass('expanded'); }); } //Rotator initiation script jQuery(".view-id-agency_home_responsive .view-content").addClass("owl-carousel"); jQuery(".view-id-agency_home_responsive .view-content").addClass("owl-theme"); if(jQuery('.view-id-agency_home_responsive .views-field-title-1 .field-content').length > 0){ jQuery('.view-id-agency_home_responsive .view-content').owlCarousel({ stagePadding: 0, items:1, loop:true, margin:0, autoplay:true, autoplayTimeout:5000, autoplayHoverPause:false, singleItem:true, nav:true, dots:true }); } //Hide the Slider Caption Text Box if there is no text in it if(jQuery(".caption-text").html() == '') { jQuery(".slide #text").hide(); } // Display Full width images on interior pages when available function addBanner(){ if ((jQuery(".field-name-field-image img").length > 0)&&(!jQuery("body").hasClass("front"))&&(!jQuery("body").hasClass("node-type-event"))) { console.log("there is an image on internal page"); if (jQuery("article").hasClass("node-promoted")) { /* its a page and promoted to front page. Skip the first image */ console.log("node promoted"); //jQuery(".not-front.no-sidebars .zone-content-wrapper").css("margin-top","196px"); //Set the default margin-top and adjust it later if(jQuery(".field-name-field-image").find("img:eq(1)").attr("src")) { console.log("img2"); let imagesource = jQuery(".field-name-field-image").find("img:eq(1)").attr("src"); let newsource = imagesource.replace('/styles/medium/public/', '/'); jQuery("#section-content").before(""); jQuery(".not-front.no-sidebars .zone-content-wrapper").css("margin-top","30px"); } if(jQuery(".field-name-field-image").find("img:eq(2)").attr("src")) { console.log("img3"); let imagesource = jQuery(".field-name-field-image").find("img:eq(2)").attr("src"); let newsource = imagesource.replace('/styles/medium/public/', '/'); jQuery("#section-content").before(""); jQuery(".not-front.no-sidebars .zone-content-wrapper").css("margin-top","30px"); } console.log("end of promote to front page"); } else { // End of promote to front page /* This is a normal page. Display the banner image */ console.log("normal page image"); let imagesource = jQuery(".field-name-field-image").find("img:eq(0)").attr("src"); let newsource = imagesource.replace('/styles/medium/public/', '/'); jQuery("").prependTo("#section-content"); if(jQuery(".field-name-field-image").find("img:eq(1)").attr("src")) { console.log("mobile image present"); let imagesource = jQuery(".field-name-field-image").find("img:eq(1)").attr("src"); let newsource = imagesource.replace('/styles/medium/public/', '/'); jQuery("#section-content").before(""); jQuery(".not-front.no-sidebars .zone-content-wrapper").css("margin-top","30px"); } } jQuery(".field-name-field-image img").hide(); // Hide regular lead image on page console.log("hide the page images"); // Decrease the top margin of content // jQuery(".not-front.no-sidebars .zone-content-wrapper").css("margin-top","30px"); } else { /* end of not event node / image */ console.log("there is no Lead Image on an internal page or its event node"); jQuery(".field-name-field-image img").hide(); // Hide the Lead image if its on any other content type than page } }//end function addBanner(); // Adjust the width of interior page region-content on mobile and tablets if (jQuery(window).width() 979 && jQuery("body").hasClass("not-front")) { jQuery("#page-title").appendTo(".banner-image"); } // Move the Translate box between the logo and mobile menu on mobile and tablets if (jQuery(window).width() > 739 ) { jQuery(".translate").insertAfter(".logo"); } // Move the Translate box after the navigation and search on desktops and larger if (jQuery(window).width() > 1219 ) { jQuery(".translate").insertAfter("#desktop-head"); } //Move div jQuery("#region-agency-home-3col-a").prependTo("#region-content"); //GSE Search JavaScript jQuery("
  • ").insertAfter(".translate"); jQuery("
    ").prependTo("#block-domain-conf-domain-main-links"); }); // End of Document.Ready

    Ask the Director - OLRCB