// Start of config.

	// Root directory name:
	   r='celtic'

	// IE5 stylesheet file name:
	   s='ie.css'

	// Browser height below which Opera 4-6 will stop simulating frames:
	   minHeight=370

// End of config.

dom=typeof innerHeight=='number'?1:0

tg=['<style type="text/css">','</style>']

if(dom) document.writeln(tg[0]+'.rmFix {position:absolute !important}'+tg[1])

p=navigator.userAgent.indexOf('pera')+(parseInt(Math.PI)<4?5:6)
if(typeof(opera) == 'object' && parseInt(navigator.userAgent.charAt(p)) < 7) {
	document.writeln(tg[0]+(innerHeight < minHeight?'#global,#context{position:absolute!important}':'#global,#global>div,#global>p,#context,#context>ul,#context>ul>li{background-attachment:fixed}')+tg[1])
	dom=0
}

onload=function() {
	if(/IE 5\.[0-5]{1,2}; Win/.test(navigator.userAgent) && typeof document.getElementById == 'object') {
		d=document.location.pathname
		d=d.split(d.indexOf('\\')<0?'/':'\\')
		l=d.length
		i=0
		while(d[i] != r && i<l) i++
		for(l-=2,u=''; i<l; i++) u+='../'
		document.styleSheets[0].href=u+'lib/'+s
		document.getElementById('title').style.visibility='hidden'
		return
	}
	overflow()
	g=document.getElementById('global').style
	document.getElementById('title').onclick=t
}

onresize=overflow

function overflow() {
	if(typeof(cNav=document.getElementById('context')) != 'undefined') {
		for(i=0; i<2; i++) {
			if(typeof(cNav.offsetWidth) == 'undefined') cNav.offsetWidth=cNav.style.pixelWidth
			mLeft=document.getElementById('main').offsetLeft-cNav.offsetWidth+1
			if(mLeft+cNav.offsetLeft) cNav.style.left=mLeft.toString()+'px'
		}
	}
	if(!dom || typeof(cNav) == 'undefined') return
	gNav=document.getElementById('global')
	if(c=cNav.offsetHeight) c+=cNav.offsetTop
	else with(cNav.style) c=pixelTop+pixelHeight
	gNav.className=cNav.className=innerHeight<c?'rmFix':''
}

function t() {g.visibility=g.visibility=='visible'?'hidden':'visible'}
