/**
 * Datenklasse für Homepageinhalte
 *
 * @param {Number} lfdNr eindeutige laufende Nummer
 * @param {Number} lfdNrParent lfdNr des Elternknotens 
 * @param {String} bezeichnung Bezeichnung
 * @param {String} name URL-kompatible Bezeichnung
 * @param {Number} typ Typ
 * @param {String} typInhalt typspezifischer Inhalt
 * @param {Boolean} neuesFenster in neuem Fenster öffnen
 * @param {Boolean} navi Navigationspunkt
 * @param {String} bildleiste Bildleisten-Datei
 * 
 * @author Thomas Scholz
 * @created 24.11.08
 */
function Content(lfdNr, lfdNrParent, bezeichnung, name, typ, typInhalt, neuesFenster, navi, bildleiste)
{
	/*
	 * Getter (Setter sind wegen des Konstruktors nicht notwendig)
	 */
	 
	/**
	 * @return the lfdnr
	 */
	this.getLfdNr = function() 
	{
		return lfdNr;
	}
	
	/**
	 * @return the lfdNrParent
	 */
	this.getLfdNrParent = function() 
	{
		return lfdNrParent;
	}
	
	/**
	 * @return the bezeichnung
	 */
	this.getBezeichnung = function() 
	{
		return bezeichnung;
	}
	
	/**
	 * @return the urlBezeichnung
	 */
	this.getName = function()
	{
		return name;
	}
	
	/**
	 * @return the typ
	 */
	this.getTyp = function() 
	{
		return typ;
	}
	
	/**
	 * @return the typInhalt
	 */
	this.getTypInhalt = function() 
	{
		return typInhalt;
	}
	
	/**
	 * @return the neuesFenster
	 */
	this.isNeuesFenster = function() 
	{
		return neuesFenster;
	}
	
	/**
	 * @return the bildleiste
	 */
	this.getBildleiste = function() 
	{
		return bildleiste;
	}
	
	/*
	 * Hilfsmethoden
	 */
	 
	 /**
	 * Gibt zurück, ob eine interne URL vorliegt
	 * 
	 * @return {Boolean}
	 */
	this.isUrlIntern = function()
	{
		return (typ == 2 && typInhalt.slice(0, 7) != "http://");
	}
	
	/**
	 * individuelle toString()-Methode
	 * 
	 * @return {String}
	 */
	this.toString = function()
	{
		return bezeichnung;
	}
	
	/**
	 * Gibt zurück, ob die übergebene lfdNr der dieses
	 * Objekts gleicht (was Gleichheit der Objekte impliziert)
	 * 
	 * @param {Object} content Inhaltsobjekt
	 * @return {Boolean}
	 */
	this.equals = function(content)
	{
		return (lfdNr == content.getLfdNr());
	}
}
