jQuery(document).ready(function() {
	
	jQuery.jqplot.config.catchErrors = true;
	
	if (jQuery("div.frontStats").length != 0) {
		jQuery.getScript('/jqplot/charts/chart1.js');
	}
	
	if (jQuery("span.statsTimestamp").length != 0) {
		jQuery.getScript('/jqplot/charts/timestamp.js');
	}
	
	if (jQuery("div#participantsOverTimeGraph").length != 0) {
		jQuery.getScript('/jqplot/charts/chart2.js');
	}
	
	if (jQuery("div.last20Table").length != 0) {
		jQuery.getScript('/jqplot/charts/chart3.js');
	}
	
	if (jQuery("div.cvUploaded").length != 0) {
		jQuery.getScript('/jqplot/charts/cvUploaded.js');
	}
	
	if (jQuery("div#educationDistributionChart").length != 0) {
		jQuery.getScript('/jqplot/charts/chart4.js');
	}
	
	if (jQuery("div#scienceBusinessDistributionChart").length != 0) {
		jQuery.getScript('/jqplot/charts/chart5.js');
	}

	if (jQuery("div#manWomanChart").length != 0) {
		jQuery.getScript('/jqplot/charts/chart6.js');
	}
	
	if (jQuery("div#manWomanLeaderChart").length != 0) {
		jQuery.getScript('/jqplot/charts/chart7.js');
	}
	
	if (jQuery("div#homogenousMixedChart").length != 0) {
		jQuery.getScript('/jqplot/charts/chart8.js');
	}
	
	if (jQuery("div#registeredBeforeChart").length != 0) {
		jQuery.getScript('/jqplot/charts/chart9.js');
	}
	
	if (jQuery("div#regionsChart").length != 0) {
		jQuery.getScript('/jqplot/charts/chart10.js');
	}
	
	if (jQuery("div.educationTable").length != 0) {
		jQuery.getScript('/jqplot/charts/educationTable.js');
	}

});

