var HWVFBfeedCatPlaying='';
var HWVFBfeedPlayingPands='';

function HWVFBswapFeedCat (cat) {
	if (cat != null) {
		if (HWgetObj(cat + '1') != null) {
			HWVFBswap(cat + '1', HWVFBcurCat + HWVFBcurPg);
			HWgetObj('nav-' + HWVFBcurCat).className = '';
			HWgetObj('nav-' + cat).className = 'selected';
			HWVFBcurCat = cat;
			HWVFBcurPg = 1;

			HWVFBdoPagination();
		}
	}
}
function HWVFBprev () {
	ppg = HWVFBcurPg - 1;
	if (HWgetObj(HWVFBcurCat + ppg) != null) {
		HWVFBswap(HWVFBcurCat + ppg, HWVFBcurCat + HWVFBcurPg);
		HWVFBcurPg = ppg;
		HWVFBdoPagination();
	}
}
function HWVFBnext () {
	npg = HWVFBcurPg + 1;
	if (HWgetObj(HWVFBcurCat + npg) != null) {
		HWVFBswap(HWVFBcurCat + npg, HWVFBcurCat + HWVFBcurPg);
		HWVFBcurPg = npg;
		HWVFBdoPagination();
	}
}
function HWVFBswap (show, hide) {
	if (show != null && hide != null) {
		HWVFBhide(hide);
		HWVFBshow(show);
	}
}
function HWVFBshow (ref) {
	if (HWgetObj(ref)) HWgetObj(ref).style.display = 'block';
}
function HWVFBhide (ref) {
	if (HWgetObj(ref)) HWgetObj(ref).style.display = 'none';
}
function HWVFBgetTotPg (cat) {
	tot = Math.ceil(HWVFBfeeds[cat].length/HWVFBmaxRows);
	if (tot == 0) tot = 1;
	return tot;
}
function HWVFBdoPagination () {
	totpg = HWVFBgetTotPg(HWVFBcurCat);
	if (totpg > 1) {
		if (HWVFBcurPg == totpg) HWVFBhide('HWVFBpgnext'); else HWVFBshow('HWVFBpgnext');
		if (HWVFBcurPg == 1) HWVFBhide('HWVFBpgprev'); else HWVFBshow('HWVFBpgprev');
		HWgetObj('HWVFBpgnum').innerHTML = HWVFBcurPg + ' of ' + HWVFBgetTotPg(HWVFBcurCat);
		HWVFBshow('HWVFBpagination');
	}
	else {
		HWVFBhide('HWVFBpagination');
	}
}
function HWVFBdoTabPagination (show) {
	curgp = HWVFBcurNavPg;
	curgp += show;
	HWVFBcurNavPg = curgp;
	curgp -= 1;
	tot = HWVFBtabGroups.length;
	for (i=0; i < tot; i++) {

			for (j=0; j < HWVFBtabGroups[i].length; j++) {
				if (i == curgp) {
					HWgetObj(HWVFBtabGroups[i][j]).style.display = 'block';
				}
				else {
					HWgetObj(HWVFBtabGroups[i][j]).style.display = 'none';
				}
			}

	}

	if (curgp > 0) {
		HWgetObj('HWVFBnavpg-l').style.display = 'block';
		HWgetObj('HWVFBnav').style.left = '14px';
	}
	else {
		HWgetObj('HWVFBnavpg-l').style.display = 'none';
		HWgetObj('HWVFBnav').style.left = '0';
	}
	if (curgp < tot-1) {
		HWgetObj('HWVFBnavpg-r').style.display = 'block';
	}
	else {
		HWgetObj('HWVFBnavpg-r').style.display = 'none';
	}
}
function HWVFBdoTabPgOver (type, on) {
	HWgetObj('navpg-' + type + '-img').src = (on) ? 'http://images.hamvid.com/images-tabbed/pg-' + type + '-over.png' : 'http://images.hamvid.com/images-tabbed/pg-' + type + '.png';
}
function HWVFBonEventBgSwap (event, divs, force) {
	if (divs.length > 0) {
		for (i=0; i < divs.length; i++) {
			regex = /.+A$/;
			isleft = (regex.test(divs[i])) ? 1 : 0;
			cdiv = HWgetObj(divs[i]);
			if (cdiv && (divs[i].indexOf(HWVFBfeedPlaying) == -1 || force === true)) {
				if (event == 'over') {
					cdiv.style.background = (isleft) ? 'transparent url(\'http://images.hamvid.com/images-tabbed/list-bg-on.png\') repeat-y left top' : 'transparent url(\'http://images.hamvid.com/images-tabbed/list-bg-on.png\') repeat-y right top';
					cdiv.style.cursor = 'pointer';
					cdiv.style.color = '#000000';
				}
				else if (event == 'on') {
					cdiv.style.background = (isleft) ? 'transparent url(\'http://images.hamvid.com/images-tabbed/list-bg-sel.png\') repeat-y left top' : 'transparent url(\'http://images.hamvid.com/images-tabbed/list-bg-sel.png\') repeat-y right top';
					cdiv.style.cursor = 'default';
					cdiv.style.color = '#000000';
				}
				else if (event == 'off') {
					cdiv.style.background = (isleft) ? 'transparent url(\'http://images.hamvid.com/images-tabbed/list-bg-off.png\') repeat-y left top' : 'transparent url(\'http://images.hamvid.com/images-tabbed/list-bg-off.png\') repeat-y right top';
					cdiv.style.cursor = 'pointer';
					cdiv.style.color = '#333333';
				}
			}
		}
	}
}
function HWVFBinit () {

	HWVBdoTabs();

	for (i=0; i < HWVFBcats.length; i++) {
		var jStart=1;
		if (HWVFBcats[i] == HWVFBcurCat) {
			HWgetObj('nav-' + HWVFBcurCat).className = 'selected';
			jStart=2;
		}

		for (j=jStart; j <= HWVFBgetTotPg(HWVFBcats[i]); j++) {
			HWVFBhide(HWVFBcats[i] + j);
		}
	}
	HWVFBdoPagination();
	HWVFBdoTabPagination(0);


	HWVFBshow('HWVFBinner');

	HWVsetMetric(HWVFBmetric);
	HWVFBautoSize();






}

