	/* SOME CODE CONVENTIONS 
* functions and method names are camelCase, ie. Hubbub.currentHubbub().
* attributes and variables are underscored lowercase, ie Hubbub.current_hubbub
*******************************************************************************/
$(document).ready(function(){
	Linktocp.init();
	Loginpassword.init();
	Signup.init();
});	


	/* Login password hidden field behaviour */
	var Loginpassword = {
		init:function(){
			$('#dash-login #login').focus(function(){
				if ($(this).attr('value')=='email') {$(this).attr('value','');}
			});
			$('#dash-login #fake-password').focus(function(){
				$(this).hide();
				$('#dash-login #password').attr('value','').show().focus();
			});
		}
	}

	/* Check for controlpanels links */
	var Linktocp = {
		init:function(){
			$('.linktocp').controlPanel();
		}
	// This method is a godsend, please don't delete it - Paul
	}

	/* Debug Helper */
	var debug = function(str){
		if(window.console)
		console.log(str);
		else
		return true;
	};
	/* End Debug Helper */