if( document.domain.indexOf( "tangent.com" ) != -1 )
{
document.domain = "tangent.com" ;
}
var m_production = true;
function writeMH( phoneTitle, phoneMsg, phoneTariff, segmentTitle, hasLocale, logoLink, pnmsg )
{
m_phoneTitle = phoneTitle;
m_phoneMsg = phoneMsg;
m_phoneTariff = phoneTariff;
document.writeln ( "<!-- begin masthead -->" );
m_mastheadWidth = 728;
if(m_isCenter)
{
document.writeln ( "<!-- start center align -->" );
document.writeln ( "<table style=\"margin-left:auto;margin-right:auto\"><tr><td>" );
}
m_stdOffImg = "<img src=\"" + m_imgPfx + "/images\", width=\"16\" height=\"9\" border=\"0\"/>";
autoconfig();
if ( typeof(m_menuBar) == "undefined" )
{
if( !m_production )
{
document.write( "<div class=\"para\" style=\"color:red; font-weight:bold\">There is a problem with the menu definition. " );
document.write( "<a href=\"" + m_menudef + "\">Click here to view</a></div>" );
return;
}
return;
}
if( m_largeFont )
{
m_avgChW = m_avgChW + 2;
}
m_mhFixed = true;
document.writeln( "<a name=\"mastheadtop\"></a>" );
document.write( "<table id=\"masthead\" width=\"" + m_mastheadWidth + "\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">" );
document.write( "<tr><td valign=\"bottom\" rowspan=\"2\">" );
document.write( "<div class=\"logocontainer\" id=\"logocontainer\">" );
document.write( "<a href=\"#skipMH\"><img src=\"" + m_imgPfx + "/images\" alt=\"Skip to main content\" border=\"0\" width=\"1\" height=\"1\" /></a>" );
if( typeof( m_nothomelogo ) != "undefined" )
{
m_nothomelogo = m_nothomelogo.replace ( "/images/tangent.gif" , "/images/tangent.gif");
if( logoLink )
{
document.write( "<a class=\"logolink\" href=\"" + m_homelink + "\">" );
}
document.write( "<img class=\"logo\" src=\"" + m_nothomelogo + "\" border=\"0\" width=\"109\" height=\"41\" alt=\"TANGENT\" />" );
if( logoLink )
{
document.write( "</a>" );
}
}
document.write( "</div></td><td valign=\"top\" " + ((typeof(m_menuBar) != "undefined" && m_menuBar && m_menuBar.length > 0) ? "colspan=\"2\"" : "") + "><table id=\"pbarstriptable\" width=\"" + (m_mastheadWidth - 109) + "\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td>" );
renderBuyOnline();
document.write( "</td><td><div style=\"height:20px;\" /></td><td nowrap=\"true\" valign=\"top\">" );
var ticks = new Date();
if( !( m_pnlinks && m_subNavLinksDisplay && ( !m_supressSubNav ) ) && ( typeof( m_langSelectorUrl ) != "undefined") )
{
document.write( "<div class=\"lang_selector\">" );
renderLanguageToggle();
document.write( "</div>" );
}
document.write( "</td></tr></table></td></tr><tr>" );
document.write( "<td>" );
if ( typeof( m_supressSearch ) == "undefined" || m_supressSearch == false )
{
document.write( "<div class=\"searchcontainer\" id=\"searchcontainer\">")
if( m_search )
{
document.write( m_search );
}
else
{
renderSearchLinks();
}
document.write( "</div>" );
}
document.write( "</td></tr><tr><td colspan=\"3\">" );
document.write( "<div class=\"subnavcontainernomenu\" id=\"subnav\" ><img src=\"" + m_imgPfx + "/images/global/general/spacer.gif\" border=\"0\" alt=\"\" height=\"5\" width=\"1\" /></div>" );
if( m_pnlinks && m_subNavLinksDisplay && (!m_supressSubNav) )
{
document.write( "<div class=\"secondarynavcontainer\">" );
renderSubNavLinks();
document.write( "</div>" );
}
if( m_mda )
{
document.write( "<div class=\"mdabarcontainer\" id=\"mdabar\">" );
document.write( "<span class=\"mdainfo\">" );
document.write( m_mda );
document.write( "</span>" );
document.write( "</div>" );
}
document.write( "<div class=\"breadcrumbcontainer\">" );
renderHomepageCrumbs();
document.write( "</div>" );
document.write ( "</td></tr></table>" );
document.write ( "<a name=\"skipMH\"></a>" );
document.writeln ( "<!-- end masthead -->" );
}

var isCSS = false;
var isW3C = false;
var isIE4 = false;
var isNN4 = false;
var isIE6 = false;
var isGecko = false;
var isOpera = false;
var isDHTML = false;
var suppressMenus = false;
var legacyMode = false;
var timerID = null;
var subtimerID = null;
var m_anchorClicked = false;

function autoconfig()
{
if( document && document.images )
{
isCSS = (document.body && document.body.style) ? true : false;
isW3C = (isCSS && document.getElementById) ? true : false;
isIE4 = (isCSS && document.all && readIEVer() >= 4.0) ? true : false;
isNN4 = (document.layers) ? true : false;
isGecko = (isCSS && navigator && navigator.product && navigator.product == "Gecko");
isOpera = (isCSS && navigator.userAgent.indexOf( "Opera") != -1 );
isIE6CSS = (document.compatMode && document.compatMode.indexOf("CSS1") >= 0) ? true : false;
isIE6 = ( isIE6CSS && readIEVer() >= 6.0 );
isDHTML = isCSS && ( isIE4 || isGecko || isOpera );
if( suppressMenus )
{
isDHTML = false;
}
else if( isOpera && readOperaVer() < 7 )
{
isDHTML = false;
}
else if( isGecko && navigator.productSub <= 20011022 )
{
isDHTML = false;
}
else if( isGecko && navigator.productSub == 20030107 )
{
var x = navigator.userAgent.indexOf( "AppleWebKit" );
if( x > -1 )
{
isDHTML = ( navigator.userAgent.substring( x + 12, x + 15 ) ) > 300;
}
else
{
isDHTML = false;
}
}
}
}

function readIEVer()
{
var agent = navigator.userAgent;
var offset = agent.indexOf( "MSIE" );
if( offset < 0 )
{
return 0;
}
return parseFloat( agent.substring( offset + 5, agent.indexOf( ";", offset ) ) );
}

function readOperaVer()
{
var agent = navigator.userAgent;
var offset = agent.indexOf( "Opera" );
if( offset < 0 )
{
return 0;
}
return parseFloat( agent.substring( offset + 6 ) );
}
function renderSearchLinks()
{
if( m_searchLinks )
{
for( var n = 0; n < m_searchLinks.length; n++ )
{
if( n > 0 )
{
document.write( "<span class=\"mhSpace\">|</span>" );
}
var href = m_searchLinks[n].Href;
var text = m_searchLinks[n].Text;
document.write( "<span class=\"mh_search_sep_SE\" style=\"white-space:nowrap\"><a href=\"" + href + "\" class=\"para_small\">" + text + "</a></span>" );
}
}
}