$(document).ready(function(){
 $(".increaseFont").fontscale("#contents","up",{unit:"px",increment:1});
 $(".decreaseFont").fontscale("#contents","down",{unit:"px",increment:1});
 $("#reset").fontscale("p","reset");
});

function startPGN(pgnFile) {
   SetImagePath ("/pgn/alpha/24"); // use "" path if images are in the same folder as this javascript file
   SetImageType("png");
   SetCommentsOnSeparateLines(true);
   SetGameSelectorOptions("Select a KK game...", false, 0, 8, 0, 0, 0, 0, 10); // (head, num, chEvent, chSite, chRound, chWhite, chBlack, chResult, chDate);
   SetAutoplayDelay(2500); // milliseconds
   SetAutostartAutoplay(true);
   SetAutoplayNextGame(true); // if set, move to the next game at the end of the current game during autoplay
   SetInitialGame("random"); // number of game to be shown at load, from 1 (default); values (keep the quotes) of "first", "last", "random" are accepted; other string values assumed as PGN search string
   SetShortcutKeysEnabled(false);
   SetPgnUrl(pgnFile);
}

$(function() {
	$('#album a').lightBox();
});

sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
