            //Initialize search control positioning
              function initSearch(){
              var btnObj = $('.ocms-search-btn').get();
              var divButtnObj = $('.buttn').get();
             
              if ((btnObj!= '') && divButtnObj!=null){

                  divButtnObj[0].appendChild(btnObj[0]);
                  $('.ocms-search-btn').one('click', function(){
                                        document.getElementById('searchForm').submit();
                                      });
              } 
              else{
                  
                  $('.txtfeild').css('background','transparent');//Yes I am aware field is spelled wrong, however this was not my css
                  
                  
              }
            }
            
            //Initialize the carousel to render properly
            function initCarousel(){
            
                //Carousel Styling
                $('.ocmsCarousel ul').addClass('slideshow');
                var carouselItemsObj = $('.slideshow li').get();
                                
                for ( var i in carouselItemsObj)
                {
                    carouselItemsObj[i].innerHTML += '<h3>' + getTitleRegEx(carouselItemsObj[i].innerHTML) + '</h3>';
                    carouselItemsObj[i].innerHTML = removeBracketTitle(carouselItemsObj[i].innerHTML);
                }
                
                $('.carousel-nav').css('display', 'none');
                
              }
              
              //Grab title using RegEx  
              function getTitleRegEx(str) {
                  var results = [], re = /{([^}]+)}/g, text;
                
                  while(text = re.exec(str)) {
                    results.push(text[1]);
                  }
                  return results;
              }
              
              //Function to remove the bracket contents from the description body
              function removeBracketTitle(str) {
                  
                  return str.replace(/{([^}]+)}/g, '');
             
              }
              
              
              function placeMap(){
                
                divMap = document.getElementById('map_canvas');
                
                if (divMap!=null){
                
                    // <![CDATA[
                    
                  if (google!=undefined){
                    var latlng = new google.maps.LatLng(44.8824392, -93.2869048);     var myOptions = {       zoom: 15,       center: latlng,       mapTypeId: google.maps.MapTypeId.ROADMAP,       disableDefaultUI:true,       disableDoubleClickZoom: true,       draggable: false,       keyboardShortcuts: false     };     var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);     var marker = new google.maps.Marker({       position: latlng,       map: map,       title:"Menttium Corporation"     });
                  }
                   // ]]&gt;

                }
                
                
              }
              
