try{
    (function($){
        $.extend(true, $.la,
        {
            modules :{
                la :{
                    modules:{
                    	console: {
                    		modules:{
                    			akamai: {
                                	active: true
                                }
                    		}
                            
                        }
                    }
                }
            },
            console:{
                         
                /* Control Akamai */
                akamai:{
                    label: 'Static',
                    console: function(){
                        var c = '';
                        var body = $('body').html();
                        var stringOk = (body.indexOf('<!-- lagardere -->') != -1);
                        c+= $.la.console.cFormat('Chaîne Lagardère',(stringOk?'oui':undefined));
                        //c += 'Chaîne Lagardère : ' + (stringOk?'<b>oui</b>':'<b style="color:red">Non</b>') + '<br />';
                        var reg=new RegExp("<!-- Generated: ([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}:[0-9]{2}:[0-9]{2})","g");
                        var m = reg.exec(body);
                        if (m == null) {
                            c += '<b style="color:red">PAS DE CACHE STATIQUE</b>' + '<br />';
                        }
                        else {
                            c += 'STATIC g&eacute;n&eacute;r&eacute; le <br /><b>' + m[3] + "/" + m[2] + "/" + m[1] + " " + m[4] + '</b><br />';
                        }
                        // clefs de cache JS et CSS

                        c += '<br />';
                        $('link[rel="stylesheet"]').each(function(){
                            var href = $(this).attr('href');
                            var reg=new RegExp("v=([0-9]+)","g");
                            var m = reg.exec(href);
                            if(m != null){
                                var last = href.split('/');
                                last = last[last.length-1];
                                var pos = last.indexOf('?v=');
                                last = last.substr(0,pos);
                                var date = new Date();
                                date.setTime(parseInt(m[1]*1000));
                                c += $.la.console.cFormat('Css '+last, '<br />' + date.toLocaleString() );
                            }
                        });

                        $('script',$('head')).each(function(){
                            var href = $(this).attr('src');
                            var reg=new RegExp("v=([0-9]+)","g");
                            var m = reg.exec(href);
                            if(m != null){
                                var last = href.split('/');
                                last = last[last.length-1];
                                var pos = last.indexOf('?v=');
                                last = last.substr(0,pos);
                                var date = new Date();
                                date.setTime(parseInt(m[1]*1000));
                                c += $.la.console.cFormat('Js '+last,'<br />' + date.toLocaleString() );
                            }
                        });
                        return c;
                    }
                }
            }

            
        });
    })(jQuery);
}
catch(e){}
