<!--
function clearAll() {
 /* This is for the main list of products.
    It resets the active div before a new one is set. */
  	$("ul#list-of-programs li").css('padding', '7px 0');
	$("ul#list-of-programs li").css('margin', '0');
	$("ul#list-of-programs li div p.extended-text").addClass("hidden");
	$("ul#list-of-programs li div div").addClass("hidden");
	$("li.active div.col3 div").removeClass("ic-active");
}

function styleActive() {
 /* This is for the main list of products.
    It sets the new product that is now active. */
	$("ul#list-of-programs li.active").css('padding', '15px 0');
	$("ul#list-of-programs li.active").css('margin', '8px 0');
	$("ul#list-of-programs li.active").find("div p.extended-text").removeClass("hidden");
	$("ul#list-of-programs li.active").find("div div").removeClass("hidden");
}

function scrollWithPrograms() {
 /* This is for the main list of products.
    It helps with the JQuery scrolling fun. */
	if ($("ul#list-of-programs li:first").is(".active")) {
	$(document.documentElement).animate({scrollTop:0}, 400);
	} else {
	activePosition = $("li.active").offset().top;
	prevPosition = $("li.active").prev("li").offset().top;
	scrollToPoint = activePosition - (activePosition - prevPosition);
	setTimeout("$(window).scrollTop(scrollToPoint)",50);
	//$(document.documentElement).animate({scrollTop:scrollToPoint}, 100);
	};
}

function updateLink() {
 /* This is for the marketing sheets and apps.
    It looks at the link that is under the active div and pulls the link out, 
	storing it in a variable. */
	applink = $("div.ic-active a").attr("href");
}

function clearLink() {
 /* This is for the marketing sheets and apps.
    This clears the href attribute in the link so that when the pdf link is 
	selected it doesn't open in two windows. */
	$("div.ic-active a").attr("href","#");
}

$(document).ready(function() {
 /* This is for the main list of products.
    This styles the first list item as active. */
	$("ul#list-of-programs li").css('padding', '7px 0');
	$("ul#list-of-programs li").css('margin', '0');
	$("ul#list-of-programs li:first").addClass("active");
	$("ul#list-of-programs li:first").find("div p.extended-text").removeClass("hidden");
	$("ul#list-of-programs li:first").find("div div").removeClass("hidden");
	$("ul#list-of-programs li:first").css('padding', '15px 0');
	$("ul#list-of-programs li:first").css('margin', '8px 0');
	
	$("li.active div.col3 div:first").addClass("ic-active");
	applink = $("div.ic-active a").attr("href");
	
});

-->
