// External Link - New Window ============================================================
function SetExternalLinks(){
	/*
	Purpose: checks all <a>'s in the doc, if it has a rel attribute of 'external', sets to open in new window
	usage: 
	*/

	$('a[rel*=external]').click(function() { window.open(this.href); return false; });
}


// Google Analytics File Download Tracker =================================================
var GA_FileDownload = {
	Init: function() {
		$("a[href$=.zip],a[href$=.pdf],a[href$=.doc],a[href$=.docx],a[href$=.xls],a[href$=.xlsx],a[href$=.ppt],a[href$=.pptx]").click(function() {
			pageTracker._trackPageview($(this).attr("href"));
		});
	}
}


// Initialise Tracking Methods =============================================================
var Tracking = {
	GA_FileDownload: GA_FileDownload};
