function gotoMoreGames(){
	gotoAnchorName('moreGames');
}
function gotoEmbedPopup(){
	gotoAnchorName('embedPopup');
}
function gotoAnchorName(newName){
	location.href = href=location.href.split("#")[0]+"#"+newName;
}
function OpenWindow(pageUrl) {
	// todo: put this in its own function, and call it when person shares the site	
	//_gaq.push(['_trackEvent', 'facebook', 'shares', 'open window on '+pageUrl]);
	
	// push this info to google analytics
	initAnalyticsEvent("facebook", "share button clicked", ""+pageUrl);
	
	var winName = Math.round(9999*Math.random()) + new Date().getTime();
	
	// open window (reasonable browsers)
	var winNew = window.open(pageUrl,winName,"toolbar=1,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=1,width=600,height=400,left=200,top=100");

	// open window from flash (safari)
	if(!winNew) {
		getSwf(MOVIE_NAME).openWindowFromSwf(pageUrl);
	}
	else {
		winNew.focus();
	}
}

// post an event to gogle analytics
function initAnalyticsEvent(newCategory,newAction,newLabel){
	_gaq.push(['_trackEvent', ''+newCategory, ''+newAction, ''+newLabel]);
}