function HWVBdoTabs() {

	ctabgp=0;
	for (var feedcat in HWVFBfeeds) {
		//document.write('<li id="nav-' + feedcat + '"><a href="javascript:HWVFBswapFeedCat(\'' + feedcat + '\');">' + HWVFBcatNames[feedcat].toUpperCase() + '</a></li>');

		HWVFBtabWidth += HWgetObj('nav-' + feedcat).offsetWidth;
	 	if (HWVFBtabWidth > (HWVFBwidth - 30)) {
			HWVFBtabWidth = HWgetObj('nav-' + feedcat).offsetWidth;
			ctabgp++;
		}
		if (!HWVFBtabGroups[ctabgp]) HWVFBtabGroups[ctabgp] = new Array();
		HWVFBtabGroups[ctabgp].push('nav-' + feedcat);


	}
}
function HWVFBautoSize () {
	if (!HWVFBlockHeight) {
		st = HWgetObj('HWVFBtop').offsetTop + HWgetObj('HWVFBtop').offsetHeight;
		h = HWVFBrowh * HWVFBmaxRows;
		h += 35;
		HWgetObj('HWVFBlisting').style.height = h + 'px';
		HWgetObj('HWVFBpagination').style.top = (st + h - 20) + 'px';
		HWgetObj('HWVFBbottom').style.top = (st + h) + 'px';
		HWgetObj('HWVfeedbox').style.height = (st + h + HWgetObj('HWVFBbottom').offsetHeight) + 'px';
	}
	HWgetObj('HWVFBnavpg-r').style.left = (HWgetObj('HWVFBtop').offsetWidth - HWgetObj('HWVFBnavpg-r').offsetWidth) + 'px';
}
function HWVFBplayLocalFeed (pands) {
	regex = /^\d{5}$/;
	if (pands.length != 5 || !regex.test(pands)) {
		alert('HAMvid: You did not enter a valid zip code.');
		return false;
	}
	if (!HWVplayed) {
		HWVA.changeBaseImage('http://flash.hamvid.com/hamvid/images/HWVinitload.swf');
		HWVplayed = 1;
	}
	HWVplaying=1;
	HWVloadFeed('local',pands,HWVFBmetric,'');
	//HWVFBhighlightFeed('locpands', HWVFBfeedPlaying, 'form-sel');
	HWVFBhighlightFeed('locpands', HWVFBfeedPlaying);
	HWVFBfeedPlaying = 'locpands';
	HWVFBfeedPlayingPands = pands;
}

function HWVFBsetAutoPlay(feedCat, feedName, feedParm) {
	if (feedCat && !feedName && !feedParm) {
		var tVars = feedCat.split('|');
		feedCat = tVars[0];
		if (tVars.length > 1) feedName	= tVars[1];
		if (tVars.length > 2) feedParm = tVars[2];
	}

	HWVFBautoPlayFeedCat = feedCat;
	HWVFBautoPlayFeedCode = feedName;
	HWVFBautoPlayFeedParm = feedParm;
}


