var arrowright = null;
if (document.createElement && document.documentElement)
{
 arrowright = document.createElement('img');
 arrowright.src = 'css_and_js/arrowright.gif';
 arrowright.style.border = '0';
arrowright.style.position = 'relative';
// arrowright.style.top = 5;
 arrowright.className = 'subind';
}

//leftmenu
var sidemenu = new FSMenu('sidemenu', true, 'display', 'block', 'none');

sidemenu.showDelay = 75;
sidemenu.switchDelay = 25;
sidemenu.hideDelay = 200;
sidemenu.cssLitClass = 'highlighted';
//sidemenu.showOnClick = 1;

addEvent(sidemenu, 'show', repositionMenus, true);

if (navigator.appName == 'Microsoft Internet Explorer')sidemenu.animations[sidemenu.animations.length] = animFade;
sidemenu.animations[sidemenu.animations.length] = animClipDown;
sidemenu.animSpeed = 10;

addEvent(window, 'load', new Function('sidemenu.activateMenu("leftmenu", arrowright)'));

addEvent(document, 'click',  function() {
 for (var  m in sidemenu.menus)
  if (sidemenu.menus[m].visible)  sidemenu.menus[m].hide();
});

//#faf6ed


addEvent(window, 'load', function() {
sidemenu.setLinkFading({
//  'standard': { dim: [236,232,232], lit: [160,82,45] },
  'standard': { dim: [255,255,255], lit: [188,255,179] },
//  'highlighted': { dim: [240,240,248], lit: [160,82,45] },
//  'highlighted': { dim: [240,240,248], lit: [188,185,179] },
  'highlighted': { dim: [255,255,255], lit: [188,255,179] },
//  'special': { dim: [240,240,248], lit: [200,0,0] },
  'special': { dim: [255,255,255], lit: [188,255,179] },
//  'special highlighted': { dim: [240,240,248], lit: [200,200,0] }
  'special highlighted': { dim: [255,255,255], lit: [188,255,179] }
 }, 10);
});

//******

//topmenu
var topmenu = new FSMenu('topmenu', true, 'display', 'block', 'none');

topmenu.showDelay = 75;
topmenu.switchDelay = 25;
topmenu.hideDelay = 200;
topmenu.cssLitClass = 'highlighted';
//topmenu.showOnClick = 1;

addEvent(topmenu, 'show', repositionMenus, true);


if (navigator.appName == 'Microsoft Internet Explorer')topmenu.animations[topmenu.animations.length] = animFade;
topmenu.animations[topmenu.animations.length] = animClipDown;
topmenu.animSpeed = 10;

addEvent(window, 'load', new Function('topmenu.activateMenu("topmenu", arrowright)'));

addEvent(document, 'click',  function() {
 for (var  m in topmenu.menus)
  if (topmenu.menus[m].visible)  topmenu.menus[m].hide();
});

addEvent(window, 'load', function() {
topmenu.setLinkFading({
//  'standard': { dim: [236,232,232], lit: [160,82,45] },
  'standard': { dim: [255,255,255], lit: [188,255,179] },
//  'highlighted': { dim: [240,240,248], lit: [160,82,45] },
//  'highlighted': { dim: [240,240,248], lit: [188,185,179] },
  'highlighted': { dim: [255,255,255], lit: [188,255,179] },
//  'special': { dim: [240,240,248], lit: [200,0,0] },
  'special': { dim: [255,255,255], lit: [188,255,179] },
//  'special highlighted': { dim: [240,240,248], lit: [200,200,0] }
  'special highlighted': { dim: [255,255,255], lit: [188,255,179] }
 }, 10);
});

//************
