/**************************************************************************************************/
/* brocard
/* visuell_effects-vers1.js
/* made by Thomas Brückhändler, www.edv-service-tb.de
/**************************************************************************************************/
function FadeOpacity(pObject, pOpacStart, pOpacEnd, pMilliSec)
{
	var theObjectID = document.getElementById(pObject).id;
	//Duration for each frame
	var theDuration = Math.round(pMilliSec / 100);
	var theTimeTicker = 0;
	if(pOpacStart > pOpacEnd) {for(i = pOpacStart; i >= pOpacEnd; i--) {setTimeout("SetOpacity(" + i + ",'" + theObjectID + "')",(theTimeTicker * theDuration));theTimeTicker++;}}
	else if(pOpacStart < pOpacEnd) {for(i = pOpacStart; i <= pOpacEnd; i++) {setTimeout("SetOpacity(" + i + ",'" + theObjectID + "')",(theTimeTicker * theDuration));theTimeTicker++;}}
}
//Set Opacity Value for different browsers
function SetOpacity(pOpacityValue, pObjectID) {
	var theObject = document.getElementById(pObjectID).style;
	theObject.opacity = (pOpacityValue / 100);
	theObject.MozOpacity = (pOpacityValue / 100);
	theObject.KhtmlOpacity = (pOpacityValue / 100);
	theObject.filter = "alpha(opacity=" + pOpacityValue + ")";
}
function SetInnerHTML(pObject,pLabel) {
	document.getElementById(pObject).innerHTML = pLabel;
}

