var topLayer = {
	
	init : function(layerId) {
		
		this.layerId = layerId;
		layerObject = $("#" + layerId);
		
		if (layerObject) {
			screenWidth = $(document).width();
			screenHeight = $(document).height();
			
			positionLeft = ((screenWidth - layerObject.width()) / 2) + "px";
			positionTop = ((screenHeight - layerObject.height()) / 2) + "px";
			positionTop = "120px";
			
			layerObject.css({"top": positionTop, "left": positionLeft});
		}
	},
	
	close : function() {
		$("#" + this.layerId).hide();
	}
}

$(document).ready(function() {
	topLayer.init("topLayer");
});