if( typeof com.abbro.htmltemplate == "undefined" ) com.abbro.htmltemplate = {
cssloaded:0,
featureTestReady: function()
{
return ($("test-css") && com.abbro.css);
},
loadCondAssets: function()
{
    var head = document.getElementsByTagName('HEAD')[0]; 
    if(!head) return;
    
    var csspaths = new Array();
    if(this.featureTestReady())
    {
        com.abbro.cssprofile.init();
        if(browser.ua.indexOf('msie 5.2') == -1)
        {
            for(var i=0,len=arguments.length;i<len;i++)
            {
                var arg = arguments[i];
                switch(arg)
                {
                case "pod": 
                    csspaths.push("/css/layout/units/pod.css");
                    if(com.abbro.cssprofile.features.iebox) csspaths.push("/css/layout/units/pod_ie.css");
                    com.abbro.ui.register('pods');
                    break;
                case "tree": 
                    csspaths.push("/css/layout/modules/treelist.css");
                    com.abbro.ui.register('trees','explodes');
                    break;
                case "map": 
                    csspaths.push("/css/layout/modules/map.css");
                    com.abbro.ui.register('maps');
                    break;
                case "tab": 
                    csspaths.push("/css/layout/modules/tabsection.css");
                    if(com.abbro.cssprofile.features.stretch) csspaths.push("/css/layout/modules/tabsection_ie.css");
                    com.abbro.ui.register('tabs');
                    break;
                case "dropdown": 
                    if(!com.abbro.cssprofile.features.directchild) csspaths.push("/css/layout/units/dropdown_help.css");
                    com.abbro.ui.register('dropdowns');
                    break;
                case "backcompat": 
                    var compatmode = true;
                    break;
                }
            }
        }

        if(com.abbro.cssprofile.isIE7)
        {
            csspaths.push("/css/layout/modules/globalnav_ie7.css");
            csspaths.push("/css/layout/units/pod_ie7.css");
        }			

        if(!com.abbro.cssprofile.features.after)
        {
            csspaths.push("/css/layout/units/compact_noafter.css");	
            com.abbro.ui.register('markers');	
        }

        if(com.abbro.cssprofile.features.stretch)
        {
            csspaths.push("/css/layout/units/compact_ie.css");
            csspaths.push("/css/layout/units/pullout_ie.css");
        }
        
        if(!com.abbro.cssprofile.features.adjacent)
        {
            csspaths.push("/css/themes/markers_help.css");	
        }
        
        if(com.abbro.cssprofile.features.iebox)
        {
            csspaths.push("/css/layout/units/menu_ie.css"); 
            if(!compatmode)
            {
                csspaths.push("/css/layout/master_ie.css"); 
            }
        }

        if(!com.abbro.cssprofile.features.directchild) 
        {
            csspaths.push("/css/layout/modules/globalnav_ie.css");
            if(com.abbro.www.isSecure == true) csspaths.push("/css/layout/modules/globalnav_ie_secure.css");
        }
        if(browser.isSafari && browser.kitV < 420)
        {
            csspaths.push("/css/layout/units/swfcontent_help.css");	
        }
        
        if(browser.ua.indexOf('msie 5.2') != -1)
        {
            csspaths.push("/css/layout/master_macie.css");
            csspaths.push("/css/layout/modules/tabsection.css");
        }		
    }
    
    if(!com.abbro.www.is && csspaths.length) 
    {
        var i = csspaths.length-1;
        do 
        {
            csspaths[i] = "http://www.abbro.com"+csspaths[i];
        }
        while (i--);
    }
    
    this.cssloaded = com.abbro.css.attachCssToDOM(csspaths,head);
    return true;
}
};
