	
	var productDetailsSpeed = 250;
	var hoverSpeed = 300;
	var buttonDelay = 1000;
	var buttonDownloadTimer;
	var buttonOn = 1;
	
	window.addEvent('domready',initProduct);

	function initProduct()
	{
		$('productPhoto').set({'morph':{duration:productDetailsSpeed, transition:Fx.Transitions.Sine.easeInOut}, 'opacity':0});
		$('productHeading').set({'morph':{duration:productDetailsSpeed, transition:Fx.Transitions.Sine.easeInOut}, 'opacity':0});
		$('productDescription').set({'morph':{duration:productDetailsSpeed, transition:Fx.Transitions.Sine.easeInOut}, 'opacity':0});

		$('keyFeaturesDownload').set({'morph':{duration:hoverSpeed, transition:Fx.Transitions.Sine.easeInOut}});
		$('keyFeaturesDownload').addEvent('mouseenter',function(){$('keyFeaturesDownloadHover').set({'opacity':1});});
		$('keyFeaturesDownload').addEvent('mouseleave',function(){$('keyFeaturesDownloadHover').morph({'opacity':0});});

		$('keyFeaturesPageUp').set({'morph':{duration:hoverSpeed, transition:Fx.Transitions.Sine.easeInOut}});
		$('keyFeaturesPageUp').addEvent('mouseenter',function(){$('keyFeaturesPageUpHover').set({'opacity':1});});
		$('keyFeaturesPageUp').addEvent('mouseleave',function(){$('keyFeaturesPageUpHover').morph({'opacity':0});});

		$('keyFeaturesPageDown').set({'morph':{duration:hoverSpeed, transition:Fx.Transitions.Sine.easeInOut}});
		$('keyFeaturesPageDown').addEvent('mouseenter',function(){$('keyFeaturesPageDownHover').set({'opacity':1});});
		$('keyFeaturesPageDown').addEvent('mouseleave',function(){$('keyFeaturesPageDownHover').morph({'opacity':0});});

		showProduct();
		
		/* disable button flashing */
		//buttonDownloadTimer=(function(){toggleButton()}).periodical(buttonDelay);
		$('keyFeaturesDownloadGlow').set('opacity',1);
		//$('keyFeaturesPageGlow').set('opacity',1);

	}
	
	function showProduct()
	{
		(function(){$('productHeading').morph({'top':0, 'opacity':1})}).delay(0);
		(function(){$('productDescription').morph({'padding-left':18, 'opacity':1})}).delay(productDetailsSpeed/5);
		(function(){$('productPhoto').morph({'opacity':1})}).delay((productDetailsSpeed/5)*4);			
	}
	
	function hideProduct()
	{
		(function(){$('productPhoto').morph({'opacity':0})}).delay(0);
		(function(){$('productDescription').morph({'padding-left':0, 'opacity':0})}).delay((productDetailsSpeed/5)*3);
		(function(){$('productHeading').morph({'top':-50, 'opacity':0})}).delay((productDetailsSpeed/5)*4);
	}

	function toggleButton()
	{
		buttonOn++;
		if(buttonOn==3) buttonOn=1;
		if(buttonOn==1)
		{
			$('keyFeaturesDownloadGlow').set('opacity',0);
			$('keyFeaturesPageGlow').set('opacity',1);
		}
		if(buttonOn==2)
		{
			$('keyFeaturesPageGlow').set('opacity',0);
			$('keyFeaturesDownloadGlow').set('opacity',1);
		}
	}

