if( document.domain.indexOf( "dell.com" ) != -1 )
{
document.domain = "dell.com" ;
}
var m_pnlinks;
var m_crumbs;
var m_mhFixed = false;
var m_isHome = false;
var m_isSegHome = false;
var m_mda = null;
var m_printLink = null;
var m_emailLink = false;
var m_helpLink = null;
var m_production = true;
var m_menudef = "/content/public/menu.aspx";
var m_avgChW = 6;
var m_crumbRegEx1 = /<.*>/g;
var m_crumbRegEx2 = /&nbsp;/g;
var m_crumbRegEx3 = /&~ck=bt/g;
var m_subNavLinksDisplay = false;
var m_subNavIconsDisplay = false;
var m_largeFont = false;
var m_supressSubNav = false;
var m_stdEmpty = "";
var m_stdOffImg;
var m_activeTab = null;
var m_pbarStripAjax = null;
var m_pbarNavAjax = null;
var m_pbarContentAjax = null;
var m_defaultTabs = false;
var m_pbarPfx = "";
var m_phoneTitle = null;
var m_phoneMsg = null;
var m_phoneTariff = null;
var m_pbarContentDiv = null;
var m_pageTab = null;
var m_mastheadWidth = 928;
var m_pbarTabEnabled = false;
var m_pbarTabTitle = "My Account";
var m_tabNav = false;
var m_pbarCartEnabled = false;
var m_pbarMAEnabled = false;
var m_pbarLinks = null;
var m_pbarStripContent = null;
var m_buyonlineMessage = null;
var m_subNavLinkWidth = null;
var m_searchTypes = null;
var m_searchTemp = null;
var m_myAccountLink = null;
var m_timeoutOpenDelay = null;
var m_timeoutCloseDelay = null;
var m_tabContentDiv = null;
var m_maIframe = false;
var Screen = new GetScreen();
var m_cartPages = new Array();
var loaded = new Array();
var onloadFired = false;
var m_isRtl = false;
var m_clientVars = null;
var m_isCenter = true;
var m_isPopupIntention = false;
function writeMH( phoneTitle, phoneMsg, phoneTariff, segmentTitle, hasLocale, logoLink, pnmsg )
{
document.domain=document.domain;
m_phoneTitle = phoneTitle;
m_phoneMsg = phoneMsg;
m_phoneTariff = phoneTariff;
if(m_isCenter)
{
document.writeln ( "<!-- start center align -->" );
document.writeln ( "<table style=\"margin-left:auto;margin-right:auto\"><tr><td>" );
}
document.writeln ( "<!-- begin masthead -->" );
m_stdOffImg = "<img src=\"" + m_imgPfx + "/images/global/brand/icons/smextlink.gif\", width=\"16\" height=\"9\" border=\"0\"/>";
autoconfig();
if ( typeof(m_suppressPrintLink) != "undefined" )
{
m_printLink = null;
}
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;
if( typeof(m_printableText) == "undefined" )
{
m_printableText = m_printText;
}
if( typeof(m_helptext) == "undefined" )
{
m_helptext = "help";
}
document.writeln( "<a name=\"mastheadtop\"></a>" );
document.write ( "<table id=\"masthead\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"" );
if( typeof( m_mastheadWidth ) != "undefined" )
{
document.write(" width=\"" + m_mastheadWidth + "\"" );
}
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/global/general/spacer.gif\" alt=\"Skip to main content\" border=\"0\" width=\"1\" height=\"1\" /></a>" );
if( typeof( m_nothomelogo ) != "undefined" )
{
m_nothomelogo = m_nothomelogo.replace ( "/images/global/brand/ui/logo.gif" , "/images/global/brand/ui/logo43.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=\"Dell\" />" );
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=\"" + ((Screen.AvailableWidth > m_mastheadWidth) ? m_mastheadWidth - 109 : 619) + "\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td width=\"100%\">" );
if( segmentTitle )
{
document.write( "<div class=\"mhTitle_SE\">" );
document.write( segmentTitle );
document.write( "</div>" );
}
else
{
renderBuyOnline();
}
document.write( "</td><td><div style=\"height:20px;\" /></td><td 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><td valign=\"top\">" );
document.write( "<div class=\"pbarcontainer\" id=\"pbarcontainer\">" );
if( m_pbarStripContent )
{
document.write( m_pbarStripContent );
}
else
{
if( m_pbarCartEnabled || m_pbarMAEnabled )
{
AddCartAsync ();
}
}
document.write( "</div>" )
document.write( "</td><td valign=\"top\">" );
if( m_pbarLinks != null && m_pbarLinks.length > 0 )
{
document.write( "<div class=\"pbarlinks\" id=\"pbarlinks\">" );
renderPbarLinks();
document.write( "</div>" );
}
document.write( "</td></tr></table></td></tr><tr>" );
if( typeof(m_menuBar) != "undefined" && m_menuBar && m_menuBar.length > 0 )
{
document.write( "<td valign=\"bottom\">" );
var pageTab = null;
var maxTab = (m_pbarTabEnabled && !m_tabNav) ? m_menuBar.length : (m_menuBar.length-1);
var curUrl = hashTabUrl (window.location.href);
var urlOverRide = false;
var cookieTab = getCookie( "~tid" + pageCnty + pageLang + pageSeg + pageCS );
if( cookieTab == "myaccountMenu" )
{
pageTab = m_menuBar.length;
}
else
{
for( n = 0; n < m_menuBar.length; n++ )
{
if( curUrl == hashTabUrl (m_menuBar[n].Href ) )
{
pageTab = n;
if ( cookieTab != m_menuBar[n].Id )
{
SetCookie( "~tid" + pageCnty + pageLang + pageSeg + pageCS, m_menuBar[n].Id );
}
break;
}
}
}
if( cookieTab == "myaccountMenu" )
{
pageTab = m_menuBar.length;
}
if ( pageTab == null )
{
if( cookieTab != null && cookieTab.length > 0 )
{
for( n = 0; n < m_menuBar.length; n++ )
{
if( (cookieTab == m_menuBar[n].Id) || (cookieTab == n) )// string or int
{
pageTab = n;
break;
}
}
}
else
{
for( n = 0; n < m_menuBar.length; n++ )
{
if( m_menuBar[n].IsSelectedTab )
{
m_pageTab = n;
SetCookie( "~tid" + pageCnty + pageLang + pageSeg + pageCS, m_menuBar[ n].Id );
break;
}
}
}
}
var maLogin = getCookie( "~login");
if( maLogin != "true" )
{
var qTab = getQueryVariable( "~tid" );
if( qTab )
{
if( typeof(qTab) != "undefined" && !isNaN( parseInt( qTab ) ) && qTab <= maxTab )
{
pageTab = qTab;
SetCookie( "~tid" + pageCnty + pageLang + pageSeg + pageCS, qTab ); // querystring int
}
for( n = 0; n < m_menuBar.length; n++ )
{
if( m_menuBar[n].Id.indexOf( qTab ) != -1 )
{
pageTab = n;
SetCookie( "~tid" + pageCnty + pageLang + pageSeg + pageCS, m_menuBar[ n ].Id ); // querystring string
}
}
}
else // Tab Text
{
if( !isNaN( parseInt( m_pageTab ) ) )
{
if( m_pageTab <= maxTab )
{
pageTab = parseInt( m_pageTab );
}
}
for( n = 0; n < m_menuBar.length; n++ )
{
if( m_pageTab == m_menuBar[n].Text || ((m_pageTab+"Menu") == m_menuBar[n].Id) )
{
pageTab = n;
}
}
}
}
SetCookie( "~login", "" );
if( pageTab == null )
{
m_pageTab = 0;
}
else
{
m_pageTab = pageTab;
}
document.write( "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\"><tr>" );
renderPrimaryTabStrip();
document.write( "<td width=\"100%\" valign=\"bottom\"><div class=\"tabspacer\" /></td>" );
document.write( "</tr></table></td>" );
}
document.write( "<td>" );
if ( typeof( m_supressSearch ) == "undefined" || m_supressSearch == false )
{
document.write( "<div class=\"searchcontainer\" id=\"searchcontainer\">");
if( m_search )
{
if ( window.location.protocol== "https:")
{
m_search= m_search.replace(/http:\/\/i/g,"https://img");
}
document.write( m_search );
var cat = getQueryVariable( "cat" );
var kword = getQueryVariable( "k" );
if( cat != null )
{
var input = getRawObject( "cat" );
if( input )
{
input.value = cat;
}
}
if( kword != null )
{
var kinput = getRawObject( "searchinput" );
if( kinput )
{
kinput.value = DecodeSearch( kword );
}
}
}
else
{
renderSearchLinks();
}
document.write( "</div>" );
}
document.write( "</td></tr><tr><td colspan=\"3\">" );
var noNav = "<div class=\"subnavcontainernomenu\" id=\"subnav\" ><img src=\"" + m_imgPfx + "/images/global/general/spacer.gif\" border=\"0\" alt=\"\" height=\"5\" width=\"1\" /></div>";
if( typeof(m_menuBar) != "undefined" && m_menuBar && m_menuBar.length > 0 )
{
if( (m_pageTab == m_menuBar.length) && m_pbarTabEnabled && !m_tabNav)
{
document.write( "<div class=\"subnavcontainer\" id=\"subnav\"></div>" );
renderPbarTabNav( "pbarTab" );
}
else
{
if( typeof(m_menuBar[m_pageTab]) != "undefined" && m_menuBar[m_pageTab].MenuItems.length > 0 && !m_tabNav )
{
document.write( "<div class=\"subnavcontainer\" id=\"subnav\">" );
index = m_pageTab ;
document.write( renderSecondaryTabStrip( m_menuBar[index] ) );
document.write( "</div>" );
}
else
{
document.write( noNav );
}
}
}
else
{
document.write( noNav );
}
if( m_pnlinks && m_subNavLinksDisplay && (!m_supressSubNav) )
{
document.write( "<div class=\"secondarynavcontainer\">" );
renderSubNavLinks(segmentTitle);
document.write( "</div>" );
}
if( m_mda )
{
document.write( "<div class=\"mdabarcontainer\" id=\"mdabar\">" );
document.write( "<span style='float:left'  class=\"mdainfo\">" );
document.write( m_mda );
document.write( "</span><span style='float:right' id=\"psinfo\"></span>" );
document.write( "</div>" );
}
if( m_crumbs )
{
document.write( "<div class=\"breadcrumbcontainer\">" );
if(m_isRtl)
renderMastheadCrumbsRtl(false);
else
renderMastheadCrumbs(false);
document.write( "</div>" );
}
document.write ( "</td></tr></table>" );
document.write ( "<a name=\"skipMH\"></a>" );
document.writeln ( "<!-- end masthead -->" );
BindEvents();
}
function renderBuyOnline()
{
if( m_phoneTitle || m_phoneMsg )
{
if(m_isRtl)
{
buyOnlineStyle= "right";
buyOnlineAlign="left";
}
else
{
buyOnlineStyle= "left";
buyOnlineAlign="right";
}
document.write( "<div class=\"message_buyonline\">" );
if( m_phoneTitle )
{
document.write("<div style=\"float:"+ buyOnlineStyle + ";padding-" + buyOnlineAlign + ":3px\">")
document.write( m_phoneTitle );
document.write("</div>")
}
if( m_phoneMsg )
{
document.write("<div style=\"float:" + buyOnlineStyle +";padding-" + buyOnlineAlign +":3px\">")
document.write( m_phoneMsg );
document.write("</div>")
}
if( m_phoneTariff )
{
document.write("<div style=\"float:" + buyOnlineStyle + "\">")
document.write( "<span class=\"mhTextNewTrf\">" + m_phoneTariff + "</span>" );
document.write("</div>")
}
document.write( "</div>" );
}
}
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 isSafari = false;
var suppressMenus = false;
var m_anchorClicked = false;
var pageSeg = getCookieKeyValue("lwp","s");
var pageLang = getCookieKeyValue("lwp","l");
var pageCnty = getCookieKeyValue("lwp","c");
var pageCS = getCookieKeyValue("lwp","cs");
function hashTabUrl( url)
{
if(url== null )
{
return "";
}
url = url.toLowerCase();
var urlParts = url.split ("?");
if ( urlParts.length == 0 )
{
return "";
}
var hash = urlParts[0];
if ( urlParts.length == 1 )
{
return hash;
}
var qParts = urlParts[1].split("&");
var ignore = new Array("c","l","s","cs");
for ( i =0 ; i < qParts.length ; i++ )
{
var qPair = qParts[i].split ("=");
if ( qPair.length > 1 )
{
var skip = false;
if ( qPair[0].length > 1 && qPair[0].substring(0,1)=="~" )
{
skip= true;
}
else
{
for ( j=0;j<ignore.length ; j++ )
{
if ( qPair[0]== ignore[j])
{
skip = true;
break;
}
}
}
if ( !skip )
{
hash +=qParts[i];
}
}
}
return hash;
}
function getCookieKeyValue( cname, id )
{
try
{
var sid = id + "=";
var lwp = getCookie( cname );
var startIdx = 0;
var endIdx = 0;
if( lwp.indexOf(sid) == -1 )
{
return null;
}
else
{
startIdx = lwp.indexOf(sid) + id.length + 1;
if( lwp.substring( startIdx ).indexOf( "&" ) == -1 )
{
return lwp.substring( startIdx ).toLowerCase();
}
else
{
endIdx = lwp.substring( startIdx ).indexOf( "&" ) + startIdx;
}
}
return lwp.substring( startIdx, endIdx ).toLowerCase();
}
catch(e)
{}
return null;
}
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 );
isSafari = (isCSS && navigator.userAgent.indexOf( "Safari") != -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;
}
}
m_clientVars = new ClientVars();
}
}
function SetClientVar( cname, cvalue )
{
var cVars = getCookie( "ClientVars" );
if( cvalue != null )
{
if( cVars.indexOf( cname ) > -1 )
{
cVars = StripCookieValue( cVars, cname );
}
cVars = cVars + "&" + cname + "=" + cvalue;
document.cookie = "ClientVars=" + ((cVars.indexOf( "&" ) == 0) ? cVars.substring( 1, cVars.length) : cVars ) + ";path=/;domain=dell.com;";
}
}
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 BandWidthRedir ( url )
{
var bWidth = Bandwidth();
if ( bWidth == "Modem" )
{
document.location.href = url ;
}
}
function readOperaVer()
{
var agent = navigator.userAgent;
var offset = agent.indexOf( "Opera" );
if( offset < 0 )
{
return 0;
}
return parseFloat( agent.substring( offset + 6 ) );
}
function renderPrimaryTabStrip()
{
var menuHeaderID;
if( isIE6 )
{
bodyTag.style.behavior = "url(#default#clientCaps)";
m_colorDepth = bodyTag.colorDepth;
}
var cssPrefix = "inactivetab";
for( n = 0; n < m_menuBar.length; n++ )
{
if( n == m_pageTab )
{
cssPrefix = "activetab";
}
var index = n;
if( ( m_menuBar[n].Href != null && m_menuBar[n].Href.length > 0 ) || m_tabNav )
{
var item = m_menuBar[n];
document.write( "<td width=\"4px\" vAlign=\"top\" >" );
document.write( "<div id=\"" + m_menuBar[n].Id + "left\" class=\"" + cssPrefix + "left\"><div><img src=\"" + m_imgPfx + "/images/global/general/spacer.gif\" height=\"22\" width=\"1\" /></div>" );
if( m_tabNav )
{
if( item.MenuItems.length > 0 )
{
if( item.MenuItems.length > 0 )
{
document.write( "<div id=\"" + m_menuBar[n].Id + "TabNav\" class=\"floatingmenu\" onmouseover=\"TabNavActiveEvent( this )\" onmouseout=\"TabNavInActiveEvent( this )\">" );
}
else
{
document.write( "<div id=\"" + m_menuBar[n].Id + "TabNav\" onmouseover=\"TabNavInActiveClose()\" class=\"floatingmenu\">" );
}
document.write( "<table id=\"uniqueplaceholderIDpri\" class=\"mh_linklist\" cellspacing=\"0\" cellpadding=\"0\">" );
var sep = "sub";
for( var nn = 0; nn < item.MenuItems.length; nn++ )
{
var drop = item.MenuItems[nn];
if( drop.Text != null )
{
document.write( "<tr><td class=\"" + sep + "\" onMouseOver=\"this.className='" + sep + "hover';\" onMouseOut=\"this.className='" + sep + "';\"><a class=\"menulink\" onclick=\"SwapTab('" + m_menuBar[n].Id + "', null, " + n + ")\" href=\"" + createNavLink( drop.Href, n ) + "\" " + drop.TargetHtml + ">" + drop.Text );
if( drop.OffDell )
{
document.write( m_stdOffImg );
}
document.write( "</a></td></tr>" );
}
sep = drop.IsSeparator ? "sep" : "sub";
}
document.write( "</table>" );
document.write( "</div>" );
}
}
document.write( "</div></td>" );
document.write( "<td>" );
if( !m_tabNav )
{
document.write( "<div id=\"" + m_menuBar[n].Id + "\" class=\"" + cssPrefix + "\" id=\"" + m_menuBar[n].Id + "\" name=\"mh_tabselector\">" );
}
else
{
if( item.MenuItems.length > 0 )
{
document.write( "<div id=\"" + m_menuBar[n].Id + "\" onmouseover=\"TabNavActiveEvent( this )\" onmouseout=\"TabNavInActiveEvent( this )\" class=\"" + cssPrefix + "\" id=\"" + m_menuBar[n].Id + "\" name=\"mh_tabselector\">" );
}
else
{
document.write( "<div id=\"" + m_menuBar[n].Id + "\" onmouseover=\"TabNavInActiveClose()\" class=\"" + cssPrefix + "\" id=\"" + m_menuBar[n].Id + "\" name=\"mh_tabselector\">" );
}
}
document.write( "<div onclick=\"SwapTab( '" + m_menuBar[index].Id + "', '" + createNavLink( m_menuBar[index].Href, n ) + "', " + index+ " )\" class=\"" + cssPrefix + "content\" id=\"" + m_menuBar[n].Id + "content\" align=\"center\" nowrap=\"1\">" );
document.write( m_menuBar[n].Text );
document.write( "</div></div></td>" );
}
else
{
document.write( "<td width=\"4px\" vAlign=\"top\" >" );
document.write( "<div id=\"" + m_menuBar[n].Id + "left\" class=\"" + cssPrefix + "left\"></div>" );
document.write( "</td>" );
document.write( "<td><div onclick=\"swapSecondaryTabStrip('" + m_menuBar[n].Id + "','" + index + "')\" class=\"" + cssPrefix + "\" id=\"" + m_menuBar[n].Id + "\" name=\"mh_tabselector2\">" );
document.write( "<div class=\"" + cssPrefix + "content\" id=\"" + m_menuBar[n].Id + "content\" align=\"center\" style=\"cursor:pointer\" nowrap=\"1\">" );
document.write( m_menuBar[n].Text );
document.write( "</div></div></td>" );
}
if( n == m_pageTab )
{
m_activeTab = getRawObject( m_menuBar[m_pageTab].Id );
}
cssPrefix = "inactivetab";
}
if( m_pbarTabEnabled && !m_tabNav)
{
if( isSafari && m_myAccountLink )
{
document.write( "<td width=\"4px\" vAlign=\"top\" >" );
document.write( "<div id=\"pbarTableft\" class=\"" + cssPrefix + "left\"></div>" );
document.write( "</td>" );
document.write( "<td><div onclick=\"window.location='" + m_myAccountLink + "';\" class=\"" + cssPrefix + "\" id=\"pbarTab\" name=\"mh_tabselector2\">" );
document.write( "<div class=\"" + cssPrefix + "content\" id=\"pbarTabcontent\" align=\"center\" style=\"cursor:pointer\" nowrap=\"1\">" );
document.write( m_pbarTabTitle );
document.write( "</div></div></td>" );
}
if( !isSafari )
{
var link = (window.location.href.indexOf( "~tid" ) == -1) ? (window.location.href + "&~tid=" + m_menuBar.length) : window.location.href.replace("~tid=" + getQueryVariable("~tid"), "~tid=" + (m_menuBar.length) );
document.write( "<td width=\"4px\" vAlign=\"top\" >" );
document.write( "<div id=\"pbarTableft\" class=\"" + cssPrefix + "left\"></div>" );
document.write( "</td>" );
document.write( "<td><div onclick=\"renderPbarTabNav('pbarTab')\" class=\"" + cssPrefix + "\" id=\"pbarTab\" name=\"mh_tabselector2\">" );
document.write( "<div class=\"" + cssPrefix + "content\" id=\"pbarTabcontent\" align=\"center\" style=\"cursor:pointer\" nowrap=\"1\">" );
document.write( m_pbarTabTitle );
document.write( "</div></div></td>" );
}
}
}
function createNavLink( url, tab )
{
var link = null;
if( url != null )
{
link = url;
}
return link;
}
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>" );
}
}
}
function renderPbarLinks()
{
if( m_pbarLinks )
{
for( var n = 0; n < m_pbarLinks.length; n++ )
{
if( n > 0 )
{
document.write( "<span class=\"mhSpace\">|</span>" );
}
var href = m_pbarLinks[n].Href;
var text = m_pbarLinks[n].Text;
document.write( "<span class=\"mh_search_sep_SE\" nowrap=\"1\"><a href=\"" + href + "\" class=\"para_small\">" + text + "</a></span>" );
}
}
}
function swapSecondaryTabStrip( src, id )
{
subNavContent = getRawObject( "subnav" );
menu = m_menuBar[ id ];
SwapTab( getRawObject( src ), null, id );
subNavContent.innerHTML = renderSecondaryTabStrip( menu );
BindEvents();
}
function renderPbarTabNav( src )
{
m_pageTab = m_menuBar.length;
SwapTab( getRawObject( src ), null, m_pageTab );
try
{
nav = getRawObject( "subnav" );
if( nav.innerHTML.indexOf( "name=\"tabnav\"" ) == -1 )
{
AsyncXDomainIframeCall(m_pbarPfx + "/pbar/ajax.aspx?~psc=tabnav&menus=cart",pbarnavajax);
}
}
catch(e)
{}
}
function renderSecondaryTabStrip( menu )
{
var sep = "sub";
var subNavHTML = "";
for( var n = 0; n < menu.MenuItems.length; n++ )
{
var item = menu.MenuItems[n];
if( item.Text != null )
{
if( isDHTML )
{
if( item.MenuItems )
{
subNavHTML += "<div id=\"mh_" + item.Id + n + "\" name=\"mh_subnavlink\" class=\"subnavlinkcontainer\">" +
"<table cellpadding=\"0\" cellspacing=\"0\"><tr><td><a href=\"" + createNavLink( item.Href, n ) + "\" " + item.TargetHTML + " id=\"mh_" + item.Id + n + "link\" class=\"subnavlink\">" + item.Text + "</a></td><td><img src=\"" + m_imgPfx + "/images/global/general/spacer.gif\" border=\"0\" height=\"1\" width=\"4\" alt=\"\" /></td><td valign=\"top\" width=\"5\" style=\"padding-top:6px;\"><img id=\"mh_" + item.Id + n + "carrot\" src=\"" + m_imgPfx + "/images/global/masthead/nav_down.gif\" border=\"0\" height=\"3\" width=\"5\" alt=\"\" /></td></tr><tr><td rowspan=\"3\">" +
"<div id=\"mh_" + item.Id + n + "content\" class=\"floatingmenu\" onmouseover=\"ClearSubNavTimeOut(false);\">" +
"<table id=\"uniqueplaceholderIDsec\" class=\"mh_linklist\" cellspacing=\"0\" cellpadding=\"0\">";
for( var nn = 0; nn < item.MenuItems.length; nn++ )
{
var drop = item.MenuItems[nn];
if( drop.Text != null )
{
subNavHTML += "<tr><td class=\"" + sep + "\" onMouseOver=\"this.className='" + sep + "hover';\" onMouseOut=\"this.className='" + sep + "';\"><a class=\"menulink\" href=\"" + createNavLink( drop.Href, n ) + "\" " + drop.TargetHtml + ">" + drop.Text;
if( drop.OffDell )
{
subNavHTML += m_stdOffImg;
}
subNavHTML += "</a></td></tr>";
}
sep = drop.IsSeparator ? "sep" : "sub";
}
subNavHTML += "</table></div></td></tr></table></div>";
}
else
{
subNavHTML += "<div id=\"mh_" + item.Id + n + "\" name=\"mh_subnavlink\" class=\"subnavlinkcontainernomenu\">" +
"<a href=\"" + createNavLink( item.Href, n ) + "\" " + item.TargetHTML + " id=\"mh_" + item.Id + n + "link\" class=\"subnavlinknomenu\">" + item.Text + "</a>" +
"</div>";
}
}
else
{
subNavHTML += "<div class=\"subnavlinkcontainernomenu\">" +
"<a href=\"" + createNavLink( item.Href, n ) + "\" " + item.TargetHTML + " class=\"subnavlinknomenu\">" + item.Text + "</a>" +
"</div>";
}
}
}
return subNavHTML;
}
function BindEvents()
{
if( !m_tabNav )
{
var subnavlinks = ParseDivObjects( "mh_subnavlink" );
var subnavlink;
for( var subnavidx = 0; subnavidx < subnavlinks.length; subnavidx++ )
{
subnavlink = subnavlinks[subnavidx];
subnavlink.onmouseover = function() { SubNavEventActive( this ); }
subnavlink.onmouseout = function() { SubNavEventInActive( this ); }
}
}
}
function ParseDivObjects( targetName )
{
var objs = document.getElementsByName( targetName );
if( objs.length == 0 )
{
var targets = document.getElementsByTagName( "DIV" );
var tmpObj;
objs = new Array();
for( var targetidx = 0; targetidx < targets.length; targetidx++ )
{
tmpObj = targets[targetidx];
if( tmpObj.name == targetName )
{
objs.push( tmpObj );
}
}
}
return objs;
}
function ParseIFrameObjects( targetName )
{
var objs = document.getElementsByName( targetName );
if( objs.length == 0 )
{
var targets = document.getElementsByTagName( "IFRAME" );
var tmpObj;
objs = new Array();
for( var targetidx = 0; targetidx < targets.length; targetidx++ )
{
tmpObj = targets[targetidx];
if( tmpObj.name == targetName )
{
objs.push( tmpObj );
}
}
}
return objs;
}
function SwapTab( src, url, tab )
{
var tablink = getRawObject( src );
if ( m_activeTab != null )
{
m_activeTab.className = "inactivetab";
getRawObject( m_activeTab.id + "left" ).className = "inactivetableft";
getRawObject( m_activeTab.id + "content" ).className = "inactivetabcontent";
}
tablink.className = "activetab";
getRawObject( tablink.id + "left" ).className = "activetableft";
getRawObject( tablink.id + "content" ).className = "activetabcontent";
if( m_menuBar.length == tab )
{
SetCookie( "~tid" + pageCnty + pageLang + pageSeg + pageCS, "myaccountMenu" );
}
else
{
SetCookie( "~tid" + pageCnty + pageLang + pageSeg + pageCS, m_menuBar[tab].Id );
}
m_activeTab = tablink;
if( url != null )
{
document.location = url;
}
}
function TabNavActiveEvent( src )
{
if( m_timeoutCloseDelay )
{
ClearSubNavTimeOut(false);
}
if( m_tabContentDiv != src.id )
{
var content = getRawObject( src.id + "TabNav" );
if( content != null )
{
if( m_tabContentDiv != null )
{
TabNavInActiveClose();
}
m_tabContentDiv = src.id;
if ( m_activeTab.id != src.id )
{
src.className = "activetabhover";
getRawObject( src.id + "left" ).className = "activetabhoverleft";
getRawObject( src.id + "content" ).className = "activetabhovercontent";
if( m_activeTab != null )
{
m_activeTab.style.zIndex = 1;
}
}
content.style.display = "block";
}
}
}
function TabNavInActiveEvent( src )
{
if( !m_timeoutCloseDelay )
{
m_timeoutCloseDelay = setTimeout( "TabNavInActiveClose()",500 );
}
}
function TabNavInActiveClose()
{
var src = getRawObject( m_tabContentDiv );
var content = getRawObject( m_tabContentDiv + "TabNav" );
if( content != null && m_tabContentDiv )
{
if ( m_activeTab.id != m_tabContentDiv )
{
src.className = "inactivetab";
getRawObject( src.id + "left" ).className = "inactivetableft";
getRawObject( src.id + "content" ).className = "inactivetabcontent";
if( m_activeTab != null )
{
m_activeTab.style.zIndex = 2;
}
}
content.style.display = "none";
m_tabContentDiv = null;
}
}
function SubNavEventActiveString( str )
{
SubNavEventInActiveOpen(getRawObject(str) );
}
function SubNavEventActive( src )
{
m_timeoutOpenDelay = setTimeout( "SubNavEventInActiveOpen('" + src.id + "')", 150 );
}
function SubNavEventInActiveOpen( src )
{
src = getRawObject( src );
var link = getRawObject( src.id + "link" );
var content = getRawObject( src.id + "content" );
var carrot = getRawObject( src.id + "carrot" );
if( m_timeoutCloseDelay )
{
ClearSubNavTimeOut(false);
}
if( m_tabContentDiv != src.id )
{
if( m_tabContentDiv != null )
{
SubNavEventInActiveClose();
}
m_tabContentDiv = src.id;
if( src.id.indexOf( "undefined" ) > -1 )
{
src.className = "subnavlinkcontainernomenuselected";
}
else
{
src.className = "subnavlinkcontainerselected";
}
if( link != null )
{
if( src.id.indexOf( "undefined" ) > -1 )
{
link.className = "subnavlinknomenuselected";
}
else
{
link.className = "subnavlinkselected";
}
if( carrot != null )
{
carrot.src = m_imgPfx + "/images/global/masthead/nav_down.gif";
}
}
if( content != null )
{
if( Screen.AvailableWidth < (src.offsetLeft + (content.style.width.substring(0,3) - 1 ) + 1) || m_mastheadWidth < (src.offsetLeft + (content.style.width.substring(0,3) - 1 ) + 1) )
{
content.style.left = src.offsetLeft - content.style.width.substring(0,3) - 1 + src.offsetWidth;
}
else
{
content.style.left = src.offsetLeft + "px";
}
content.style.top = src.offsetTop + src.offsetHeight - 3 + "px";
content.style.display = "block";
if( content.innerHTML.indexOf("uniqueplaceholderID") == -1 )
{
try
{
var contentDiv = getRawObject( content.id );
if( contentDiv.innerHTML.indexOf( "name=\"" + src.id.substring( 3, src.id.length ) + "\"" ) == -1 )
{
if( content.id == "mh_myaccountcontent" )
{
contentDiv.innerHTML = "<div id=\"pbarcontent\" name=\"" + src.id.substring( 3, src.id.length ) + "\" class=\"pbarcontent\"><iframe onmouseover=\"ClearSubNavTimeOut(true);\" onmouseout=\"ClearIsIframe()\" width=\"228\" id=\"myframe\" scrolling=\"auto\" frameborder=\"0\" name=\"myframe\" src=\"" + m_pbarPfx + "/pbar/ajax.aspx?~psc=myaccount\"></iframe></div>";
}
else
{
AsyncXDomainIframeCall(m_pbarPfx + "/pbar/ajax.aspx?~psc=" + src.id.substring( 3, src.id.length ),tabcontentajax);
}
}
}
catch(e)
{}
}
}
}
}
function ClearIsIframe()
{
m_maIframe = false;
}
function ClearSubNavTimeOut(isIframe)
{
clearTimeout( m_timeoutCloseDelay );
m_timeoutCloseDelay = null;
m_maIframe = isIframe;
}
function ClearSubNavOpenTimeOut()
{
clearTimeout( m_timeoutOpenDelay );
m_timeoutOpenDelay = null;
}
function SubNavEventInActive( src )
{
ClearSubNavOpenTimeOut();
if( !m_timeoutCloseDelay )
{
m_timeoutCloseDelay = setTimeout( "SubNavEventInActiveClose()",500 );
}
}
function SubNavEventInActiveClose()
{
if( m_tabContentDiv && !m_maIframe )
{
var src = getRawObject( m_tabContentDiv );
if( src )
{
var link = getRawObject( m_tabContentDiv + "link" );
var content = getRawObject( m_tabContentDiv + "content" );
var carrot = getRawObject( m_tabContentDiv + "carrot" );
if( src.className == "subnavlinkcontainerselected" )
{
src.className = "subnavlinkcontainer";
}
else
{
src.className = "subnavlinkcontainernomenu";
}
if( link != null )
{
if( link.className == "subnavlinkselected" )
{
link.className = "subnavlink";
}
else
{
link.className = "subnavlinknomenu";
}
if( carrot != null )
{
carrot.src = m_imgPfx + "/images/global/masthead/nav_down.gif";
}
}
if( content != null )
{
content.style.display = "none";
}
m_tabContentDiv = null;
}
}
}
function renderSubNavLinks(segmentTitle)
{
var pwidth = (m_subNavLinkWidth != null) ? ("style=\"width:" + m_subNavLinkWidth + "px;\"") : "";
if( pwidth != null && pwidth.length > 0 )
{
document.write( "<div " + pwidth + "><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" height=\"22\" align=\"right\"><tr>" );
}
else
{
document.write( "<div style=\"width:" + ((Screen.AvailableWidth > m_mastheadWidth) ? m_mastheadWidth : 728) + "px;\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" height=\"22\" align=\"right\"><tr>" );
}
for( var n = 0; n < m_pnlinks.length; n++ )
{
if( n > 0 )
{
document.write( "<td ><img src=\"" + m_imgPfx + "/images/global/masthead/secondary_sep.gif\" alt=\"\"></td>" );
}
var href = m_pnlinks[n].Href;
var icon = m_pnlinks[n].Icon;
if( icon && m_subNavIconsDisplay )
{
document.write( "<td valign=\"middle\"><a href=\"" + href + "\"><img src=\"" + m_imgPfx + "/images/global/brand/icons/" + icon + ".gif\" border=\"0\" alt=\"\"></a></td>" );
}
document.write( "<td align=\"right\" valign=\"middle\" nowrap=\"true\"><a class=\"lnk_crumb\" href=\"" + href + "\">" + m_pnlinks[n].Text + "</a></td>" );
}
if( segmentTitle )
{
document.write( "<td ><img src=\"" + m_imgPfx + "/images/global/masthead/secondary_sep.gif\" alt=\"\"></td><td>" );
renderBuyOnline();
document.write( "</td>" );
}
document.write( "<td>&nbsp;</td>" );
document.write( "</tr></table></div>" );
}
function renderLanguageToggle()
{
document.write( "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" height=\"10\" align=\"right\"><tr>" );
document.write( "<td align=\"left\" valign=\"middle\"><a href=\"" + m_langSelectorUrl + "\"><img src=\"" + m_imgPfx + "/images/global/brand/icons/" + m_langSelectorIcon + ".gif\" border=\"0\" alt=\"\"></a></td>" );
document.write( "<td align=\"left\" valign=\"middle\" nowrap=\"true\"><a class=\"lnk_crumb\" href=\"" + m_langSelectorUrl + "\">" + m_langSelectorCaption + "</a></td>" );
document.write( "</tr></table>" );
}
function renderMastheadCrumbs( footer )
{
document.write( "<div class=\"para_crumb_43\"" );
if ( !footer )
{
document.write( "style=\"padding-bottom:4px;padding-top:1px;\"" );
}
document.write( ">" );
document.write("<span style=\"font-weight:bold;\">" + getYouAreHere() + ":&nbsp;</span>" );
if( flag )
{
document.write( "&nbsp;<img src=\"" + m_imgPfx + "/images/global/masthead/smlflags/" + flag + ".gif\" alt=\"\" border=\"0\" />&nbsp;&nbsp;");
}
for( var n = 0; n < m_crumbs.length ; n++ )
{
if( n > 0 )
{
document.write( "&nbsp;&gt;&nbsp;" );
}
href = m_crumbs[n].Href;
var closeGif = "";
if ( m_crumbs[n].IsFilter)
{
closeGif = "<img style=\"padding-left:3px\" src=\"" + m_imgPfx + "/images/global/brand/icons/close.gif\" alt=\"removefilter\" border=\"0\"/>&nbsp;";
}
if( href )
{
document.write( "<a class=\"lnk_crumb43\" href=\"" + href + "\">" + m_crumbs[n].Text + closeGif + "</a>" );
}
else
{
document.write( "<span class=\"crumbsel43\">" + m_crumbs[n].Text + "</span>" );
}
}
document.write( "</div>" );
}
function renderMastheadCrumbsRtl( footer )
{
document.write( "<div class=\"para_crumb_43\"" );
if ( !footer )
{
document.write( "style=\"padding-bottom:4px;padding-top:4px;\"" );
}
document.write( ">" );
document.write("<div style=\"font-weight:bold;float:right;padding-left:3px\">" + getYouAreHere() + ":" + "</div>" );
if( flag )
{
document.write( "<div style=\"float:right\" ><img src=\"" + m_imgPfx + "/images/global/masthead/smlflags/" + flag + ".gif\" alt=\"\" border=\"0\" /></div>");
}
for( var n = 0; n < m_crumbs.length ; n++ )
{
if( n > 0 )
{
document.write("<div style=\"float:right; padding-right:3px\">")
document.write( "&gt;" );
document.write("</div>")
}
href = m_crumbs[n].Href;
var closeGif = "";
if ( m_crumbs[n].IsFilter)
{
closeGif = "<img style=\"padding-left:3px\" src=\"" + m_imgPfx + "/images/global/brand/icons/close.gif\" alt=\"removefilter\" border=\"0\"/>&nbsp;";
}
if( href )
{
document.write("<div style=\"float:right;padding-right:3px\" >");
document.write( "<a class=\"lnk_crumb43\" href=\"" + href + "\">" + closeGif + m_crumbs[n].Text + "</a>" );
document.write("</div>");
}
else
{
document.write( "<div style=\"float:right;padding-right:3px\" class=\"crumbsel43\">" + m_crumbs[n].Text + "</div>" );
}
}
document.write( "</div>" );
}
function renderFooterCrumbs()
{
document.write( "<table width=\"" + m_mastheadWidth + "\" cellspacing=\"0\" style=\"padding-top:4px;padding-bottom:4px;vertical-align: middle;border-bottom: 1px inset #999999;border-top: 1px outset #999999;\" cellpading=\"0\" height=\"25\" border=\"0\"><tr><td style=\"padding-left:15px;\">" );
if(m_isRtl)
renderMastheadCrumbsRtl( true );
else
renderMastheadCrumbs( true );
document.write( "</td><td align=\"right\" nowrap=\"1\">" );
if(m_isRtl)
renderPrintEmailLinksRtl();
else
renderPrintEmailLinks();
document.write( "</td></tr></table>" );
}
function crumbWidth( crumb )
{
var text = crumb.replace( m_crumbRegEx1, "" );
text = text.replace( m_crumbRegEx2, " " );
var hasUnicode = false;
for( n = 0; n < text.length; n++ )
{
if( text.charCodeAt( n ) > 0x1000 )
{
hasUnicode = true;
break;
}
}
if( hasUnicode )
{
return text.length * m_avgChW;
}
else
{
if( m_largeFont )
{
return text.length * 8;
}
else
{
return text.length * 6;
}
}
}
function renderPrintEmailLinks()
{
if( m_printLink || m_emailLink || m_helpLink )
{
document.write("<span style=\"padding-right:10px;\">");
if( m_emailLink )
{
var m_emailsubject = document.title;
if( typeof(m_emailSubject) != "undefined" && m_emailSubject != null && m_emailSubject.length > 0 )
{
m_emailsubject = m_emailSubject;
}
var emailUrl = "javascript:void(document.location.href=" + "'mailto:?subject=" + m_emailsubject + "&body=" + document.location.href.replace(/%26/g,'%2526').replace(/&/g,'%2526') + "')" ;
document.write( "<span style=\"vertical-align:middle;\"><a href=\"" + emailUrl + "\"><img src=\"" + m_imgPfx + "/images/global/brand/icons/email.gif\" border=\"0\" alt=\"" + m_emailText + "\" /></a></span>" );
document.write( "<span class=\"para_small\" style=\"text-align:right;vertical-align:middle;white-space:nowrap;\"><a class=\"lnk_small\" href=\"" + emailUrl + "\">" + m_emailText + "</a></span>" );
}
if( m_printLink )
{
if( m_emailLink )
{
document.write( "<span class=\"mhSpace\">|</span>" );
}
document.write( "<span style=\"vertical-align:middle;\"><a href=\"" + m_printLink + "\"><img src=\"" + m_imgPfx + "/images/global/brand/icons/print.gif\" border=\"0\" alt=\"" + getPrintableText() + "\" /></a></span>" );
document.write( "<span class=\"para_small\" style=\"text-align:right;vertical-align:middle;white-space:nowrap;\"><a class=\"lnk_small\" href=\"" + m_printLink + "\">" + getPrintableText() + "</a></span>" );
}
if( m_helpLink )
{
if( m_emailLink )
{
document.write( "<span class=\"mhSpace\">|</span>" );
}
document.write( "<span><a href=\"" + m_helpLink + "\"><img src=\"" + m_imgPfx + "/images/global/brand/icons/help.gif\" border=\"0\" alt=\"" + m_helpText + "\" /></a></span>" );
document.write( "<span class=\"para_small\" style=\"text-align:right;vertical-align:middle;white-space:nowrap;\"><a class=\"lnk_small\" href=\"" + m_helpLink + "\">" + m_helpText + "</a></span>" );
}
document.write( "</span>" );
}
}
function renderPrintEmailLinksRtl()
{
if( m_printLink || m_emailLink || m_helpLink )
{
document.write("<div style=\"padding-right:10px;clear:both\">");
if( m_emailLink )
{
var m_emailsubject = document.title;
if( typeof(m_emailSubject) != "undefined" && m_emailSubject != null && m_emailSubject.length > 0 )
{
m_emailsubject = m_emailSubject;
}
var emailUrl = "javascript:void(document.location.href=" + "'mailto:?subject=" + m_emailsubject + "&body=" + document.location.href.replace(/%26/g,'%2526').replace(/&/g,'%2526') + "')" ;
document.write( "<div class=\"para_small\" style=\"text-align:right;vertical-align:middle;white-space:nowrap;float:left;padding-top:5px\"><a class=\"lnk_small\" href=\"" + emailUrl + "\">" + m_emailText + "</a></div>" );
document.write( "<div style=\"vertical-align:middle;float:left\"><a href=\"" + emailUrl + "\"><img src=\"" + m_imgPfx + "/images/global/brand/icons/email.gif\" border=\"0\" alt=\"" + m_emailText + "\" /></a></div>" );
}
if( m_printLink )
{
if( m_emailLink )
{
document.write( "<div class=\"mhSpace\" style=\"float:left\" >|</div>" );
}
document.write( "<div class=\"para_small\" style=\"text-align:right;vertical-align:middle;white-space:nowrap;float:left;padding-top:5px\"><a style=\"valign:center\" class=\"lnk_small\" href=\"" + m_printLink + "\">" + getPrintableText() + "</a></div>" );
document.write( "<div style=\"vertical-align:middle;float:left\"><a href=\"" + m_printLink + "\"><img src=\"" + m_imgPfx + "/images/global/brand/icons/print.gif\" border=\"0\" alt=\"" + getPrintableText() + "\" /></a></div>" );
}
if( m_helpLink )
{
if( m_emailLink )
{
document.write( "<div class=\"mhSpace\">|</div>" );
}
document.write( "<div class=\"para_small\" style=\"text-align:right;vertical-align:middle;white-space:nowrap;float:left;padding-top:5px\"><a class=\"lnk_small\" href=\"" + m_helpLink + "\">" + m_helpText + "</a></div>" );
document.write( "<div style=\"float:left\" ><a href=\"" + m_helpLink + "\"><img src=\"" + m_imgPfx + "/images/global/brand/icons/help.gif\" border=\"0\" alt=\"" + m_helpText + "\" /></a></div>" );
}
document.write( "</div>" );
}
}
function writeFooterStart()
{
var width = ( m_mhFixed ? m_mastheadWidth : "100%" );
document.write( "<div style=\"width:" + width + "px;padding-top:10px;\">");
if( typeof( m_pageTheme ) != "undefined" )
{
if( m_pageTheme != null && m_pageTheme.length > 0 )
{
document.write( "<div style=\"clear:left;\"><img src=\"" )
document.write( m_pageTheme );
document.write( "\" border=\"0\" alt=\"\" /></div>" );
}
}
if( m_crumbs )
{
renderFooterCrumbs();
}
document.write( "</div>" );
}
function writeFooterMid()
{
var width = ( m_mhFixed ? m_mastheadWidth : "100%" );
var sepCol = "#cccccc";
if( m_isHome && typeof(m_localeSelector) != "undefined" )
{
document.write( "<table width=\"" + width + "\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ededed\">" );
document.writeln( "<tr><td colspan=\"2\" style=\"background-color:#ffffff;border-top: 1px solid #efefef\"><div class=\"locale_selector\">" + m_localeSelector + "</div></td></tr>" );
document.writeln( "<tr><td colspan=\"2\" ><img src=\"" + m_imgPfx + "/images/global/general/spacer.gif\" border=\"0\" height=\"1\" width=\"1\" alt=\"\" /></td></tr>" );
}
if( !m_crumbs && !m_isHome )
{
document.write( "<table width=\"" + width + "\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ededed\">" );
document.write( "<tr><td colspan=\"2\" bgcolor=\"" + sepCol + "\"><img src=\"" + m_imgPfx + "/images/global/general/spacer.gif\" border=\"0\" height=\"1\" width=\"1\" alt=\"\" /></td></tr>" );
document.write( "<tr><td colspan=\"2\" ><img src=\"" + m_imgPfx + "/images/global/general/spacer.gif\" border=\"0\" height=\"1\" width=\"1\" alt=\"\" /></td></tr><tr><td bgcolor=\"#ffffff\" width=\"" + width + "\" valign=\"top\">" );
}
}
function writeFooterBegin()
{
writeFooterStart();
writeFooterMid();
RenderFlash();
}
function writeFooterClose()
{
}
function menuRef( id, text, href, items, target )
{
menuRef( id, text, href, items, target, false )
}
function menuRef( id, text, href, items, target, selected )
{
this.Id = id;
this.Text = text;
this.Href = mhFixupLink( href, "&~ck=mn" );
this.IsSeparator = false;
this.IsCaption = false;
this.MenuItems = items;
this.IsSelectedTab = false;
if( selected == true )
{
this.IsSelectedTab = true;
}
this.OffDell = false;
this.TargetHtml = m_stdEmpty;
if( ( typeof(target) != "undefined" ) && target )
{
this.OffDell = ( target == "offdell" );
this.TargetHtml = " target=\"" + target + "\"";
}
}
function menuItem( text, href, target )
{
this.Text = text;
this.Href = mhFixupLink( href, "&~ck=mn" );
this.IsSeparator = false;
this.IsCaption = false;
this.MenuItems = null;
this.OffDell = false;
this.TargetHtml = m_stdEmpty;
if( ( typeof(target) != "undefined" ) && target )
{
this.OffDell = ( target == "offdell" );
this.TargetHtml = " target=\"" + target + "\"";
}
}
function menuCaption( text )
{
this.Text = text;
this.Href = null;
this.IsSeparator = false;
this.IsCaption = true;
this.MenuItems = null;
}
function menuSep()
{
this.IsSeparator = true;
this.IsCaption = false;
}
function searchType( caption, value, selected )
{
this.Caption = caption;
this.Value = value;
this.Selected = selected;
}
function addSearchType( caption, value, selected )
{
if( !m_searchTypes )
{
m_searchTypes = new Array();
}
m_searchTypes[m_searchTypes.length] = new searchType( caption, value, selected );
}
function mhLink( text, href, icon, extra, isFilter )
{
href = mhFixupLink( href, extra );
this.Text = text;
this.Href = href;
this.Icon = icon;
this.IsFilter = isFilter;
}
function addPnLink( text, href, icon )
{
if( !m_pnlinks )
{
m_pnlinks = new Array();
}
m_pnlinks[m_pnlinks.length] = new mhLink( text, href, icon, "&~ck=pn" );
}
function addCrumb( text, href , isFilter )
{
if( !m_crumbs )
{
m_crumbs = new Array();
}
m_crumbs[m_crumbs.length] = new mhLink( text, href, null, "&~ck=bt" , isFilter);
}
var delayMin = null;
var delayMax = null;
var currentID = null;
function flyoutopen( id, width )
{
try
{
if( currentID != id )
{
var link = document.getElementById( "flyout" + id + "link" );
var body = document.getElementById( "flyout" + id + "body" );
width = link.offsetWidth > width ? link.offsetWidth : width;
body.style.top = link.offsetTop + link.offsetHeight - 1;
linky = getRawObject( "pbarcontainer" );
var flyoutwidth;
if( id == "cart" )
{
flyoutwidth = linky.offsetLeft + width + 21;
}
else
{
flyoutwidth = linky.offsetLeft + linky.offsetWidth - link.offsetWidth + width + 21;
}
if( Screen.AvailableWidth < flyoutwidth )
{
body.style.width = width - 2;
body.style.left = link.offsetLeft - width + link.offsetWidth;
}
else
{
body.style.width = width - 2;
body.style.left = link.offsetLeft;
}
link.className = "flyout" + id + "linkmax";
body.className = "flyout" + id + "bodymax";
currentID = id;
var ticks = new Date();
if( m_pbarContentDiv != ("flyout" + id + "body") )
{
try
{
m_pbarContentDiv = "flyout" + id + "body";
var flyoutDiv = getRawObject( m_pbarContentDiv );
if( flyoutDiv.innerHTML.indexOf( "name=\"" + id + "\"" ) == -1 )
{
if( m_pbarContentDiv == "flyoutmyaccountbody" )
{
flyoutDiv.innerHTML = "<div id=\"pbarcontent\" name=\"" + id + "\" class=\"pbarcontent\"><iframe onmouseout=\"javascript:flyoutmin('myaccount')\" onmouseover=\"javascript:flyoutminclear()\" width=\"228\" id=\"myframe\" scrolling=\"auto\" frameborder=\"0\" name=\"myframe\" src=\"" + m_pbarPfx + "/pbar/ajax.aspx?~psc=myaccount\"></iframe></div>"
}
else
{
AsyncXDomainIframeCall(m_pbarPfx + "/pbar/ajax.aspx?~psc=" + id,pbarcontentajax);
}
}
}
catch(e)
{}
}
}
}
catch(e)
{}
}
function flyoutclear()
{
flyoutminclear();
}
function flyoutminclear()
{
if( delayMin )
{
clearTimeout( delayMin );
delayMin = null;
}
}
function flyoutmaxclear()
{
if( delayMax )
{
clearTimeout( delayMax );
delayMax = null;
}
}
function flyoutmin( id )
{
flyoutmaxclear();
delayMin = setTimeout( "flyoutclose('" + id + "',true)", 500 );
}
function flyoutmax( id, width )
{
flyoutminclear();
if( currentID != id )
{
flyoutclose( currentID, false );
}
delayMax = setTimeout( "flyoutopen('" + id + "','" + width + "')", 250 );
}
function flyoutclose( id, clear )
{
try
{
var link = document.getElementById( "flyout" + id + "link" );
var body = document.getElementById( "flyout" + id + "body" );
link.className = "flyout" + id + "linkmin";
body.className = "flyout" + id + "bodymin";
m_pbarContentDiv = null;
if( clear )
{
currentID = null;
}
}
catch(e)
{}
}
function pbarstripajax( event )
{
if( event.Status == "OK" && event.Response.indexOf( "flyout" ) != -1 )
{
link = getRawObject( "pbarcontainer" );
link.innerHTML = event.Response;
link.style.width = link.offsetWidth;
m_pbarContentDiv = null;
}
}
function pbarnavajax( event )
{
if( event.Status = "OK" )
{
link = getRawObject( "subnav" );
link.innerHTML = event.Response;
BindEvents();
}
}

