if(page==undefined){\r
page=0;\r
}\r
- window.open('index.html#/'+page, 'fbpopupfs_'+rand(1000,9999), 'width='+screen.width+',height='+screen.height+',resizable=yes');\r
-}\r
-\r
-function rand(min,max){\r
- return Math.round(min+(Math.rand()*(max-min)));\r
+ var date=new Date().getTime();\r
+ window.open('index.html#/'+page, 'fbpopupfs_'+date, 'width='+screen.width+',height='+screen.height+',resizable=yes');\r
}\r
\r
function getCookieVal(offset)\r
event.returnValue = false;\r
}\r
\r
+function ready(){\r
+ document.body.style.backgroundColor='#'+getBackgroundColor();\r
+}\r
+\r
+function getBackgroundColor(){\r
+ if(_GET['background']!=undefined){\r
+ return _GET['background'];\r
+ }else{\r
+ return backgroundColor;\r
+ }\r
+}\r
+\r
/** Initialization code.\r
* If you use your own event management code, change it as required.\r
*/\r
<link href="style.css?junk=$junk" rel="stylesheet" type="text/css">\r
<style type="text/css" media="print">*{ visibility: hidden; display: none }</style>\r
<script type="text/javascript" src="fluidbook.js?junk=$junk"></script>\r
- <script type="text/javascript">FB_DEFAULT_LANG='$lang';</script>\r
- $ga\r
<script type="text/javascript">\r
+ FB_DEFAULT_LANG='$lang';\r
+ var backgroundColor="$bgcolor";\r
if(isMobile()){\r
$redirectMobile\r
}else if(isBadMobile()){\r
$redirectPDF\r
}else{\r
- swfobject.embedSWF("$pathToIndex?junk=$junk", "fluidbook", "100%", "100%", "$flashversion","",getFlashvars($junk,$fv),{"allowScriptAccess":"always","quality":"high","scale":"noscale","wmode":getWmode(),"allowFullScreen":"true"},{"bgcolor":"#$bgcolor"});\r
+ swfobject.embedSWF("$pathToIndex?junk=$junk", "fluidbook", "100%", "100%", "$flashversion","",getFlashvars($junk,$fv),{"allowScriptAccess":"always","quality":"high","scale":"noscale","wmode":getWmode(),"allowFullScreen":"true"},{"bgcolor":"#"+getBackgroundColor()});\r
}\r
</script>\r
+ $ga\r
</head>\r
- <body style="background-color:#$bgcolor" onload="this.focus();">\r
+ <body onload="ready();">\r
<div id="fluidbook">\r
<div style="padding:20px;text-align:center;"><a href="http://get.adobe.com/flashplayer/" target="_blank"><img style="border:0;" src="$pathToGetflash" alt="" width="734" height="409" /></a></div>\r
<div style="padding:20px;">$alt</div>\r
}\r
}\r
\r
- $externalsOptions = array('ongletsSWF', 'tabs2DSWF');\r
+ $externalsOptions = array('ongletsSWF', 'tabs2DSWF','externalChapters','externalArchives');\r
foreach ($externalsOptions as $e) {\r
if (isset($book->parametres->$e) && $book->parametres->$e != '') {\r
$f = $workingDir . '/' . $book->parametres->$e;\r