/*
	Copyright (C) 2008 - Juan Ferrer Toribio

	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU Lesser General Public
	License as published by the Free Software Foundation; either
	version 2.1 of the License, or (at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
	Lesser General Public License for more details.

	You should have received a copy of the GNU Lesser General Public
	License along with this program; if not, write to the Free
	Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
	02111-1307 USA.
*/

var VnAbout = new Class
({
	Extends: VnModule,

	activate: function ()
	{
		var p;
		var div;
		var frame;
		var hbox;
		var img;

		frame = new HtkFrame (TEXT_AboutCompany);
		this.setChild (frame);
		
		hbox = new HtkHBox ();
		hbox.setBorder (15);
		frame.setChild (hbox);
		
		div = document.createElement ('div');
		div.appendChild (this.newParagraph (TEXT_AboutDesc));
		div.appendChild (this.newParagraph (TEXT_AboutService));
		div.appendChild (this.newParagraph (TEXT_AboutDisp));
		div.appendChild (this.newParagraph (TEXT_AboutOrder));
		hbox.add (div, true);
		
		img = document.createElement ('img');
		img.src = 'image/store.png';
		img.style.margin = '10px';
		img.alt = TEXT_StorePhoto;
		hbox.add (img, false);
	},
	
	newParagraph: function (text)
	{
		var p = document.createElement ('p');
		p.appendChild (document.createTextNode (text));
		return p;
	}
});


