// startup
/*
  window.addEvent('domready', function(){
  var list = $$('.news-list-morelink a');
  
  list.each(  function(element) {
    var url = element.getProperty('href')+"&type=44";       
    var newurl = "moobox('"+url+"');return false;";
    
    element.setProperty('onclick',newurl);
       
  });

});

*/


window.addEvent('domready', function(){
        var list = $$('.news-list-morelink a');
       
        list.each(function(element) {
                //var url = element.getProperty('href');
                var url = element.getProperty('href')+"&type=44";
                //url = str_replace(".0.html",".44.html",url);
                element.addEvent("click", function(e){
                        new Event(e).stop();
                        moobox(url);
                });
        });
        return false;
});


function moobox (url) {
  MOOdalBox.open( // case matters
  url, // the link URL
  "", // the caption (link's title) - can be blank
  "800 500" // width and height of the box - can be left blank
  );
}
