var urlAddress= "http://www.sudokuist.com/";
var pageName = "Play Sudoku";

function bookmark() {
	if (window.external) {
		window.external.AddFavorite(urlAddress,pageName)
	} else {
		alert("Sorry, your browser doesn't support this function. Press CTRL+D to bookmark.");
	}
}

function newpuzzle() {
	window.location="/";
}

var id = "n0";
var gid = "n80";
var selected_color="#f3f3f3";
var deselected_color="#fff";

var activated=false;
function pfocus(id) {
	if (gid!=id) {
		document.getElementById(id).style.background=selected_color;
		if (activated==true) {
			document.getElementById(gid).style.background=deselected_color;
		}
		gid=id;
		activated=true;
	}
}

