// Code of navigation.js

function sfHover() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	
	for (var i=0; i<sfEls.length; i++) { 
		sfEls[i].onmouseover=function() {
			if(!this.className.match("nav-home")){
			   	if(this.firstChild.nodeName == 'UL') {
					this.firstChild.style.left = 'auto';
				}
			}
		} 
		sfEls[i].onmouseout=function() { 
			this.firstChild.style.left = '-999';
			}
		sfEls[i].onunload=function() {
			sfEls[i].onmouseover = null;
			sfEls[i].onmouseout = null;
		}
	}
	sfEls = null;
	
}	

if(checkIt('msie')){
	Event.addEvent(window,"load",sfHover);
}

var homeImage = new Image();
homeImage.src = "img/global/header/nav-home-on.gif";



//Code of tracking.js

function recordClientSideClick(actionName, isFormSubmitting, strUrl) {
	/*
 	_hbPageView(hbx.pn+'@action='+actionName, hbx.mlc);
	 if (strUrl == null || strUrl == undefined || strUrl == "undefined" || strUrl == '' || strUrl == "null"

){

	} else {

		window.location = strUrl;

	}
*/
}

function recordFlashClick(actionName, isFormSubmitting, strUrl) {
	
 	_hbLink(actionName);
	//alert('test2' + actionName);
	 if (strUrl == null || strUrl == undefined || strUrl == "undefined" || strUrl == '' || strUrl == "null"){
	} else {
		window.location = strUrl;
	}
}


function recordFormSubmit(paramString) {

	_hbPageView(hbx.pn+'?'+paramString, hbx.mlc);

}

function recordLink(link)

{

  var id = link.id;

  var count = 0;

  var linkCount = document.links.length;

  for (i=0; i<linkCount; i++)

  {

    var thisLink = document.links[i];

    if (thisLink.id == id)

      count++;

    if (thisLink==link)

    {

      recordClientSideClick(id+'-'+count,false);

      break;

    }

  }

}

if (typeof(initGlossary) == "function") {
	Event.removeEvent(window,"load", initGlossary);
	Event.addEvent(window,"load", initGlossary);
}