////////////////////////////////////////////////////
//
//  Since 1998 Copyright(c)
//  Humandream, Inc.
//  All rights reserved
//  file name : dBookFunctions.js
//  version : 3.4 g1120  (made by Humandream, Inc.)
//
/////////////////////////////////////////////////////

function your_StartZoom() 
{
	expand_StartZoom();
}

function your_EndZoom()
{
	expand_EndZoom();
}


function your_gotoPage( nPage ) 
{		
	HD_gotoPage( nPage );
	// TODO : Add your implementation code here.
}

function your_pressNextPage() 
{		
	HD_pressNextPage();
	// TODO : Add your implementation code here.    
}

function your_pressPreviousPage() 
{	
	HD_pressPreviousPage();
	// TODO : Add your implementation code here.    
}

function your_gotoFirstPage() 
{		
	HD_gotoFirstPage();
	// TODO : Add your implementation code here.    
}

function your_gotoEndPage() 
{			
	HD_gotoEndPage();
	// TODO : Add your implementation code here.    
}

function your_pressReload() 
{		
	HD_pressPause();
	// TODO : Add your implementation code here.    
}

function your_pressLeftZoom() 
{		
	var ZoomLevel=dBook.handle_getCurrZoomStep();
	if (ZoomLevel > 0)
		HD_pressPause();

	HD_pressLeftZoom();
	// TODO : Add your implementation code here.    
}

function your_pressRightZoom() 
{			
	var ZoomLevel=dBook.handle_getCurrZoomStep();
	if (ZoomLevel > 0)
		HD_pressPause();

	HD_pressRightZoom();
	// TODO : Add your implementation code here.    
}

function your_pressZoom() 
{			
	HD_pressZoom();
	// TODO : Add your implementation code here.    
}

function your_pressCloseUp() 
{		
	HD_pressCloseUp();
	// TODO : Add your implementation code here.    
}

function your_changePage() 
{ 
    HD_setPageNum(); 
    // TODO : Add your implementation code here.
}

function your_notFlipPrev() 
{ 
    // alert( MSG_DBOOK_004 ); 
    // Related to APPLET Parameter 'eventFunctions'.
    // TODO : Add your implementation code here.
} 

function your_notFlipNext() 
{ 
    // alert( MSG_DBOOK_005 ); 
    // Related to APPLET Parameter 'eventFunctions'.
    // TODO : Add your implementation code here.
} 

function your_minimizeWindow()
{
	minimizeBrowser();
}

function your_openReplace( url ) 
{ 
    openReplace( url );
} 


function your_endInitLink()
{
	try{
		your_treatSlidePage();
	}catch(e){}
}


// On load defaunt1.html ***********************************************************************
function onLoadProcsss()
{	
	HD_setHtmlSkinPageNumber(true);
	HD_setFlipPageButType(2);
	HD_setUserMinWidth(1016);
	HD_setHtmlSkinHeight(70);
	HD_setWhiteMarginWidth(8);
	HD_setWhiteMarginHeight(10);
	HD_onResize();
	setTimeout("HD_onResize()",1000);
}


// On Unload defaunt1.html ***********************************************************************
function onUnLoadProcsss()
{
	DigitalBookUnload();
}

// 
function your_onPrint(value) {
	//HD_parseNPrintWeb(value);
	HD_parseNPrintFlash(value);
}

function your_onPrintEx(value) {
	HD_printExFlash(value);
}

function your_onPrintAll() {
	HD_printAllFlash();
}
//////////////////////////////////////////// call widget func
function your_showBookmarkMenu() {
	HD_showBookmarkMenu();
}
function your_showPrintMenu() {
	HD_showPrintMenu();
}
function your_showPenMenu() {
	HD_showPenMenu();
}
function your_createNewMemo() {
	HD_createNewMemo();
}
function your_showSlideMenu(){
	HD_showSlideMenu();
}
function your_showFlippageMenu(){
	HD_showFlippageMenu();
}
function your_showSearchMenu(){
	HD_showSearchMenu();
}
function your_showZoomMenu(){
	HD_showZoomMenu();
}
function your_showIndexMenu(){
	HD_showIndexMenu();
}
function your_showMemoListMenu(){
	HD_showMemoListMenu();
}
function your_showMusicMenu(){
	HD_showMusicMenu();
}
function your_showHelpMenu(){
	HD_showHelpMenu();
}
function your_showDicMenu(){
	HD_showDicMenu();
}
///////////////////////////////////////////
function your_startSlide() {
}

function your_endRotate() { 
} 

var bMouseFlip = true;
function your_enableMouseFlip() {
	if(bMouseFlip) bMouseFlip = false;
	else bMouseFlip = true;
	HD_eableMouseFlip(bMouseFlip);
}

function your_swapMouseFlipImage() {
}

function your_MouseFlipMouseOver() {
}

function your_leftFlipZoomEnd() {
}

function your_rePagenumber(object, page) {
	object.innerHTML = "<input name=\"page\" type=\"text\" maxlength =\"4\" value=" + page + ">";
}
