try{
    (function($){
        $.extend(true, $.la,
        {
            modules :{
                la :{
                    modules:{
                    	console: {
                    		modules:{
                    			seo: {
                                	active: true
                                }
                    		}
                            
                        }
                    }
                }
            },
            console:{
                         
                /* Control Akamai */
                seo:{
                    label: 'Seo',
                    console: function(){
                       
                         var title = $('head title').html();
                        if(title == ''){
                            title= undefined;
                        }
                        var keywords = $('head meta[name="keywords"]').attr('content');
                        if(keywords == ''){
                            keywords= undefined;
                        }
                        var description = $('head meta[name="description"]').attr('content');
                        if(description == ''){
                            description= undefined;
                        }
                        var robots = $('head meta[name="robots"]').attr('content');
                        if(robots == ''){
                            robots= undefined;
                        }

                        var canonical = $('link [rel="canonical"]').attr('href');
                        if(canonical == ''){
                            canonical= undefined;
                        }

                        var y_key = $('head meta[name="y_key"]').attr('content');
                        if(y_key == ''){
                            y_key= undefined;
                        }
                        var google_site_verification = '';

                        $('head meta[name="google-site-verification"]').each(
                            function(i){
                                google_site_verification += i + ': '+ $(this).attr('content') + '<br />';
                            }
                            );
                        if(google_site_verification == ''){
                            google_site_verification = undefined;
                        }
                        
                        var google_site_verifyv1 = $('head meta[name="verify-v1"]').attr('content');
                        if(google_site_verifyv1 == ''){
                            google_site_verifyv1= undefined;
                        }
                        if(typeof google_site_verification  != 'undefined' && typeof google_site_verifyv1  != 'undefined' ){
                            google_site_verifyv1 = '<span style="color:red">' + google_site_verifyv1 + '</span>';
                        }
                        else if(typeof google_site_verifyv1  != 'undefined' && typeof google_site_verification  == 'undefined' ){
                            google_site_verification = '';
                        }
                        else if(typeof google_site_verifyv1  == 'undefined' && typeof google_site_verification  != 'undefined' ){
                            google_site_verifyv1 = '';
                        }

                        var msvalidate_01 = $('head meta[name="msvalidate.01"]').attr('content');
                        if(msvalidate_01 == ''){
                            msvalidate_01= undefined;
                        }
                        var MSSmartTagsPreventParsing = $('head meta[name="MSSmartTagsPreventParsing"]').attr('content');
                        if(MSSmartTagsPreventParsing == ''){
                            MSSmartTagsPreventParsing= undefined;
                        }
                        // formatage
                        title = $.la.console.cFormat('title' + (typeof title != 'undefined'?(title.length>60?' <span style="color:red">['+title.length+'c]</span>':' ['+title.length+'c]') :''),title);
                        description = $.la.console.cFormat('description' + (typeof description != 'undefined'? (description.length>160?' <span style="color:red">['+description.length+'c]</span>':' [' + description.length + 'c]') :''),description);
                        if(keywords != undefined){
                            var nbK = keywords.split(',').length;

                        }
                        keywords = $.la.console.cFormat('keywords' + (typeof keywords != 'undefined'?(nbK>20?' <span style="color:red">['+nbK+']</span>':' ['+nbK+']'):''),keywords);

                        robots = $.la.console.cFormat('robots',robots);
                        if(canonical != undefined){
                            canonical = $.la.console.cFormat('canonical',canonical);
                        }
                        else{
                            canonical = '';
                        }
                        y_key = $.la.console.cFormat('y_key',y_key);

                        
                            google_site_verification = $.la.console.cFormat('google-site-verification',google_site_verification);
                       
                      
                            google_site_verifyv1 = $.la.console.cFormat('google-verify-v1-verification',google_site_verifyv1);
                     
                        msvalidate_01 = $.la.console.cFormat('msvalidate_01',msvalidate_01);
                        MSSmartTagsPreventParsing = $.la.console.cFormat('MSSmartTagsPreventParsing',MSSmartTagsPreventParsing);

                        var c = title  +'<br />'
                        + description+'<br />'
                        + keywords +'<br />'
                        + canonical
                        + robots
                        + y_key
                        + google_site_verification
                        + google_site_verifyv1
                        + msvalidate_01
                        + MSSmartTagsPreventParsing;
                  
                        var subModules = $.la.console._displayModules('seo');
                        return c + (subModules?'<br />' + subModules:'');
                    }
                }
            }

            
        });
    })(jQuery);
}
catch(e){}
