function Help() {

	this.construct = function() {
		$('#helpDialog').jqm({toTop: true, modal: true});
	};
	
	this.show = function(helpType){
		$('#helpDialog').jqmShow();
		$('#dialog-close-help').unbind().bind("click", function() {
			$('#helpDialog').jqmHide();
		});
		if(helpType == 'welcome'){
//			var header = $('');
			var content = $('<img src="./static/images/illfaces/female_healthy.png" /><h2>Welcome to Illtags!</h2><p>We are happy you got here. You are about to take part in a big project to keep you and people around you  healthy. We appreciate if you are willing to participate.</p><br /><p>Here are couple of things you should to know to make your first steps easier.</p><br /><h3>Places: where could you catch or spread a bug?</h3><p>First you should add your personal places using the <b>Add places</b> tab. These should include all the places where you can catch or spread a bug, i.e. your home, workplace, hobby, daycare, school, restaurant etc.</p><br /><h3>Illtags: how are you feeling?</h3><p>If you ever happen to fall sick, you should input your current symptoms inputting illtags here or at Facebook or Twitter. Here you can do it using the upper left input box.</p><br /><p>If you have any further questions or problems, click the question marks or see FAQ and Help.<br /><b>Well done reading so far! Now you are ready to use Illtags!</b><br /></p>');
//			$('#help-header').append(header);
			$('#help-content').append(content);
		}
	};
	
	this.hide = function(){
		$('#helpDialog').jqmHide();
	};
}

var help;

$(document).ready(function() {
	help = new Help();
	help.construct();
});

console.log('help.js');