<!--

	var aSeries 				= [ 'dvd', 'effects', 'location', 'character', 'culture' ]; 
	var aSeriesRepresentative 	= [ 'twotowers', 'helmsdeep', 'concept','eowyn','shadowfax']; 
	var aDescription			= [ 'Special Extended DVD', 'Battles of Middle-earth', 
								'Locations of Middle-earth', 
								'Characters of Middle-earth', 
								'Cultures of Middle-earth', 
								'View All' ]; 

	
	function printScreensaverSeries( sSeries, sThumbnail )
	{
		var sResult = '';
		
		sResult += '<table cellspacing="0" cellpadding="0" border="0">';
		sResult += '	<tr>';
		sResult += '		<td valign="top" align="right">';
		sResult += '			<a href="' + sSeries + '.html"><img border="0" src="images/series_name_' + sSeries + '.gif" width="188" height="56" alt=""></a><br>';
		sResult += '			<img src="images/divider.gif" width="188" height="6" alt=""><br>';
		sResult += '			<a href="' + sSeries + '.html">Click to View Screensavers</a>';
		sResult += '		</td>';
		sResult += '		<td valign="top">';
		sResult += '			<a href="' + sSeries + '.html"><img border="0" src="images/thumbnails/' + sSeries + '_' + sThumbnail + '.gif" width="131" height="85" alt=""></a>';
		sResult += '		</td>';
		sResult += '	</tr>';
		sResult += '</table>';		
		sResult += '<img src="images/color_clear.gif" width="1" height="32" alt=""><br>';
		
		return sResult;
	}

	function printSeries()
	{
		var sColumn1 		= '';
		var sColumn2 		= '';
		var lCount 			= aSeries.length;
		var lIndex			= 0;
		var sItem 			= '';
		
		for( lIndex = 0; lIndex < lCount; lIndex++ )
		{
			sItem = printScreensaverSeries( aSeries[ lIndex ], aSeriesRepresentative[ lIndex ] );
			
			if( lIndex % 2 == 0 )
			{
				sColumn1 += sItem;
			}							
			else
			{
				sColumn2 += sItem;
			}
		}
		
		document.write( '<table width="100%">' );
		document.write( '	<tr>' );
		document.write( '		<td valign="top">' );
		document.write( 			sColumn1 );
		document.write( '		</td>' );
		document.write( '		<td valign="top">' );
		document.write( 			sColumn2 );
		document.write( '		</td>' );
		document.write( '	</tr>' );
		document.write( '</table>' );
		
	}	
	
	function printScreensaver( sSeries, sThumbnail, lSizePC, lSizeMac )
	{
		document.write( '<table cellspacing="0" cellpadding="0" border="0">');
		document.write( '	<tr>');
		document.write( '		<td valign="top" align="right">');
		document.write( '			<img src="images/thumbnails/' + sSeries + '_name_' + sThumbnail + '.gif" width="188" height="56" alt=""><br>');
		document.write( '			<img src="images/divider.gif" width="188" height="6" alt=""><br>');
		document.write( '			<a href="/media/screensavers/' + sSeries + "_" + sThumbnail + ".exe\">PC (" + lSizePC + ")</a> | ");
		document.write( '			<a href="/media/screensavers/' + sSeries + "_" + sThumbnail + ".sit\">MAC (" + lSizeMac + ")</a> | ");
		document.write( "			<a href=\"javascript:openScreensaver( \'" + sSeries + "_" + sThumbnail + "\', \'Preview\' )\">Preview</a>");
		document.write( '		</td>');
		document.write( '		<td valign="top">');
		document.write( '			<img src="images/thumbnails/' + sSeries + '_' + sThumbnail + '.gif" width="131" height="85" alt="">');
		document.write( '		</td>');
		document.write( '	</tr>');
		document.write( '</table>');		
		document.write( '<img src="images/color_clear.gif" width="1" height="32" alt=""><br>');
		
	}
	
	function printSeriesIndex( sActiveSeries )
	{
		var sColumn1 		= '';
		var sColumn2 		= '';
		var lCount 			= aSeries.length;
		var lItem			= 0;
		var lIndex			= 0;
		var sItem 			= '';
		
		for( lIndex = 0; lIndex < lCount; lIndex++ )
		{
			if( aSeries[ lIndex ] != sActiveSeries )
			{
				sItem = '<img src="images/bullet.gif"> <a href="' + aSeries[ lIndex ] + '.html"><b>' + aDescription[ lIndex ] + '</b></a><br><img src="images/color_clear.gif" width="1" height="12"><br>';
				
				if( ( lItem % 2 == 0 ) )
				{
					sColumn1 += sItem;
				}							
				else
				{
					sColumn2 += sItem;
				}
				
				lItem++;
			}
		}
		
		sItem = '<img src="images/bullet.gif"> <a href="index.html"><b>Back to Main Screensavers</b></a><br><img src="images/color_clear.gif" width="1" height="12"><br>';
		if( lItem % 2 == 0 )
		{
			sColumn1 += sItem;
		}							
		else
		{
			sColumn2 += sItem;
		}

		document.write( '<table width="100%">' );
		document.write( '	<tr>' );
		document.write( '		<td valign="top">' );
		document.write( 			sColumn1 );
		document.write( '		</td>' );
		document.write( '		<td valign="top">' );
		document.write( 			sColumn2 );
		document.write( '		</td>' );
		document.write( '	</tr>' );
		document.write( '</table>' );
	}
						
	

//-->
