<!--
var dom_browser = (document.getElementById)?true:false;
var ie4_browser = (document.all && !document.getElementById)?true:false;
var old_browser = ( (!dom_browser && !ie4_browser) || (navigator.userAgent.toLowerCase().indexOf("opera") != -1) )?true:false;


var gAnchorHighlighted = "";
var gAnchorSelected    = "";


/***********************************************************************************************************************/
/***********************************************************************************************************************/
/***********************************************************************************************************************/
/***********************************************************************************************************************/

function swf_DisplayFlash(sSWFPath, nWidth, nHeight, sNodeToKill)
{
	var UseFlash = 0;

		
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] )	// Check for Flash version 4 or greater in Netscape
	{
		var plugin = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
		if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1))>=4)
			UseFlash = 1;
	}
	else if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) 		// Assume any Windows IE except for Windows 3.1 supports the OBJECT tag
	{
		UseFlash = 1;
	}

	if (window.gUserAgent && gUserAgent.indexOf("CLICKTRACKS") != -1)
		UseFlash = 0; 

	if (window.location.href.indexOf("swf=no") != -1)
		UseFlash = 0;
	
		
	if ( UseFlash )  // Use Flash player
	{		
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + nWidth + '" + height="' + nHeight + '">\n');
		document.write(' <param name="movie" value="' + sSWFPath + '">\n');
		document.write(' <param name="quality" value="high">\n');
		document.write(' <param name="wmode" value="transparent">\n');
		document.write(' <embed src="' + sSWFPath + '" width="' + nWidth + '" height="' + nHeight + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>\n');
		document.write('</OBJECT>');
		
		if (sNodeToKill)
		{
			var oNode   = document.getElementById(sNodeToKill);
			var oParent = oNode.parentNode;
			
			oParent.removeChild(oNode);
		}
	}
	
	return UseFlash;
}		


/***********************************************************************************************************************/
/***********************************************************************************************************************/
/***********************************************************************************************************************/
/***********************************************************************************************************************/

function hl_Highlight(sID)
{
	var i;		
	
	if (! sID)
		sID = window.location.hash;

	i = sID.indexOf("#");
	if (i == -1)
		return;	
		
	sID = sID.substring(i);
	if (sID == gAnchorSelected)
		return; 
	
	if (document.getElementById(sID))
	{
		hl_UnHighlight(gAnchorHighlighted);
		document.getElementById(sID).className = "AnchorHighlighted";
		gAnchorHighlighted = sID;
	}
}


/*---------------------------------------------------------------------------------------------------------------------*/
function hl_Select(sID)
{
	var i;
	
	if (! sID)
		sID = window.location.hash;
		
	i = sID.indexOf("#");
	
	if (i == -1)
		return;	
		
	sID = sID.substring(i);
	
	if (document.getElementById(sID))
	{
		hl_UnSelect(gAnchorSelected);
		document.getElementById(sID).className = "AnchorSelected";
		gAnchorSelected = sID;
	}
}

/*---------------------------------------------------------------------------------------------------------------------*/
function hl_UnHighlight(sID)
{
	if (! sID)
		sID = gAnchorHighlighted;
		
	if (sID == gAnchorSelected)
		return; 
		
	if (document.getElementById(sID))
		document.getElementById(sID).className = "";
}

/*---------------------------------------------------------------------------------------------------------------------*/
function hl_UnSelect(sID)
{
	if (! sID)
		sID = gAnchorSelected;
		
	if (document.getElementById(sID))
		document.getElementById(sID).className = "";
}



/***********************************************************************************************************************/
/***********************************************************************************************************************/
/***********************************************************************************************************************/
/***********************************************************************************************************************/

/*---------------------------------------------------------------------------------------------------------------------*/
function GetWindowWidth()
{
 if (window.innerWidth)
 	return window.innerWidth;
 else if (document.body && document.body.offsetWidth)
 	return document.body.offsetWidth;
 else return 0;
}


/*---------------------------------------------------------------------------------------------------------------------*/
function GetWindowHeight()
{
 if (window.innerHeight)
 	return window.innerHeight;
 else if (document.body && document.body.offsetHeight)
 	return document.body.offsetHeight;
 else return 0;
}

/***********************************************************************************************************************/
/***********************************************************************************************************************/
/***********************************************************************************************************************/
/***********************************************************************************************************************/

/*---------------------------------------------------------------------------------------------------------------------*/

function l_GetTop(oElement)
{
  if (!old_browser)
    return oElement.offsetTop;
  else
    return false;
}


/*---------------------------------------------------------------------------------------------------------------------*/
function l_GetLeft(oElement)
{
  if (!old_browser)
    return oElement.offsetLeft;
  else
    return false;
}

/*---------------------------------------------------------------------------------------------------------------------*/
function l_GetWidth(oElement)
{
  if (!old_browser)
    return oElement.offsetWidth;
  else
    return false;
}

/*---------------------------------------------------------------------------------------------------------------------*/
function l_GetHeight(oElement)
{
  if (!old_browser)
    return oElement.offsetHeight;
  else
    return false;
}

/*---------------------------------------------------------------------------------------------------------------------*/
function l_GetObject(sLayer)
{
  if (dom_browser)
    return document.getElementById(sLayer);
  if (ie4_browser)
    return document.all[sLayer];

  return false;
}

/***********************************************************************************************************************/
/***********************************************************************************************************************/
/***********************************************************************************************************************/
/***********************************************************************************************************************/

/*---------------------------------------------------------------------------------------------------------------------*/
function l_Display(oLayer, nOffsetX, nOffsetY, nWidth, nHeight)
{
  if (oLayer)
  {
    if (nOffsetY)
    {
       if (nOffsetY >=0)
           oLayer.style.top     = nOffsetY;
       else
           oLayer.style.bottom  = -nOffsetY;        
    }

    if (nOffsetX)
    {
      if (nOffsetX >=0)
          oLayer.style.left    = nOffsetX;
      else
          oLayer.style.right   = -nOffsetX;        
    }

    if (nWidth)
      oLayer.style.width    = nWidth;

    if (nHeight)
      oLayer.style.height    = nHeight

    oLayer.style.zIndex = 5;
    oLayer.style.visibility = "visible";
  }
}

/*---------------------------------------------------------------------------------------------------------------------*/
function l_Hide(oLayer)
{
  if (oLayer)
    oLayer.style.visibility = "hidden";
}

/*---------------------------------------------------------------------------------------------------------------------*/
function l_Enable(oLayer)
{
  if (oLayer)
    oLayer.style.visibility = "visible";
}

/*---------------------------------------------------------------------------------------------------------------------*/
function l_Disable(oLayer)
{
  if (oLayer)
    oLayer.style.visibility = "hidden";
}


//-->
