// JavaScript Document
function create_ebook(xml_path, logo_path, media_path, xml_basic, xml_media){
	if(!xml_basic){
		xml_basic='megazine.php';
	}
	if(!xml_media){
		xml_basic='media.php';
	}
	swfobject.embedSWF("../../../megazine/megazine.swf",        /* Path to the megazine.swf. You probably won't have to change this. */
					   "megazine",                     /* Change this if you use another id for the div to display MegaZine. */
/* (1) */                  "100%",                         /* This is the WIDTH of the element used to display MegaZine. */
/* (2) */                  "100%",                         /* This is the HEIGHT of the element used to display MegaZine. */
					   "10",                      /* Required Flash Player version. You probably won't have to change this. */
					   "../../../megazine/expressInstall.swf", /* Path to the expressInstall.swf to upgrade Flash Player. You probably won't have to change this. */
					   {
						   xmlFile : xml_path,   /* Used to pass the name of the xml file to use. Path is relative to the swf! */
						   /* Settings for liquid scaling. If minScale = maxScale liquid scaling is disabled. */
						   mediaFile : media_path,
						   //languageMode: 'http://163.19.6.74/megazine/language/tw.xml',
						   languageMode: '../../../megazine/language/tw.xml',
						   interfaceURL:"../../../megazine/interface/interface.swf",	/* ¤¶­±ªºswfÀÉ */
						   toolsaceURL:"../../../megazine/interface/toolsface.swf",	/* ¤u¨ãªºswfÀÉ */
						   componentURL:"../../../megazine/interface/component.swf",	/* ²Õ¥óªºswfÀÉ */
						   //logoURL: "../../../megazine/pic/logo.png",				/* Logoªº¸ô®| */
						   logoURL: logo_path,
						   minScale : 1.0,             /* Minimum scaling factor. Default is 1.0, i.e. the book can not get smaller than it's 100% size. */
						   maxScale : 1.0,             /* Maximum scaling factor. Default is 1.0, i.e. the book can not get bigger than it's 100% size. */
						   top: "auto",                 /* Determines the height of the empty space above pages in pixels */
						   xml_basic: xml_basic,
						   xml_media: xml_media
						   
					   },
					   {
/* (3) */                      //bgcolor : "#00ff00",        /* This is the background color used for the Flash element. */
/* (4) */                      //wmode : "transparent",    /* Remove the // to enable transparency (show HTML background). Not recommended if using videos. */
							allowScriptAccess: "always",
							allowFullscreen : "true"    /* Required for fullscreen mode. */
					   },
					   {id : "megazine"});             /* Required for SWFAddress and JavaScript interaction with the book. */
}