function pbarcontentajax( event )
{
    if( event.Status = "OK" && m_pbarContentDiv && event.Response != "false" && event.Response.length > 0 )
    {
        link = getRawObject( m_pbarContentDiv );
	    link.innerHTML = event.Response;
	    try
	    {
	        var divs = link.getElementsByTagName( "div" );
	        for( var i = 0; i < divs.length; i++ )
	        {
	            if( divs[i].className == "productImage" )
	            {
	                var imgUrl = divs[i].getElementsByTagName("img")[0].src;
	                var pos  = imgUrl.indexOf( "op=" );
	                if( pos > -1 )
	                {
	                    var imageID = imgUrl.substring( pos+3, imgUrl.length );
	                    divs[i].getElementsByTagName("img")[0].src = "http://accessories.us.dell.com/sna/images/products/thumbnail/" + imageID + ".jpg";
	                }
	            }
	        }
	    }
	    catch(ex)
	    {}
	    m_cartPages[m_cartPages.length] = link.innerHTML;
	}
}



function tabcontentajax( event )
{
if( event.Status = "OK" && m_tabContentDiv )
{
link = getRawObject( m_tabContentDiv + "content" );
link.innerHTML = event.Response;
}
}
function cartPaging( idx )
{
try
{
if( typeof( m_cartPages[idx] ) != "undefined" )
{
link = getRawObject( m_pbarContentDiv );
link.innerHTML = m_cartPages[idx];
}
else
{
var content = "cart";
if( m_pbarContentDiv.indexOf( "flyout" ) >= 0 )
{
content = m_pbarContentDiv.substring( 6, m_pbarContentDiv.indexOf( "body" ) );
}
if( m_pbarContentDiv.indexOf( "mh_" ) >= 0 )
{
content = m_pbarContentDiv.substring( 3, m_pbarContentDiv.indexOf( "content" ) );
}
AsyncXDomainIframeCall(m_pbarPfx + "/pbar/ajax.aspx?~psc=" + content + "&~cix=" + idx,pbarcontentajax);
}
}
catch(e)
{}
}
function maLogout()
{
for ( formIdx = 0 ; formIdx < document.forms.length;formIdx ++ )
{
if ( "myaccountlogout" == document.forms[formIdx].name )
{
var curUrl = document.location.href;
var logOutIdx = curUrl.indexOf ("&~myaccountlogin=true" );
if ( logOutIdx > -1 )
{
document.forms[formIdx].action = curUrl.substring ( 0 , logOutIdx );
}
document.forms[formIdx].submit();
}
}
}
function maLinkLogout()
{
try
{
document.cookie = "chm:TP=" + escape( "null" ) + ";path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT;domain=.dell.com";
document.cookie = "Profile=" + escape( "null" ) + ";path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT;domain=.dell.com";
document.cookie = "GAAuth=" + escape( "null" ) + ";path=/;expires=Thu, 01-Jan-1970 00:00:01 GMT;domain=.dell.com";
SetCookie( "~login", "true" );
document.location = document.location.href;
}
catch(e)
{}
}
function maLink( href )
{
window.parent.location = href;
}
function maEnterSubmit(event)
{
if (event && event.which == 13 || event.keyCode == 13)
maLoginValidation();
else
return true;
}
function maLoginValidation()
{
var myAccntLogin = "myaccountlogin";
for ( formIdx = 0 ; formIdx < document.forms.length;formIdx ++ )
{
if ( myAccntLogin == document.forms[formIdx].name )
{
myAccntLogin = document.forms[formIdx];
break;
}
}
var email = myAccntLogin.email;
var emailDiv = document.getElementById( "emailDiv" )
var password = myAccntLogin.password;
var passwordDiv = document.getElementById( "passwordDiv" )
if( email.value.length != 0 && password.value.length != 0 )
{
var actionUrl = document.location.href;
try
{
myAccntLogin.submit();
}
catch(e)
{
alert( e );
}
}
else
{
emailDiv.style.display = "none";
passwordDiv.style.display = "none";
}
if(email.value.length == 0)
{
emailDiv.style.display = "block";
}
if(password.value.length == 0)
{
passwordDiv.style.display = "block";
}
if(email.value.length == 0 || password.value.length == 0 )
{
try
{
window.parent.setMAIframeHeight(document.getElementById("myaccountpage").offsetHeight);
}
catch(e)
{}
}
}
function ClientVars()
{
this.Bandwidth = Bandwidth();
this.FlashVersion = SetFlashVersion();
var bw = getCookieKeyValue( "ClientVars", "bandwidth" );
if( bw == null || bw.length == 0 )
{
SetClientVar( "bandwidth", this.Bandwidth );
}
var fv = getCookieKeyValue( "ClientVars", "flashversion" );
if( fv == null || fv.length == 0 )
{
SetClientVar( "flashversion", this.FlashVersion );
}
}
function SetFlashVersion()
{
var flashversion = 0;
var MSDetect = false;
if (navigator.plugins && navigator.plugins.length)
{
x = navigator.plugins["Shockwave Flash"];
if (x)
{
if (x.description)
{
y = x.description;
return y.charAt(y.indexOf('.')-1);
}
}
if (navigator.plugins["Shockwave Flash 2.0"])
{
return 2;
}
}
else
{
MSDetect = true;
}
if( MSDetect )
{
var vs = 0;
for( v=2;v<15;v++ )
{
ieFlashObj = null;
window.execScript('on error resume next: ieFlashObj = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.' + v + '"))','VBScript');
if( ieFlashObj )
{
vs = v;
}
}
return vs;
}
return 0;
}
function fixupFragHeight()
{
var tags = getObjectsByTag("tr");
for( var i = 0; i < tags.length; i++ )
{
var tr = tags[i];
var className = tr.className;
if( className == "rowsolid" || className == "rowlight" )
{
var h = getObjectHeight( tr );
if( h > 29 )
{
tr.className = className + "2";
}
}
}
if(m_isCenter && !m_isPopupIntention)
{
document.writeln( "<!--end center align -->" );
document.writeln( "</td></tr></table>" );
}
if ( typeof( m_switchNav) != "undefined" )
{
switchNav();
}
}
function switchNav()
{
var masthead = document.getElementById("masthead");
if ( masthead == null )
{
return;
}
var next= masthead.nextSibling;
while ( next != null )
{
if ( next.tagName == "TABLE")
{
var tr = next.rows[0];
if ( tr != null && tr.cells.length == 2 && tr.cells[1].width == 728)
{
var oldCell =tr.cells[1];
var newCell = tr.cells[0];
tr.insertBefore( oldCell, newCell);
break;
}
}
next= next.nextSibling;
}
}
function getObjectHeight(obj)
{
var elem = getRawObject(obj);
var result = 0;
if (elem.offsetHeight)
{
result = elem.offsetHeight;
}
else if (elem.clip && elem.clip.height)
{
result = elem.clip.height;
}
else if (elem.style && elem.style.pixelHeight)
{
result = elem.style.pixelHeight;
}
return parseInt(result);
}
function getObjectsByTag(tag)
{
if( document.getElementsByTagName )
{
return document.getElementsByTagName(tag);
}
else if( document.all )
{
return document.all.tags(tag);
}
return null;
}
function setMAIframeHeight(height)
{
try
{
var myframes = ParseIFrameObjects( "myframe" );
for( var frameidx = 0; frameidx < myframes.length; frameidx++ )
{
if( height )
{
myframes[frameidx].style.height = height;
}
else
{
myframes[frameidx].style.height = 300;
}
}
}
catch(e)
{}
}
var m_moreLessUlr="";
function moreLessToggle(evt)
{
var myTarget = evt.target || evt.srcElement;
var parent = myTarget.parentNode.parentNode;
if ( parent.gotdata )
{
moreLessToggleLocal ( evt );
return;
}
parent.gotdata= true;
var dataDiv = null;
var dataInput = null;
for ( i = 0 ; i < parent.childNodes.length ; i ++ )
{
if ( parent.childNodes[i].tagName=="DIV" )
{
var dataInputs = parent.childNodes[i].getElementsByTagName ( "input");
if ( dataInputs != null && dataInputs.length == 1 )
{
dataInput = dataInputs[0];
dataDiv = parent.childNodes[i];
break;
}
}
}
if ( dataDiv == null )
{
moreLessToggleLocal ( evt );
return;
}
if ( m_moreLessUlr == null || m_moreLessUlr.length == 0 )
{
return;
}
var syncObj = getXMLHTTPObj();
if ( syncObj == null )
{
moreLessToggleLocal ( evt );
return;
}
m_moreLessUlr = m_moreLessUlr.replace(/\/\//,"/");
syncObj.open("POST", m_moreLessUlr , true);
var params = "data=" + dataInput.value;
syncObj.setRequestHeader("Content-length", params.length);
syncObj.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
syncObj.setRequestHeader("Content-length", params.length);
syncObj.setRequestHeader("Connection", "close");
moreLessToggleLocal( evt );
syncObj.onreadystatechange = function(e)
{
if(syncObj != undefined && syncObj.readyState == 4)
{
if(syncObj.status == 200)
{
dataDiv.innerHTML = syncObj.responseText;
}
else
{
moreLessToggleLocal( evt );
}
}
}
syncObj.send(params);
}
function moreLessToggleLocal( evt )
{
var myTarget = evt.target || evt.srcElement;
var DIV = "DIV"
for(var i = 0; i < myTarget.parentNode.parentNode.childNodes.length; i++)
{
if(myTarget.parentNode.parentNode.childNodes[i].tagName == DIV)
{
if(myTarget.parentNode.parentNode.childNodes[i].className == "toggleLinks")
{
if(myTarget.parentNode.parentNode.childNodes[i].style.display == "none")
{
myTarget.parentNode.parentNode.childNodes[i].style.display ="inline";
}
else
{
myTarget.parentNode.parentNode.childNodes[i].style.display ="none";
}
}
}
}
}
function mhFixupLink( href, extra )
{
if( typeof(extra) == "undefined" )
{
extra = "&~ck=mn";
}
if( href )
{
var anchor = null;
var anchorix = href.indexOf( "#" );
if( anchorix != -1 )
{
anchor = href.substr( anchorix );
href = href.substr( 0, anchorix );
}
if( href.indexOf( "?" ) == -1 )
{
extra = "?" + extra.substr( 1 );
}
if( href.toLowerCase().indexOf( "javascript:" ) == -1 )
{
href += extra;
}
else
{
start = href.indexOf( "?" );
if( start != -1 )
{
ix = href.indexOf( "\'", start );
if( ix == -1 )
{
ix = href.indexOf( "\\", start );
if( ix == -1 )
{
ix = href.indexOf( "\"", start );
}
}
if( ix != -1 )
{
href = href.substr( 0, ix ) + extra + href.substr( ix );
}
}
}
if( anchor )
{
href += anchor;
}
}
return href;
}
function getRawObject(obj)
{
var theObj;
if (typeof obj == "string")
{
if (isW3C)
{
theObj = document.getElementById(obj);
}
else if (isIE4)
{
theObj = document.all(obj);
}
else if (isNN4)
{
theObj = seekLayer(document, obj);
}
}
else
{
theObj = obj;
}
return theObj;
}
function getBackto()
{
if ( typeof ( m_backto ) != "undefined" )
{
return m_backto;
}
return "";
}
function getYouAreHere()
{
if ( typeof ( m_youAreHere ) != "undefined" )
{
return m_youAreHere;
}
return "";
}
function getGotoTop ()
{
if ( typeof ( m_gototop ) != "undefined" )
{
return m_gototop;
}
return "";
}
function getPrintableText ()
{
if ( typeof ( m_printableText ) != "undefined" )
{
return m_printableText;
}
return "";
}
function addBookMark()
{
if (window.external)
{
window.external.AddFavorite(document.location.href,document.title);
}
else
{
alert("Sorry, your browser doesn't support bookmarking this page...\n\nPlease try pressing Control + D instead");
}
}
function menuGoto( url )
{
if ( m_anchorClicked )
{
return;
}
m_anchorClicked = true;
if ( url != null && url.indexOf( "javascript" ) > -1 )
{
eval ( url );
}
else
{
document.location = url;
}
if( document.event != null )
{
document.event.cancelBubble = true;
}
return false;
}
function menuWinOpen( url )
{
window.open( url );
return false;
}
function winopen(url,stuff,morestuff)
{
var popwin = window.open(url,stuff,morestuff);
if( typeof(popwin) != "undefined" && popwin )
{
popwin.focus();
}
lastPopup = popwin;
}
function Bandwidth()
{
if( readIEVer() < 5.0 || isOpera || navigator.appVersion.toLowerCase().indexOf("win") == -1 )
{
return "NA";
}
try
{
document.body.addBehavior ("#default#clientCaps");
if ( typeof( document.body.connectionType) != "undefined" )
{
if ( document.body.connectionType == "modem" )
{
return "Modem";
}
return "Lan";
}
}
catch( e )
{
return "NA";
}
}
function RemoveName()
{
var cookie = getCookie ( "StormPCookie" )
if ( cookie && cookie.length > 0 )
{
cookie= StripCookieValue( cookie , "fstn" );
cookie = StripCookieValue( cookie , "lstn");
document.cookie = "StormPCookie=" + cookie + ";domain=.dell.com";
}
cookie = getCookie ( "lwp" );
if ( cookie && cookie.length > 0 )
{
cookie = StripCookieValue( cookie , "fstn" );
cookie = StripCookieValue( cookie , "lstn");
cookie = StripCookieValue ( cookie , "fn" );
document.cookie = "lwp=" + cookie+ ";domain=.dell.com";
}
}
function StripCookieValue ( inVal , removeVal )
{
if ( !inVal || inVal.length == 0 || !removeVal || removeVal.length == 0 )
{
return inVal;
}
var idx = 0;
var ampIdx = 0;
var semiIdx = 0;
var len = 0;
var repString = "";
idx = inVal.indexOf ( removeVal );
if ( idx > - 1)
{
ampIdx = inVal.indexOf ( "&" , idx );
semiIdx = inVal.indexOf ( ";" , idx);
len = ampIdx ;
if ( len == -1 )
{
len = semiIdx;
}
else if ( semiIdx != -1 && semiIdx < len )
{
len = semiIdx;
}
if ( len > -1 )
{
repString = inVal.substring( idx , len );
}
else
{
repString = inVal.substr( idx );
}
return inVal.replace ( repString , "" ).replace("&&" , "&" ) ;
}
return inVal;
}
function getCookie(NameOfCookie)
{
if (document.cookie.length > 0)
{
begin = document.cookie.indexOf(NameOfCookie+"=");
if (begin != -1)
{
begin += NameOfCookie.length + 1;
end = document.cookie.indexOf(";", begin);
if (end == -1)
{
end = document.cookie.length;
}
return unescape( document.cookie.substring(begin, end));
}
}
return "";
}
function SetCookie (NameOfCookie , value)
{
document.cookie = NameOfCookie + "=" + escape( value ) + ";path=/;domain=dell.com;";
}
function AutoSubmit ( frm )
{
var cookieVal = getCookie ( "autosubmit" );
if ( cookieVal == document.location )
{
var submitForm = window.confirm ( "Resubmit form?");
if ( submitForm )
{
frm.submit();
return;
}
else
{
return;
}
}
SetCookie( "autosubmit" , document.location );
frm.submit();
}
function AutoSubmit2 ( frm, url, freq )
{
var oldAction = frm.action;
frm.action = url;
var cookieVal = getCookie ( "autosubmit" );
if ( cookieVal == document.location )
{
var submitForm = window.confirm ( "Resubmit form?");
if ( submitForm )
{
if( freq == "true" )
{
frm.target = "FreqFormPopup";
var x = window.open( url, "FreqFormPopup", "width=600, height=400, location=yes, menubar=yes, status=yes, toolbar=yes, scrollbars=yes, resizable=yes" );
}
frm.submit();
frm.target = "_self";
frm.action = oldAction;
return;
}
else
{
return;
}
}
SetCookie( "autosubmit" , document.location );
if( freq == "true" )
{
frm.target = "FreqFormPopup";
var x = window.open( url, "FreqFormPopup", "width=600, height=400, location=yes, menubar=yes, status=yes, toolbar=yes, scrollbars=yes, resizable=yes" );
}
frm.submit();
frm.target = "_self";
frm.action = oldAction;
}
function singlechoiceskiplevel( formInput )
{
if( typeof(formInput) != "undefined" )
{
var i = 0;
while ( i < formInput.length )
{
if( formInput[i].value != null && formInput[i].value != "")
{
if( document.getElementById(formInput[i].value) != null )
{
if( formInput[i].selected || formInput[i].checked )
{
document.getElementById(formInput[i].value).style.display = "inline";
}
else
{
document.getElementById(formInput[i].value).style.display = "none";
}
}
}
i++;
}
}
}
function FlashLibrary(){
var t = this;
var activeX = false;
t.ieAutoInstall = false;
t.hasVersion = function(ver){
t.swf = false;
if(!ver) ver = 0;
var n = navigator;
if(n.plugins && n.plugins.length > 0){
var m,tp,d,v;
m = n.mimeTypes;
tp = 'application/x-shockwave-flash';
if(m && m[tp] && m[tp].enabledPlugin && m[tp].enabledPlugin.description){
d = m[tp].enabledPlugin.description;
v = d.charAt(d.indexOf('.')-1);
t.swf = (v >= ver) ? true : false;
}
}else if(n.appVersion.indexOf("Mac") == -1 && window.execScript){
ieFlashObj = null;
activeX = true;
for(var i=ver; i<=10&&i!=1&& ieFlashObj!=true; i++){
execScript('on error resume next: ieFlashObj=IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash'+((i==0)?'':'.'+i)+'"))','VBScript');
if ( ieFlashObj == true )
{
t.swf = true;
break;
}
}
}else{
t.swf = false;
}
return t.swf;
}
t.getPluginTag = function(swfFile,width,height,bgcolor,ver,altFormat,params){
var fixedVer = "";
if( ver == 7)
{
fixedVer = "7,0,0,0";
}
else if( ver > 7 )
{
fixedVer = "8,0,0,0";
}
else
{
fixedVer = "6,0,21,0";
}
var cmHack= swfFile.indexOf ( "cmhack" )> -1;
if ( cmHack )
{
if ( document.location.href.indexOf ( "~bandwidth=Modem" ) == -1 && !t.hasVersion(ver))
{
document.location.href = document.location.href + "&~bandwidth=Modem";
}
}
if ( swfFile.indexOf ( "autoinstall" ) > -1 )
{
t.ieAutoInstall = true;
}
var s = '';
var win = (navigator.appVersion.toLowerCase().indexOf("win")!=-1);
var ie = (navigator.appName=="Microsoft Internet Explorer");
if(t.hasVersion(ver) && swfFile || win && ie && swfFile && t.ieAutoInstall){
var additionalParams = '';
var qPos = swfFile.indexOf ( "?" )
if ( qPos > -1 && qPos + 1 < swfFile.length && ver == 6 )
{
var ta = 'FlashVars';
var v = swfFile.substring ( qPos + 1 );
swfFile = swfFile.substring ( 0 , qPos );
additionalParams += (activeX)?'\t<param name="' + ta + '" value="' + v + '" />\n': ' '+ ta + '="' + v + '"';
}
var hasQuestionMark = swfFile.indexOf( "?" );
if( hasQuestionMark > -1 )
{
swfFile +="&containerURL=" + encodeURIComponent( location.href );
}
else
{
swfFile +="?containerURL=" + encodeURIComponent( location.href );
}
if(activeX){
s = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + fixedVer + '" width="'+width+'" height="'+height+'">\n';
s += '\t<param name="movie" value="'+swfFile+'" />\n';
s += '\t<param name="quality" value="high" />\n';
s += '\t<param name="menu" value="false" />\n';
s += '\t<param name="wmode" value="opaque" />\n';
s += '\t<param name="bgcolor" value="'+bgcolor+'" />\n';
s += additionalParams;
s += altFormat;
s += '</object>\n\n';
return s;
}else{
s = '<embed src="'+swfFile+'" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="opaque" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" bgcolor="'+bgcolor+'"'+additionalParams+'></embed>\n';
return s;
}
}else{
return altFormat;
}
}
}
function FlashLibraryActivate(swfFile,width,height,bgcolor,ver,altFormat,params,movieName){
var t = this;
var activeX = false;
t.ieAutoInstall = false;
t.hasVersion = function(ver){
t.swf = false;
if(!ver) ver = 0;
var n = navigator;
if(n.plugins && n.plugins.length > 0){
var m,tp,d,v;
m = n.mimeTypes;
tp = 'application/x-shockwave-flash';
if(m && m[tp] && m[tp].enabledPlugin && m[tp].enabledPlugin.description){
d = m[tp].enabledPlugin.description;
v = d.charAt(d.indexOf('.')-1);
t.swf = (v >= ver) ? true : false;
}
}else if(n.appVersion.indexOf("Mac") == -1 && window.execScript){
ieFlashObj = null;
activeX = true;
for(var i=ver; i<=10&&i!=1&& ieFlashObj!=true; i++){
execScript('on error resume next: ieFlashObj=IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash'+((i==0)?'':'.'+i)+'"))','VBScript');
if ( ieFlashObj == true )
{
t.swf = true;
break;
}
}
}else{
t.swf = false;
}
return t.swf;
}
t.getPluginTag = function(){
var fixedVer = "";
if( ver == 7)
{
fixedVer = "7,0,0,0";
}
else if( ver > 7 )
{
fixedVer = "8,0,0,0";
}
else
{
fixedVer = "6,0,21,0";
}
var cmHack= swfFile.indexOf ( "cmhack" )> -1;
if ( cmHack )
{
if ( document.location.href.indexOf ( "~bandwidth=Modem" ) == -1 && !t.hasVersion(ver))
{
document.location.href = document.location.href + "&~bandwidth=Modem";
}
}
if ( swfFile.indexOf ( "autoinstall" ) > -1 )
{
t.ieAutoInstall = true;
}
params = " " + params + " ";
var s = '';
var win = (navigator.appVersion.toLowerCase().indexOf("win")!=-1);
var ie = (navigator.appName=="Microsoft Internet Explorer");
if(t.hasVersion(ver) && swfFile || win && ie && swfFile && t.ieAutoInstall){
var additionalParams = '';
var qPos = swfFile.indexOf ( "?" )
if ( qPos > -1 && qPos + 1 < swfFile.length && ver == 6 )
{
var ta = 'FlashVars';
var v = swfFile.substring ( qPos + 1 );
swfFile = swfFile.substring ( 0 , qPos );
additionalParams += (activeX)?'\t<param name="' + ta + '" value="' + v + '" />\n': ' '+ ta + '="' + v + '"';
}
var hasQuestionMark = swfFile.indexOf( "?" );
if( hasQuestionMark > -1 )
{
swfFile +="&containerURL=" + encodeURIComponent( location.href );
}
else
{
swfFile +="?containerURL=" + encodeURIComponent( location.href );
}
if(activeX){
s = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + fixedVer + '" id="'+movieName+'" width="'+width+'" height="'+height+'">\n';
s += '\t<param name="movie" value="'+swfFile+'" />\n';
s += '\t<param name="quality" value="high" />\n';
s += '\t<param name="menu" value="false" />\n';
s += '\t<param name="wmode" value="opaque" />\n';
s += '\t<param name="bgcolor" value="'+bgcolor+'" />\n';
s += additionalParams;
s += params;
s += altFormat;
s += '</object>\n\n';
return s;
}else{
s = '<embed src="'+swfFile+'" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="opaque" type="application/x-shockwave-flash" name="'+movieName+'" width="'+width+'" height="'+height+'" bgcolor="'+bgcolor+'"'+additionalParams+params+'></embed>\n';
return s;
}
}else{
return altFormat;
}
}
}
function RenderFlash()
{
var flashObjects = ParseDivObjects( "flashContentDiv" );
var flashObject;
for( var flashIdx = 0; flashIdx < flashObjects.length; flashIdx++ )
{
var flashObj = eval(flashObjects[flashIdx].innerHTML);
flashObjects[flashIdx].innerHTML = flashObj.getPluginTag();
}
}
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++)
{
var pair = vars[i].split("=");
if (pair[0] == variable)
{
return pair[1];
}
}
}
function GetScreen()
{
this.Width = screen.width;
this.Height = screen.height;
this.AvailableWidth = screen.availWidth;
this.AvailableHeight = screen.availHeight;
this.ColorDepth = screen.colorDepth;
}
function parentNode(elem)
{
if( elem.parentElement )
{
return elem.parentElement;
}
if( elem.parentNode )
{
return elem.parentNode;
}
return null;
}
function DecodeSearch(str)
{
return unescape(decodeURI(str).replace(/\+/g, " "));
}
function AddCartAsync ()
{
addOnLoad ( function (){AsyncXDomainIframeCall( m_pbarPfx + "/pbar/ajax.aspx?~psc=pbar&menus=" + (m_pbarCartEnabled ? "" : "cart") + (m_pbarMAEnabled ? "" : "myaccount"), pbarstripajax );});
}
var m_framesAdded = false;
function AddHiddenFrames ()
{
if ( m_framesAdded )
{
return;
}
var df1 = document.getElementById( "dataiframe_0" );
if ( df1 != null )
{
m_framesAdded = true;
}
m_framesAdded = true;
for ( var i = 0 ; i < 10 ; i++ )
{
var iframeObj = document.createElement("iframe");
iframeObj.id = "dataiframe_" + i ;
iframeObj.style.border='0px';
iframeObj.style.width='0px';
iframeObj.style.height='0px';
iframeObj.src = "javascript:false;";
document.body.appendChild( iframeObj );
}
}
var m_dataIframes = new Array ();
var m_frameIdxs = new Array ();
var m_frameIdx = 0;
function AsyncXDomainIframeCall ( url , callback )
{
if ( typeof ( onloadFired) != "undefined" && !onloadFired )
{
addOnLoad ( function (){ AsyncXDomainIframeCall ( url , callback ) });
return;
}
if ( document.readyState =="loading" || document.readyState =="uninitialized" || document.readyState=="interactive")
{
addOnLoad ( function (){ AsyncXDomainIframeCall ( url , callback ) });
return;
}
AddHiddenFrames();
var iframeObj;
for( n=0;n<m_frameIdxs.length;n++)
{
if( m_frameIdxs[n] == url )
{
iframeObj = m_dataIframes[n];
}
}
if ( iframeObj == null )
{
if( m_frameIdx >= 10 )
{
m_frameIdx = 0;
}
iframeObj = document.getElementById("dataiframe_" + m_frameIdx);
m_dataIframes[m_frameIdx]= iframeObj;
m_frameIdxs[m_frameIdx] = url;
m_frameIdx++;
}
iframeObj.onload = function (){ jasonCallback(iframeObj.id, callback);};
iframeObj.onreadystatechange = function (){ jasonCallback(iframeObj.id, callback);};
var ticks = new Date();
var urlTime = "ts=" + ticks.getSeconds() + ticks.getMilliseconds();
if ( url.indexOf ( "?" )== -1 )
{
url +="?" ;
}
else
{
url +="&";
}
NavigateFrame (iframeObj , url + urlTime );
}
function NavigateFrame (IFrameObj, URL )
{
try
{
if (IFrameObj.contentDocument) {
IFrameDoc = IFrameObj.contentDocument;
} else if (IFrameObj.contentWindow) {
IFrameDoc = IFrameObj.contentWindow.document;
} else if (IFrameObj.document) {
IFrameDoc = IFrameObj.document;
} else {
return true;
}
IFrameDoc.location.replace(URL);
}
catch ( e )
{
IFrameObj.src =URL;
}
return false;
}

