// JavaScript Document



var serverLocation = location.host == 'localhost' ? location.protocol + '//' + location.host + 'smart/guilhermetorres/www/': location.protocol + '//' + location.host + '/';







function scrollObjects (object, orientation, distance, duration)



{



	if(navigator.userAgent.match(/iPad/i) != null)



	{



		object.css("-webkit-transition-duration", (duration/1000).toFixed(1) + "s");



		var value = (distance < 0 ? "" : "-") + Math.abs(distance).toString();



		if(orientation == "x") {



			object.css("-webkit-transform", "translate3d("+ value +"px,0px,0px)");



		} else {



			object.css("-webkit-transform", "translate3d(0px," + value + "px,0px)");



		}



	}



	else



	{



		if(orientation == "x") {



			object.animate({marginLeft: distance * -1}, duration / 1.3);



		} else {



			object.animate({marginTop: distance * 1}, duration / 1.3);



		}



	}



}
