//CODE DEVELOPED BY OPENDOC 2005 - WWW.OPENDOC.IT
//System Configuration
var adr_ip_exp="81.208.55.19"; //Express Server IP Address or Server Name
var name_thumbspec="main"; //Express Server Thumbspec name 
var adr_exp="http://"+adr_ip_exp+"/lizardtech/iserv"; //URL to Express Server root directory
var adr_exp_server="http://"+adr_ip_exp+"/lizardtech/iserv/getimage"; //URL to getimage application
var adr_exp_server_info="http://"+adr_ip_exp+"/lizardtech/iserv/browse"; //URL to browse application
adr_exp_server_info="http://www.opendoc.it/gallery/od_gallery/includes/JIESViewer/info/image_info.php"; //PHP file URL to retrieve doc info dynamically uncomment to use it
var adr_exp_server_thumb="http://"+adr_ip_exp+"/lizardtech/iserv/getthumb"; //URL to getthumbnail application
var type_output_image="&oif=jpg"; //Output image Format (format: &oif=type, es: &ois=jpg)
var path_libraries="/gallery/od_gallery/includes/JIESViewer/libraries_js/"; //JIESViewer libraries folder path

//Viewmap Configuration
var widthTile=160; //Viewmap Tile Width 
var heightTile=160;	//Viewmap Tile Height
var width_start_viewmap="70%";	//Viewmap dimensions (percentage or pixels)
var height_start_viewmap="70%";

//Toolbar configuration
var ARRAY_toolbar=Array();
ARRAY_toolbar[0]=new Array(path_libraries+"images/bt_1to1","gif","100%","fitOneToOne();",false);
ARRAY_toolbar[1]=new Array(path_libraries+"images/b_fit_page","gif","Fit Page","fitAll();",false);
ARRAY_toolbar[2]=new Array(path_libraries+"images/b_fit_width","gif","Fit Width","fitWidth();",false);
ARRAY_toolbar[3]=new Array(path_libraries+"images/cntrl_in","gif","Zoom In","change_zoom(-1);",false);
ARRAY_toolbar[4]=new Array("text",'<input id="view_zoom_value" type="text" value="" style="text-align:center;background-color:white;" disabled="disabled" size="5"/>');
ARRAY_toolbar[5]=new Array(path_libraries+"images/cntrl_out","gif","Zoom Out","change_zoom(+1);",false);
ARRAY_toolbar[6]=new Array("separator");
ARRAY_toolbar[7]=new Array(path_libraries+"images/first","gif","Go to next page","firstPage();",false);
ARRAY_toolbar[8]=new Array(path_libraries+"images/prev","gif","Go to prev page","prevPage();",false);
ARRAY_toolbar[9]=new Array("text",'<select name="selectpage" id="selectpage" onchange="changePage(this);" style="display:inline" ></select>');
ARRAY_toolbar[10]=new Array(path_libraries+"images/next","gif","Go to next page","nextPage();",false);
ARRAY_toolbar[11]=new Array(path_libraries+"images/last","gif","Go to last page","lastPage();",false);
ARRAY_toolbar[12]=new Array("separator");
ARRAY_toolbar[13]=new Array(path_libraries+"images/b_thumb_view","gif","Show/Hide Thumbnails view","showThumbnails();",true);
