function processLinks() {


 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   


   if (anchor.getAttribute("href")) {
     var anchor_rel = anchor.getAttribute("rel");
	 
	 if (anchor_rel == "new-win"  || anchor_rel == "new-win nofollow")
       anchor.target = "_blank";

     if (anchor_rel == "p-popup"  ||  anchor_rel == "p-popup nofollow") {
       anchor.onclick = function () { return ppop (this.href) };
     } else if (anchor_rel == "popup" || anchor_rel == "popup nofollow") {
       anchor.onclick = function () { return pop (this.href) };
     }
   }
 }
}
window.onload = processLinks;

function linkClicked() {
  pageTracker._trackEvent("AIDA", "User Action", "Clicked a Link", 100);
  return false;
}

function getPageName() {
  var pagePath = window.location.pathname;
  var pageName = pagePath.substring(pagePath.lastIndexOf('/') + 1);
  return (pageName);
}

function getPagePath () {
  var pagePath = window.location.pathname;
  return (pagePath);
}

function pop (url) {
  linkClicked();
  newwindow=window.open(url,'name','height=550,width=540');
  if (window.focus) {newwindow.focus()}
  return false;
}


function ppop (url) {
  linkClicked();
  newwindow=window.open(url,'name','height=550,width=540');
  if (window.focus) {newwindow.focus()}
  return false;
}
