function showMenu(pID)
{
	var ids_expl = all_ids.split(";");
	
	for (i=0;i<ids_expl.length;i++)
	{
		if (pID != ids_expl[i])
		{
			$('#' + ids_expl[i]).slideUp();	
		}
		else
		{
			$('#' + ids_expl[i]).slideDown();	
		}
	}
}

function hideMenu(pID)
{
	$('#' + pID).slideUp();
}

function fadeOutContent()
{
	$('#content').fadeOut(250);
}

function fadeInContent()
{
	setTimeout(fadeInContentFade, 500);	
}

function fadeInContentFade()
{
	$('#content_text').fadeIn(1000);
	$('#content_gallery').fadeIn(1000);
	$('#content_gallery_desc').fadeIn(1000);
}

function fadeInImgDesc()
{
	$('#content_gallery_desc').stop(true, false).animate();
	$('#content_gallery_desc').animate({opacity: 1}, 500);	
}

function fadeOutImgDesc()
{
	$('#content_gallery_desc').stop(true, false).animate();
	$('#content_gallery_desc').animate({opacity: 0.25}, 500);	
}

function showImgDesc(pID)
{
	$('#' + pID).stop(true, false).animate();
	$('#' + pID).animate({bottom: '0'}, 750);
	$('#' + pID + '_img').animate({opacity: 0}, 500);	
}

function hideImgDesc(pID)
{
	$('#' + pID).stop(true, false).animate();
	$('#' + pID).animate({bottom: '-500'}, 1000);
	$('#' + pID + '_img').animate({opacity: 1}, 500);	
}

function scrollImage(pValue)
{
	if (pValue == "next" && clickCount < maxClickCount)
	{
		clickCount++;	
		$('#content_gallery').animate({left: clickCount*-825}, 500);
		$('#content_gallery_desc').animate({left: clickCount*-825}, 500);
	}
	else if (pValue == "prev" && clickCount > 0)
	{
		clickCount--;
		$('#content_gallery').animate({left: clickCount*-825}, 500);
		$('#content_gallery_desc').animate({left: clickCount*-825}, 500);
	}
	else if (pValue == "next" && clickCount == maxClickCount)
	{
		clickCount = 0;
		$('#content_gallery').animate({left: clickCount*-825}, 500);
		$('#content_gallery_desc').animate({left: clickCount*-825}, 500);
	}
	else if (pValue == "prev" && clickCount == 0)
	{
		clickCount = maxClickCount;
		$('#content_gallery').animate({left: clickCount*-825}, 500);
		$('#content_gallery_desc').animate({left: clickCount*-825}, 500);
	}
	
}
