    window.addEvent('domready', function(){
	    try {
    	    var url, type, strWidth, strHeight, ext;
	        var newWindow = null;
	        var tools = "standard";
    	    var w = 780;
	        var h = 580;
	        var fileType, title, t = new String();
	        
    	    $$('a').each(function(a) {
	            if ( /(standard|console)/.test(a.getProperty('rel')) ) {
	                ext = /\.([a-z]{2,4})([?].+)?$/.exec(a.getProperty('href'));
                    fileType = "l'adresse dans ";
                    
                    if (ext != null || ext != "undefined") {
                        switch (ext[1]) {
                            case "pdf" :
                                fileType = "un fichier PDF® dans ";
                                break;
                            case "doc" :
                                fileType = "un fichier Word® dans ";
                                break;
                            case "xls" :
                                fileType = "un fichier Excel® dans ";
                                break;
                            case "php" :
                                fileType = "";
                            default :
                                fileType = "l'adresse dans ";
                        }
                    }
                
                    t = (a.getProperty('title') != null ? a.getProperty('title') + ". " : "");
                    a.setProperty('title', t + "Ouvre "+ fileType +"une nouvelle fen\u00EAtre");
	        		
	        		a.addEvent('click', function(e){
	            	    new Event(e).stop();
	            		    
	            		attribs = a.getProperty('rel').split(" ");
        	            if (attribs[0] != null) { t = attribs[0].toLowerCase(); }
	                    if (attribs[1] != null) { w = attribs[1]; }
        	            if (attribs[2] != null) { h = attribs[2]; }
	                        
	                    if ($defined(newWindow) && !newWindow.closed) newWindow.close();
	                        
	                    if (t == "fullscreen") {
        			        strWidth = window.getWidth;
		            	    strHeight = window.getHeight;
        		        }
		    
		                if (t == "standard") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+w+",height="+h+",top=0,left=0";
        		        if (t == "console" || t == "fullscreen") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+w+",height="+h+",left=0,top=0";
		    
		                newWindow = window.open(a.getProperty('href'), 'nouvelleFenetre', tools);
        		        newWindow.focus();
	
	                });

	            }
	        });
	        
    	} catch(e) {  }
        
    });