var functionPtrGlobal=new Array();
function showThumbnail(){showView("Thumbnail")
}function hideThumbnail(){hideView("Thumbnail")
}function isPreviewEnabled(){var A=document.ViewMapApplet;
var C="CMD=VIEW";
var B="Status=Thumbnail"
}function showPrintDialog(){var A=document.ViewMapApplet;
var B="CMD=PRINT";
callApplet(A,B," ")
}function showView(){var A=document.ViewMapApplet;
var C="CMD=VIEW";
var B="Show="+arguments[0];
callApplet(A,C,B)
}function hideView(){var A=document.ViewMapApplet;
var C="CMD=VIEW";
var B="Hide="+arguments[0];
callApplet(A,C,B)
}function setHandMode(){setMouseMode("SetHandMode")
}function setZoomMode(A){if(A=="In"){setMouseMode("SetZoomModeIn")
}if(A=="Out"){setMouseMode("SetZoomModeOut")
}}function setSelectionMode(){setMouseMode("SetSelectionMode")
}function nextPage(){changePageTo("next")
}function previousPage(){changePageTo("previous")
}function firstPage(){changePageTo("first")
}function lastPage(){changePageTo("last")
}function changePageTo(){var A=document.ViewMapApplet;
var B="CMD=PAGECHANGE";
var C="ChangePageTo=";
if(arguments[0]=="previous"){C+="-1"
}if(arguments[0]=="next"){C+="1"
}if(arguments[0]=="first"){C+="0"
}if(arguments[0]=="last"){C+="*"
}callApplet(A,B,C)
}function zoomIn(){changeScale("+1")
}function zoomOut(){changeScale("-1")
}function setScale(A){changeScale(A)
}function rotateRight(){rotateImage("45","Right")
}function rotateLeft(){rotateImage("45","Left")
}function setDegreeRotation(){var A=document.ViewMapApplet;
var C="CMD=ROTATION";
var B="DegreeRotation="+arguments[0];
callApplet(A,C,B)
}function rotateImage(){var B=document.ViewMapApplet;
var C="CMD=ROTATION";
var D="Degree="+arguments[0];
var A="Orientation="+arguments[1];
callApplet(B,C,D,A)
}function setMouseMode(D){var A=document.ViewMapApplet;
var B="CMD=MOUSE";
var C="Mode="+D;
callApplet(A,B,C)
}function changeScale(A){var B=document.ViewMapApplet;
var C="CMD=ZOOM";
var D="Scale="+A;
callApplet(B,C,D)
}function appletCall(){var A=arguments[0];
var B=new Array();
for(var C=0;
C<arguments.length;
C++){B[C]=arguments[C].toString()
}var D=functionPtrGlobal[A];
if(D!=undefined){D(B)
}}function registerCallBack(){var B=arguments[0];
var A=arguments[1];
if(B==undefined){return 
}if(A==undefined){return 
}if(typeof B!="string"){return 
}if(typeof A!="function"){return 
}functionPtrGlobal[B]=A
}function callApplet(){var D=arguments.length;
var E;
var A=new Array();
for(E=0;
E<(D-1);
E++){A[E]=arguments[E+1].toString()
}var C=A.join(":");
var B=arguments[0];
B.exec(C)
};
