	function fadePackage(){
		apu = document.getElementById('agendaPopUp')
		apuf = document.getElementById('agendaPopUpFrame')
		pc = document.getElementById('pageContent')
		l = document.getElementById('loading')
		c = document.getElementById('close')
		if(apu != null){
			//alert(apu)
			apu.className = 'hideContent'
			apu.style.width = '600px'
			apu.style.height = '460px'
		}
		inVal = 0
		outVal = 99
		fadeSpeed = 25
		agendaSrc = ''
	}
	function changeZ(obj,z){
		obj.style.zIndex = z
	}
	function showAgendaPopUp(id,confCode,agendaID,subAgendaID,jumpTo){
		
		var obj = document.getElementById(id)
		agendaSrc = '/agendaPopUp.cfm?level=inside&confCode='+confCode+'&agendaID='+agendaID+'&subAgendaID='+subAgendaID
		if(jumpTo){
			agendaSrc+='#'+jumpTo
		}
		apuf.src = agendaSrc
		fadeOut(pc)
		showObj(obj)
		changeZ(pc,1)
		changeZ(obj,2)
		centerObj(obj)
		showObj(l)
	}
	function hideObj(obj){
		obj.className = 'hideContent'
	}
	function showObj(obj){
		obj.className = 'showContent'
	}
	function hideAgendaPopUp(id){
		var obj = document.getElementById(id)
		apuf.src = ''
		changeZ(pc,2)
		changeZ(obj,1)
		fadeIn(pc)
		hideObj(obj)
		hideObj(c)
	}
	function setOpacity(obj,value) {
		obj.style.opacity = value/100;
		obj.style.filter = 'alpha(opacity=' + value + ')';
	}
	function centerObj(obj){
		h = parseInt(obj.style.height)
		w = parseInt(obj.style.width)
		sh = screen.height
		sw = screen.width
		obj.style.left = (sw-w)/2+'px'
		if(window.innerHeight){
			pos = window.pageYOffset
		}
		else if(document.documentElement && document.documentElement.scrollTop){
			pos = document.documentElement.scrollTop
		}
		else if(document.body){
			pos = document.body.scrollTop
		}
		obj.style.top = ((sh-h)/2)+pos+(-80)+'px'
	}
	function fadeOut(obj){
		if(typeof a != 'undefined'){
			clearInterval(a)
		}
		if(obj){
			tempObj2 = obj
		}
		else{
			tempObj2 = tempObj2
		}
		if(outVal <= 25){
			clearTimeout(b)
			outVal = 100
			return false;
		}
		outVal -= fadeSpeed
		setOpacity(tempObj2,outVal)
		
		b=window.setTimeout("fadeOut()",100)
	}
	function fadeIn(obj){
		if(typeof b != 'undefined'){
			clearInterval(b)
		}
		if(obj){
			tempObj = obj
		}
		else{
			tempObj = tempObj
		}
		if(inVal >= 99){
			
			inVal = 0
			setOpacity(tempObj,100)
			clearTimeout(a)
			return false;
		}
		inVal += fadeSpeed
		setOpacity(tempObj,inVal)
		a=window.setTimeout("fadeIn()",100)
	}
	window.onload = fadePackage	
