function GL_manageScreenShots(direction, width, height)
{
	if(direction == 'next')
	{
		if(screenshot_current >= 4)
		{
			screenshot_current = 1;
		}
		else
		{
			screenshot_current++;
		}
	}
	else
	{
		if(screenshot_current <= 1)
		{
			screenshot_current = 4;
		}
		else
		{
			screenshot_current--;
		}
	}
	
	var big_screenshot = screenshot_folder.replace('screenshots/112/', 'screenshots/240/');
	var img_tag = '<a href="' + big_screenshot + screenshot_current + '.jpg"><img src="' + screenshot_folder + screenshot_current + '.jpg" align="right" border="0" alt="' + alt_text + '" /></a>';
	document.getElementById(screenshot_div).innerHTML = img_tag;
	
	clearTimeout(global_timer);
	global_timer = setTimeout("GL_manageScreenShots('next', " + width + ", " + height + ")", 2000);
}

function GL_managePCScreenShots(direction)
{
	if(direction == 'next')
	{
		if(screenshot_current >= 3)
		{
			screenshot_current = 1;
		}
		else
		{
			screenshot_current++;
		}
	}
	else
	{
		if(screenshot_current <= 1)
		{
			screenshot_current = 3;
		}
		else
		{
			screenshot_current--;
		}
	}
	
	var img_tag = '<img src="' + screenshot_folder + screenshot_current + '.jpg" width="320" height="240" />';
	document.getElementById(screenshot_div).innerHTML = img_tag;
	
	//clearTimeout(global_timer);
	//global_timer = setTimeout("GL_managePCScreenShots('next')", 2000);
}

function GL_manageYouMayLike(direction)
{
	if(direction == 'next')
	{
		if(YML_current_pos >= YML_products_id.length - 1)
		{
			YML_current_pos = 0;
		}
		else
		{
			YML_current_pos++;
		}
	}
	else
	{
		if(YML_current_pos <= 0)
		{
			YML_current_pos = YML_products_id.length - 1;
		}
		else
		{
			YML_current_pos--;
		}
	}
	
	var html_output = "";
	for(i = 0; i < YML_display_products; i++)
	{
		var product_position = YML_current_pos + i;
		if(product_position >= YML_products_id.length)
		{
			product_position = product_position - YML_products_id.length;
		}
		var product_id = YML_products_id[product_position];
		var product_title = YML_products_title[product_position];
		var product_url = YML_products_url[product_position];
		var facing_url = YML_path_media.replace("[[$product_id$]]", product_id);
		html_output += '<div><a href="' + product_url + '"><img src="' + facing_url + '" width="94" height="122" /></a><br /><a href="' + product_url + '">' + product_title + '</a></div>';
	}
	
	document.getElementById(YML_div_id).innerHTML = html_output;
}