var jsfeatures = {

	 links : null,
   
	 init : function() {
	    if (!document.getElementsByTagName) { return; }
			jsfeatures.fields = document.getElementsByTagName('td');
			var contentArea = document.getElementById('content');
			jsfeatures.links = contentArea.getElementsByTagName('a');
			jsfeatures.newWindows();
   },
	 	 	
	 newWindows : function(){
      for (var i=0; i<jsfeatures.links.length; i++){
		     jsfeatures.links[i].onclick = jsfeatures.openWin;
			}
	 },
	 
	 openWin : function() {
      window.open(this.href,"_blank","top=25,left=25,width=500,height=534,scrollbars=1,resizable=1,location=1");
      return false;
   },
	 
	 addEvent : function(obj, type, func) {
      if (obj.addEventListener) {obj.addEventListener(type, func, false);}
      else if (obj.attachEvent) {
         obj["e" + type + func] = func;
         obj[type + func] = function() {obj["e" + type + func] (window.event);}
         obj.attachEvent("on" + type, obj[type + func]);
      }
      else {obj["on" + type] = func;}
   }
}

jsfeatures.addEvent(window, 'load', jsfeatures.init);
