/* datei information

****************************************************

Datei: custom.js

Rainer Fabrizi, www.transporter.at, 2007





/* softscroll

****************************************************/

// ben�tigt prototype.js und scriptaculous.js?load=effects

function softscroll(anker) {

	var parts = anker.split("#");

	new Effect.ScrollTo(parts[1]);

	return false;

}



/* docTips erzeugen dhtml popups, kontextinfo

****************************************************/

// docTipy erzeugen

var docTips = new TipObj('docTips');

with (docTips) {

	/* template = '<table bgcolor="#FFFFFF" cellpadding="5" cellspacing="0" width="%2%" border="0">' +

	'<tr><td><table bgcolor="#FFFFFF" cellpadding="3" cellspacing="0" width="100%" border="0">' +

	'<tr><td class="tipClass">%3%</td></tr></table></td></tr></table>';

	*/

	// template

	template = '<div class="kontextinfo"><h4>%3%</h4><p>%4%</p></div>';

	// delay beim ein-/ausblenden

	showDelay = 0;

	hideDelay = 0;

	// minimales und maximales alpha

	minAlpha = 0;

	maxAlpha = 100;

	// fade speed

	fadeInSpeed = 100;

	fadeOutSpeed = 100;

	// statisch: 0, bewegt sich mit cursor: 1

	tipStick = 0;

}



/* aktienindex blendet einzelne indizes ein und aus

****************************************************/

// ben�tigt prototype.js und scriptaculous.js?load=effects

function aktienindex(myIndex) {

	this.myIndex = myIndex;
	
	anzahl = 5;

	for (var i=1;i<=anzahl;i++) {

		// wenn dieser nicht aktiv werden soll: ausfaden

		if (i != myIndex) {

			tempAktienindex = document.getElementById("aktienindex"+i);

			new Effect.Fade(tempAktienindex, { duration: 0.25 });
			
			//document.getElementById("aktienindex"+i).style.display = "none";

			// link entf�rben

			document.getElementById("aindex"+i).style.fontWeight = "normal";

			document.getElementById("aindex"+i).style.textDecoration = "underline";

		}

	}

	// aktiven einfaden

	thisAktienindex = document.getElementById("aktienindex"+myIndex);
	
	new Effect.Appear(thisAktienindex, { duration: 0.25 });
	
	//document.getElementById("aktienindex"+i).style.display = "visible";

	// link einf�rben

	document.getElementById("aindex"+myIndex).style.fontWeight = "bold";

	document.getElementById("aindex"+myIndex).style.textDecoration = "none";

	

}
























