// JavaScript page methods for pctsWeb
// PAGE = contact.php

// declare a page namespace
var contact = {};

// --- namespace variables -------

// --- page functions -------
contact.recordLinkClick = function(theLink) {
	// record a hit to a contact page link
	
	// record the resource being obtained
	var theAccessor = "../accessors/insertLinkClick.php?link=" + theLink;
	
	// add a random number so as to prevent IE from using a chached accessor return
	var theRan = pctsFramework.randomNumber();
	theAccessor = theAccessor + "&anticache=" + theRan;
	
	pctsFramework.getData(theAccessor);
	
}

contact.twitterLinkClick = function(theToken) {
	// navigate to a designated twitter page
	var uri = 'http://www.twitter.com/' + theToken;
	window.location.href = uri;
	
}


// --- attached events -------

// we attach inside an if statement because IE handles event listeners differently from other browsers.

if (window.attachEvent) {
	// attached events for IE


} else {
	// attached events for other browsers


}