site.customerService.init = function() {
    if (!page_data || site.customerService.abort) return;
    //console.log("site.customerService.init"); 
    
    // customer service pages
    var section = page_data.panel_nav["default"];
    if (section && section.id === "customer_service") {
    
        // sub-section/page
        var subsection = section.item;
    
        // top inquiries faq
        if (subsection && subsection.id === "top_inquiries") {
            site.customerService.faq.init();
        }
     
		/*COG Jun10 2010 - Validating form fields based on the question chosen*/
        if (subsection && subsection.id === "contact_us") {
            site.customerService.contact_us.init()
        }
        /*COG Jun10 2010 - Validating form fields based on the question chosen - end*/

        // site map
        var maincontent = $("main_content");
        var sitemap = (maincontent ? maincontent.select('div.site-map')[0] : false);
        if ((subsection && subsection.id === "site_map") || (sitemap) ) {        
            // HACK: hide the customer service nav that automatically loads on the site map page
            // until the paths config in includes/global.tmpl is fixed
            var panel = $("panel_open");
            var nav = (panel ? panel.select('div.panel_cms_html')[0] : false);
            if (nav) {
                nav.style.display = "none";
            }           
        }
        
    }
};

