//Surfaid code and browser sniffer for NS 4.x

window.SA_Message = "NPRMODULES=RADEX";
moduleName = "RADEX";

if ((!document.layers) || (document.getElementsByTagName))
	{
		document.write('<script language="JavaScript1.1">var SA_ID="nprpix;npr";</script><script language="JavaScript1.1" src="http://stats.surfaid.ihost.com/sacdcoc.js"></script>');
	}
else
	{
            //Create dummy sa_onclick code if Netscape
		function sa_onclick(input)
		{}
	}
	
//end surfaid code and browser sniffer

function redirect(url, target, module)
        {
        	window.SA_Message = "";
        	if((module) && (module != "") && (module != null))
        		{
        			// Record fake redirect request with target and module data
               			 sa_onclick('http://<!--#echo var="SERVER_NAME" -->/modulelink?target=' + url + '&NPRMODULES=' + module);
				}
                if ((window.localize==true) && (window.station!=''))
                        {
                                url = "http://<!--#echo var="SERVER_NAME" -->/stations/force/force_localization.php?station=" + window.station + "&url=" + url;
                        }

                if (target=='new')
                        {
                                window.open(url, "NPR_Localize");
                        }
                else
                        {
                                window.location.href = url;
                        }
        }

function redirect_audio(url, module)
        {
        	window.SA_Message = "";
        	if((module) && (module != "") && (module != null))
               		{
               			// Record fake redirect request with target and module data
                		sa_onclick('http://<!--#echo var="SERVER_NAME" -->/moduleaudio?target=' + url + '&NPRMODULES=' + module);
			
                		// Record actual audio click
                		sa_onclick(url);
			}
		window.location.href = url;
        }
        
if(window.thumbnail !== false)
	{
		document.write
		(
'<!-- Image goes here --> ',
// use either the banner or a custom image, comment one out
/* '<!-- RE Banner goes here --> ',
'<a href="javascript:redirect(\'http://<!--#echo var="SERVER_NAME" -->/programs/re/\', \'new\');"><img src="http://<!--#echo var="SERVER_NAME" -->/forstations/images/banners/radex75x75.jpg" width=75 height=75 border=0 align="left" alt="Radio Expeditions" hspace="5"></a>' */
'<!-- If we have a custom image for the story it goes here --> ',
'<a href="javascript:redirect(\'http://<!--#echo var="SERVER_NAME" -->/programs/re/\',\'new\',\'' + moduleName + '\');"><img src="http://<!--#echo var="SERVER_NAME" -->/forstations/images/banners/radex75x75.gif" width=75 height=75 border=0 align="left" alt="Radio Expeditions" hspace="8"></a>'
);
	}

document.write
(
'<!-- do not delete span tags --><span class="nprnewspacks_title"><a href="javascript:redirect(\'http://<!--#echo var="SERVER_NAME" -->/programs/re/\',\'new\',\'' + moduleName + '\');"><img src="http://<!--#echo var="SERVER_NAME" -->/forstations/images/more_news.gif" border="0" height="14" width="75" align="top"></a>&nbsp;<a href="javascript:redirect(\'http://<!--#echo var="SERVER_NAME" -->/programs/re/\',\'new\',\'' + moduleName + '\');"><b>Exploration and Discovery</b></a></span><br> ',
'<span class="nprnewspacks_teaser"><em>Radio Expeditions</em> is a collaboration between NPR and the National Geographic Society. It uses some of the best talent at these two institutions, along with state-of-the-art digital stereo recording equipment, to produce and broadcast feature stories for NPR\'s <a href="javascript:redirect(\'http://<!--#echo var="SERVER_NAME" -->/programs/morning/\', \'new\');"><em>Morning Edition</em></a>. The general themes for stories are the natural world and threatened environments, diverse cultures, adventure, exploration and discovery. </span>',
' ',
// Make sure to update the expanded coverage link
'<!-- do not delete span tags --><span class="nprnewspacks_teaser"><a href="javascript:redirect(\'http://<!--#echo var="SERVER_NAME" -->/programs/re/\',\'new\',\'' + moduleName + '\');"><b>Learn more</b></a>.<!-- do not delete span tags --></span>.  ',
' ',
''
);
