var TMTitel = {

	obj : function(elem,inhalt,abstandX,abstandY) {
		if (TMTitel.init) {
			this.elem = TMSucheElem(elem);
			if (!this.elem) {
				return false;
			}
			this.inhalt = inhalt;
			this.abstandX = abstandX;
			this.abstandY = abstandY;
			this.zeigen = false;
			var obj = this;
			TMErstelleEvent(this.elem,'mouseover',function(e) { obj.einblenden(e); });
			TMErstelleEvent(this.elem,'mousemove',function(e) { obj.positionieren(e); });
			TMErstelleEvent(this.elem,'mouseout',function() { obj.ausblenden(); });
		}
	},
	
	erstellen : function() {
		if (isDOM && !isOPERA6 && !isIE5MAC) {
			tmtitel = document.createElement('div');
			tmtitel.setAttribute('id','ToolTip');
			koerper = document.getElementsByTagName('body')[0];
			koerper.appendChild(tmtitel);
			this.init = true;
		}
	}
};

TMTitel.obj.prototype = {

	sichtbarkeit : function() {
		if (this.zeigen) {
			TMCSSDisplay(tmtitel,'inline');
			TMCSSVisibility(tmtitel,'ein');
		} else {
			TMCSSDisplay(tmtitel,'none');
			TMCSSVisibility(tmtitel,'aus');
		}
	},
	
	positionieren : function(e) {
		this.mausPos = TMSucheMaus(e);
		this.posX = this.mausPos.xo + this.abstandX;
		this.posY = this.mausPos.yo + this.abstandY;
		TMCSSPosition(tmtitel,this.posX,this.posY);
		TMUnterbindeStandard(e);
	},
	
	einblenden : function(e) {
		tmtitel.innerHTML = this.inhalt;
		this.zeigen = true;
		this.sichtbarkeit();
		TMUnterbindeStandard(e);
	},
	
	ausblenden : function() {
		this.zeigen = false;
		this.sichtbarkeit();
		tmtitel.innerHTML = '';
	}
};

var tt_text = '';
tt_text += 'Life sciences, genomics and biotechnology for health is one of seven major thematic priorities of the European Unionīs Sixth FrameWork Programme (FP6).<br /><br />';
tt_text += 'Its objective is to help Europe exploit, in this post-genomic era, the unprecedented opportunities for generating new knowledge and translating it into applications that enhance human health. To this end both fundamental and applied research will be supported, with an emphasis on integrated, multidisciplinary, and coordinated efforts that address the present fragmentation of European research and increase the competitiveness of the European biotechnology industry.<br /><br />';
tt_text += 'The indicative budget is EUR 2514 million for the period 2002-2006.';

TMErstelleEvent(window,'load',function() {
/*
	TMTitel-Objekt erstellen:
	
	var meinTitel = new TMTitel( Parameter );
	
	Pflicht-Parameter (in dieser Reihenfolge):
		- ID des Elements, bei dem bei mouseover ein Titel angezeigt werden soll.
		- Der Text des Titels.
		- X-Abstand des Titels zur Maus
		- Y-Abstand des Titels zur Maus
		
	WICHTIG: Erst die Funktion TMTitel.erstellen(); aufrufen, dann die TMTitel-Objekte erstellen
*/
	TMTitel.erstellen();
	var t01 = new TMTitel.obj('TTPriority',tt_text,-240,25);
});