editor Logout
Account Preferences
Did you know...
Up until 1981, AM radio stations had to air 8% news and public service (6% for FM) ?
Streaming Radio Guide
view source - https://933therockfm.com/
*** Test System *** GO TO PRODUCTION
<!DOCTYPE html> <!--[if lte IE 7]> <html class="ieFixes" xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"> <![endif]--> <!--[if IE 8]> <html class="ieFixes" xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"> <![endif]--> <!--[if !IE]><!--> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"> <!--<![endif]--> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <!-- Powered by the OWT CMS V3 http://www.owtweb.com --> <meta name="viewport" content="user-scalable=yes, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"> <meta name="apple-mobile-web-app-title" content="KEUB"> <meta name="apple-mobile-web-app-capable" content="yes"> <title>93.3 The Rock KEUB </title> <meta name="description" content="93.3 The Rock FM - Oregon Coasts Rock Station - Seaside - Astoria - Cannon Beach Oregon" /> <meta name="keywords" content="3,93,astoria,connon beach,fm,jacobs radio,oregon,rock,seaside" /> <meta property="og:title" content="93.3 The Rock KEUB " /> <meta property="og:description" content="93.3 The Rock FM - Oregon Coasts Rock Station - Seaside - Astoria - Cannon Beach Oregon" /> <meta property="og:type" content="article" /> <meta name="twitter:card" content="93.3 The Rock FM - Oregon Coasts Rock Station - Seaside - Astoria - Cannon Beach Oregon" /> <meta property="og:url" content="http://933therockfm.com" /> <link rel="stylesheet" href="/lib/css.src?S=9&AU=&CMSMode=" type="text/css" /> <link rel="stylesheet" href="/lib/print.css" type="text/css" media="print" /> <link rel="stylesheet" href="/lib/css/font-awesome.min.css" /> <!--[if IE]> <style type="text/css"> .clearfix { zoom: 1; /* triggers hasLayout */ } </style> <![endif]--> <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/humanity/jquery-ui.css" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> <script src="/lib/jquery/jquery.ui.touch-punch.min.js"></script> <script>if (!window.jQuery) { document.write('<link rel="stylesheet" href="/lib/jquery/local/jquery-ui-1.11.4/themes/humanity/jquery-ui.css" />'); document.write('<script src="/lib/jquery/local/jquery-1.12.2.min.js"><\/script>'); document.write('<script src="/lib/jquery/local/jquery-ui-1.11.4/jquery-ui.min.js"><\/script>'); } </script> <script src="/lib/jquery/jquery-migrate-3.0.0.min.js"></script> <script src="/lib/jquery/jquery.scrolltable.min.js"></script> <link rel="stylesheet" href="/lib/jquery/colorbox/colorbox.css" media="screen" /> <script src="/lib/jquery/colorbox/jquery.colorbox-min.js"></script> <link rel="stylesheet" href="/lib/jquery/chosen/chosen.min.css"/> <script src="/lib/jquery/chosen/chosen.jquery.min.js"></script> <link rel="stylesheet" href="/lib/jquery/tablesorter/css/theme.jui.css"/> <script src="/lib/jquery/tablesorter/jquery.tablesorter.min.js"></script> <script src="/lib/jquery/tablesorter/jquery.tablesorter.widgets.min.js"></script> <script src="/lib/jquery/jquery.cycle.all.js"></script> <script src="/lib/jquery/fastclick.js"></script> <script src="/lib/jquery/jquery.cookie.js"></script> <script > $(function() { FastClick.attach(document.body); }); </script> <script src="/lib/jquery/hammer/hammer.min.js"></script> <script src="/lib/jquery/hammer/jquery.hammer.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.0.8/howler.min.js"></script> <script src="/lib/jquery/jquery.sticky.js"></script> <script src="/lib/cms.min.js"></script> <script src="/lib/jquery/jQueryUI.min.js"></script> <script > var mobileStatus = $("#mbox div.navBarToggle").is(':visible'); var rooturl = "http://933therockfm.com/"; </script> <script> document.documentElement.className += 'js'; var okLose; </script> <script> WebFontConfig = { google: { families: [ 'Archivo Narrow','Bowlby One SC','Passion One','Piedra' ] } }; (function() { var wf = document.createElement('script'); wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js'; wf.type = 'text/javascript'; wf.async = 'true'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wf, s); })(); </script> <style> .subhover { -webkit-user-select: none; -webkit-touch-callout: none; } .mustHover a {color:white !important;} #mainNav { padding: 0 20px 1px 20px; font-family: Archivo Narrow, sans-serif; font-weight: 200; font-size:110%; height: 43px; margin: 0; z-index: 101; } #mainNav ul li {text-align:left;} ul.topNav { list-style:none;margin:0;float:left;height:40px;font-size:110%; z-index: 101; } ul.topNav li { float: left; padding: 0px 5px 8px 0; margin: 10px 0; position: relative; z-index: 101; margin-right: 24px; line-height: 20px; font-size:110%; } ul.topNav li.selected a {color:rgb(0, 0, 0);} ul.topNav li a { padding:5px 5px;color:#FFFFFF;display:block;text-decoration:none;float:left; font-size:110%;z-index:98; } ul.topNav li a:hover, ul.topNav li a.hover { color: rgb(0, 128, 0) !important; } ul.topNav li span:not('.mcy') { height: 25px; float: left; } ul.topNav li span.subhover {background-position: center bottom;cursor:pointer;} /*--Hover effect for trigger--*/ ul.topNav li ul.subNav { width:195px; top: 37px; list-style: none; position:absolute; left:0;z-index:98;margin:0;padding:0;display:none;float:left; color: #ffffff; background-color:rgb(115, 122, 120); } ul.topNav li ul.subNav li { margin:0;padding:0; border-top:1px solid #999999; border-bottom:1px solid #ffffff; clear:both;line-height:130%;z-index:999;font-size:110%; } html ul#mainNav.topNav li ul.subNav li a { float:left;padding-left:1em;text-indent:0;width:195px; background-color:rgb(115, 122, 120) !important;color:#fff !important; } html ul#mainNav.topNav li ul.subNav li a:hover, html ul#mainNav.topNav li ul.subNav li a.hover { /*--Hover effect for subNav links--*/ color:#fff !important;background-color:rgb(0, 128, 0) !important;z-index:101;} html ul#apNav.topNav li ul.subNav li a { float:left;width:195px; background-color:rgba(51,51,51,0.85) !important;color:#ffffff !important; } html ul#apNav.topNav li ul.subNav li a:hover, html ul#apNav.topNav li ul.subNav li a.hover { /*--Hover effect for subNav links--*/ color:#ffffff !important;background-color:rgba(51,102,153,1.0) !important;z-index:101;} .menuColumn, .menuColumn1 {left:0;width:200px;} .menuColumn2, .menuColumn3 {width:200px;} .menuColumn2 {left:200px;} .menuColumn3 {left:400px;} .menuColumn4 {left:600px;} .menuColumn5 {left:800px;} .mcx {position:relative;top:0;left:0;z-index:301 !important;} ul#mainNav .mcy {position:absolute;top:0; width:200px; z-index:301 !important; } ul#mainNav .mcy li,ul#mainNav .mcy li a {width:195px !important;border:0 !important;max-width:195px;} ul#apNav div.mcx {background-color:rgba(51,51,51,0.85) !important;border:0 !important;} ul#apNav .mcy {position:absolute;top:0;width:180px;z-index:301 !important;background-color:rgba(51,51,51,0.85) !important;margin:0 !important;padding:0px 4px !important;overflow:hidden;} ul#apNav ul.subNav {max-width:180px !important;} ul#apNav .mcy li,ul#apNav .mcy li a {width:180px !important;max-width:180px !important;border:2px rgba(51,51,51,0.85) !important;} ul#apNav .menuColumn, ul#apNav .menuColumn1 {left:0;width:180px !important;} ul#apNav .menuColumn2, ul#apNav .menuColumn3 {width:180px !important;} ul#apNav .menuColumn2 {left:182px !important;} ul#apNav .menuColumn3 {left:364px !important;} ul#apNav .menuColumn4 {left:546px !important;} ul#apNav .menuColumn5 {left:728px !important;} .smenu,.smenu a {font-size:90% !important; } ul#mainNav .mcBox { } ul#mainNav li ul.mcBox *, html ul#mainNav.topNav li ul.mcBox * { background-color: !important; color:#fff !important; } ul#mainNav li ul.mcBox a {color: !important;} html ul#mainNav.topNav li ul.subNav li a:hover span, html ul#mainNav.topNav li ul.subNav li a.hover span { background-color:rgb(0, 128, 0) !important; color:#fff !important; } ul#apNav li ul.mcBox, html ul#apNav.topNav li ul.mcBox {background-color:rgba(51,51,51,0.85) !important;color:#ffffff !important;} ul#apNav li ul.mcBox a {color:#ffffff !important;} html ul#apNav.topNav li ul.subNav.mcBox a:hover span {background-color:rgba,51,102,153,1.0) !important;color:#ffffff !important;} html ul.topNav li ul.subNav li span.menuHeading, ul#mainNav li ul.mcBox li span.menuHeading { color:rgb(0, 0, 0) !important; width:195px; padding:4px 0;text-align:center;margin:0 auto; float:left;display:block;text-indent:0; font-size:120%; } </style> <script type="text/javascript" src="/lib/jquery/jssocials/jssocials.min.js"></script> <link rel="stylesheet" type="text/css" href="/lib/jquery/jssocials/jssocials.css" /> <link rel="stylesheet" type="text/css" href="/lib/jquery/jssocials/jssocials-theme-owt.css" /></head> <body id="OWTCMS3" rel="responsiveLayout" class="Layout1 "> <script> var eloaded = false; function eload() { eloaded = true; return '/lib/envSet.src?sw='+screen.width; } </script> <div id="outerWrapper" class="Layout1 "> <div id="stealthWrapper" class="Layout1"> <div id="loading" class="nomob"></div> <div id="printBanner"> <span id="printBannerTitle">933 The Rock FM &nbsp; &nbsp; &nbsp; http://933therockfm.com</span> </div> <a class="hide" href="#innerWrapper">[Skip to Content]</a> <div id="sWrapper" class="Layout1 "> <div id="wrapper" class="clearfix Layout1" > <div id="mastheadWrapper" class="stickyHeader"> <div id="masthead" class="header9 " title="Main Header"> <div class="headerSocial noLink"> <div class="socialSites"> <a href="https://www.facebook.com/933-The-Rock-1808819672495794/" target="_blank" title="Find us on Facebook!"> <img class="socialIcon" style="max-height: 32px;" src="/graphics/social/knockout-circle/32/facebook.png" alt="facebook icon" /></a> </div> </div> <div class="newswrapper contentStd "> <br class="HB" /> <div id="thePage-1"> <div id="Page-2" class="contentPage" rel="1"> <span id="header" title="Anchor for header"></span> <div class="news aMarker newsblock layout-" id="A-4"> <meta name="twitter:card" content="summary" /> <meta itemprop='inLanguage' content='en-GB'><article itemscope itemtype='https://schema.org/Article'> <div class="articleSection" itemprop="articleBody"> <div class="articleBody"> <div class="articleContent gr_s-t"> <p style="text-align: center;"><span style="font-family: 'Bowlby One SC'; font-size: x-large;">93.3 The Rock FM &nbsp; &bull; &nbsp;Oregon Coast's Rock Station &bull; 503-739-0751</span></p> </div> </div> </div> </article></div> </div> </div> </div> </div> </div> <div id="navWrapper" class="hide"> <div id="mboxWrap" class=""> <div id="mboxInner" > <div id="mbox" ><div class="navBarToggle nomob" rel="mainNav" id="mobileNav"></div> <ul id="mainNav" class="topNav hidden"> </ul> </div> <div id="menuBlock"></div> </div> </div> </div> </div> <div id="innerWrapper" class="Layout1"> <div class="clearfix" style="height: 0;"></div> <!-- MainCache disabled Pref: E Level: ; UN: ; --> <div id="wideWrapper" class="hide fadeME Layout1 Level9 "> <div id="fillCol2" class=" clearfix Layout1 Level9 SelCat3"> <div class="newswrapper contentStd "> <br class="HB" /> <div id="thePage-2"> <div id="Page-2" class="contentPage" rel="2"> <span class="articleMarker" rel="1 of 4"></span> <span id="welcome-to-93-3-the-rock-fm-oregon-coasts-rock-station" title="Anchor for welcome-to-93-3-the-rock-fm-oregon-coasts-rock-station"></span> <div class="news aMarker newsblock layout-right" id="A-2"> <meta name="twitter:card" content="summary" /> <meta name="twitter:title" content=" Welcome to 93.3 The Rock FM - Oregon Coast&apos;s Rock Station " /> <meta name="twitter:description" content="View this article." /> <div class="enclosures"> <div class="enclosure-1 enclosureBody clearright"> <h2 class="encHead headline enclosureHeading-1 ">Welcome to 93.3 The Rock FM - Oregon Coast's Rock Station</h2> <meta itemprop='inLanguage' content='en-GB'><article itemscope itemtype='https://schema.org/Article'> <div class="articleSection" itemprop="articleBody"> <div class="articleBody"> <div class="cGx size-l blocked align-L"> <a href="/files/content/0/2-1.png" class="imagePop" title="Oregon Coast's Rock Station"> <img id="i2-1" src="/files/content/0/2-1.png" data="610" rel="600" alt="Image Title: Oregon Coast's Rock Station" class="noborder "></a> <meta property="og:image" content="http://933therockfm.com/files/content/0/2-1.png" /> <meta name="twitter:image" content="http://933therockfm.com/files/content/0/2-1.png" /> <div class="captionI" rel="2" data="1">Oregon Coast's Rock Station</div> </div> <div class="articleContent gr_"> </div> </div> </div> </article> </div> </div> </div> <span class="articleMarker" rel="2 of 4"></span> <span id="welcome-right-w-listen" title="Anchor for welcome-right-w-listen"></span> <div class="news aMarker newsblock layout-right" id="A-7"> <meta name="twitter:card" content="summary" /> <div class="enclosures"> <div class="enclosure-2 enclosureBody clearright"> <meta itemprop='inLanguage' content='en-GB'><article itemscope itemtype='https://schema.org/Article'> <div class="articleSection" itemprop="articleBody"> <div class="articleBody"> <div class="articleContent gr_"> </div> </div> </div> <style type="text/css"> .simple-slideshow, .cycle { margin: 0 auto; vertical-align: middle;position:relative;padding:10px;left: 0; top: 0; overflow: hidden;} .simple-slideshow img, .cycle img {margin:0 auto;float:none;text-align:center;} .simple-slideshow > div, .cycle > div { position:absolute;margin:0 auto;text-align: center;top:4px;left:4px; right: 4px; bottom: 4px; padding: 8px;overflow: hidden;} .cycle img {display: none; position: absolute;} .slideTooltip {padding: 8px;background:#336699 !important;color:#fff !important;position: absolute;max-width: 300px; -webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa;font-size:13px;white-space:pre-line;border-radius: 10px; opacity: 0.8;visibility: visible !important;} .galleryPrev,.galleryNext {color:rgb(89, 63, 65);} .galleryPrev:hover,.galleryNext:hover {color:rgb(170, 170, 170);} </style> <div id="Gallery1" style="float: none;" class="galleryBreak "> <div class="cycle ssType" id="cms_ss1" rel="1" style="margin: 0 auto; text-align: center;"> <img src="" data="/files/gallery/0/1.jpg" dmode="" style=" max-width:800px !important; max-height:532px !important;" class="slide noPop" rel="800" id="image1-1" alt="" title="" height="532" width="100%" xwidth="800" /> <img src="" data="/files/gallery/0/2.jpg" dmode="" style=" max-width:800px !important; max-height:533px !important;" class="slide noPop hideSlide " rel="800" id="image1-2" alt="" title="" height="533" width="100%" xwidth="800" /> <img src="" data="/files/gallery/0/3.jpg" dmode="" style=" max-width:600px !important; max-height:600px !important;" class="slide noPop hideSlide " rel="600" id="image1-3" alt="" title="" height="600" width="100%" xwidth="600" /> <img src="" data="/files/gallery/0/4.jpg" dmode="" style=" max-width:907px !important; max-height:571px !important;" class="slide noPop hideSlide " rel="907" id="image1-4" alt="" title="" height="571" width="100%" xwidth="907" /> </div> </div> <script type="text/javascript"> $(document).ready(function() { var ow = window.outerWidth; var sw = screen.width; var ww = ow; if ( sw > ow ) ww = sw; var ow = window.outerWidth; var sw = screen.width; var ww = ow; if ( sw > ow ) ww = sw; var $loading = $('<img src="/graphics/loading.gif" width="64" alt="loading" class="loadingG center floatnone" id="cLoading" />'); $('#gNav1 td.galleryNext').removeClass('hide'); $.fn.isVisible = function() { var rect = this[0].getBoundingClientRect(); return ( (rect.height > 0 || rect.width > 0) && rect.bottom >= 0 && rect.right >= 0 && rect.top <= (window.innerHeight || document.documentElement.clientHeight) && rect.left <= (window.innerWidth || document.documentElement.clientWidth) ); }; $(".slide").each(function() { var dmode=$(this).attr('dmode'); if ( dmode == '' ) { var slideUrl = $(this).attr('data'); $(this).attr('src',slideUrl); } else if ( ww > 680 ) { var slideUrl = $(this).attr('data'); $(this).attr('src',slideUrl); } else $(this).addClass('hide'); }); $(".galleryNav").click(function(g) { var $st = $(this).attr('rel'); var $gc = $(this).attr('data'); g.preventDefault(); $("#Gallery"+$gc).load('/lib/galleryCore.src?thisGCat='+$gc+'&gStart='+$st); }); function slideKeys(obj) { if (obj.isVisible()) { if (obj.attr('data-cycle') != "resume" ) obj.cycle('resume').attr('data-cycle','resume'); $(document).on('keydown',function(e) { console.debug('WHATAKEY'); if (e.keyCode == 39) obj.cycle('next'); else if ( e.keyCode == 37 ) obj.cycle('prev'); else if ( e.keyCode == 27 ) obj.cycle('toggle'); }); } else { if (obj.attr('data-cycle') != "pause" ) obj.cycle('pause').attr('data-cycle','pause'); } } var galRegistry = ""; $(window).load(function () { $(".ssType").each(function() { $(this).before($loading); var myHt = $(this).outerHeight(); var gal = $(this); var gid = gal.attr('id'); galRegistry += gid +','; $(this).css('max-height',myHt).css('overflow','hidden'); slideKeys(gal); }); var whatCycles = galRegistry.split(','); for(w=0;w<whatCycles.length-1;w++) { if($('#'+whatCycles[w]).isVisible()) { $("#"+whatCycles[w]).parent('div').find('.loadingG').remove(); } var gg = $("#"+whatCycles[w]); $(document).on( 'scroll', gg, function(){ if( gg.isVisible()) { gg.parent('div').find('.loadingG').remove(); slideKeys(gg); } }); } }); $(".ssType").on('click',function() { $(this).cycle('next'); }); $("img.slide").tooltip({ tooltipClass: "slideTooltip", position: { my: "center top-20", at: "center bottom" }, open: function (event, ui) { setTimeout(function () { $(ui.tooltip).hide('explode'); }, 4000); } }); }); </script> </article> </div> </div> </div> <span class="articleMarker" rel="3 of 4"></span> <span id="station-left" title="Anchor for station-left"></span> <div class="news aMarker newsblock layout-right" id="A-8"> <meta name="twitter:card" content="summary" /> <div class="enclosures"> <div class="enclosure-1 enclosureBody clearright"> <meta itemprop='inLanguage' content='en-GB'><article itemscope itemtype='https://schema.org/Article'> <div class="articleSection" itemprop="articleBody"> <div class="articleBody"> <div class="articleContent gr_"> <p><a title="The Bob &amp; Tom Show" href="/station/the-bob-tom-show.html"><img style="display: block; margin-left: auto; margin-right: auto;" src="/files/media/32/bt300x2505a10a.png" alt="Bob and Tom 5AM-10AM" title="Bob and Tom 5AM-10AM" width="300" height="250" /></a></p> <p><img style="display: block; margin-left: auto; margin-right: auto;" src="/files/media/134/jacobs.png" alt="Jacobs Radio" title="Jacobs Radio" width="226" height="117" /></p> </div> </div> </div> </article> </div> </div> </div> <span class="articleMarker" rel="4 of 4"></span> <span id="station-right" title="Anchor for station-right"></span> <div class="news aMarker newsblock layout-right" id="A-3"> <meta name="twitter:card" content="summary" /> <div class="enclosures"> <div class="enclosure-2 enclosureBody clearright"> <meta itemprop='inLanguage' content='en-GB'><article itemscope itemtype='https://schema.org/Article'> <div class="articleSection" itemprop="articleBody"> <div class="articleBody"> <div class="cGx size-m blocked align-C"> <a href="/files/content/0/3-1.png" class="imagePop" title="Jeff Jacobs - Station Owner"> <img id="i3-1" src="/files/content/0/3-1-m.png" data="354" rel="237" alt="Image Title: Jeff Jacobs - Station Owner" class="noborder "></a> <meta property="og:image" content="http://933therockfm.com/files/content/0/3-1.png" /> <meta name="twitter:image" content="http://933therockfm.com/files/content/0/3-1.png" /> <div class="caption captionCMS_1" rel="3" data="1">Jeff Jacobs - Station Owner</div> </div> <div class="articleContent gr_"> </div> </div> </div> </article> </div> </div> </div> </div> </div> </div> <div class="black"> <div class="shareWrap nomob"> <div class="leftSharing clearpad"> <div class="jss-sharing sharingtight sharingsmall nomob clear"></div> </div> </div> </div> </div> </div> </div> </div> </div> <div id="footerWrapper"> <div id="footer" class="on-top clearfix" style="width:100%;"> <div style="float:right; margin-top:50px;width:280px;line-height:2.2em;font-size:1.1em;" id="CMSMenu2" > <ul class="uiMenuH" style="padding: ;"> <li > <a href="http://933therockfm.com/station/" title="Station Information">Station Information</a></li> <li> | </li> <li ><a href="https://publicfiles.fcc.gov/fm-profile/keub" title="Public File">Public File</a></li> </ul> </div> <div class="newswrapper contentStd "> <br class="HB" /> <div id="thePage-3"> <div id="Page-0688ecc78d" class="contentPage" rel="3"> <span id="footer" title="Anchor for footer"></span> <div class="news aMarker newsblock layout-right" id="A-1"> <meta name="twitter:card" content="summary" /> <meta itemprop='inLanguage' content='en-GB'><article itemscope itemtype='https://schema.org/Article'> <div class="articleSection" itemprop="articleBody"> <div class="articleBody"> <div class="articleContent gr_s-t"> <p><span>&copy; 2018 <span>93.3 The Rock KEUB&nbsp;</span>All rights reserved.</span><br /><span>Jacobs Radio Programming</span><br /><span>503-739-7625</span></p> </div> </div> </div> </article></div> </div> </div> </div> </div> </div> </div> </div> <script> var glossaryRoot = "?"; var $contentHt = $("#fillCol2").innerHeight(); if ( $contentHt > 1200 ) $('#fillCol2').append('<div class="scrollTop noPrint" title="Go to the top of this page">Top of Page</div>'); var balancerX = parseFloat('1.2'); if ( balancerX < 1 ) balancerX = 1; </script> <script src="/lib/jquery/ready.js"></script> <script> function debugItem(where,what) { } var browser = ''; browser = "Chrome"; console.debug('Browser: '+browser); function highlight_terms(keywords, element,phrase,constrain,usecase) { if(keywords) { var textNodes,hMode; var except = ".chosen-container,.chosen-single"; if(usecase) hMode = "g"; else hMode = "gi"; if(phrase) var str = [keywords]; else var str = keywords.split(" "); $(str).each(function() { var term = this; if (!element) element = "h1,h2,h3,h4,h5,h6,p,div,span,td,th,li,a"; if (!constrain) var textElements = $('#innerWrapper').find(element).not('.chosen-container,.chosen-single,.chosen-single span,.active-result,.chosen-drop,.chosen-search'); else var textElements = $('#'+constrain).find(element).not('.chosen-container,.chosen-single,.chosen-single span,.active-result,.chosen-drop,.chosen-search'); var textNodes = textElements.contents().filter(function() { return this.nodeType === 3 }); textNodes.each(function() { var content = $(this).text(); var regterm = term.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); if (content.length >= term.length && term.length > 1 ) { if (phrase) var regex = new RegExp(regterm,hMode); else var regex = new RegExp("\\b"+regterm+"\\b", hMode); content = content.replace(regex, '<span class="highlight">$&</span>'); $(this).replaceWith(content); } }); }); } var where = $(document).find('.highlight'); if (where.length > 0 ) $('html,body').animate({scrollTop: where.offset().top-160},'slow'); } function AMP() { $(".cGx.size-l img").each(function() { var cW = 480; var iW = $(this).attr('rel'); var pW = Math.min(cW,iW); var myW = $(document).width(); var src= $(this).attr('src'); var f1 = src.match(/^(.*)[-mt]?\.(.*)$/)[1]; var f2 = src.match(/^(.*)\-([mt]?)\.(.*)$/); if ( ( !f2 ) && ( myW * .8 < pW) ) { src = src.replace(/(.*)\.(.*$)/i, '$1-m.$2'); $(this).attr('src',src); } else if ( (f2) && ( myW * .8 >= pW) ) { src = src.replace(/(.*)-m\.(.*$)/i, '$1.$2'); $(this).attr('src',src); } }); } var winHeight = $(window).height(); var footerMode = 'on'; var footerOpts = 'NOSHORT'; var whatMode = new RegExp('NOSHORT'); var fixShort = whatMode.test(footerOpts); debugItem('footerOpts',footerOpts+' fixShort is '+fixShort); function footerFix() { winHeight = $(window).height(); if (footerMode == 'on' && winHeight < 800 && fixShort) { var docH = $(document).height(); var fH = $("#footerWrapper").outerHeight(); debugItem('IW FIX is ',docH); $("div#footerWrapper").attr('style','position: relative !important'); debugItem('footerFix','short window; footer no longer fixed'); } else if ( footerMode == 'on' && fixShort) { debugItem('footerFix','refixing footer to bottom=0'); $("#footerWrapper").css('position','fixed').css('top','unset').css('bottom','0'); } } $(document).ready(function() { var winHt = $(window).outerHeight(); $('html').css('height',winHt); $(".panelFix div").before('<hr class="clearline"/>'); $(".gr2white").each(function() { var clr = $(this).css('background-color'); var when = $(this).attr('rel') || "90%"; var grad = "linear-gradient(to bottom,"+clr+",white "+when+")"; $(this).css("background",grad); }); $(".revColors").each(function() { var clr = $(this).css('color'); var bgClr = $(this).css('background-color'); $(this).css("background-color",clr).css("color",bgClr); }); $(".revWhite").each(function() { var bgClr = $(this).css('background-color'); $(this).css("background-color","white").css("color",bgClr); }); $(".bgText").each(function() { var bgClr = $(this).css('background-color'); var clr = $(this).css('color'); $(this).css("background-color","unset").css("color","unset"); $(this).find('span').attr('style','background-color:'+bgClr+' !important;color:'+clr+' !important').css('display','block') }); function deleteNotify(nid) { console.debug('deleting '+nid); $('#'+nid).remove(); } $(document).on('click','.awkNotify',function(e) { e.preventDefault(); var nID = $(this).attr('rel'); $.ajax({ url: "/lib/awkNotify.src?UID=&NID="+nID }).done(function(stuff) { var result = JSON.stringify(eval(stuff)); var what = JSON.parse(result); var status = what.status; var cook = parseInt(what.cook); console.debug('cookie:'+cook); if ( cook > 0 ) { $.cookie('CMSNTF-'+cook,'Y'); console.debug('cookie for '+cook); } console.debug(status); $('#nID'+nID).remove(); }); }); $(".nTypeT").each(function() { var when = $(this).attr('rel') || 0; var what = $(this).attr('id'); if (parseInt(when) > 0 ) { when = when * 1000; console.debug('set for delete in '+when); var DND = setTimeout(function() { deleteNotify(what) }, when); } }); $(".nTypeD,.nTypeDA,.nTypeO,.nTypeOA").each(function() { var what = $(this).attr('id'); var DNS = setTimeout(function() { deleteNotify(what) }, 120000); }); $("articleContent iframe").each(function() { var isVideo = $(this).hasClass('video'); var h = $(this).attr('height'); var w = $(this).attr('width'); var ar = (h / w) * 100; padding = " style='padding-bottom:"+ar+"%;'"; if (isVideo) $(this).wrap( "<div class='video-container'"+padding+"></div>" ); else $(this).wrap( "<div class='iframe-container'"+padding+"></div>" ); }); // new checkboxradio MUST CHECK FOR jQuery 3 first! move to jQueryUI.js when ready $( ".checkboxradio input[type='radio'],.uiRadio input[type='radio']").checkboxradio({ classes: { "ui-checkboxradio": "cmsButton", "ui-checkboxradio-checked": "cmsButton", "ui-checkboxradio-label": "cmsButton" }, icon:false }); $( ".checkboxradio input[type='checkbox'],.uiCheckbox input[type='checkbox']" ).checkboxradio({ classes: { "ui-checkboxradio": "cmsButton", "ui-checkboxradio-checked": "cmsButton", "ui-checkboxradio-label": "cmsButton" }, icon:false }); $(document).on('focusin','.autosize', function(){ $(this).css('height',this.scrollHeight); }).on('input.autosize', 'textarea.autosize', function(){ $(this).css('height',this.scrollHeight); }).on('focusout','.autosize', function() { var lh = parseInt($(this).css('line-height')); $(this).css('height',lh*4+'px'); }); $("#mainNav li").on('click',function(e) { navHt = $(this).height(); if ( $(this).not(":visible") ) e.preventDefault(); }); var $loading = $('<img src="/graphics/loading.gif" alt="loading" class="loading" />'); var geocoder; var geo_address, geo_city, geo_state, geo_country; $(".rowLink").on('click',function(e) { e.preventDefault(); var where = $(this).find('a').attr('href'); document.location.href=where; }); $(".rowLink").on('mouseover',function() { $(this).addClass('hiliteRow'); }); $(".rowLink").on('mouseout',function() { $(this).removeClass('hiliteRow'); }); $(".sgWrap").each(function() { var whatG = $(this).attr('rel'); var numG = $(this).attr('data'); var maxH=100; var i=0; var maxW=0; var mobileH=100; $(this).find('.sgGr').each(function() { i++; $(this).attr('data',i); if ( $(this).hasClass('hide') ) $(this).hide().removeClass('hide'); }); $(this).find('img').each(function() { var thisH = $(this).attr('data'); var thisW = parseInt($(this).attr('rel')); var thisM = $(this).height(); if ( thisW > maxW ) maxW = thisW; if ( thisH > maxH ) maxH = thisH; if ( thisM > mobileH ) mobileH = thisM; }); if (!mobileStatus) $(this).css('height',maxH+'px'); if ( numG > 1 ) { $(this).find('.sgNav').before('<div class="sgPrev nomob"><span class="fa fa-arrow-left"></span></div>'); $(this).find('.sgNav').after('<div class="sgNext nomob"><span class="fa fa-arrow-right"></span></div>'); } if (!mobileStatus) $(this).parent('div').css('width',maxW).css('margin-left',24).css('margin-right',24); else $(this).parent('div').css('margin','0 auto'); }); $(document).on('click','.sgNext',function() { if (mobileStatus) var tdelay = 1; else var tdelay = 1000; $(this).toggle('highlight'); var pnt = $(this).parent('div'); var wrapper = pnt.parent('div'); var numG = pnt.attr('data'); var cur=0; pnt.children('.sgGr:visible').each(function() { cur = $(this).attr('data'); var sgType = $(this).attr('rel'); $(this).hide(sgType, { direction: "right" }, tdelay); }); cur++; if ( cur > numG ) cur = 1; pnt.children('.sgGr').each(function() { var j = $(this).attr('data'); var sgType = $(this).attr('rel'); if ( j == cur ) { $(this).show(sgType, { direction: "left" }, tdelay); var myH = $(this).height(); pnt.height(myH+40); } }); $(this).toggle('highlight'); $("html, body").animate({ scrollTop: $(wrapper).offset().top - 200}, 200); }); $(document).on('click','.sgPrev',function() { if (mobileStatus) var tdelay = 1; else var tdelay = 1000; $(this).toggle('highlight'); var pnt = $(this).parent('div'); var wrapper = pnt.parent('div'); var numG = pnt.attr('data'); var cur=0; pnt.children('.sgGr:visible').each(function() { cur = $(this).attr('data'); var sgType = $(this).attr('rel'); $(this).hide(sgType, { direction: "left" }, tdelay ); }); cur--; if ( cur < 1 ) cur = numG; pnt.children('.sgGr:not(:visible)').each(function() { var j = $(this).attr('data'); var sgType = $(this).attr('rel'); if ( j == cur ) { $(this).show(sgType, { direction: "right" }, tdelay ); var myH = $(this).height(); pnt.height(myH+40); } }); $(this).toggle('highlight'); $("html, body").animate({ scrollTop: $(wrapper).offset().top - 200}, 200); }); $("article").bind("contextmenu", function(e) { var thisArticle = $(this).parent('div').find('div.editThisContext'); if ( thisArticle ) { thisArticle.toggle(); } }); $("#toggleEdit").on('click',function() { $(".editThisContext,.editThis").each(function() { $(this).toggle(); }); }); $(".clickToOpenEnc").append('&nbsp;<span class="fa fa-folder"> </span>'); $(".clickToOpenEnc").on('click',function() { var isOpen = $(this).find('span').hasClass("fa-folder-open"); if ( isOpen ) $(this).find('span').removeClass('fa-folder-open').addClass('fa-folder'); else $(this).find('span').removeClass('fa-folder').addClass('fa-folder-open'); $(this).parent('.enclosures').find("div.enclosureBody").toggleClass('hide'); $("html, body").animate({ scrollTop: $(this).offset().top - 48}, 200); }); function mobileFix() { $("div.mobileFixH").each(function() { var maxH=0; $(this).find('img').each(function() { if ( $(this).height() > maxH ) { maxH = $(this).height(); } }); $(this).css('height',maxH + 'px'); $(this).find('div:not(.nomob)').css('height',maxH + 'px'); }); $("#sliderWrapper").each(function() { var newH = $("div.anythingWindow")[0].scrollHeight; $(this).height(newH).css('min-height',newH).css('max-height',newH*1.1); $('div.activeSlider').height(newH).css('min-height',newH).css('max-height',newH*1.1); $('div.anythingWindow').height(newH).css('min-height',newH).css('max-height',newH*1.1); }); $(".uidatepicker,.uidatepicker-y,.hasDatepicker").each(function(){ $(this).removeClass('uidatepicker').removeClass('uidatepicker-y').removeClass('hasDatepicker'); $(this).attr('type','text'); }); } $(window).on('resize orientationchange load',function() { var myWW = $(window).innerWidth(); $('body').each(function() { this.style.setProperty('width',myWW+'px','important'); }); if (mobileStatus) mobileFix(); else footerFix(); if ( myWW < 1050 ) { $('html').css('overflow-x','auto'); } AMP(); }); AMP(); $("#homeLink, .linkHeader").on('click',function(e) { var dontLink = $(e.target).hasClass('noLink'); if (!dontLink && $(e.target).parents('.noLink').length==0) { e.preventDefault(); e.stopImmediatePropagation(); document.location.href="/"; } }); $(".hideLink").each(function() { var $haveLink = $(this).attr('href'); if (!$haveLink) $(this).attr('href','#'); }); $(".cmsTabs,.defA").on('click',function() { var tabWhere = $(this); $('html,body').scrollTop(tabWhere.offset()); }); $(".jss-sharing").each(function() { var sURL = $(this).attr('rel'); var sTitle = $(this).attr('data'); $(this).jsSocials({ showLabel: false, showCount: false, shares: ["email", "twitter", "facebook", "linkedin", "pinterest"], text: sTitle, url: sURL }); }); function captionHandler(it) { var capID = it.attr('rel'); var capIT = it.attr('data'); var whatID = capID+"-"+capIT; var what = $("#i"+whatID); var pdiv = what.parent().closest('div'); pdiv.attr('rel','caption parent'); var where = pdiv.position(); var cHt = parseInt(what.height()); var align_top = it.hasClass('captionWT') || it.hasClass('captionOT'); var align_bottom = it.hasClass('captionWB') || it.hasClass('captionOB'); var align_middle = it.hasClass('captionW') || it.hasClass('captionO'); debugItem('captionHandler',"align top="+align_top+" middle="+align_middle+" bottom="+align_bottom); debugItem('captionHandler',"what is #i"+whatID); debugItem('captionHandler',"where is "+where.top + "," + where.left); var iit = what.height(); var iht = what.outerHeight(); var pht = pdiv.height(); var ht = parseInt(it.height()); var iw = what.width(); var wTop = parseInt(where.top); var top = wTop; var iHt = parseInt(pdiv.innerHeight()); console.debug('wrapper height is '+pdiv.innerHeight()); var iWd = parseInt(pdiv.width())+'px'; var capHt = it.innerHeight(); console.debug("cap ht is "+capHt); if (align_middle) { top = ((iit + capHt) / 2)+'px'; debugItem('captionHandler','iht is '+iht+' cHt is '+cHt); left = 0; debugItem('captionHandler align top',top); } else if ( align_top) { top = 0; left = 0; } else if ( align_bottom) { top = (iit - capHt)+'px'; left = 0; } it.css({ 'position': 'absolute', 'top': top, 'width': iWd, 'padding': '4px 0' }); it.addClass('handled'); } $(document).on('scroll',function() { if (!mobileStatus) { $(".captionO,.captionM,.captionT,.captionW").each(function() { var isHandled = $(this).hasClass('handled'); if ( !isHandled ) captionHandler($(this)); }); } }); $(".newswrapper").css('visibility','visible'); function makeViz() { var MVD = setTimeout("$('#sliderWrapper').css('display','none').css('opacity',1).fadeIn(2000)",2000); } makeViz(); $("div.bDynamic").each(function() { var maxH = 0; $(this).find('div.bDynamicInner img').each(function() { var iH = parseInt($(this).attr('height')); if ( iH > maxH ) maxH = iH; }); if ( maxH <= 0 ) { maxH=0; $(this).children('div,p').each(function() { maxH = maxH + parseInt($(this).height() || 22); }); if ( maxH == 0 ) maxH = 50; } console.debug('maxH is '+maxH); if ( maxH > 0 ) { $(this).css('max-height',maxH+'px').css('height',maxH+'px'); $(this).parent('.bgwide').css('max-height',maxH+'px').css('height',maxH+'px'); } $(this).removeClass('hide'); }); $("div.bDynamic").on('resize',function() { var maxH = 0; $(this).find('div.bDynamicInner').children('img').each(function() { var iH = $(this).attr('height'); if ( iH > maxH ) maxH = iH; }); if ( maxH > 0 ) { $(this).css('max-height',maxH+'px').css('height',maxH+'px'); $(this).parent('.bgwide').css('max-height',maxH+'px').css('height',maxH+'px'); } $(this).removeClass('hide'); }); $('.bDynamic div:first').fadeIn(1000, function() { $(".bDynamic").cycle({ fx: 'fade', timeout: 4200, speedIn: 400, speedOut: 10 }); var wrapH = $(this).parent('div').height(); $(this).parent('div').find('div.bDynamicInner').each(function() { $(this).css('max-height',wrapH).css('background-color','transparent'); }); }); var onPage = 0; $("div.news div.blocked").each(function() { var what = $(this).find('.clipWrap').attr('id'); onPage++; var numKids = $("#"+what).children('a').length; if ( numKids > 1 ) { $("#"+what).first('a').fadeIn(1000+(onPage*250), function() { var myHt = $(this).outerHeight(); var myWd = $(this).parentsUntil('.news').outerWidth(); $(this).parent().css('min-height',myHt+'px').css('max-width','100%').css('width','100%').css('padding','0'); $("#"+what).children('a').css('width','100%'); $("#"+what).children('a').children('img').css('min-height',myHt+'px'); $("#"+what).cycle({ fx: 'scrollRight', timeout: 1500, speedIn: 400+(onPage*250), speedOut: 120, easing: 'easeInOutBack' }); }); } else if (typeof what != "undefined" ) { $("#"+what).first('a').fadeIn(1000+(onPage*250), function() { var contHt = parseInt($("#"+what).css('height')+1); var myHt = $(this).outerHeight(); var realHt = $(this).find('img').attr('data'); var topAdj = (1 - (contHt / realHt)) * -100; $("#"+what).children('a').children('img').css('top',topAdj+'%'); var myWd = $(this).parentsUntil('.news').outerWidth(); $(this).parent().css('min-height',myHt+'px').css('max-width','100%').css('width','100%').css('padding','0'); $("#"+what).children('a').css('width','100%'); $("#"+what).children('a').children('img').css('min-height',myHt+'px'); }); } }); $("div.sDynamic").each(function() { var maxW = 0; var maxH = 0; var maxC = 0; $(this).find('img').each(function() { var iH = parseInt($(this).attr('data')); var iW = parseInt($(this).attr('rel')); if ( iW > maxW ) maxW = iW; if ( iH > maxH ) maxH = iH; }); $(this).find('div.caption').each(function() { var iC = $(this).outerHeight(); if ( iC > maxC ) maxC = iC; }); $(this).css('width',maxW); $(this).children('div').css('width',maxW); $(this).css('height',maxH + maxC+20); $(this).removeClass('hide'); console.debug('sDynamic set to ' + ( maxH + maxC ) ); }); $('.sDynamic img:first').fadeIn(1000, function() { $(".sDynamic").cycle({ fx: 'fade', timeout: 1500, speedIn: 1500, speedOut: 400 }); }); $("#mobileNav:visible").each(function() { $(".iconselectmenu").addClass('noSM'); }); $(function() { $("#cms_ss1").cycle({ fx: 'fade', easing: 'swing', timeout: '3500', fastOnEvent: 600, sync: true, rev: true, delay: '-1500', height: 'auto' }); }); $("div.mobileEditor").bind('DOMNodeInserted',function(){ $(this).find('*').addClass('nomob'); console.debug('mobileEditor'); }); $(document).on('load','.TinyMCE',function(){ $(this).find('*').addClass('nomob'); console.debug('mobileEditor'); }); $("div.nomob").each(function() { $(this).children('div,table,thead,tbody,tr,td').addClass('nomob'); }); var aboveContent = $("#mastheadWrapper").height(); $(".stickyItem").sticky({responsiveWidth:true,topSpacing:aboveContent}); $(".sticky-wrapper").addClass('nomob'); function readmore() {} $(".stickyHeader").sticky({topSpacing: 0.1, zIndex: 297, responsiveWidth: true }); $("#displayAfter").show('fade','1500'); var VVT = setTimeout("$('video').css('display','none').css('opacity',1).fadeIn(200)",200); $(".cleanLoad").removeClass('hide'); $(".cleanFade").fadeIn(1000).removeClass('hide'); var leftPos = $("#leftCol").css('position'); function fixLeft() { if ( leftPos == "fixed" ) { var lH = parseInt($("#leftCol").innerHeight()); var oW = parseInt($("#leftCol").outerWidth()); var nmH = parseInt($("#navMenu").outerHeight()); var fH = parseInt($("#footerWrapper").outerHeight()); var mH = parseInt($("#mastheadWrapper").outerHeight()); var lT = parseInt($("#leftCol").css('top')) || mH; var mbH = parseInt($("#mboxWrap").outerHeight()); var nH = parseInt($("#navWrapper").outerHeight()); var fillH = parseInt($("#innerWrapper").outerHeight()); var totH = fillH + mH + nH + fH; var totL = lH + fH + lT; if ( totL > totH ) totH = totL; var wH = $(window).height(); if ( totL > wH ) { console.debug('left sidebar will not support fixed. '+totH+' > '+wH+'; set left height to '+totH); $("#leftCol").css('position','absolute').css('height',totH); $('body').css('min-height',totH); } else { var nT = Math.max(mbH,nH,lT); $("#leftCol").css('top',nT).css('position','fixed').css('height','100%'); } } } var WrapPxWid = $("#wrapper").outerWidth(); $("#mbox").css('max-width',WrapPxWid+'px'); $("#HomePage td").each(function() { var pc = $(this).css('width'); if ( pc.indexOf('%') !== -1 ) { var pp = parseInt(parseInt(pc)/100); $(this).css('max-width',WrapPxWid * pp+'px'); } }); $("#wideWrapper,#middleWrapper").fadeIn(800).removeClass('hide'); $("#sidebarMenu.fadeME").fadeIn(1600).removeClass('hide'); $("#wrapper").one('sticky-start',function(){ var myTop = $(window).scrollTop(); var myMenu = $("#mboxWrap-sticky-wrapper").height(); $(window).scrollTop(myTop-myMenu); }); $("#mastheadWrapper").one('sticky-start',function(){ debugItem('#mastheadWrapper','fixing sticky'); var myTop = $(window).scrollTop(); var myMenu = $("#mboxWrap-sticky-wrapper").height(); $(window).scrollTop(myTop-myMenu); }); var lastAcc; mobileStatus = $("#mobileNav").is(':visible'); if (mobileStatus) mobileFix(); else footerFix(); var mastheadStatus = $("#mastheadWrapper").is(':visible'); if (!mastheadStatus) $("#mbox").insertBefore("#wrapper"); if (mobileStatus) { $("#rightCol").insertBefore("#footerWrapper"); } $(".captionO,.captionM,.captionT,.captionW").each(function() { if (!mobileStatus) { var it = $(this); captionHandler(it); } }); $(".pdfWindow").each(function() { var w = $(this).width(); var h = ( w / 613 ) * 792; var oh = $(this).find('object').height(); if (oh == "100%" ) $(this).height(h); else if ( browser == "Chrome" ) { var adjHt = parseInt(oh) + 70; $(this).find('object').height(adjHt); console.debug('chrome adj to '+adjHt); } }); $("#loading").fadeOut(100); var nPos = 0; $(".cms-notify").first().before('<div id="cms-notifications"></div>'); $(".cms-notification").each(function() { var hH = $(this).height(); var sH = $(this).prop('scrollHeight') - 28; var nid = parseInt($(this).attr('data')); nPos += ( nid * hH ) - 28; if ( sH > hH ) { $(this).find('.cms-ntfover').append('<span class="fa fa-ellipsis-v"></span>'); $(this).find('.cms-ntfover').addClass('cms-ntfelip'); } var what = $(this).parent('.cms-notify').html(); $("#cms-notifications").append(what); $(this).parent('.cms-notify').remove(); }); $(document).on('click','.awkNotifyClose',function(e) { e.preventDefault(); var nID = $(this).attr('rel'); $('#nID'+nID).remove(); }); $(".cellContent").each(function() { var cellWidth = $(this).parent('td').width(); var imgWidth = $(this).parent('td').find('img').width(); if ( imgWidth > (cellWidth * .65) ) { $(this).parent('td').find('.cellContent').css('display','inline-block'); $(this).parent('td').find('img').css('float','none').addClass('center'); } }); }); </script> <script> var width = (window.innerWidth > 0) ? window.innerWidth : screen.width; var userAgent = navigator.userAgent.toLowerCase(); var isIE = /msie/.test(userAgent); function zIndexWorkaround() { // If the browser is IE, // if(isIE) // { /* ** For each div with class menu (i.e., ** the thing we want to be on top), */ $("#mainNav li").parentsUntil('#wrapper').each(function() { var p = $(this); var pos = p.css("position"); // If it's positioned, if(pos == "relative" || pos == "absolute" || pos == "fixed") { /* ** Add the "on-top" class name when the ** mouse is hovering over it, and remove ** it when the mouse leaves. */ p.hover(function() { $(this).addClass("on-top"); }, function() { $(this).removeClass("on-top"); }); } }); // } } zIndexWorkaround(); </script> <script type="text/javascript"> function isVis(e) { if ( ( $(e).is(':visible') ) && ( !$(e).hasClass('hidden') ) ) return true; else return false; } $(document).ready(function(){ var navSpeed = 200; var recoilSpeed = 600; var navInit = false; var navDelay = 60; // time before slideDown $("#mobileNav:visible").each(function() { $(".stubby").css('display','none'); $('#mbox').toggleClass('isMobile').css('max-height','36px'); }); $('.navMenuTitle').on('click','',function() { document.location.href="/"; }); var menuOpen; $('ul li.mmenu').on('touchstart', function(e) { var hasSub = $(this).children('ul').length; if ( hasSub > 0 ) { e.stopImmediatePropagation(); if(menuOpen) menuOpen.mouseleave(); $(this).mouseenter(); menuOpen = $(this); } else menuOpen = ''; }); $('body').not('ul li.mmenu').on('touchstart',function() { if(menuOpen) menuOpen.mouseleave(); }); function goMobileNav(obj,hlite,e) { e.preventDefault(); e.stopImmediatePropagation(); var go = $(obj).attr('href'); if ( $(hlite).hasClass('mmenu') && $(hlite).hasClass('selected') ) { $(hlite).css('background-color','rgb(255, 215, 0)'); $('#mainNav').hide('2000',function() { $("#loading").show('10',function() { document.location.href=go; }); }); } else if ( $(hlite).hasClass('mmenu') ) { $('ul.topNav li.mmenu.selected').each( function() { $(this).removeClass('selected'); $(this).find('ul.subNav').slideUp(recoilSpeed); }); $(hlite).addClass('selected'); var newSub = $(hlite).children('ul.subNav'); if ( newSub.length > 0 ) { newSub.delay(navDelay).slideDown(navSpeed).show().addClass('autoHeight'); } else { $('#mainNav').hide('2000',function() { $("#loading").show('10',function() { document.location.href=go; }); }); } } else if ( $(hlite).hasClass('smenu') && $(hlite).hasClass('selected') ) { $('#mainNav').hide('20',function() { $("#loading").show('10',function() { document.location.href=go; }); }); } else if ( $(hlite).hasClass('smenu') ) { $(hlite).addClass('selected'); $(hlite).css('background-color','rgb(255, 215, 0)'); $('#mainNav').hide('2000',function() { $("#loading").show('10',function() { document.location.href=go; }); }); } else { $(hlite).addClass('selected'); console.debug('menu configuration issue!'); } } $("div#mobileNav:hidden").each(function() { $("ul.subNav").parent().append("<span></span>"); $("ul.topNav li span").click(function(event) { //When trigger is clicked... $(this).parent().hover(function() { }, function(){ $(this).parent().find("ul.subNav").slideUp(recoilSpeed); //When the mouse hovers out of the subNav, move it back up } ); }).hover(function() { $(this).addClass("subhover"); //On hover over, add class "subhover" }, function(){ //On Hover Out $(this).removeClass("subhover"); //On hover out, remove class "subhover" } ); $("ul.topNav li a").hover(function() { //When trigger is hovered... $(this).parent().find("ul.subNav").delay(navDelay).slideDown(navSpeed).show(); //Drop down the subNav on click $(this).parent().hover(function() { }, function(){ $(this).parent().find("ul topNav li a").slideUp(recoilSpeed); //When the mouse hovers out of the subNav, move it back up $(this).parent().find("ul.subNav").slideUp(recoilSpeed); } ); }).hover(function() { $(this).addClass("subhover"); //On hover over, add class "subhover" }, function(){ //On Hover Out $(this).removeClass("subhover"); //On hover out, remove class "subhover" } ); $("li.mmenu a,li.smenu a").on('click',function(e) { e.stopImmediatePropagation();}); $("li.mmenu:not('a'),li.smenu:not('a'), .uiMenuB li").on('click',function(e) { e.stopImmediatePropagation(); $(this).addClass('selected'); var $bLink = $(this).find('a').attr('href'); document.location.href=$bLink; }); $("#mainNav").removeClass("hidden"); }); $("div#mobileNav").not(':hidden').each(function() { $("ul#mainNav li a").on('click',function(event) { var hilite = $(this).parent('li'); goMobileNav(this,hilite,event); }); $("ul#mainNav li").on('click',function(event) { var nLink = $(this).find('a'); goMobileNav(nLink,this,event); }); }); $('.navMenuButton').click(function() { var menuID = $('#mobileNav').attr('rel'); var bStatus = isVis('#'+menuID); var sStatus = $('#MobileSearch').is(':visible'); var gStatus = $('#mobileGr').is(':visible'); var mHt = $("#mobileNav").height(); var offset = 0; if ( gStatus ) { offset = mHt; if ( sStatus ) { offset += 40; console.debug('allow for search'); } } if (bStatus) { $('#'+menuID).css('display','none'); $('.subToggle').css('display','none'); } else { console.debug('showing nav menu'); $('#'+menuID).attr({ 'style': 'position: fixed; top: ' + offset + 'px; left: 0; display: block;' }) $('.subToggle').css('display','block'); $('#sub-9').attr({ 'style': 'display: block; overflow: visible; height: auto !important; clear: both' }); $('#'+menuID).css('width','100%').removeClass('hidden'); } if (!navInit) { navInit = true; $(".mmenu").each(function(){ var selected = $(this).hasClass('selected'); $(this).attr('style','text-align: left' ); $(this).not('.selected').has('ul') .find('a:first') .attr('style','margin: 0 !important;') .prepend('<span class="fa fa-list"></span>&nbsp;'); if ( selected ) { $(this).has('ul') .find('a:first') .attr('style','margin: 0 !important;') .prepend('<span class="fa fa-indent"></span>&nbsp;'); }; var isHome = $(this).hasClass('homeLevel'); if (isHome) { $(this).not(':has(ul)') .find('a:first') .prepend('<span class="fa fa-home"></span>&nbsp;'); } else { $(this).not(':has(ul)') .find('a:first') .before('<img src="/graphics/menu-blank.png" border="0" class="mmenuIcon" />'); } }); $(".smenu:not(.selected), .smenu:not(.selected) a").each(function(){ $(this).attr('style','background-color:#aaaaaa;'); }); $(".smenu.selected, .smenu.selected a").each(function(){ $(this).attr('style','width:100%;' ) }); $(".smenu").on('touchstart',function() { var myStyle = $(this).attr('style'); $(this).attr('style',myStyle + ' border: 1px rgb(0, 128, 0) solid !important;'); }); } }); $("#mnav2").on('click',function(e) { e.preventDefault(); e.stopImmediatePropagation(); $("html, body").animate({ scrollTop: 0}, 100); }); $('.navSearchButton').click(function() { var menuID = $(this).parent('.navBarToggle').attr('rel'); var sStatus = $('#MobileSearch').is(':visible'); var mStatus = $('#'+menuID).is(':visible'); var gStatus = $('#mobileGr').is(':visible'); var mHt = $("#mobileNav").height(); var offset = 0; if (sStatus) { $('#MobileSearch').remove(); $('#mbox').css('max-height','36px'); if ( mStatus ) if ( gStatus ) { $('#'+menuID).css('top',mHt+'px') ; } else { $('#'+menuID).css('top','0'); } } else { $(this).parent('div').append('<div id="MobileSearch" class="nomob"><form id="MobileSearchForm" class="right" action="/search/search.html">Search for: <input id="msfKey" name="sKey" type="text" onchange="this.form.submit();" /><input name="S" value="" type="hidden" /></form></div>'); $('#mbox').css('max-height','72px'); if ( mStatus ) if ( gStatus ) { $('#'+menuID).css('top','72px'); } $("#msfKey").focus(); } }); $(".mmenu,.a_main").on('mouseover',function(e) { var win = $("#outerWrapper").outerWidth(); $(this).trigger('hover').css('visibility','visible'); var h=0; var w=0; var c=0; var b=0; var wxH; var oH = 0; var isAp = $(this).hasClass('a_main'); var thisMWrap = $(this).find('.mcx'); thisMWrap.find('ul.subNav').find('.mcy').each(function() { c++; var mh = $(this).outerHeight(); var mw = $(this).width(); if (mh > h) h=mh; if (mw > w) w=mw; oH += $(this).outerWidth(); $(this).attr('rel',$(this).outerWidth()); b += ($(this).outerWidth() - mw); }); snW = parseInt('195px'); if (snW > oH) oH = snW; if (isAp) { var t = oH; if ( c > 2 ) t = t - (c * 2) - ( ( c - 2 ) * 2 ) ; } else var t = oH; if (typeof h == "undefined" || h == 0 ) wxH = 'auto'; else wxH = h+'px'; thisMWrap.find('ul.subNav').css('width',t+'px').css('height',wxH).addClass('mcBox'); var adj=0; thisMWrap.find('ul.subNav').find('.mcy').each(function() { var cl = $(this).css('left'); $(this).css('left',adj+'px'); adj += $(this).outerWidth(); if (isAp) $(this).css('height',wxH); }); var mmenuPos = $(this).position(); var menuWid = $("#mboxInner").width(); var windowWid = $(window).width(); var menuNeed = mmenuPos.left+t; if ( menuNeed > windowWid) { var gap = menuNeed - menuWid; thisMWrap.css('margin-left','-'+gap+'px'); } }); }); </script> <div class="loadMod"></div> </body> </html>


URL: