
// Lovely shortcuts script courtesy of ghtml.com

var key; // Pressed key
	
// Define your shortcuts here
function takeShortCut(){
	if(key == "f")
		location.href = "../index.html";
	else if(key == "w") {
		clickUp = true;
                scrollUp();
		clickUp = false;
		
	}
	else if(key == "s") {
		clickDown = true;
                scrollDown();
		clickDown = false;
	}
	else if(key == "m") {
                larger();
	}
	else if(key == "n") {
                smaller();
	}
}
	
// Reads value of pressed key
function findKey(e){
	var theEvent;
	if(ie4)
		theEvent = event.keyCode;
	else
		theEvent = e.which;
	key = String.fromCharCode(theEvent).toLowerCase();
	takeShortCut();
}

// Initializing
//if(nn4)
//	document.captureEvents(Event.KEYDOWN);
document.onkeydown = findKey;	