function HWVFBplayFeedByParms(feedCat, feedName, feedParm) {
	if (feedCat && !feedName && !feedParm) {
		var tVars = feedCat.split('|');
		feedCat = tVars[0];
		if (tVars.length > 1) feedName	= tVars[1];
		if (tVars.length > 2) feedParm = tVars[2];
	}

	if (feedCat == 'local' && feedName == 'locpands') {
		var tObj = HWgetObj('HWVpands');
		if (tObj) tObj.value = feedParm;
		HWVFBplayLocalFeed (feedParm);
	}
	else {

		var feedNum = -1;
		for (cat in HWVFBfeeds) {
			if (cat== feedCat) {
				for (j = 0; j < HWVFBfeeds[cat].length; j++) {

					if (feedName == HWVFBfeeds[cat][j][0] && feedParm == HWVFBfeeds[cat][j][1]) {
						feedNum = j;
						break;
					}
				}
				if (feedNum >= 0) break;
			}
		}
		if (feedNum >=0 ) HWVFBplayFeed(feedCat, feedNum,false);
	}

}

function HWVFBplayFeed (feedCat, feedNum, force) {
	if (HWVFBfeedPlaying != feedCat + feedNum || force == true) {
		if (feedNum >= HWVFBfeeds[feedCat].length) feedNum = 0;
		if (feedNum >= 0 && feedNum < HWVFBfeeds[feedCat].length) {
			var feedInfo = HWVFBfeeds[feedCat][feedNum];
			if (!HWVplayed) {
				HWVA.changeBaseImage('http://flash.hamvid.com/hamvid/images/HWVinitload.swf');
				HWVplayed = 1;
			}
			HWVplaying=1;
			HWVloadFeed(feedInfo[0],feedInfo[1],HWVFBmetric,'');
			HWVFBhighlightFeed(feedCat + feedNum, HWVFBfeedPlaying);
			HWVFBfeedPlaying = feedCat + feedNum;
			HWVFBfeedNumPlaying = feedNum;
			HWVFBfeedCatPlaying = feedCat;
		}
	}
}
function HWVFBhighlightFeed (feedOn, feedOff) {
	HWVFBonEventBgSwap('on', ['HWVFBtd-' + feedOn + 'A','HWVFBtd-' + feedOn + 'B']);
	HWVFBonEventBgSwap('off', ['HWVFBtd-' + feedOff + 'A','HWVFBtd-' + feedOff + 'B'], true);
}
function HWVFBenlarge () {

	var tURL = HWVFBenlargeURL;
	if ( HWVFBfeedPlaying == 'locpands') {


		if (HWVFBfeedPlaying) tURL += '&fn=' + HWVFBfeedPlaying + '&fc=local&fp=' + HWVFBfeedPlayingPands;

	}
	else {
		if (HWVFBfeedPlaying) tURL += '&fn=' + HWVFBfeeds[HWVFBfeedCatPlaying][HWVFBfeedNumPlaying][0] + '&fc=' + HWVFBfeedCatPlaying + '&fp=' + HWVFBfeeds[HWVFBfeedCatPlaying][HWVFBfeedNumPlaying][1];
	}
	document.location = tURL;
}

// HAMvideo JS API commands
var HWVA;
var HWVplayed=0;
var HWVplaying=0;
function HWVonFeedDone () {
	//HWVFBplayFeed(HWVFBcurCat, HWVFBfeedNumPlaying+1);
}
function HWVloadFeed (cfg,pands,metric,lang) {
	HWVA.loadVideoFeed(cfg,pands,metric,lang);
}
function HWVstop () {
	HWVplaying = 0;
	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 (HWVFBautoPlayFeedCat) HWVFBplayFeedByParms(HWVFBautoPlayFeedCat, HWVFBautoPlayFeedCode, HWVFBautoPlayFeedParm);
}
function HWVsetMetric (imetric) {
	if (HWVFBmetric != imetric) {
		HWVFBmetric = imetric;
		if (HWVplaying) HWVFBplayFeed(HWVFBcurCat, HWVFBfeedNumPlaying, true);
	}
	if (HWVFBmetric) {
		HWgetObj('HWVFBumet').className = 'link-on'
		HWgetObj('HWVFBueng').className = '';
	}
	else {
		HWgetObj('HWVFBumet').className = ''
		HWgetObj('HWVFBueng').className = 'link-on';
	}
}
function HWVloadBaseImage () {
	return 'http://flash.hamvid.com/hamvid/engine/HWV_intro_select.swf';
}
// end HAMvid JS API commands

