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