<!--
var isNS = navigator.appName.toUpperCase().indexOf("NETSCAPE") != -1;
var isIE = navigator.appName.toUpperCase().indexOf("MICROSOFT") != -1;

function getCookieVal (offset) 
{
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
    return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) 
  {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
      i = document.cookie.indexOf(" ", i) + 1;
      if (i == 0) break; 
  }
  return null;
}  
function SetCookie (name, value) {
  var argv = SetCookie.arguments;
  var argc = SetCookie.arguments.length;
  var expires = (argc > 2) ? argv[2] : null;
  var path = (argc > 3) ? argv[3] : null;
  var domain = (argc > 4) ? argv[4] : null;
  var secure = (argc > 5) ? argv[5] : false;
  document.cookie = name + "=" + escape (value) +
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
	((path == null) ? "" : ("; path=" + path)) +
	((domain == null) ? "" : ("; domain=" + domain)) +
	((secure == true) ? "; secure" : "");
}
function SetExpired (name) {
  var expdate = new Date();
  expdate.setTime(expdate.getTime() - (24 * 60 * 60 * 1000));
  GetCookie(name);
  SetCookie(name, "expired", expdate);
}
function DeleteCookie(name) {
  var exp = new Date();
  FixCookieDate (exp); 
  exp.setTime (exp.getTime() - 1); 
  var cval = GetCookie (name);
  if (cval != null)
    document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
// access a CSS property
function getStyle(obj, style){
   if(!document.getElementById) return;
     var obj = getRef(obj);
     var value = obj.style[style];
  	 if(!value)
         if(document.defaultView)
  	         value = document.defaultView.
  	 	            getComputedStyle(obj, "").getPropertyValue(style);
         else if(obj.currentStyle)
  	         value = obj.currentStyle[style];
     return value;
}
function getRef(obj){
	if(typeof obj == "string")
		obj = document.getElementById(obj);
	return obj;
}
function getRefByName(obj){
	if(typeof obj == "string")
		obj = document.all.item("swfpromo");
	return obj;
}
function showHideObject(param, objName) {
	// param == 1 -> show, param == 0 -> hide
	var args = showHideObject.arguments;
	if (args.length == 0) return true;
	var showhide = "visible";
	if (param == 1) {
		if(navigator.appName.toUpperCase().indexOf("MICROSOFT") > -1) {
			showhide = 'visible';
		}
		else { // netscape
			showhide = "show";
		}
	}
	else {
		if (navigator.appName.toUpperCase().indexOf("MICROSOFT") > -1) {
			showhide = 'hidden';
		}
		else { // netscape
			showhide = "hide";
		}
	}
	var obj = getRefByName(objName);
	if (obj != null){
   		if (obj.length != null){
			// multiple object
      		for (i=0; i<obj.length; i++) {
         		obj[i].style.visibility = showhide;
			}
      	}
		else {
			// single object
       		obj.style.visibility = showhide;			
		}
   	}
   	else return;
}
function openLocation(uri)
{
	msgWindow=window.open(uri,"imageWindow","toolbar=yes,location=yes,directories=no,status=yes,scrollbars=yes,resizable=yes,resize=yes,menubar=yes");
	scr_x=screen.width;
	scr_y=screen.height;
	loc_x=(scr_x)*0.5 - 600*0.5;
	loc_y=(scr_y)*0.5 - 600*0.5;
}
function download(fName, mid, lid) {
	navigate("download?fileName="+fName+"&iMultId="+mid+"&iLocId="+lid);
}  
function doSearch(aform) {
	aform.action = "SearchResult.jsp";
}
function doAdvSearchN(aform)
{
	aform.action = "SearchResult.jsp";
	document.advanceFrm.submit();
}
function KeySearch(evt, aform) {
	var charCode = (navigator.appName == "Netscape") ? evt.which : evt.keyCode;
	if (charCode == 13) {
		doSearch(aform);
	}
}
function goNowhere()
{
	return;
}
function goSite(aform, lnk)
{
    var argv = goSite.arguments;
    var argc = goSite.arguments.length;
    var lid = (argc > 2) ? argv[2] : null;
	if (lid != null) {
		aform.action = lnk+"?locale="+lid;
	}
	else {
		aform.action = lnk;
	}
	aform.submit();
}
function viewList(aform, cid, lid) {
    if (isNS) {
		aform.action = "ContentListN.jsp?iCategoryId="+cid+"&locale="+lid;
    }
    else {
		aform.action = "ContentList.jsp?iCategoryId="+cid+"&locale="+lid;
    }
    aform.submit();
}
function goHome(lid)
{
	document.defaultFrm.action = "index.jsp?locale="+lid;
	document.defaultFrm.submit();	
}
function viewCategory(aform, cid, lid)
{
    if (isNS) {
		aform.action = "CategoryN.jsp?iCategoryId="+cid+"&locale="+lid;
    }
    else {
		aform.action = "Category.jsp?iCategoryId="+cid+"&locale="+lid;
    }
    aform.submit();	
}
function viewSubCategory(aform, cid, lid)
{
    if (isNS) {
		aform.action = "SubCategoryN.jsp?iCategoryId="+cid+"&locale="+lid;
    }
    else {
		aform.action = "SubCategory.jsp?iCategoryId="+cid+"&locale="+lid;
    }
    aform.submit();	
}
function viewHelp(catid) 
{
	aform = document.helpFrm;
	lid = aform.locale.value == null ? "1" : aform.locale.value;
	aform.action = "Help.jsp?locale="+lid+"&iCategoryId="+catid;
	aform.submit();
}
function viewArticle(aform, cid, catid, clid, lid) 
{
	//aform.iCategoryId.value = catid;
	aform.action = "Article.jsp?id="+cid+"&catid="+catid+"&lid="+clid+"&locale="+lid;
	aform.submit();
}
function viewArticleDirect(cid, clid) 
{
	aform = document.headerFrm;
	catid = aform.iCategoryId.value;
	lid = aform.iLocaleId.value;
	aform.action = "Article.jsp?id="+cid+"&catid="+catid+"&lid="+clid+"&locale="+lid;
	aform.submit();
}
function openWindowSearch(imageName) {
	msgWindow=window.open(imageName,"imageWindow","toolbar=no,width=592,height=500,directories=no,status=yes,scrollbars=yes,resizable=yes,resize=yes,menubar=yes");
}
function viewPrintable(cid, catid, lid)
{
	openWindowSearch("Printable.jsp?id="+cid+"&catid="+catid+"&locale="+lid);	
}
function goChar(aform, firstChar, lid)
{
	aform.action = "Glossary.jsp?sFirstChar="+firstChar+"&locale="+lid;
	aform.submit();
}
function adjustLocale(combo)
{
	document.homeFrm.action = "index.jsp?locale="+combo.value;
	document.homeFrm.iLocaleId.value = combo.value;
	document.homeFrm.submit();
}
//-->