﻿//Functions
function PDFOpen(Location, GADesc){
//OpenPDFs in New Window and count them
	URL = 'http://www.cycc.net/' + Location;
	WindowResult = window.open(URL, 'ccycwindow', 'height=800, width=1024, resizable=yes, scrollbars=yes, status=yes, toolbar=yes');
	pageTracker._trackPageview('/Downloads/PDF/' + GADesc);
	WindowResult.focus();
}

function URLOpen(URL, Desc){
//For menu entries that transfer to another page adding http:// where needed, hopefully everywhere
//This will ensure that they get counted
	if (URL.indexOf('http://') < 0){
		URL = 'http://' + URL;
	}
	WindowResult = window.open(URL, 'ccycwindow', 'height=800, width=1024, resizable=yes, scrollbars=yes, status=yes, toolbar=yes');
	pageTracker._trackPageview('/Links/' + Desc);
	WindowResult.focus();
}
function BingIt (Street, City, State, Zip) {
// Open Bing Map in New Window & Count It
	URL = 'http://bing.com/maps/default.aspx?where1=' + Street + ',' + City + ',' + State + ',' + Zip + ',USA';
	WindowResult=window.open(URL,'ccycwindow', 'height=800, width=1024, resizable=yes, scrollbars=yes, status=yes, toolbar=yes');
	pageTracker._trackPageview('/Links/BingMaps');
	WindowResult.focus();
}
