﻿//jQuery Intellisense Document Reference for External js Files
///<reference path="jquery-1.2.6.min-vsdoc.js" />


    function InitializeCreditEd() {
    
        // This function is called by CreditEducationFH.aspx 
        // to initialize the expandable Question Divs...
           
        $("div.creditEdFH_question").click(function(){
	        $(this).next().slideToggle(300); 
	    });
	      $("div.creditEd101_question").click(function(){
	        $(this).next().slideToggle(300); 
	    });
	       
    }
        
    function InitializeCreditEdSections() {
    
        // This function is called by CreditEducationFH.aspx 
        // to initialize the expandable Section Divs...
    
	    $("div.creditEdFH_section_content").hide();
    	
	    $("div.creditEdFH_section").click(function(){
	        $(this).next().slideToggle(300); 
	    });
    
    }
    
    function changeQuestionClass(divId) {
        
        // This function is called in CreditEducation101.aspx
        // and CreditEducationFH.aspx by the onClick event of the Question Divs, 
        // allowing for the swapping of background-image ( + / - )...
        
       if ( divId.className == "creditEdFH_question2" ) 
            divId.className = "creditEdFH_question" ; 
       else if ( divId.className == "creditEdFH_question" ) 
            divId.className = "creditEdFH_question2" ; 
       else if ( divId.className == "creditEd101_question" ) 
            divId.className = "creditEd101_question2" ; 
        else if ( divId.className == "creditEd101_question2" ) 
            divId.className = "creditEd101_question" ; 
     
    }    
    
   
    function changeSectionClass(divId) {
        
        // This function is called in CreditEducationFH.aspx
        // by the Section Divs, allowing for the swapping of
        // background-image ( + / - )...
        
        if ( divId.className == "creditEdFH_section2" ) 
            divId.className = "creditEdFH_section" ; 
        else
            divId.className = "creditEdFH_section2" ; 
     
    }    
  
  
  // These are modified for the Product Pages
            
     function InitializeProdGuide() {
    
        // This function is called by productGuide pages
        // to initialize the expandable Question Divs...
           
        $("div.productGuideFH_question").click(function(){
	        $(this).next().slideToggle(300); 
	    });
	      $("div.productGuide101_question").click(function(){
	        $(this).next().slideToggle(300); 
	    });
	       
    }
        
    function InitializeProdGuideSections() {
    
        // This function is called by productGuide pages
        // to initialize the expandable Section Divs...
    
	    $("div.productGuideFH_section_content").hide();
    	
	    $("div.productGuideFH_section").click(function(){
	        $(this).next().slideToggle(300); 
	    });
    
    }
    
    function changeProdQuestionClass(divId) {
        
        // This function is called in productGuide pages
        // and productGuide pages by the onClick event of the Question Divs, 
        // allowing for the swapping of background-image ( + / - )...
        
       if ( divId.className == "productGuideFH_question2" ) 
            divId.className = "productGuideFH_question" ; 
       else if ( divId.className == "productGuideFH_question" ) 
            divId.className = "productGuideFH_question2" ; 
       else if ( divId.className == "productGuide101_question" ) 
            divId.className = "productGuide101_question2" ; 
        else if ( divId.className == "productGuide101_question2" ) 
            divId.className = "productGuide101_question" ; 
     
    }    
    
   
    function changeProdSectionClass(divId) {
        
        // This function is called in productGuide pages
        // by the Section Divs, allowing for the swapping of
        // background-image ( + / - )...
        
        if ( divId.className == "productGuideFH_section2" ) 
            divId.className = "productGuideFH_section" ; 
        else
            divId.className = "productGuideFH_section2" ; 
     
    }   
    
        function changeProdHeadingClass(divId) {
        
        // This function is called in productGuide pages
        // by the Section Divs, allowing for the swapping of
        // background-image ( + / - )...
        
        if ( divId.className == "productGuideFH_section" ) 
            divId.className = "productGuideFH_section2" ; 
        else
            divId.className = "productGuideFH_section" ; 
     
    }
    
    
    
      // SeeAll Page...
            
     function InitializeSeeAllCategories() {
    
        // Add the functionality to expand the content Div that
        // is immediately below seeAllCategory...
           
        $("div.seeAllCategory").click(function(){
	        $(this).siblings('div').slideToggle(300); 
	    });
	    
	     $("#divCollapseAll").click(function(){
	        // Not
	        $("div.seeAllCategory2").addClass('seeAllCategory');	
	        $("div.seeAllCategory2").removeClass('seeAllCategory2');
	        $("div.seeAllCategoryContent").slideUp(300); 	       

	    });
	    
	     $("#divExpandAll").click(function(){
	        $("div.seeAllCategory").addClass('seeAllCategory2');	        
	        $("div.seeAllCategory").removeClass('seeAllCategory');
	        $("div.seeAllCategoryContent").slideDown(300); 	       
	    });
	    
	    	       
    }
        
   
    function changeSeeAllCategoryClass(divId) {
        
        // This function is called to allowing for the swapping of background-image ( + / - )...
       if ( divId.className == "seeAllCategory2" ) 
            divId.className = "seeAllCategory" ; 
       else if ( divId.className == "seeAllCategory" ) 
            divId.className = "seeAllCategory2" ; 
      
    }    