

var agt=navigator.userAgent.toLowerCase();
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));

function lightTopLink(el){
	if (document.all){
		document.all[el].className='pageHeaderBar2H'
	} else {
		document.getElementById(el).className='pageHeaderBar2H'
	}
}

function lightTopSubLink(el){
	if (document.all){
		document.all[el].className='pageHeaderBar1H'
	} else {
		document.getElementById(el).className='pageHeaderBar1H'
	}
}

function lightSideLink(el){
	var s=''
	var o,p
	if (document.all){
		o = document.all[el]
		document.all[el.toString()+'A'].className='leftMenuAH'
	} else {
		o = document.getElementById(el)
		document.getElementById(el.toString()+'A').className='leftMenuAH'
	}
	if (o != p){
		s = o.src
		var t = s.toString().split('default.htm')
		t[t.length-1] = 'menuarrowred.gif'
		s = t.join('default.htm')
		o.src = s
	}
}

function lightBottomLink(el){
	if (document.all){
		document.all[el].className='pagefooter2H'
	} else {
		document.getElementById(el).className='pagefooter2H'
	}
}

function showSideMenu(el){
	if (document.all){
		if (is_ie){	document.all[el].style.display='block' } else {	document.all[el].style.display='table-row' }
	} else {
		document.getElementById(el).style.display='table-row'
	}
}

function zipFocus(){
	if (document.all){
		document.all.zipcode.focus()
	} else {
		document.getElementsByName('zipcode')[0].focus()
	}
}

function bdidFocus(){
	if (document.all){
		document.all.bdid.focus()
	} else {
		document.getElementsByName('bdid')[0].focus()
	}
}

function jumpSignin(){
	if (window.top.key != 'cadmium'){
		var s = window.document.location.toString().split('default.htm')
		var j = 0
		for (var i=0; i<s.length; i++){if (s[i].toLowerCase()=='dealers'){j=i}}
		if (j>0){
			s[j+1] = 'body-sa.htm'
			while (s.length>j+2){s.length--}
			window.top.document.location = s.join('default.htm')
		} else {window.top.document.location = 'http://www.bondhus.com/'}
	}
}