/*
* Instadia default tracking variables
*/

var CSid = '011DP';		// Customer ID

/*
* Instadia specials setup variables...
*/

var CSdl = true;		// Boolean switch to turn off/on (false/true) tracking of File Downloads
var CSlt = false;		// Boolean switch to turn off/on (false/true) using the link text instead of the filename as tracking title
var CSel = true;		// Boolean switch to turn off/on (false/true) tracking of Exit Links
/*
* Instadia Instant Survey setup variables
*/


var CSsid    = '011DQ';		// Instant Survey Account
var CSenable = true;		// Set to false to disable all tracking + Instant Survey
var CSsu     = true;		// Enable Instant Survey. If not set Default is false.

function getText( element ) {
  var innerText = "";
  for( var i = 0; i < element.childNodes.length; ++i ) {
    var c = element.childNodes[i];
    switch( c.nodeType ) {
      case 1 : innerText += getText( c ); break;
      case 3 : innerText += c.nodeValue; break;
      default: innerText += " ";
    }
  }
  innerText = innerText.replace( /^\s*/, "" );
  innerText = innerText.replace( /\s*$/, "" );
  innerText = innerText.replace( /\s+/g, " " );
  return innerText;
}

// (C)opyright Instadia A/S 2000-2006, @author: Thomas Loejmann Joergensen

var ics_syntheticTitle = document.location.toString();

if( typeof document.getElementById != "undefined" ) {
  var ics_h1 = document.getElementsByTagName( "div" );
  
  if( ics_h1 != null ) {

    for( icsi = 0; icsi < ics_h1.length; icsi++ ) {
      if( ics_h1[icsi].className == "bcrump-path" ) {
	  ics_syntheticTitle = getText(ics_h1[icsi]);
          break;
      }
    }
  }
}