/*
:: Script Information ::
Title       : html stuff library
Author      : livibetter
Created date: 09/22/2006
Updated date: 01:45 9/23/2006
Version     : 0.1
Credit      :
License     : GNU Lesser General Public License
Copyright   : 2006 livibetter

:: Contact Information ::
eMail		: web@livibetter.com
MSN			: livibetter@gmail.com
Website		: http://www.livibetter.com
*/

/*
	Function: changeOpacity
		Change opacity for html elements
	Parameters:
		Object:
			object
				the object needs to be changed Opacity
		opacity:
			number
				the opacity, should be 0 to 100
*/
function lb_html_setOpacity(Object, opacity){
	Object.style.opacity = (opacity / 100);
	Object.style.MozOpacity = (opacity / 100);
	Object.style.KhtmlOpacity = (opacity / 100);
	Object.style.filter = "alpha(opacity=" + opacity + ")";
	}

function lb_html_setChildrenDisplay(Object, sDisplay){
	if(Object.firstChild == undefined) return;
	if(Object.childNodes.length==0) return
	for(var i=0;i<Object.childNodes.length;i++){
		if(Object.childNodes[i] == undefined) continue;
		if(Object.childNodes[i].style == undefined) continue;
		var s=Object.childNodes[i].style;
		if(s.display != undefined) s.display = sDisplay
		}
	}