﻿$(document).ready(function() 
{
    //Bold the first paragraph in the body
    $("#body p:first").addClass("intro");
    //prepend span tag for fancyZoom overlay
    $(".fancyZoom a").prepend("<span></span>");
    //apply fancyZoom to a with class zoom
    $("a.zoom").fancyZoom();
    //$(".equal").equalHeights();
	$("label.overlabel").inFieldLabels();
	
	//Hide (Collapse) the toggle containers on load
	$(".toggle_container").hide(); 

	//Switch the "Open" and "Close" state per click
	$("h3.apply-now").toggle(function(){
		$(this).addClass("active");
		}, function () {
		$(this).removeClass("active");
	});

	//Slide up and down on click
	$("h3.apply-now").click(function(){
		$(this).next(".toggle_container").slideToggle("fast");
	});
});
Cufon.replace('h1', { fontFamily: 'Avenir LT 35 Light' });
Cufon.replace('h2', { fontFamily: 'Avenir LT 35 Light' });
Cufon.replace('#primarynav .rtsLevel1 li', { fontFamily: 'Avenir LT 55 Roman', hover: true });