if (!document.getHeight) {
	document.getHeight = function() {
		return  self.innerHeight || document.documentElement.clientHeight ||
				document.body.clientHeight || '768';
	}
}

if (!document.getWidth) {
	document.getWidth = function() {
		return  document.documentElement.clientWidth ||
    	  		self.innerWidth || document.body.clientWidth || '1024';
	}
}

var Flash = {

	width : 1280,
	height : 1024,
	movie : null,

	init : function(movie) {
		Event.observe(window, 'load', this.center, true);
		Event.observe(window, 'resize', this.center, true);
		this.movie = $(movie);
	},

	center : function() {
		body = {height : document.getHeight(), width : document.getWidth()};
		Flash.movie.style.position = 'absolute';
		Flash.movie.style.left = ((body.width / 2) - (Flash.width / 2)) + 'px';
		Flash.movie.style.top = ((body.height / 2) - (Flash.height / 2)) + 'px';
	}
}

