themes demos with 0.9.4
[booh] / www / themes / simple / Home / index.html
1 <html>
2     <head>
3         <script language="JavaScript1.1" type="text/JavaScript">
4
5 var sizes = new Array("large");
6
7 function getPreferredSize() {
8     if (document.cookie) {
9         var index = document.cookie.indexOf('booh-preferred-size-simple');
10         if (index != -1) {
11             var oleft = document.cookie.indexOf('=', index) + 1;
12             var oright = document.cookie.indexOf(';', index);
13             if (oright == -1) {
14                 oright = document.cookie.length;
15             }
16             size = document.cookie.substring(oleft, oright);
17             for (i = 0; i < sizes.length; i++) {
18                 if (sizes[i] == size) {
19                     return 'thumbnails-' + size + '-0.html';
20                 }
21             }
22         }
23     }
24     w = document.body.offsetWidth;
25     if (w + 50 > 1280) { return 'thumbnails-large-0.html'; }
26
27     return 'thumbnails-large-0.html';
28 }
29
30         </script>
31
32         <meta http-equiv="refresh" content="0.1;url=thumbnails-large-nojs-0.html" />
33     </head>
34     <body onload="window.location.href = getPreferredSize()">
35     </body>
36 </html>