
/* //////////////////////////////////////////////////
 *
 * ÆÄÀÏ¸í : dBookFunctions.js
 * version : 2.0 e0324  (made by Humandream, Inc.)
 *
*////////////////////////////////////////////////////


// On load defaunt1.html ***********************************************************************
function onLoadProcsss()
{
	// call by html document when the html document load finishing.
	bOnLoaded = true;		
	HD_getSlidePage();

	page_num.onkeypress = doKey;

	if ( getCookie( "ebook_help_show" ) != "no" )
	{
		your_showHelp( -1 );            // help window will NOT be opened.
		//  your_showHelp( 0 );         // help window will be opened immediately.
		//  your_showHelp( 5000 );      // help window will be opened after 5 secs.
	}

	setStartPage( getStartPage() );
}

// On Unload defaunt1.html ***********************************************************************
function onUnLoadProcsss()
{
	DigitalBookUnload();
}

//
//***********************************************************************************************
// move page Functions  

// go to nPage 
function your_gotoPage( nPage ) 
{		
	HD_gotoPage( nPage );
	// TODO : Add your implementation code here.
}

// move next Page  
function your_pressNextPage() 
{		
	HD_pressNextPage();
	// TODO : Add your implementation code here.    
}

// move previous Page
function your_pressPreviousPage() 
{	
	HD_pressPreviousPage();
	// TODO : Add your implementation code here.    
}

// move first Page
function your_gotoFirstPage() 
{		
	HD_gotoFirstPage();
	// TODO : Add your implementation code here.    
}

// move last Page
function your_gotoEndPage() 
{			
	HD_gotoEndPage();
	// TODO : Add your implementation code here.    
}

//***********************************************************************************************
// zoom off or auto flip pause 
function your_pressReload() 
{		
	HD_pressPause();
	// TODO : Add your implementation code here.    
}

//***********************************************************************************************
// zoom functions 

// left page zoom in 
function your_pressLeftZoom() 
{		
	HD_pressLeftZoom();
	// TODO : Add your implementation code here.    
}

// right page zoom in 
function your_pressRightZoom() 
{			
	HD_pressRightZoom();
	// TODO : Add your implementation code here.    
}

// activate/deactivate zoom lens
function your_pressCloseUp() 
{		
	HD_pressCloseUp();
	// TODO : Add your implementation code here.    
}

//***********************************************************************************************
// page print 
function your_printPage( val )
{
    printPage( val );
    
    // If you do not want to load the printing module for the speed, update appendix/Package/DBookInstallList.xml file.
    
    // 0 = Left Page, 1 = Right Page, 2 = Double Page
    // TODO : Add your implementation code here.
}

//***********************************************************************************************
// Event Functions
//<PARAM NAME=eventFunctions VALUE="
//changePage=your_changePage;
//endRotate=your_endRotate;
//notFlipPrev=your_notFlipPrev;
//notFlipNext=your_notFlipNext;
//linkPressed=your_linkPressed">

// event of moving page (ÆäÀÌÁö ³Ñ±è ÀÌº¥Æ® : ÆäÀÌÁö ¹øÈ£ Ãâ·Â) 
function your_changePage() 
{ 
    HD_setPageNum(); 
    // alert("Page Changes..");
    
    // Related to APPLET Event 'changePage'.
    // TODO : Add your implementation code here.
} 

// event of stopping auto flip 
function your_endRotate() 
{ 
    // alert( "Rotating And" ); 
    
    // Related to APPLET Event 'endRotate'.
    // TODO : Add your implementation code here.
} 

// event of cannot moving previous page 
function your_notFlipPrev() 
{ 
    alert( "You are in the first page." ); 
    
    // Related to APPLET Parameter 'eventFunctions'.
    // TODO : Add your implementation code here.
} 

// event of cannot moving previous page 
function your_notFlipNext() 
{ 
    alert( "You are in the last page." ); 
    
    // Related to APPLET Parameter 'eventFunctions'.
    // TODO : Add your implementation code here.
} 

//***********************************************************************************************
// PopUp Help Window
function your_showHelp( delayMilliSec )
{
    /***
    Notice : if delayMilliSec < 0, help window will NOT be opened.
                delayMilliSec = 0, help window will be opened immediately.
                delayMilliSec > 0, help window will be opened after the delayMilliSec.
    ***/
                
    if ( delayMilliSec < 0 )          ;
    else if ( delayMilliSec == 0 )  	showHelp();
    else setTimeout( 'showHelp();', delayMilliSec );
    
    // Related to "setTimeout(...)" of this page.
	  // TODO : Add your implementation code here.
}

//***********************************************************************************************
// minimize current window 
function your_minimizeWindow()
{
	minimizeBrowser();
}

//***********************************************************************************************
// move to url web page 
function your_openReplace( url ) 
{ 
    openReplace( url );
    // Related to the failure of APPLET loading.
    // TODO : Add your implementation code here.    
} 



