// Default Included JS Functions

function dn(){
	// Empty function for use in 'href' tags
}

function showElement(showID){
	// Shows elements with the ID of hideID
	document.getElementById(showID).style.display = "block";
}

function hideElement(hideID){
	// Hides elements with the ID of hideID
	document.getElementById(hideID).style.display = "none";
}

// End Default Included JS Functions


var header = {};
header.main = {
	init : function(){
		if(!document.getElementById("headerCanvas").getContext) return; // If the .getContext doesn't exist, ignore the rest (non-HTML5 support)
		this.context = document.getElementById("headerCanvas").getContext("2d");
		this.screenWidth = document.getElementById("headerCanvas").offsetWidth;
		this.screenHeight = document.getElementById("headerCanvas").offsetHeight;

		this.run();
	},

	run : function(){
		var that = this;

		// Run the main loop
		(function tick(){
			that.update();
			that.draw();
			setTimeout( function(){ that.run(); }, 70 );
		})();
	},

	update : function(){

	},

	draw : function(){
		var ctx = this.context;
		ctx.fillStyle = "#000";
		ctx.fillRect( 0, 0, this.screenWidth, this.screenHeight );
	}
};
