show(page) {
		var element = $('[data-page="' + page + '"]');

		if (element.length === 0) {
			throw new Error('Page ' + page + ' doesn\'t exist!');
		} else {
			if(typeof this.current !== 'undefined')
				$('[data-page="' + this.current + '"]').hide();

			element.show();
			this.current = page;
		}
	}
/**
	 * Hides the current page and displays the requested one.
	 * @param  {string} page The requested page's name, wich corresponds to the filename without the
	 *                       .html extension.
	 *
	 * @example
	 * pm.show('sendMessage');	
	 */
Hides the current page and displays the requested one.
@param  {string} page The requested page's name, wich corresponds to the filename without the
.html extension.


Hides the current page and displays the requested one . @param { string } page The requested page ' s name wich corresponds to the filename without the . html extension .
show(page) {
		var element = $('[data-page="' + page + '"]');
		if (element.length === 0) {
			throw new Error('Page ' + page + ' doesn\'t exist!');
		} else {
			if(typeof this.current !== 'undefined')
				$('[data-page="' + this.current + '"]').hide();
			element.show();
			this.current = page;
		}
	}
show ( page ) { var element = $ ( '[data-page="' + page + '"]' ) ; if ( element . length === 0 ) { throw new Error ( 'Page ' + page + ' doesn\'t exist!' ) ; } else { if ( typeof this . current !== 'undefined' ) $ ( '[data-page="' + this . current + '"]' ) . hide ( ) ; element . show ( ) ; this . current = page ; } }
Hides the current page and displays the requested one.
Hides the current page and displays the requested one .