\n');
}
function fnAction(sType)
{
switch(sType)
{
case "":
var num = document.getElementById("gotoNum").value;
window.document.pageFlip.SetVariable("sAction", num-1);
break;
case "first":
case "last":
case "prev":
case "next":
case "zoomIn":
case "zoomOut":
window.document.pageFlip.SetVariable("sAction", sType);
break;
case "print":
window.print();
//window.document.pageFlip.SetVariable("sAction", sType);
break;
}
}
function fnMouseWheel()
{
if(event.wheelDelta > 0)
{
fnAction("zoomIn");
}
else
{
fnAction("zoomOut");
}
}
function fnMouseDown()
{
if(event.button == "1" && event.clientY > 65)
{
fnAction("zoomIn");
}
if(event.button == "2")
{
fnAction("zoomOut");
}
return false;
}
document.onmousewheel = fnMouseWheel;
document.onmousedown = fnMouseDown;
//-->