function setPageTimeout(uid) {
	//if (uid != '') {
	//	setTimeout('showTimeoutMessage()', 1200000);
	//}
}

function showTimeoutMessage() {
	//alert("Your Wacky Kid Games session has been timed out.\n\nTo protect your privacy, sessions are ended after 20 minutes of inactivity.\n\nYou can sign in again to continue using Wacky Kid Games.");
	//window.location = origURL();
}

function pageSetup() {
	//will be over-ridden as needed by individual pages	
}
function addGuidToLinks(sGuid) { 
    if (!document.getElementsByTagName) { 
      return false; 
   } 
   var popuplinks = document.getElementsByTagName('a'); 
   var origURL = '';
   var newURL = '';
   for (var i=0; i < popuplinks.length; i++) {
	origURL = popuplinks[i].getAttribute("href");
	//alert(origURL.indexOf('javascript'));
	if ((origURL.indexOf('javascript') == -1) && (origURL.indexOf('mailto') == -1) && (origURL.indexOf('sgd=') == -1)) {
	
		if (origURL.indexOf('?') == -1) {
			newURL = origURL + "?sgd=" + sGuid;
		} else {
			newURL = origURL + "&sgd=" + sGuid;
		}    
		popuplinks[i].setAttribute("href",newURL);
	}
   }
} 