add 'scripts' directory
[diogenes.git] / templates / header / phplayersmenu.tpl
... / ...
CommitLineData
1<script type="text/javascript">
2<!--
3// PHP Layers Menu 3.1.1 (C) 2001-2003 Marco Pratesi (marco at telug dot it)
4
5DOM = (document.getElementById) ? 1 : 0;
6NS4 = (document.layers) ? 1 : 0;
7// We need to explicitly detect Konqueror
8// because Konqueror 3 sets IE = 1 ... AAAAAAAAAARGHHH!!!
9Konqueror = (navigator.userAgent.indexOf("Konqueror") > -1) ? 1 : 0;
10// We need to detect Konqueror 2.2 as it does not handle the window.onresize event
11Konqueror22 = (navigator.userAgent.indexOf("Konqueror 2.2") > -1 || navigator.userAgent.indexOf("Konqueror/2.2") > -1) ? 1 : 0;
12Opera = (navigator.userAgent.indexOf("Opera") > -1) ? 1 : 0;
13Opera5 = (navigator.userAgent.indexOf("Opera 5") > -1 || navigator.userAgent.indexOf("Opera/5") > -1) ? 1 : 0;
14Opera6 = (navigator.userAgent.indexOf("Opera 6") > -1 || navigator.userAgent.indexOf("Opera/6") > -1) ? 1 : 0;
15Opera56 = Opera5 || Opera6;
16IE = (navigator.userAgent.indexOf("MSIE") > -1) ? 1 : 0;
17IE = IE && !Opera;
18IE5 = IE && DOM;
19IE4 = (document.all) ? 1 : 0;
20IE4 = IE4 && IE && !DOM;
21// -->
22</script>
23
24{if $menustyle==1}
25<script type="text/javascript" src="{$phplayersmenu}/layerstreemenu-nocookies.js"></script>
26{else}
27<script type="text/javascript" src="{$phplayersmenu}/layerstreemenu-cookies.js"></script>
28{/if}