﻿var WALLA = {};

$(document).ready(function() {
	
	WALLA.Init();
	
});

WALLA.Init = function() {

	this.wrapper = $("div#wrapper");	//Wrapper for the stage
	
	this.InitLayout();
	this.InitEvents();

}

WALLA.InitLayout = function(){
	this.winWidth = $(window).width();
	this.winHeight = $(window).height();
	this.wrapper.height(this.winHeight);
	this.wrapper.css("font-size",(this.winWidth / 1000) + "em");
}

WALLA.InitEvents = function(){

	//Bind window resize to that layout adjusts
	$(window).resize(function() {
		WALLA.InitLayout();
	});	
	
	$("#signuplink").click(
		function(){
			if ($("#signup").is(":hidden"))
				$("#signup").fadeIn(500);
			else
				$("#signup").fadeOut(200);
		}
	)
}
