//for thumbnails
var container = $('container');
//alert(Geometry.getViewportWidth());

var Center = {};
Center.x = Math.round(((Geometry.getViewportWidth()-200)/2));
Center.y = Math.round(Geometry.getViewportHeight()/2);



/** ANIMATION ********************************
function containerFadeIn()
{
	//properties
	var opacity = 0;
	var frameRate = 50;


	nextFrame();
	var intervalId = setInterval(nextFrame,frameRate);
	
	function nextFrame()
	{
		//define new position
		opacity += .1;
		
		if( opacity > 1  ){
			
			//last position
			container.style.opacity = "1";
			clearInterval(intervalId);
			
			
			//set last slide
			return;
		}
		
		container.style.opacity = opacity;
	}

}

function containerFadeOut()
{
	//properties
	var opacity = 1;
	var frameRate = 50;


	nextFrame();
	var intervalId = setInterval(nextFrame,frameRate);
	
	function nextFrame()
	{
		//define new position
		opacity -= .1;
		
		if( opacity < 0  ){
			
			//last position
			container.style.opacity = "0";
			clearInterval(intervalId);
			
			
			//set last slide
			return;
		}
		
		container.style.opacity = opacity;
	}

}

window.onunload = containerFadeOut;
containerFadeIn();
*/

