_dr('<div id="tn_holder"></div>');
//alert(BrowserDetect.browser+' | '+BrowserDetect.version)
if (BrowserDetect.browser == 'Opera' && BrowserDetect.version >= 8) {
	_g('tn_holder').style.visibility = 'visible';
}
if (tn_context1 == 3) {
	var tn_color = 'defaultEI'
}
function tabon(o) {
	if (document.getElementById) {
		o.parentNode.className = "active";
	}
}

function taboff(o) {
	if (document.getElementById) {
		o.parentNode.className = '';
	}
}
function cls(b) {
	if (b == tn_context2) {
		return 'class="tabon"';
	} else {
		return '';
	}
}

function extraOver() {
	if (tn2[i][3]) {
		return tn2[i][3]
	} else {
		return ''
	}
}
function extraOut() {
	if (tn2[i][4]) {
		return tn2[i][4]
	} else {
		return ''
	}
}
function tbon(c) {
	if (c != tn_context2) {
		return ' onmouseover="tabon(this);' + extraOver() + '" onmouseout="taboff(this);' + extraOut() + '"'
	} else {
		return ' onmouseover="' + extraOver() + '" onmouseout="' + extraOut() + '"';
	}
}
function chkDrop() {
	if (tn2[i][3]) {
		return 'droparrow'
	} else {
		return ''
	}
}
var i = 0;
function chkBr(d, m) {
	if (!m) m = 0;
	if (d.search(/<br/gi) == -1) {
		return ' pad'
	} else {
		return '';
	}
}
var stpEx = /(<br *\/*>)*(&amp;)* *\/*'*/gi;
function drawTopNav() {
	var tn_code = '';
	if (tn2 != null) {
		tn_code += ('<div id="topNav"><ul class="tabs">');
		var alength = tn2.length;
		for (i = 0;i < alength; i++) {
			tn_code += ('<li ' + cls(tn2[i][2]) + '><a href="' + dom_check(tn2[i][1], 1) + tn2[i][1] + '"' + tbon(tn2[i][2]) + ' id="tn_' + tn2[i][0].replace(stpEx, '') + '"><div class="tn_txt ' + chkBr(tn2[i][0]) + ' ' + chkDrop() + '">' + tn2[i][0] + '</div></a></li>');
		}
		tn_code += ('</ul></div>');
	}
	_g('tn_holder').innerHTML = tn_code;
}

function callTopNav() {
	if (window.tn_context1 != null && window.tn_context1 != '' && window.tn_context1 != '0') {
		var tn_data = dom_ret + '/global/include/mul/corp/header/topnav/' + tn_context1 + '/tn_' + tn_context1 + '_' + checkLocale(pq_locale) + '.js';
		loadScripts(tn_data);
		checkForVar('tn2', 'drawTopNav()', 1, 0)
	}
}
callTopNav();