function addEvent(source, type, callback) {
    if (source.addEventListener){
    source.addEventListener(type, callback, false);
    return true;
  } else if (source.attachEvent){ 	
    var r = source.attachEvent("on"+type, callback);
    return r;
  } else {        	
    eval('source.on' + type + '= callback') ;
  }
}
function getStandardEvent(e) {
 if (e == null && window.event) {
      e = window.event ;
 }
 if (e.target == null && e.srcElement) {
  
   e.target = e.srcElement ;
 }
 if (! e.preventDefault ){
  
   e.preventDefault = function () { this.returnValue = false ; } ;
 }
 return e ;
}
function openLinkInPopupWhenClick(e) {
  
  e = getStandardEvent(e)  ;
  var link =  e.target  ;
  var addr = link.getAttribute('href') ;
  window.open(addr, 'Radio', 'resizable=0,scrollbars=1,width=350,height=450')  ;
  e.preventDefault()  ;
  return false ;
}
function prepareHelpLinks() {
 var link, list, i ;
 list = document.getElementsByTagName('a') ;
 for(i=0; i<list.length; i++) {
   link = list.item(i) ;
   if (link.getAttribute('href') && link.className) {
     if ((' '+link.className+' ').indexOf(' neo_page ') != -1) {
       addEvent(link, 'click', openLinkInPopupWhenClick) ;
     }
   }
 }
}

if (document.getElementById) {
  addEvent(window, 'load', prepareHelpLinks) ;
}