<!--
//Copyright year
var cpYear = '2008';

//Precache navigation images
if (document.images) {
    var imagename = new Array("home", "net", "biz", "hphone", "mobile", "softools", "mcenter", "cart");
    loc = "http://w.eimg.net/i/nav06/";
    var imgOn = new Array(imagename.length);
    var imgOff = new Array(imagename.length);
    for(var i = 0; i < imagename.length; i++)
    {
      imgOn[imagename[i]] = new Image();
      imgOn[imagename[i]].src = loc+imagename[i]+"_on.gif";
      imgOff[imagename[i]] = new Image();
      imgOff[imagename[i]].src = loc+imagename[i]+"_off.gif";
    }
}

//Main nav submenu on
function show(object,img) {
  if (document.getElementById) {
    if (object != '') {
      document.getElementById(object).style.visibility = 'visible';
    }
    if (document.images && img != '') {
      document[img].src = imgOn[img].src;
    }
  }
}

//Main nav submenu off
function hide(object,img) {
  if (document.getElementById) {
    if (object != '') {
      document.getElementById(object).style.visibility = 'hidden';
    }
    if (document.images && img != '' && document.getElementById(img).className != 'on') {
      document[img].src = imgOff[img].src;
    }
  }
}


function showDiv( ID )
{
  var elem;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( ID );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[ID];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[ID];
  elem.style.display = 'block';
}

function hideDiv( ID )
{
  var elem;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( ID );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[ID];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[ID];
  elem.style.display = 'none';
}

if(navigator.appName.indexOf("Microsoft") > -1) {
	var canSee = 'block'
} else {
	var canSee = 'table-row';
}

function showAnim(id) {
	obj = document.getElementById(id);
	obj.style.display = canSee;
}

//Global Google Search Link ID
function setLinkId(){
    var linkid = -1;
    if(document.global_search.area.value == "earthlink-ss"){
      linkid = "1010729";
    }
    else {
      linkid = "1010730";
    }
      s_linkType="o";
      s_linkName="WWW";
      s_eVar18= document.global_search.q.value;
      s_lnk=s_co(true);
      s_gs(OmServer);
      document.global_search.linkid.value = linkid;
}

//Cookie functions
function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}

function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

//Sized Popup window
function wOpener(url, name, h, w, pram) {
  if(pram == '') {
    var args = 'width='+h+',height='+w+',toolbar=no,location=no,resizable=no,directories=no,status=no,menubar=no,scrollbars=no,x=200,y=300';
  } else {
    var args = 'width='+h+',height='+w+','+pram;
  }
  if (typeof(popupWin) != "object"){
    popupWin = window.open(url,name,args);
  } else {
    if (popupWin.closed){ 
      popupWin = window.open(url,name,args);
    }
  }
  popupWin.focus();
  return false;
}

//Omniture link setup
var OmServer = "";
if (document.location.href.indexOf('tiger.') > 0) {
  OmServer = "earthlnkdev";
} else {
  OmServer = "earthlnkcom";
}
//Standardize custom link href tracking
function cLT(l) {
  var h = new String(l);
  if (h.indexOf('//') != -1) {
    var i = h.split('//');
    if(h.indexOf('earthlink.net') == -1 && h.indexOf('earthlink.com') == -1) {
      var url = i[1].split('/');
      return url[0];
    }
  }
  return i[1];
}

// Function URL parameter 
function getURLParam(strParamName){
  var strReturn = "";
  var strHref = window.location.href;
  if ( strHref.indexOf("?") > -1 ){
    var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase();
    var aQueryString = strQueryString.split("&");
    for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
      if (
aQueryString[iParam].indexOf(strParamName.toLowerCase() + "=") > -1 ){
        var aParam = aQueryString[iParam].split("=");
        strReturn = aParam[1];
        break;
      }
    }
  }
  return unescape(strReturn);
}

//-->