
glow.onDomReady(function(){   
  
  function popUpString( width, height ) {
      return  'width      = ' + width  + ',' + 'height = ' + height + ',' +       
              'toolbar    = no, ' + 'personalbar = no, ' + 'location = no, ' + 'directories = no, ' +
              'statusbar  = no, ' + 'menubar     = no, ' + 'status   = no, ' + 'resizable   = yes,' +
              'left       = 60, ' + 'screenX     = 60, ' + 'top      = 100,' + 'screenY     = 100 ';  
  }
  
  Service = {  
    buildPopUpHandlers : function() {
      glow.events.addListener( ".iplayer-console", "click", function() { window.open( 'http://www.bbc.co.uk/iplayer/console/radio1','iPlayer', popUpString( 512, 270 ) ); return false; });
    }
  }
  
  Service.buildPopUpHandlers();    
  
  	glow.dom.get("a.iplayer-console").each( function() {
	  this.onclick = function () { 
		 window.open( 'http://www.bbc.co.uk/iplayer/console/radio1','iPlayer' , popUpString( 512, 270 ) );
		 return false; } 
	});
	
}); //end onDomReady 	
	
