
// PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/

DOM = (document.getElementById) ? 1 : 0;
NS4 = (document.layers) ? 1 : 0;
// We need to explicitly detect Konqueror
// because Konqueror 3 sets IE = 1 ... AAAAAAAAAARGHHH!!!
Konqueror = (navigator.userAgent.indexOf('Konqueror') > -1) ? 1 : 0;
// We need to detect Konqueror 2.2 as it does not handle the window.onresize event
Konqueror22 = (navigator.userAgent.indexOf('Konqueror 2.2') > -1 || navigator.userAgent.indexOf('Konqueror/2.2') > -1) ? 1 : 0;
Konqueror30 =
(
navigator.userAgent.indexOf('Konqueror 3.0') > -1
|| navigator.userAgent.indexOf('Konqueror/3.0') > -1
|| navigator.userAgent.indexOf('Konqueror 3;') > -1
|| navigator.userAgent.indexOf('Konqueror/3;') > -1
|| navigator.userAgent.indexOf('Konqueror 3)') > -1
|| navigator.userAgent.indexOf('Konqueror/3)') > -1
)
? 1 : 0;
Konqueror31 = (navigator.userAgent.indexOf('Konqueror 3.1') > -1 || navigator.userAgent.indexOf('Konqueror/3.1') > -1) ? 1 : 0;
// We need to detect Konqueror 3.2 and 3.3 as they are affected by the see-through effect only for 2 form elements
Konqueror32 = (navigator.userAgent.indexOf('Konqueror 3.2') > -1 || navigator.userAgent.indexOf('Konqueror/3.2') > -1) ? 1 : 0;
Konqueror33 = (navigator.userAgent.indexOf('Konqueror 3.3') > -1 || navigator.userAgent.indexOf('Konqueror/3.3') > -1) ? 1 : 0;
Opera = (navigator.userAgent.indexOf('Opera') > -1) ? 1 : 0;
Opera5 = (navigator.userAgent.indexOf('Opera 5') > -1 || navigator.userAgent.indexOf('Opera/5') > -1) ? 1 : 0;
Opera6 = (navigator.userAgent.indexOf('Opera 6') > -1 || navigator.userAgent.indexOf('Opera/6') > -1) ? 1 : 0;
Opera56 = Opera5 || Opera6;
IE = (navigator.userAgent.indexOf('MSIE') > -1) ? 1 : 0;
IE = IE && !Opera;
IE5 = IE && DOM;
IE4 = (document.all) ? 1 : 0;
IE4 = IE4 && IE && !DOM;



menuTopShift = 6;
menuRightShift = 7;
menuLeftShift = 2;

var thresholdY = 1;
var abscissaStep = 140;

toBeHidden = new Array();
toBeHiddenLeft = new Array();
toBeHiddenTop = new Array();
// List the Parent Page that contain submenu
listl = ['L1','L12','L19','L52','L69','L91','L130','L165','L186'];

var numl = listl.length;

father = {}
// $i is the total menu including parent menu
for (i=1; i <= 219; i++) {
    father['L' + i] = '';
}

// Father keys and vals must match the child and parents values
father_keys = ['L2','L3','L4','L5','L6','L7','L8','L9','L10','L11','L13','L14','L15','L16','L17','L18','L20','L21','L22','L23','L24','L25','L26','L27','L28','L29','L30','L31','L32','L33','L34','L35','L36','L37','L38','L39','L40','L41','L42','L43','L44','L45','L46','L47','L48','L49','L50','L51','L53','L54','L55','L56','L57','L58','L59','L60','L61','L62','L63','L64','L65','L66','L67','L68','L70','L71','L72','L73','L74','L75','L76','L77','L78','L79','L80','L81','L82','L83','L84','L85','L86','L87','L88','L89','L90','L92','L93','L94','L95','L96','L97','L98','L99','L100','L101','L102','L103','L104','L105','L106','L107','L108','L109','L110','L111','L112','L113','L114','L115','L116','L117','L118','L119','L120','L121','L122','L123','L124','L125','L126','L127','L128','L129','L131','L132','L133','L134','L135','L136','L137','L138','L139','L140','L141','L142','L143','L144','L145','L146','L147','L148','L149','L150','L151','L152','L153','L154','L155','L156','L157','L158','L159','L160','L161','L162','L163','L164','L166','L167','L168','L169','L170','L171','L172','L173','L174','L175','L176','L177','L178','L179','L180','L181','L182','L183','L184','L185','L187','L188','L189','L190','L191','L192','L193','L194','L195','L196','L197','L198','L199','L200','L201','L202','L203','L204','L205','L206','L207','L208','L209','L210','L211','L212','L213','L214','L215','L216','L217','L218','L219'];
father_vals = ['L1','L1','L1','L1','L1','L1','L1','L1','L1','L1','L12','L12','L12','L12','L12','L12','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L19','L52','L52','L52','L52','L52','L52','L52','L52','L52','L52','L52','L52','L52','L52','L52','L52','L69','L69','L69','L69','L69','L69','L69','L69','L69','L69','L69','L69','L69','L69','L69','L69','L69','L69','L69','L69','L69','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L91','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L130','L165','L165','L165','L165','L165','L165','L165','L165','L165','L165','L165','L165','L165','L165','L165','L165','L165','L165','L165','L165','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186','L186'];

for (i=0; i < father_keys.length; i++) {
    father[father_keys[i]] = father_vals[i];
}

lwidth = new Array();
var lwidthDetected = 0;

function moveLayers()
{
if (!lwidthDetected) {
for (i=0; i<numl; i++) {
    lwidth[listl[i]] = getOffsetWidth(listl[i]);
}
lwidthDetected = 1;
}
if (IE4) {
for (i=0; i<numl; i++) {
    setWidth(listl[i], abscissaStep);
}
}
var hormenu1TOP = getOffsetTop('hormenu1L1');
var hormenu1HEIGHT = getOffsetHeight('hormenu1L1');

// Add this 2 lines for each parent menu
setTop('L1', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L1', 'hormenu1');
setTop('L12', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L12', 'hormenu1');
setTop('L19', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L19', 'hormenu1');
setTop('L52', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L52', 'hormenu1');
setTop('L69', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L69', 'hormenu1');
setTop('L91', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L91', 'hormenu1');
setTop('L130', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L130', 'hormenu1');
setTop('L165', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L165', 'hormenu1');
setTop('L186', hormenu1TOP + hormenu1HEIGHT);
moveLayerX1('L186', 'hormenu1');

}

back = new Array();
// $i is the total menu including parent menu
for (i=1; i<=219; i++) {
    back['L' + i] = 0;
}



