if((typeof shns)=='undefined'){var shns=true;}else if(shns==null){shns=true;}
function openMenuHN(){}
function closeMenuHN(){}

var staticDomain='';
if((typeof window.nSP)=='undefined'||nSP==null){var nSP='';}
if(nSP==''){staticDomain='http://s.wsj.net'};

document.write('<script type="text/javascript" language="javascript" src="'+nSP+staticDomain+'/javascript/HorizontalNavigationFunctions_new.js" charset="ISO-8859-1"></script>')

if(horNav){
  var overHNOpen = false;
  var overHNTab = false;
  var openHNtab = null;
  var openHNtabIndex = null;
  var tmpHTML = ""
  var dwnarrowimguri= "http://s.wsj.net/img/arrowNav.jpg"
  var barlineimguri= "http://s.wsj.net/img/navDivider02.jpg"
  
  var openHSection = null;
  var openSectionFound = false
  tmpHTML+= '<table cellpadding="0" cellspacing="0" border="0" style="border-top:1px solid #DCE1E6; background-image: url(http://s.wsj.net/img/bottomRowBackground.jpg); background-repeat: repeat-x; height:26px;">'
  for(s=0;s<horNav.length;s++){
    var isOpenSection = (("|"+horNav[s].pIDs+"|").indexOf("|"+pID+"|")>-1)
    isOpenSection=(isOpenSection&&!openSectionFound)
    if(isOpenSection){
      openHNtabIndex=s
      openHSection=s
    }

    var horNavWidth = horNav[s].width;
    if (!horNavWidth) horNavWidth = '';

    if(s==0)
      tmpHTML+= '<tr><td><img src="http://s.wsj.net/img/b.gif" width="10" height="15" alt="" /></td>'
    else
      tmpHTML+= '<td style="padding-right:12px;"></td><td style="background-image: url('+barlineimguri+');background-repeat:repeat-x;" ><img src="http://s.wsj.net/img/b.gif" width="2" height="15" alt="" /></td><td style="padding-right:12px;"></td>'

    tmpHTML+= '<td ><div id="hntab'+s+'" style="background-image: url('+dwnarrowimguri+'); background-repeat: no-repeat; background-position: right 49%;font-family: Arial, Helvetica, sans-serif;font-size: 13px;font-weight: regular;text-align: left;padding:1px 12px 2px 0px;width:'+horNavWidth+'; font-weight:bold; color: #'+((isOpenSection)?"990000;":"000000;")+'cursor:pointer;"'
    var tempHref = ((nSP)?nSP:((document.domain)?"http://"+document.domain:""))+horNav[s].href+'?mod=topnav_'+pID.replace('\'','')
    if(horNav[s].subnav.length>0) {
        if (typeof suppressNavPopup == 'undefined' || typeof suppressNavPopup != 'undefined' && !suppressNavPopup) {
	      tmpHTML+= ' onmouseover="status=\''+tempHref+'\';OverBar=false;HideNav();openMenuHN('+s+');overHNTab=true" onmouseout="status=\'\';closeMenuHN('+s+');overHNTab=false'
        }
	
	if(isOpenSection) {
		tmpHTML+= ';this.style.color=\'#990000\';'
	} 
	tmpHTML+= '" '
	tmpHTML+= ' onclick="window.location=\''+tempHref+'\'" '
	    
    } else {
      tmpHTML+= ' onmouseover="status=\''+tempHref+'\';OverBar=false;HideNav();closeMenuHN(openHNtabIndex);this.style.color=\'#990000\';" ' + ((!isOpenSection)?'onmouseout="status=\'\';this.style.color=\'#000000\'" ':'' )
      tmpHTML+= ' onclick="window.location=\''+tempHref+'\'" '
    }
    tmpHTML+= '>'+horNav[s].name+'</div></td>'
    //if(s==(horNav.length-1))
    //  tmpHTML+= '<td style="" width="6" height="6"><img src="http://s.wsj.net/img/b.gif" width="1" height="6" alt="" /></td></tr>'
    if(isOpenSection)
      openSectionFound = true;
  }

  tmpHTML+= '<td style="padding-right:12px;"><img src="http://s.wsj.net/img/b.gif" width="1" height="15" alt="" /></td><td style="background-image: url('+barlineimguri+');background-repeat:repeat-x; width:2px;" ><img src="http://s.wsj.net/img/b.gif" width="2" height="15" alt="" /></td>'
  
  tmpHTML+= '<td><img src="http://s.wsj.net/img/b.gif" width="42" height="1" alt="" /></td>'  
  
  tmpHTML+= '</tr>';
 
  tmpHTML+= '</table>'
  tmpHTML+= '<div id="hnpopup" style="display:none;position:absolute; width:1px; height:1px; z-index:100; left: 300px; top: 300px; visibility: hidden;" onmouseover="overHNOpen=true" onmouseout="overHNOpen=false"></div>'
  document.write(tmpHTML)
}

