var onHomePage=0;
function showFeaturedProducts(homepageCheck)
{
	if (homepageCheck){
		onHomePage=1;
	}
	$('#featured-products').animate({top:'0%'}, 1000, function() {
		var flashvars = {};
		flashvars.gp = _slshCnt;
		var params = {};
		params.menu = "false";
		params.scale = "noScale";
		
		var attributes  = {};
		attributes.id = "imageGallery";
		attributes.name = "imageGallery";
		attributes.bgcolor = "#000000";
		
		swfobject.embedSWF(_slshCnt+"ImageGallery.swf", "featured-wrapper", "100%", "100%", "9.0.0", _slshCnt+"imageGallery/data/js/expressInstall.swf", flashvars, params, attributes);
	});
}
function closeGallery()
{
	$('#featured-products').animate({top:'-100%'}, 750, function()
	{
		swfobject.removeSWF("imageGallery");
		$(this).html('<div id="featured-wrapper"></div>');
		
		if (onHomePage==1){
			thisMovie("homeFlash").hideGallery();
		}
	});
}

	function thisMovie(swfName)
	{
		if (navigator.appName.indexOf("Microsoft") != -1) {
			return window[swfName];
		} else {
			return document[swfName];
		}
	}
/*

function closeGallery()
	{
		$('#featured-products').animate({top:'-100%'}, 750, function()
		{
			swfobject.removeSWF("imageGallery");
			$(this).html('<div id="featured-wrapper"></div>');
			
			thisMovie("homeFlash").hideGallery();
		});
	}
	
	function thisMovie(swfName)
	{
		if (navigator.appName.indexOf("Microsoft") != -1) {
			return window[swfName];
		} else {
			return document[swfName];
		}
	}
	
	
*/