// 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 = 10;
   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='<embed type="application/x-shockwave-flash" src="http://flash.hamvid.com/hamvid/HWVAspenJS.swf?fvfdcfg=http://flash.hamvid.com/hamvid/" width="' + HWVwidth + '" height="' + HWVheight + '" quality="high" bgcolor="#000000" SCALE="noscale" allowscriptaccess="always" swLiveConnect="true" menu="false" name="HWV" id="HWV" />';
	}
	else {
		HWswfTag = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + HWVwidth + '" height="' + HWVheight + '" name="HWV"  id="HWV"><param name="movie" value="http://flash.hamvid.com/hamvid/HWVAspenJS.swf?fvfdcfg=http://flash.hamvid.com/hamvid/"><param name="quality" value="high"><param name="SCALE" value="noscale"><param name="bgcolor" value="#000000"><param name="swLiveConnect" value="true"><param name="menu" value="false"><param name="allowscriptaccess" value="always"></object>';
	}
	return HWswfTag;
}

function HWVsswf () {
	var HWswfTag='';
	if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) {
		// netscape plugin architecture
		HWswfTag='<embed type="application/x-shockwave-flash" src="http://flash.hamvid.com/hamvid/HWsecurity.swf"  quality="low" SCALE="noscale" swLiveConnect="true" menu="false" height="1" width="1"  id="hws" name="hws" bgcolor="#000000" />';
	}
	else {
		HWswfTag = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1" height="1" id="hws" name="hws" ><param name="movie" value="http://flash.hamvid.com/hamvid/HWsecurity.swf"><param name="bgcolor" value="#000000"<param name="quality" value="low"><param name="SCALE" value="noscale"><param name="swLiveConnect" value="true"><param name="menu" value="false"></object>';
	}
	return HWswfTag;
}
var flashVersion = 0;
if (HWgetCookie('isFlashVer')) {
	flashVersion = requiredVersion;
}
else {
	flashVersion = getFlashVersion();
	if (flashVersion >= requiredVersion) HWsetCookie('isFlashVer', 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));
}

function HWgetObj (ref) {
	return document.getElementById(ref);
}




document.write('<div id="HWVfeedbox">');
document.write('	<div class="wrapper">');
document.write('		<div id="video">');

	if (flashVersion >= requiredVersion) {
		var tAlign = (HWVwidth < 480) ? 'center' : 'left';
		document.write('<div id="videoArea"><div align="' + tAlign + '" id="HAMvidArea" >' + HWVswf() + '</div></div>');
	}
	else {
		document.write('<div id="videoArea"><div id="HAMvidArea"><a href="http:\/\/www.macromedia.com\/go\/getflashplayer"><img src="http:\/\/images.hamvid.com/HWVvcheck_install_' + HWVwidth + 'x' + HWVheight + '.png" width="' + HWVwidth + '" height="' + HWVheight + '" \/><\/a><\/div><\/div>');
	}

