//Some javascript functions for Google Events tracking


function presentationInterest(from_where) { 
	_gaq.push(['_trackEvent', 'Interest', 'Presentation', 'From '+from_where]);
	return true;
}

function presentationDownload(which) {

	switch (which) {
		case "view_pdf":
			_gaq.push(['_trackEvent', 'Downloads', 'Presentation', 'View PDF']);
			break;
			
		case "download_pdf":
			_gaq.push(['_trackEvent', 'Downloads', 'Presentation', 'Download PDF']);
			break;
			
		case "download_ppt":
			_gaq.push(['_trackEvent', 'Downloads', 'Presentation', 'Download PPT']);
			break;
		case "prj_view_pdf":
			_gaq.push(['_trackEvent', 'Downloads', 'Projects', 'View PDF']);
			break;
			
		case "prj_download_pdf":
			_gaq.push(['_trackEvent', 'Downloads', 'Projects', 'Download PDF']);
			break;
			
		case "prj_download_ppt":
			_gaq.push(['_trackEvent', 'Downloads', 'Projects', 'Download PPT']);
			break;
	}

	return true;
}
