<!--
var bShowBanners = true;
var sTitlePrefix = document.title;
var adTag = "hp"; // Change this value to "hp" on launch.
var adOrd = Math.floor(Math.random()*88888888)+10000000;
//
function jsFocusFlash() {
  var bIsMicrosoft = navigator.appName.indexOf("Microsoft") != -1;
  var element = document.getElementById(content_id);
  element.focus();
}
//
function jsScrollTo(ops) {
  window.scroll(0, arguments[0].nScroll);
}
//
function jsScrollBy(ops) {
  window.scrollBy(0, arguments[0].nScrollAmount);
}
//
function jsInitialiseOnScroll() {
  window.onscroll = function () {
    var nScrollY = 0;
    if (typeof(window.pageYOffset) == "number") {
      // Netscape compliant.
      nScrollY = window.pageYOffset;
    } else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) {
      // DOM compliant.
      nScrollY = document.body.scrollTop;
    } else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
      // IE6 standards compliant mode.
      nScrollY = document.documentElement.scrollTop;
    }
    var o = new Object();
    o.nScrollY = nScrollY;
    jsThisMovie(content_name).OnScrollCallback(o);
  }
}
//
function jsGetClientHeight() {
  var clientHeight = document.body.clientHeight;
  return(clientHeight);
}
//
function jsShowTopBanner(ops) {
  var sDisplay = (ops.bShow == false) ? "none" : "block";
  //
  var divBanner1 = document.getElementById("divBanner1");
  //
  divBanner1.style.display = sDisplay;
  //
  divBanner1.innerHTML = null;
  //
  if (ops.bShow == true && bShowBanners) {
    
	var sBanner1HTML = "";
    sBanner1HTML = NickAdAPI.NickAdTag( 1 );
    
    divBanner1.innerHTML = sBanner1HTML;
  }
}
//
function jsShowVerticalBanners(ops) {
  /**
   * This shows the 300x250 advertisement.
   * 
   */
  var sDisplay = (ops.bShow == false) ? "none" : "block";
  //
  var divBanner2 = document.getElementById("divBanner2");
  //200906: Banner 3 was removed in GSHOC 
  //var divBanner3 = document.getElementById("divBanner3");
  //
  divBanner2.style.display = sDisplay;
  //divBanner3.style.display = sDisplay;
  //
  divBanner2.innerHTML = null;
  //divBanner3.innerHTML = null;
  //
  if (ops.bShow == true && bShowBanners) {
    var sBanner2HTML = "";
    sBanner2HTML = NickAdAPI.NickAdTag( 2 );
    divBanner2.innerHTML = sBanner2HTML;
    //
    //var sBanner3HTML = "";
    //sBanner3HTML = NickAdAPI.NickAdTag( 7 );
    //divBanner3.innerHTML = sBanner3HTML;
  }
}
//
function jsSetBackground(ops) {
  var styles = document.body.style;
  if (ops.sImage) styles.backgroundImage = "url(img/bkg/"+ops.sImage+")";
  if (ops.sRepeat) styles.backgroundRepeat = ops.sRepeat;
  if (ops.sAttachment) styles.backgroundAttachment = ops.sAttachment;
  if (ops.sColor) styles.backgroundColor = ops.sColor;
  if (ops.sPosition) styles.backgroundPosition = ops.sPosition;
}
//
function jsSetTitle(ops) {
  var sText = "";
  var sError = "ERROR! 'jsSetTitle()' called without a value for 'sText'";
  sText = (ops.sText) ? (ops.bAppend) ? sTitlePrefix+" - "+ops.sText : ops.sText : sError;
  document.title = sText;
}
//
function jsGetLocation() {
  var sLocationURL = location.href;
  return sLocationURL;
}
//
function jsResizeFlash () {
  var nWidth = arguments[0].nWidth ? arguments[0].nWidth : null;
  var nHeight = arguments[0].nHeight ? arguments[0].nHeight : null;
  //
  var divFlash = document.getElementById("divFlash");
  divFlash.style.margin = "0 auto";
  divFlash.style.position = "relative";
  if (nWidth) divFlash.style.width = nWidth;
  if (nHeight) divFlash.style.height = nHeight;
  //
  if (nHeight && nWidth) {
    var sResponse = "'jsResizeFlash' resized '"+divFlash.id+"' to width='"+nWidth+"' and height='"+nHeight+"'.";
  } else if (nWidth && !nHeight) {
    var sResponse = "'jsResizeFlash' resized '"+divFlash.id+"' to width='"+nWidth+"'.";
  } else if (!nWidth && nHeight) {
    var sResponse = "'jsResizeFlash' resized '"+divFlash.id+"' to height='"+nHeight+"'.";                             
  } else {
    var sResponse = "'jsResizeFlash' did not resize anything (no values passed).";
  }
  return(sResponse);
}
//
function jsThisMovie() {
  var sMovieName = arguments[0];
  var bIsMicrosoft = navigator.appName.indexOf("Microsoft") != -1;
  return((bIsMicrosoft) ? window[sMovieName] : document[sMovieName]);
}
//
function jsCallFlashFunction() {
  var sResponse = "This is a message from 'jsCallFlashFunction'.";
  jsThisMovie("swf").fnInsideFlash(sResponse);
}
//
function jsAlertPageProps() {
  var sNL = "\n";
  var sHR = "--------------------------------"+sNL;
  var sAlert = sHR;
  if (document.body.clientWidth) {
    sAlert += "document.body.clientWidth = "+document.body.clientWidth+sNL;
    sAlert += "document.body.clientHeight = "+document.body.clientHeight+sNL;
    sAlert += sHR;
  }
  if (document.body.offsetWidth) {
    sAlert += "document.body.offsetWidth = "+document.body.offsetWidth+sNL;
    sAlert += "document.body.offsetHeight = "+document.body.offsetHeight+sNL;
    sAlert += sHR;
  }
  if (window.innerWidth) {
    sAlert += "Window.innerWidth = "+window.innerWidth+sNL;
    sAlert += "Window.innerHeight = "+window.innerHeight+sNL;
    sAlert += sHR;
  }
  if (window.outerWidth) {
    sAlert += "Window.outerWidth = "+window.outerWidth+sNL;
    sAlert += "Window.outerHeight = "+window.outerHeight+sNL;
    sAlert += sHR;
  }
  if (document.getElementsByTagName) {
    sAlert += "document.getElementsByTagName('body')[0].offsetWidth = "+document.getElementsByTagName('body')[0].offsetWidth+sNL;
    sAlert += "document.getElementsByTagName('body')[0].offsetHeight = "+document.getElementsByTagName('body')[0].offsetHeight+sNL;
    sAlert += sHR;
  }
  if (document.documentElement) {
    sAlert += "document.documentElement.offsetWidth = "+document.documentElement.offsetWidth+sNL;
    sAlert += "document.documentElement.offsetHeight = "+document.documentElement.offsetHeight+sNL;
    sAlert += sHR;
  }
  alert(sAlert);
}
-->