document.write('		</div>');
document.write('		<div class="top" id="HWVFBtop">');
document.write('			<div id="info">');
if (HWVwidth < 480) document.write('			<a href="javascript:HWVFBenlarge();">ENLARGE</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('				UNITS: <a href="javascript:HWVsetMetric(0);" id="HWVFBueng">ENGLISH</a> | <a href="javascript:HWVsetMetric(1);" id="HWVFBumet">METRIC</a></div>');
//document.write('			<div id="info">UNITS: <a href="javascript:HWVsetMetric(0);" id="HWVFBueng">ENGLISH</a> | <a href="javascript:HWVsetMetric(1);" id="HWVFBumet">METRIC</a></div>');
document.write('			<div id="HWVFBnav">');
document.write('				<ul>');


ctabgp=0;
for (var feedcat in HWVFBfeeds) {
	document.write('<li id="nav-' + feedcat + '"><a href="javascript:HWVFBswapFeedCat(\'' + feedcat + '\');">' + HWVFBcatNames[feedcat].toUpperCase() + '</a></li>');
}


document.write('</ul>');
document.write('</div>');
document.write('<div id="HWVFBnavpg-l"><a href="javascript:HWVFBdoTabPagination(-1);" onmouseover="HWVFBdoTabPgOver(\'prev\',1);" onmouseout="HWVFBdoTabPgOver(\'prev\',0);"><img id="navpg-prev-img" src="http://images.hamvid.com/images-tabbed/pg-prev.png" width="11" height="11" /></a></div>');
document.write('<div id="HWVFBnavpg-r"><a href="javascript:HWVFBdoTabPagination(1);" onmouseover="HWVFBdoTabPgOver(\'next\',1);" onmouseout="HWVFBdoTabPgOver(\'next\',0);"><img id="navpg-next-img" src="http://images.hamvid.com/images-tabbed/pg-next.png" width="11" height="11" /></a></div>');
document.write('</div>');

HWVFBhide('HWVFBnavpg-l');
HWVFBhide('HWVFBnavpg-r');



document.write('<div  class="listing" id="HWVFBlisting"><div id="HWVFBinner">');

fcnt=0;
for (var feedcat in HWVFBfeeds) {
	totfeeds = HWVFBfeeds[feedcat].length;
	totpg = Math.ceil(totfeeds/HWVFBmaxRows);
	cpg = 1;
	if (totfeeds > 0) {
		while (cpg <= totpg) {
			document.write('<div id="' + feedcat + cpg + '"><table>');
			fcstart = (cpg-1) * HWVFBmaxRows;
			fcend = fcstart + HWVFBmaxRows;
			if (feedcat == 'local') {
				document.write('<tr class="form" id="frow-locpands"><td colspan="2" id="HWVFBtd-locpandsB">Change Zip Code: <input type="text" name="HWVpands" id="HWVpands" value="" size="10" maxchar="5" onfocus="this.value=\'\'" /> <input type="button" name="changeloc" value="Submit" onclick="HWVFBplayLocalFeed(HWgetObj(\'HWVpands\').value)" /></td></tr>');
				fcend--;
			}
			if (fcend > totfeeds) fcend = totfeeds;
			for (i = fcstart; i < fcend; i++) {
				document.write('<tr id="frow-' + feedcat + i + '" onclick="HWVFBplayFeed(\'' + feedcat + '\', ' + i + ')"><td class="icon" id="HWVFBtd-' + feedcat + i + 'A" onmouseover="HWVFBonEventBgSwap(\'over\', [\'HWVFBtd-' + feedcat + i + 'A\',\'HWVFBtd-' + feedcat + i + 'B\'])" onmouseout="HWVFBonEventBgSwap(\'off\', [\'HWVFBtd-' + feedcat + i + 'A\',\'HWVFBtd-' + feedcat + i + 'B\'])"><img src="' + HWVFBiconPath + HWVFBfeeds[feedcat][i][2] + '" /></td>');
				document.write('<td id="HWVFBtd-' + feedcat + i + 'B" onmouseover="HWVFBonEventBgSwap(\'over\', [\'HWVFBtd-' + feedcat + i + 'A\',\'HWVFBtd-' + feedcat + i + 'B\'])" onmouseout="HWVFBonEventBgSwap(\'off\', [\'HWVFBtd-' + feedcat + i + 'A\',\'HWVFBtd-' + feedcat + i + 'B\'])"><span class="title">' + HWVFBfeeds[feedcat][i][3] + '</span><br/>' + HWVFBfeeds[feedcat][i][4] + '</td></tr>');
			}
			document.write('</table></div>');
			cpg++;
		}
	}
	else {
		document.write('<div id="' + feedcat + cpg + '"><table><tr><td>There are currently no feeds available for this category.</td></tr></table></div>');
	}
	fcnt++;
}
document.write('</div></div>');
HWVFBhide('HWVFBinner');


document.write('<div class="pagination" id="HWVFBpagination">');
document.write('<table>');
document.write('<tr>');
document.write('<td width="60"><span id="HWVFBpgprev">< <a href="javascript:HWVFBprev();">PREVIOUS</a></span></td>');
document.write('<td style="text-align:center;" id="HWVFBpgnum"></td>');
document.write('<td width="60" style="text-align:right;"><span id="HWVFBpgnext"><a href="javascript:HWVFBnext();">NEXT</a> ></span></td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
HWVFBhide('HWVFBpagination');
document.write('<div class="bottom" id="HWVFBbottom">');
document.write('<table>');
document.write('<tr>');
document.write('<td><a href="http://www.hamvid.com/" target="_blank"><img src="http://images.hamvid.com/images-tabbed/hamvid_logo_sm.png" /></a></td>');
document.write('<td class="info"><a href="http://www.hamvid.com/features.php" target="_blank">INFO</a> | <a href="http://www.hamvid.com/support/viewforum.php?f=7" target="_blank">FEEDBACK</a> | <a href="http://www.hamvid.com/contact.php" target="_blank">REPORT ERROR</a></td>');

document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('</div>');

	if (flashVersion >= requiredVersion) {
		document.write('<div id="HAMvidAreaS" >' + HWVsswf() + '</div>');
	}

document.write('</div>');