function jasonCallback (id , callback )
{
	var iframeObj = document.getElementById(id);
	if ( iframeObj.readyState =="complete" || typeof(iframeObj.readyState) == "undefined" )
	{
		try
		{
			var thingie = new Object();
			var retval = null;
			var txt = null;
			try
			{
				if (iframeObj.contentDocument)
				{
				    thingie.Node = iframeObj.contentDocument.body;
					txt = iframeObj.contentDocument.body.innerHTML;
					if ( txt == "false")
					{
					    return;
					}
				}
				else if (iframeObj.contentWindow)
				{
				    var frmDoc = null;
				    try
				    {
				        frmDoc= iframeObj.contentWindow.document
				    }
				    catch ( e )
				    {
				        return;
				    }
				    thingie.Node = frmDoc.body;
					txt = thingie.Node.innerHTML;
				}
				else if (iframeObj.document) {
				  	thingie.Node =iframeObj.document.body;	
					txt = iframeObj.document.body.innerHTML;
				}
			}
			catch ( e )
		{
		      callback ( thingie );
		    
		}
		    if ( thingie.Node != null &&  thingie.Node.getElementsByTagName ("pre").length>0)
		    {
		        var jasonElm = thingie.Node.getElementsByTagName ("pre")[0] ;
		        eval ( jasonElm.innerHTML )
		        {
		            thingie.Status = "OK";
				    thingie.Response = txt;
				    thingie.JasonObj = retval;
				    callback ( thingie );
		        }
		    }
			else if ( txt.indexOf ( "var" ) == 0 )
			{
				eval ( txt );
				
				thingie.Status = "OK";
				thingie.Response = txt;
				thingie.JasonObj = retval;
				callback ( thingie );
			}
			else
			{
				thingie.Status = "OK";
				thingie.Response = txt;
				callback ( thingie );
			}
		}
		catch( e )
		{
			thingie.Status = "NOTOK";
			thingie.Response = "";
			thingie.Error = e;
			callback ( thingie );
		}
	}
}
function addOnLoad( fn )
{
if ( onloadFired )
{
return;
}
if( window.onload != safeLoad )
{
var oldOnload = window.onload;
var found = false;
for ( cnt = 0; cnt < loaded.length ; cnt ++ )
{
if ( loaded[cnt] == oldOnload )
{
found = true;
break;
}
}
if ( !found )
{
loaded[loaded.length] = oldOnload;
}
window.onload = safeLoad;
}
loaded[ loaded.length ] = fn;
}
function safeLoad()
{
onloadFired = true;
for( var i=0;i<loaded.length;i++ )
{
if( loaded[i] != undefined )
{
loaded[i]();
}
}
}
function getXMLHTTPObj()
{
var obj = false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try { obj = new ActiveXObject( "Msxml2.XMLHTTP" ); } catch( e ){ try { obj = new ActiveXObject( "Microsoft.XMLHTTP" ); } catch( oc ) { obj = false; } }
@end @*/
if( !obj && typeof XMLHttpRequest != "undefined" )
{
try
{
obj = new XMLHttpRequest();
}
catch(e)
{
obj = false;
}
}
if( !obj )
{
return undefined;
}
return obj;
}
function generateUrl( arr )
{
var url = "";
if ( typeof( m_requestURLBase ) != 'undefined' )
{
url = m_requestURLBase + "&i=" + arr.join( "/+" );
}
return url;
}
function tnLink ( anchor )
{
var tnRef = null;
var tnNum = null;
if ( anchor == null )
{
return;
}
var childNodes = anchor.getElementsByTagName( "SUP");
for ( i=0;i<childNodes.length;i++)
{
tnRef = childNodes[i].getAttribute ("tn");
if ( tnRef != null )
{
tnNum= childNodes[i].innerHTML;
}
}
if ( tnNum != null && tnNum.length > 0 && !( /\D/.test( tnNum )) )
{
document.location.href= "#tn" + tnNum;
return;
}
if ( tnRef != null )
{
window.open(m_glossaryURLBase + "?f=" + tnRef,'tnwin','WIDTH=400,HEIGHT=300,RESIZABLE=YES,SCROLLBARS=YES,STATUS=NO,TOOLBAR=NO,LEFT=0,TOP=0');
}
return;
}
var m_tnArray = new Array ();
function tncallback(resp)
{
if( resp != null && resp.status == 200)
{
eval ( resp.responseText.replace( /\r\n/g, '' ) );
if ( m_tnArray.length > 0 )
{
for ( i = 0 ; i < tnArray.length ; i ++ )
{
m_tnArray[ m_tnArray.length ] = tnArray[i];
}
}
else
{
m_tnArray = tnArray;
}
}
var notes = document.getElementsByTagName( "sup" );
var val;
var tnOffset = 0;
var startingnote = document.getElementById( "technotecounter" );
if( startingnote != undefined )
{
tnOffset = parseInt ( startingnote.innerHTML );
if ( isNaN (tnOffset ) )
{
alert ( tnOffset );
tnOffset =0;
}
}
var technotehtml = "";
for( i=0;i<notes.length;i++ )
{
tnRef = notes[i].getAttribute( "tn" );
if ( tnRef == null || tnRef == undefined )
{
continue;
}
for ( j=0;j< m_tnArray.length ;j++ )
{
if ( m_tnArray[j].k == tnRef )
{
notes[i].innerHTML = j+1 + tnOffset ;
break;
}
}
}
for ( i=0;i< m_tnArray.length ;i++ )
{
var tnIndex = i + 1 + tnOffset;
if(m_isRtl)
{
technotehtml += "<div style=\"text-align:right\">";
}
else
{
technotehtml += "<div>";
}
technotehtml += "<a style='color:black;' name='tn" + tnIndex + "'><sup>" + tnIndex + "</sup></a>&nbsp;" + m_tnArray[i].v + "</div><br />";
}
var element = document.getElementById( "footer" );
if( element != undefined )
{
element.innerHTML = technotehtml;
}
element = document.getElementById( "endnotes" );
if( element != undefined )
{
element.innerHTML = technotehtml;
}
}
function ajShow( fid, cid, url )
{
var container = null;
var tabDiv = null;
var tabMode= false;
container = document.getElementById( fid + "_frm");
if ( container == null )
{
tabDiv = document.getElementById("cntTabsCnt");
if ( tabDiv == null )
{
return;
}
container = parentNode (tabDiv);
}
else
{
continer = document.getElementById(cid);
}
if ( container == null )
{
return;
}
if ( container[cid] == "...")
{
return;
}
if ( container[cid] != null )
{
container.innerHTML= container[cid];
inittechnotes(false);
if ( typeof( TTHide ) != "undefined" )
{
TTHide();
}
if ( typeof(InitLexicon) != "undefined" )
{
InitLexicon();
}
findForm();
return;
}
if ( tabDiv != null )
{
tabDiv.style.backgroundColor ="#fbfbfb";
}
var syncObj = getXMLHTTPObj();
if ( syncObj == null || syncObj == undefined )
{
var pos = url.indexOf ( "~wsf");
if ( pos > 0 )
{
url = url.substring( 0 , pos );
}
document.location.href= url;
return;
}
syncObj.open("GET", url , true);
syncObj.onreadystatechange = function(e)
{
if(syncObj != undefined && syncObj.readyState == 4)
{
if(syncObj.status == 200)
{
container.innerHTML= syncObj.responseText;
container[cid] = syncObj.responseText;
inittechnotes(false);
if ( typeof( TTHide ) != "undefined" )
{
TTHide();
}
if ( typeof(InitLexicon) != "undefined" )
{
InitLexicon();
}
findForm();
}
else
{
container[cid] = null;
}
}
}
syncObj.send(null);
}
function findForm()
{
	var formIdx = 0;
	for ( formIdx = 0 ; formIdx < document.forms.length;formIdx ++ )
	{
		var  urlTabs = document.forms[formIdx].action.toLowerCase();
		if(urlTabs.indexOf('~wsf=tabs') !=-1)
		{
			document.forms[formIdx].action = urlTabs.replace("&~wsf=tabs", "");
		}
	}
}
function inittechnotes()
{
inittechnotes( true );
}
function inittechnotes( doit )
{
if( doit )
{
if( arguments.callee.done )
{
return;
}
arguments.callee.done = true;
}
var notes = document.getElementsByTagName( "sup" );
if( notes.length > 0 )
{
var notearr = new Array;
var seen = new Array();
for( i=0;i<m_tnArray.length ;i++ )
{
seen[m_tnArray[i].k]=1;
}
var tnid;
for( z=0;z<notes.length;z++ )
{
tnid = notes[z].getAttribute( "tn" );
if( tnid != undefined && tnid.length > 0 )
{
if( seen[ tnid ] == undefined )
{
seen[ tnid ] = 1;
notearr.push( tnid );
}
}
}
if( notearr.length > 0 )
{
try
{
var tnReq = getXMLHTTPObj();
tnReq.onreadystatechange = function(e){
if(tnReq != undefined && tnReq.readyState == 4)
{
tncallback ( tnReq );
}
}
tnReq.open( "GET", generateUrl( notearr ), true );
tnReq.send( null );
}
catch(e)
{
}
}
else
{
if ( m_tnArray .length > 0 )
{
tncallback ( null );
}
}
}
}
var ajaxavailable = ( getXMLHTTPObj() != undefined );
var xmlreqs = undefined;
if( document.addEventListener )
{
document.addEventListener( "DOMContentLoaded", inittechnotes, null );
}
else
{
addOnLoad( inittechnotes );
}
/* OnlineOpinion (S3t,1424b) */
/* This product and other products of OpinionLab, Inc. are protected by U.S. Patent No. 6606581, 6421724, 6785717 B1 and other patents pending. */
var custom_var,_sp='%3A\\/\\/',_rp='%3A//',_poE=0.0, _poX=0.0,_sH=screen.height,_d=document,_w=window,_ht=escape(_w.location.href),_hr=_d.referrer,_tm=(new Date()).getTime(),_kp=0,_sW=screen.width;_d.onkeypress=_fK;function _fK(_e){if(!_e)_e=_w.event;var _k=(typeof _e.which=='number')?_e.which:_e.keyCode;if((_kp==15&&_k==12))_w.open('https://secure.opinionlab.com/pageviewer/pv_controlboard.html?url='+_fC(_ht),'PageViewer','height=529,width=705,screenX='+((_sW-705)/2)+',screenY='+((_sH-529)/2)+',top='+((_sH-529)/2)+',left='+((_sW-705)/2)+',status=yes,toolbar=no,menubar=no,location=no,resizable=yes');_kp=_k};function _fC(_u){_aT=_sp+',\\/,\\.,-,_,'+_rp+',%2F,%2E,%2D,%5F';_aA=_aT.split(',');for(i=0;i<5;i++){eval('_u=_u.replace(/'+_aA[i]+'/g,_aA[i+5])')}return _u};function O_LC(){_w.open('http://ccc01.opinionlab.com/comment_card.asp?time1='+_tm+'&time2='+(new Date()).getTime()+'&prev='+_fC(escape(_hr))+'&referer='+_fC(_ht)+'&height='+_sH+'&width='+_sW+'&custom_var='+custom_var,'comments','width=535,height=192,screenX='+((_sW-535)/2)+',screenY='+((_sH-192)/2)+',top='+((_sH-192)/2)+',left='+((_sW-535)/2)+',resizable=yes,copyhistory=yes,scrollbars=no')};function _fPe(){if(Math.random()>=1.0-_poE){O_LC();_poX=0.0}};function _fPx(){if(Math.random()>=1.0-_poX)O_LC()};window.onunload=_fPx;function O_GoT(_p){_d.write('<a href=\'javascript:O_LC()\'>'+_p+'</a>');_fPe()}
function doOpionlabs( _p)
{
var metricPath = null;
var metas = document.getElementsByTagName ( "META");
var _lG =pageLang + "-" + pageCnty + ".";
if ( pageLang == "jp" )
{
_lG = "ja-JP.";
}
else if ( pageLang == "en")
{
_lG = "";
}
if ( metas != null )
{
for ( i = 0 ; i < metas.length ; i ++)
{
if ( metas[i].name== "METRICSPATH" )
{
metricPath = metas[i].getAttribute("CONTENT");
if ( metricPath != null && metricPath.length > 9)
{
metricPath = metricPath.substring( 9 );
}
break;
}
}
}
var ssid = getCookie ( "SITESERVER" );
if ( ssid != null && ssid.length > 3 )
{
ssid = ssid.substring ( 3 );
}
custom_var = metricPath + "|" + ssid + "|" + pageSeg;
_rp='%3A//'+_lG;
if ( _p != null )
{
O_GoT(_p);
}
}
function doIPerceptions( ratio , jsFile)
{
		var strURL = document.URL;
		var country = "";
		var language = "";
		var segment = "";
		var department= "";

		country = getQueryVariable("c");
		country = (country==null || country=="") ? "us" : country; 
		language = getQueryVariable("l");
		language = (language==null || language=="") ? "en" : language;
		segment = getQueryVariable("s");
		segment = (segment==null || segment=="") ? "bsd" : segment;

		if (strURL.indexOf("support") != -1)
		{
			segment = "dhs";
			department= "_support";
		}
		else
		{
			department= "";
		}
		var randomNumber = Math.floor((Math.random() * 100));
		if (randomNumber < ratio )
		{
			loadIPScript( jsFile + 'wv359redirect_' + country + '_' + language + "_" + segment + department + '.js');
		}
}
function loadIPScript( path )
{
var head = document.getElementsByTagName("head")[0];
script = document.createElement('script');
script.type = "text/javascript";
script.src = path;
head.appendChild(script);
}
addOnLoad ( psInit);
	function psInit ()
	{
	    if ( pageSeg=="dhs" && pageCnty=="us" )
	    { 
	        var path = m_imgPfx + "/images/global/js/ps.js";
	        //pants
	        var head = document.getElementsByTagName("head")[0];
	        if ( head != null )
	        {
	            try
	            {
		            var script = document.createElement('script');
		            script.type = "text/javascript";
		            script.src = path;
		            head.appendChild(script);
		        }
		        catch( e )
		        {}
		    }
		}
	
	}