//(c)Alexander Barnard 2006/7
_onLoad.add('fnFontSize()')
_onLoad.add("fnHighlight()")
var val
function fnHighlight(){
	var w=location.search.match(/(?:&srh=)[^&]*/gi)
	if(w)w=unescape(w[0].substr(5))
	if(!w)return
	val=eval("/\\b("+w+")/gi")
	d.body.innerHTML=d.body.innerHTML.replace(/(>)([^<]+)(<)/gi,_parse1)
}	
function _searchhelp(me,state){
	var o=_getObject("searchhelp")
	if(o){
		o.style.display=(state)?"block":"none"
		o.style.left=(me.offsetLeft+8)+"px"
		o.style.top=(_getOffset(me,"Top")+me.offsetHeight+8)+"px"
	}	
}	
function _colour(me,col,bor){
	if(me._bg==undefined){
		me._bg=me.style.backgroundColor
		me._bor=me.style.borderColor
	}	
	me.style.backgroundColor=(col)?col:me._bg
	me.style.borderColor=(bor)?bor:me._bor
}	
function _parse1(a){
	return a.replace(val,_parse2)
}
function _parse2(a){
	return '<span class="txt-highlight">'+a+'</span>'
}	

