function checkSelected() 
{
if (document.myForm.selection.value == "page1") {
if (document.getElementById("loginIntroText"))
{ document.getElementById("loginIntroText").style.display = "none";}
if (document.getElementById("loginFields"))
 {document.getElementById("loginFields").style.display = "block";}
if (document.getElementById("loginSubmit"))
 {document.getElementById("loginSubmit").style.display = "block";}
if (document.getElementById("goButton"))
 {document.getElementById("goButton").style.display = "none";}
    }
      

}
navManager = function() {
if(document.getElementById("navContainer")){
sfHover("navContainer","UL LI"," navHover"," navHoverOff", "selected");
}
if(document.getElementById("subNav")){
sfHover("subNav","UL LI"," subNavHover"," subNavHoverOff", "selected");
}
if(document.getElementById("leftNav")){
sfHover("leftNav","UL LI"," leftNavHover"," leftNavHoverOff", "subSelected");
}
if(document.getElementById("leftNav")){
sfHover("leftNav","DIV"," leftNavHover"," leftNavHoverOff", "leftSelected");
}
 
$j("#subNav>ul>li>ul").bgiframe();
 
}
function setHover(nav) {
var ieULs = nav.getElementsByTagName('ul');
for (j=0; j<ieULs.length; j++) { 
ieULs[j].innerHTML = ('<iframe src="about:blank" scrolling="no" frameborder="0" style="filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);"></iframe>' + ieULs[j].innerHTML);
var ieMat = ieULs[j].firstChild;
ieMat.style.width=ieULs[j].offsetWidth+"px";
ieMat.style.zIndex="-1";
ieULs[j].style.zIndex="101";
}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0 
  window.open(theURL,winName,features); 
}
if ( $j.browser.msie ) 
{ 
window.attachEvent("onload", navManager); 
}

imageArray=new Array();
numImages=new Array();
currentImage=new Array();
 
function switchImage(imgname)
{
document[imgname].src=imageArray[imgname+(currentImage[imgname]+1)];
currentImage[imgname]=(currentImage[imgname]+1)%numImages[imgname];
setTimeout("switchImage(\""+imgname+"\")",5000);
}
 
function imgRollover(loadImg, onImg)
{
if (! loadImg.outImg)
{
loadImg.outImg = new Image();
loadImg.outImg.src = loadImg.src;
loadImg.onmouseout=img_mouseOut;
 
loadImg.overImg = new Image();
loadImg.overImg.src = onImg
loadImg.onmouseover=img_mouseOver;
}
}
     
function img_mouseOut()  {this.src = this.outImg.src;}
     
function img_mouseOver() {this.src = this.overImg.src;}
function showDiv(id)
{
document.getElementById(id).style.display="block";
}
 
function hideDiv(id)
{
document.getElementById(id).style.display="none";
}
 
currentemail=0;
function email_link()
{
  if (currentemail==0)
  {
hideDiv("bodyContent");
showDiv("emailContent");
currentemail=1;
  }
  else
  {
showDiv("bodyContent");
hideDiv("emailContent");
currentemail=0;
  }
}
 
function openWin( url, w, h, x, y) {
    msgWindow = window.open('','newWin','width=' + w + ',height=' + h + ',screenX=' + x + ',screenY=' + y + ',top=' + x + ',left=' + y + ',scrollbars=yes,menubar=yes,resizable=yes,toolbar=yes,location=yes,status=yes');
    msgWindow.location.href = url;
if (window.focus) {msgWindow.focus()}
return false;
}
 
function redirectWin( url ) {
    window.location.href = url;
    return false;
}

$j(document).ready(function() {
if ( $j.browser.msie )
{
document.execCommand("BackgroundImageCache", false, true);
 
var crHeight = $j( "#contentRight" ).height();
if ( crHeight < 400 )
{
$j( "#contentRight" ).height( 410 );
}
else
{
var heightVal = $j( "#globalNav" ).height() + $j( "#logoSearch" ).height() + $j( "#navContainer" ).height() + $j( "#subNav" ).height() + $j( "#containerbg" ).height();
if ( heightVal < 530 )
{
var newHeight = 530 - heightVal;
$j( "#contentRight" ).height( $j( "#containerbg" ).height() + newHeight );
}
}
}
 
$j( "div#leftNav>div#leftSelected" ).children().wrapAll( "<div id='indent'></div>" );
$j( "div#leftNav>div>a" ).wrap( "<div id='indent'></div>" );
 
$j( "div#leftNav>div:first" ).addClass("firstNode");
 
 
});
 