class templateBook.Configuration {
	static var LOAD_ALL_PAGES
	static var MAX_DIFFERENCE_LOADED_SHEET
	static var CHAPTERS_VISIBLE
	static var CHAPTERS_XML:XMLNode
	////sound
	static var SOUND_MUTE_DEFAULT
	static var SOUND_SHEET_PATH
	static var SOUND_SHEET_ENABLED
	static var SOUND_SHEET_VOLUME
	static var TOOLS_COLOR_ICON
	static var TOOLS_COLOR_ICON_OVER
	static var TOOLS_COLOR_BCG_ICON
	static var TOOLS_COLOR_BCG_ICON_OVER
	static var TOOLS_COLOR_SEP
	static var SMALL_ICON_COLOR_NORMAL
	static var SMALL_ICON_COLOR_OVER
	static var SMALL_ICON_COLOR_BCG
	static var ARROW_BCG_COLOR
	static var TOOL_TIP_COLOR_BCG
	static var TOOL_TOP_COLOR_TEXT
	/////TOOL TIP
	static var TOOL_TIP_SELECT_BOOK
	static var TOOL_TIP_VISIBLE
	static var TOOL_DOWNLOAD
	static var TOOL_PRINT
	static var OFFSET_DOUBLECLICKZOOM
	static var ZOOM_MAX_DOUBLE_CLICK
	static var ZOOM_DOUBLE_CLICK_ENABLED
	static var SUPPORT_KEYBOARD
	static var TOOL_ZOOM_IN
	static var TOOL_ZOOM_OUT
	static var TOOL_ZOOM_ORGINAL
	static var TOOL_ZOOM_AUTO
	static var TOOL_LIST_PAGES
	static var TOOL_HOME
	static var SWF_ADDRESS
	static var START_FIRST_PAGE
	static var BACKGROUND_LIGHTBOX
	static var PRELOADER_BACKGROUND_COLOR
	static var PRELOADER_CURRENT_COLOR
	static var PRELOADER_LABEL
	static var PRELOADER_TEXT_COLOR
	static var DRAG_PAGE
	static var DOUBLE_CLICK
	static var SINGLE_CLICK
	static var BCG_COLOR_BUTTON_OK
	static var TOOL_SPEAKER
	static var TOOL_FORM
	static var TOOL_FULLSCREEN
	static var TOOL_NEXT_PAGE
	static var TOOL_PREV_PAGE
	static var BUTTON_BROWSER_ENABLED
	static var TITLE_BOOK_IN_BROWSER
	static var PRELOADER_MULTIPLE 
	static var PRELOADER_MULTIPLE_TEXT
	static var PRELOADER_MULTIPLE_TEXT_COLOR
	static var PRELOADER_MULTPLE_BCG_COLOR
	////tools position
	static var TOOLS_POSITION="down"
	static var TOOLS_VISIBLE
	static var TOOLS_BACKGROUND_COLOR
	static var TOOLS_LINE_COLOR
	static var ARROW_COLOR
	static var ARROW_COLOR_OVER
	static var TITLE_AND_NUMBER_PAGE_VISIBLE = false;
	static var BACKGROUND_PAGE_IF_VISIBLE_PRELOADER
	static var BACKGROUND_PAGE_IF_VISIBLE_PRELOADER_MARGIN
	static var PAGE_MANAGER_VISIBLE
	static var ARROW_VISIBLE
	static var REVERSE_BOOK
	static var SPEED_PAGE_TWEEN
	static var HOME_PAGE_REDIRECT
	static var STYLE_SHEET
	static var LOGO_PATH  //////////
	static var LOGO_REDIRECT ////////////////////////
	static var LOGO_POSITION_Y
	static var LOGO_POSITION_X
	static var DOWNLOAD_PATHWAY
	static var BACKGROUND_BOOK
    static var STAGE_WIDTH  ////Stage width
	static var STAGE_HEIGHT/////Stage height
	static var PAGE_WIDTH:Number       /////////width image in sheet
	static var PAGE_HEIGHT:Number     /////////height image in sheet
	static var FRAME_SHEET=0    ////frame sheet
	static var COLOR_BACKGROUND  ////color background sheet
	static var COLOR_BACKGROUND_ONLOADPAGE
	static var BUTTON_PADDING_UP         ////padding button Up
	static var COLOR_NUMBER_PAGE  /////color numer page
	static var VISIBLE_NUMBER_PAGE
	static var BCG_COLOR_OVER_BUTTON_OK
	static var FOOTER_DESC
	static var FOOTER_LINE_UP_COLOR
	static var FOOTER_LINE_DOWN_COLOR
	static var DESC_BOOK
	static var DESC_BOOK_X
	static var DESC_BOOK_Y
	static var DESC_WIDTH
	static var DESC_BOOK_VISIBLE
	static var RADIUS
	static var HORN_AREA = 60
	static var SHEET_AREA = 60
	static var HORN_ENABLED="true"
	static var GLOW_SHEET
	static var SPIS_TRESCI
	static var CHAPTER_X
	static var CHAPTER_Y
	static var CHAPTER_TITLE_COLOR_BACKGROUND
	static var CHAPTER_LIST_WIDTH
	static var CHAPTER_TITLE_WIDTH
	static var CHAPTER_LIST_MAX_ROWS
	static var CHAPTER_LIST_RECTANGLE_COLOR
	static var BOOK_X="center"
	static var BOOK_Y="center"
	static var TOOLS_X="auto"
	static var TOOLS_Y="auto"
	static var SMOOTHING
	////print
	static var COLOR_BACKGROUND_PRINT
	static var TITLE_PRINT
	static var COLOR_TITLE_PRINT
	static var COLOR_TITLE_PAGE_PRINT_OVER
	static var GLOW_COLOR_BCG_PRINT
	static var GLOW_COLOR_BCG_PRINT_VISIBLE
	static var COLOR_PAGE_PRINT
	static var COLOR_SYMBOL_CLOSE_PRINT
	static var COLOR_BCG_CLOSE_PRINT
	static var COLOR_GLOW_PAGE_PRINT
	static var TITLE_LEFT_PAGE_PRINT
	static var TITLE_RIGHT_PAGE_PRINT
	static var COLOR_TITLE_PAGE_PRINT
	static var PRINT_BUTTON_OVER_COLOR
	static var PRINT_BIG_BCG_COLOR
	static var COLOR_BCG_BIG_LIST_PAGE
	static var GLOW_BCG_LIST_VISIBLE
	static var GLOW_COLOR_BCG_LIST
	static var MP3_PATHWAY_XML
	static var FORM_BACKGROUND_COLOR
	static var ZOON_MIN:Number
	static var ZOOM_MAX:Number
	static var ZOOM_SPEED:Number
	static var ZOOM_STEP:Number
	static var THUMB_WIDTH
	static var THUMB_HEIGHT
	////////////////////LIST PAGE
	static var LIST_BUTTON_CLOSE_BCG_COLOR
	static var LIST_BUTTON_CLOSE_SYMBOL_COLOR
	static var COLOR_BCG_LIST_PAGE:String
	static var COLOR_LINE_LIST_PAGE:String
	static var SPEED_LIST_PAGE
	static var EASING_LIST_PAGE
	//////////////////THUMB LIST PAGE
	static var COLOR_GLOW_NORMAL_THUMB_LIST:String
	static var COLOR_GLOW_SELECT_THUMB_LIST:String
	static var COLOR_BACKGROUND_THUMB_LIST:String
	static var COLOR_NUMBER_PAGE_THUMB_LIST:String
	static var BACKGROUND_COLOR_TOOLS:String
	static var BACKGROUND_SMOOTHING
	static var BACKGROUND_SCALE
	static var COLOR_BCG_NUMBER_PAGE
	static var COLOR_BCG_NUMBER_PAGE_LEFT
	static var COLOR_BCG_NUMBER_PAGE_RIGHT
	static var PATHWAY_FORM
	////MANAGER NUMBER PAGE
	static var VISIBLE_MANAGER_PAGE="true"
	static var COLOR_INPUT_MANAGER
	static var COLOR_BORDER_INPUT_MANAGER
	static var COLOR_BACKGROUND_INPUT_MANAGER
	static var LABEL_GOTOPAGE
	static var COLOR_LABEL_GOTOPAGE
	static var LABEL_OK
	static var COLOR_LABEL_OK
	static var BACKGROUND_COLOR_MANAGER
   ///////////////////////ICON
    static var ICON_VISIBLE
    static var WIDTHICON
    static var HEIGHTICON
    static var SPACEICON 
    static var URL_DATA_ICON
	static var ICON_DIR 
	static var ICON_ORIENTATION
	static var ICON_ALPHAOUT
	static var ICON_ALPHAOVER 
	static var ICON_MARGINX 
	static var ICON_MARGINY 
	static var COLOR_TITLE_PAGE
	static var NUMBER_PAGE_X
	static var NUMBER_PAGE_Y
	static var __data:XML
	static var _loaded:Number
	//////chapter
	static var CHAPTER_LIST_TEXT_ACTIVE
	static var CHAPTER_LIST_TEXT_NORMAL
	static var CHAPTER_LIST_BCG_COLOR
	static var CHAPTER_COLOR_SCROLL
	static var CHAPTER_COLOR_SCROLL_BCG
	static var CHAPTER_TITLE_LABEL
	static var CHAPTER_TITLE_COLOR
	static var CHAPTER_DISPLAY_COLOR
	static var CHAPTER_BUTTON_BCG_COLOR
	static var CHAPTER_BUTTON_BCG_COLOR_OVER
	static var CHAPTER_BUTTON_ARROW_COLOR
	static var CHAPTER_BUTTON_ARROW_COLOR_OVER
	static var BUTTON_SELECT_BOOK_BCG_COLOR
	static var BUTTON_SELECT_BOOK_SYMBOL_COLOR
	/////CAROUSEL
	static var CAROUSEL_BCG_BIG_COLOR
	static var CAROUSEL_BCG_COLOR
	static var CAROUSEL_GLOW_VISIBLE
	static var CAROUSEL_GLOW_COLOR
	static var CAROUSEL_BUTTON_CLOSE_BCG_COLOR
	static var CAROUSEL_BUTTON_CLOSE_SYMBOL_COLOR
		
///////////////////////////////////////////////////////////////////////////////////////////////

static function load(xml){
		__data=new XML()
		__data.ignoreWhite=true
		__data.onLoad=function(){
			Configuration._loaded=1
		}
	__data.load(xml)
	}
	
///////////////////////////////////////////////////////////////////////////////////////////////	

	static function get loaded(){
		return _loaded
	}
	
///////////////////////////////////////////////////////////////////////////////////////////////	

static function setXml(xml_:XML){
			var len=xml_.firstChild.childNodes.length
			for(var i=0;i<len;i++){
				var nod:XMLNode=xml_.firstChild.childNodes[i]
				var node_name=nod.nodeName
				var value = nod.firstChild.nodeValue
				if(node_name=="CHAPTERS_XML"){
				Configuration[node_name]=nod
				}else if(!isNaN(value)){
				Configuration[node_name] = Number(value)
				}
				else{
				Configuration[node_name]=value				
				}

			}
}

//////////////////////////////////////////////////////////////////////////////////////////////
	
}