

var baseOpacity = 50 ;
//var baseHeight = 500 ;

//var browserName = (navigator.appName == "Microsoft Internet Explorer")?"ie":(navigator.appName == "Netscape")?"netscape":"safarri" ;

function illuminate(obj){
	Obj_1 = obj ;
	instantSet(baseOpacity,obj) ;
	highlighting = setInterval("gradualFade(Obj_1)",50) ;
}

function de_illuminate(obj){
	clearTimer() ;
	instantSet(baseOpacity,obj) ;
}

function instantSet(degree,obj){
	try{
		if(browserName == "netscape"){
			obj.style.MozOpacity = degree/100 ;
		}else{
			obj.filters.alpha.opacity = degree ;
		}
	}catch(excpt){}
}

function clearTimer(){
	if(window.highlighting){
		clearInterval(highlighting)
	}
}

function gradualFade(obj){
	try{
		if(browserName == "netscape" && obj.style.MozOpacity < .99){
			obj.style.MozOpacity = Math.min(parseFloat(obj.style.MozOpacity) + 0.1, .99) ;
		}else if(browserName == "ie" && obj.filters.alpha.opacity < 100){
			obj.filters.alpha.opacity += 10 ;
		}else if(window.highlighting){
			clearInterval(highlighting)
		}
	}catch(excpt){}
}

function sectionObject(obj){
	divName = obj.id;
	divName += "_section1";
	divName = MM_findObj(divName) ;
	return divName
}

function increaseHeight(obj,objHeight){
	height = parseInt(obj.style.height)
	if(height <= objHeight){
		if(browserName == "netscape"){
			height = parseFloat(obj.style.height) + 125 ;
		}else{
			height += 100;
		}
		obj.style.height = height+'px';
		Obj3 = obj
		openCheckOut = setTimeout("increaseHeight(Obj3,"+objHeight+")",1);
	}else if(window.openCheckOut){
		clearTimeout(openCheckOut);
		divObject = sectionObject(obj);
		illuminate(divObject);
	}
}

function openLevel(obj,objHeight){
	Obj2 = obj ;
	obj.style.height = '0px' ;
	obj.style.position = "relative" ;
	increaseHeight(obj,objHeight) ;
	divObject = sectionObject(obj) ;
	instantSet(50,divObject) ;
}

function showCheckOut(objArray,objHeight){
	for(i=0;i<objArray.length;i++){
		Obj = MM_findObj(objArray[i]) ;
		if(i == 0){
			if(Obj.style.display == 'none'){
				Obj.style.display = 'block' ;
				openLevel(Obj,objHeight) ;
			}else{
				Obj.style.display = 'none';
			}
		}else{
			Obj.style.display = 'none' ;
		}
	}
}
