var hwvuser=''; if (hwvuser) hwvuser = '_' + hwvuser; var hwvfeedPlaying; // hwvFeeds is an array of feed info arrays // each feed info array is [feedName, pands, feedIcon, feedTitle, feedDescription] var hwvFeeds = new Array(); var hwvii=-1; var fdImageOnly = 1; var fdImage = 0; var fdTitle = 0; var fdDesc = 0; var hwvAutoPlayFeed = 3; var hwvAutoContinue = 1; if (typeof feediconurl == "undefined") feediconurl = 'http://www.hamweather.com/images/feedicons/'; hwvii++; hwvFeeds[hwvii] = ['adus','','airport_delays.png','US Airport Delays','The latest airport delays and conditions for the US.']; hwvii++; hwvFeeds[hwvii] = ['natsum','','nat_sum.png','US National Summary','Weather summary for select US cities.']; hwvii++; hwvFeeds[hwvii] = ['natfore','','nat_fore.png','US City Forecasts','Extended forecasts for select cities.']; hwvii++; hwvFeeds[hwvii] = ['natcurmaps','','conus_temp.png','Current US Temperatures','The current temperatures across the US.']; hwvii++; hwvFeeds[hwvii] = ['uscur','','conus_windchill.png','US Current Conditions','The current weather conditions across the US.']; hwvii++; hwvFeeds[hwvii] = ['sats','','conus_sat.png','US Satellites','Latest continental and regional infrared satellite']; hwvii++; hwvFeeds[hwvii] = ['radar','','conus_radar.png','US Radar','Latest continental and regional radars.']; hwvii++; hwvFeeds[hwvii] = ['necur','','northeast_temp.png','Northeast Current Conditions','The latest Northeast conditions.']; hwvii++; hwvFeeds[hwvii] = ['adne','','airport_delays.png','Northeast Airport Delays','The latest airport delays and conditions for the Northeastern US.']; hwvii++; hwvFeeds[hwvii] = ['eccur','','eastcentral_temp.png','Mid-Atlantic Current Conditions','The latest Mid-Atlantic conditions.']; hwvii++; hwvFeeds[hwvii] = ['adec','','airport_delays.png','Mid-Atlantic Airport Delays','The latest airport delays and conditions for the US Mid-Atlantic.']; hwvii++; hwvFeeds[hwvii] = ['secur','','southeast_temp.png','Southeast Current Conditions','The latest Southeast conditions.']; hwvii++; hwvFeeds[hwvii] = ['adse','','airport_delays.png','Southeast Airport Delays','The latest airport delays and conditions for the Southeastern US.']; hwvii++; hwvFeeds[hwvii] = ['nccur','','northcentral_temp.png','Midwest Current Conditions','The latest Midwest conditions.']; hwvii++; hwvFeeds[hwvii] = ['adnc','','airport_delays.png','Northern Plains Airport Delays','The latest airport delays and conditions for the US Northern Plains.']; hwvii++; hwvFeeds[hwvii] = ['cecur','','central_temp.png','Central Plains Currnt Conditions','The latest Central Plains conditions.']; hwvii++; hwvFeeds[hwvii] = ['adce','','airport_delays.png','Central Plains Airport Delays','The latest airport delays and conditions for the US Central Plains.']; hwvii++; hwvFeeds[hwvii] = ['sccur','','southcentral_temp.png','Southern Plains Current Conditions','The latest Southern Plains conditions.']; hwvii++; hwvFeeds[hwvii] = ['adsc','','airport_delays.png','Southern Plains Airport Delays','The latest airport delays and conditions for the US Southern Plains.']; hwvii++; hwvFeeds[hwvii] = ['nwcur','','northwest_temp.png','Pacific Northwest Current Conditions','The latest Pacific Northwest conditions.']; hwvii++; hwvFeeds[hwvii] = ['adnw','','airport_delays.png','Pacific Northwest Airport Delays','The latest airport delays and conditions for the US Pacific Northwest.']; hwvii++; hwvFeeds[hwvii] = ['wccur','','westcentral_temp.png','West Coast Current Conditions','The latest West Coast conditions.']; hwvii++; hwvFeeds[hwvii] = ['adwc','','airport_delays.png','West Coast Airport Delays','The latest airport delays and conditions for the US West Coast.']; hwvii++; hwvFeeds[hwvii] = ['swcur','','southwest_temp.png','Southwest Current Conditions','The latest Southwest conditions.']; hwvii++; hwvFeeds[hwvii] = ['adsw','','airport_delays.png','Southwest Airport Delays','The latest airport delays and conditions for the Southwestern US.']; // HAMvideo JS API commands var HWVA; var hwvPlayed=0; function HWVonFeedDone() { highlightFeed(); if (hwvAutoContinue) playFeed(hwvfeedPlaying+1); } function HWVloadFeed(cfg,pands,metric,lang) { if (cfg.indexOf(hwvuser) == -1) cfg = cfg + hwvuser; HWVA.loadVideoFeed(cfg,pands,metric,lang); } function HWVstop() { HWVA.stopFeed(); } function HWVplay() { HWVA.playFeed(); } function HWVmute() { HWVA.muteVolume(); } function HWVunmute() { HWVA.unmuteVolume(); } function HWVrestartWithAudio() { HWVA.restartWithAudio(); } function HWVonLoad () { HWVA = document.getElementById('HWV'); if (hwvAutoPlayFeed >= 0) playFeed(hwvAutoPlayFeed); } function HWVloadBaseImage() { return 'http://flash.hamvid.com/hamvid/engine/slides/HWVinitload.swf'; } function HWVdocUrl () { return location.href; } // end HAMvid JS API commands function playFeed(feedNum) { if (feedNum >= hwvFeeds.length) feedNum = 0; if (feedNum >= 0 && feedNum < hwvFeeds.length) { hwvfeedPlaying = feedNum; var feedInfo = hwvFeeds[feedNum]; if (!hwvPlayed) { HWVA.changeBaseImage('http://flash.hamvid.com/hamvid/engine/slides/HWVinitload.swf'); hwvPlayed = 1; } HWVloadFeed(feedInfo[0] + hwvuser ,feedInfo[1],'',''); } } function HWsetCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; } function HWgetCookie(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 tend = document.cookie.indexOf(";", begin); if (tend == -1) tend = dc.length; return unescape(dc.substring(begin + prefix.length, tend)); } // Flash version detector based on Flash Version Detector v1.2.1 // documentation: http://www.dithered.com/javascript/flash_detect/index.html // license: http://creativecommons.org/licenses/by/1.0/ // code by Chris Nott (chris[at]dithered[dot]com) // Edited and adjusted for News.com by Bernie McGinn and Andrew Lottmann, 9/14/2006 // Edited and adjusted for hamweather.com by Lee Huffman, 3/5/2007 var requiredVersion = 8; function getFlashVersion() { var installedFlashVersion = 0; var latestFlashVersion = 12; var agent = navigator.userAgent.toLowerCase(); // NS3+, Opera3+, IE5+ Mac (support plugin array): check for Flash plugin in plugin array if (navigator.plugins != null && navigator.plugins.length > 0) { var flashPlugin = navigator.plugins['Shockwave Flash']; if (typeof flashPlugin == 'object') { for (var i = latestFlashVersion; i >= 3; i--) { if (flashPlugin.description.indexOf(i + '.') != -1) { installedFlashVersion = i; break; } } } } // IE4+ Win32: attempt to create an ActiveX object without using VBScript else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) { for (var i=latestFlashVersion; i>0; i--) { try { var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i); installedFlashVersion = i; break; } catch(e){} } } // Ignoring all other cases else installedFlashVersion = -1; return installedFlashVersion; } function HWVswf () { var HWswfTag=''; if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture HWswfTag=''; } else { HWswfTag = ''; } return HWswfTag; } function HWVsswf () { var HWswfTag=''; if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture HWswfTag=''; } else { HWswfTag = ''; } return HWswfTag; } document.writeln(''); document.write (''); document.write('
'); var flashVersion = 0; if (HWgetCookie('isFlashVer')) { flashVersion = requiredVersion; } else { flashVersion = getFlashVersion(); if (flashVersion >= requiredVersion) HWsetCookie('isFlashVer', 1); } if (flashVersion < requiredVersion) { document.write('
');