if (document.documentElement && document.getElementById) {
        var docClass = document.documentElement.className != null ? document.documentElement.className : document.documentElement.getAttribute('class');
        docClass =  docClass !='' ? docClass + ' jsEnabled' : 'jsEnabled';
        document.documentElement.setAttribute('class',docClass);
        document.documentElement.className = docClass; //For IE
    }
$(document).ready(function(){

    $("div#leftNav ul.subNavList").hide(); //hide all submenus
    $("div#leftNav #"+pageName+" ul.subNavList").show(); //show submenu based on pageName set in page
    $("div#leftNav #"+pageName+" ul.subNavList li:first").addClass('selected'); //add selected class
    $("div#faqs_container div.section").hide(); //hide all sections
    var hashValue = window.location.hash;
    if(hashValue == ""){
        $("div#faqs_container div.section:first").show(); //show first .section
    }else{
        $("div#faqs_container div"+hashValue).show(); //or show .section based on hash value
        window.scroll(0,0);
    }
    
    $("div#leftNav ul.subNavList li a").click(function() {
        var href = $(this).attr('href');
        var section = href.substr(href.indexOf("#"),href.length);
        $("div#faqs_container div.section").hide();
        $("div#faqs_container div"+section).show();
        $("div#leftNav ul.subNavList li.selected").removeClass("selected");
        $(this).parent().addClass("selected");
        sIFRReplace();
        //alert(section);
        return false;    
    });

    /*var faqQuestions = $("div#faqs_container h3.question");
    
    faqQuestions.prepend("<span>See more</span>");
    
    /*faqQuestions.toggle(
		function(){
			$(this).next().slideToggle(350);
			$(this).find("span").text("Close");
			$(this).addClass("open");
			var questionText = $(this).text().replace("Close","FaqExpand_");//record the question text...
			//console.log("questionText = " + questionText);
			_hbLink(questionText); //...and send to Hitbox
		},
		function(){
		    $(this).next().slideToggle(350);
			$(this).find("span").text("See more");
			$(this).removeClass("open");
		    var questionText = $(this).text().replace("See more","FaqClose_");//record the question text...
		    //console.log("questionText = " + questionText);
		    _hbLink(questionText); //...and send to Hitbox
		}
	);
	
	$("#faqButtons .view a").click(function() {
	    $("div#faqs_container div.section").show(); //show all sections
	    $("div#faqs_container h3.question").next().show();//show all answers
	    sIFRReplace();
	});    */
});


