function areaHeight(){
	return $("#anim-area").height();
}

function areaWidth(){
	return $("#anim-area").width();
}


function bottom(object){
	return object.css( "top", (areaHeight() - object.height())+"px");
}

function top_(object){
	return object.css("top","0px");
}

function leftCorner(){
	var l = (document.body.clientWidth - areaWidth())/2;
	if( l < 0 )
		l = 0;
	return l;
}

function left(object){
	var l = leftCorner();
	return object.css("left",l+"px");
}

function right(object){
	return object.css( "left", leftCorner() + (areaWidth() - object.width())+"px");
} 

function widthCenter(object){
	return object.css( "left", leftCorner() + (areaWidth() - object.width())/2+"px");
}

function heightCenter(object){
	return object.css( "top", (areaHeight() - object.height())/2+"px");
}

function center(object){
	return heightCenter(widthCenter(object));
}


function animStart(){
	$("body").css('background-color', '#0e0e0e');
	$("#wrapper").slideUp();
	$("#wrapper").hide();
	$("#anim-area").show();
	$("#__clTag").hide();
	$("#__clAlt").hide();
	animation();
}

function animStop() {
	$("#wrapper").slideDown();
	$("#anim-area").slideUp(500, function() {
		$("body").css('background-color', '#ffffff');
	});
	$("#__clTag").show();
	$("#__clAlt").show();

}

