$(document).ready(function() {
	//Zebra Striping	
	$('table#comparison_chart tbody tr:odd').addClass('alt');

	//Accordion
	$("dd:not(:first)").hide();
	$("dt:not(:first) a").removeClass("active");
	$("dt a").click(function(){
		if(!$(this).hasClass("active"))
		{
			$("dd:visible").slideUp("slow");
			$("dt a").removeClass("active");
			$(this).parent().next().slideDown("slow")
			$(this).parent().children('a').addClass("active");
		}
		return false;
	});

});

$(function(){
	// External Pages Popup
	$("a[@rel~='external_popup']").click(function(){
		var e=window.open($(this).attr("href"), 'external_popup', 'width=650, height=550, scrollbars=yes');
		e.focus();
		return false;
	});
	
	//More Details Popup
	$("a[@rel~='details_popup']").click(function(){
		var m=window.open($(this).attr("href"), 'details_popup', 'width=525, height=360, scrollbars=yes');
		m.focus();
		return false;
	});
	
	//Sample Report Popup
	$("a[@rel~='sample_popup']").click(function(){
		var s=window.open($(this).attr("href"), 'sample_popup', 'width=600, height=550, scrollbars=yes');
		s.focus();
		return false;
	});
	
	//Assurance Popup 
	$("a[@rel~='assurance_popup']").click(function(){
		var a=window.open($(this).attr("href"), 'assurance_popup', 'width=530, height=425, scrollbars=yes');
		a.focus();
		return false;
	});
	
	//Policy Popup
	$("a[@rel~='policy_popup']").click(function(){
		var d=window.open($(this).attr("href"), 'policy_popup', 'width=750, height=550, scrollbars=yes');
		d.focus();
		return false;
	});
});
