if(navigator.userAgent.indexOf('MSIE 6')!=-1)document.write("<link rel='stylesheet' href='aie6.css' type='text/css'>" );

/*cache images will be executed silently while the user is browsing through ajax call*/
var cache=new Array();


var tmout=300;/*tmout is used for menu*/
var ctmr;/*close timer variable*/
/*mo=menu open,id=id,hi=header id*/
function mouseonmenu(){
 $(".bfdl div").css("z-index",48);
}
function mouseNotOnMenu(){
 $(".bfdl div").css("z-index",5000);
}
function mo(id,hi)
{
  /*cancel the "close timer" to avoid suddenly the menu underlay disappering when mousing over it*/
  mcct();
  
  /*now show the underlay ..the cars*/

  $("#"+id).slideDown(300,'linear');
  
  /*keep the header title higlighted in red*/
  document.getElementById(hi).style.color="#b51f28";
   
}

/*mct=menu close timer*/
function mct(id,hi)
{

  ctmr = window.setTimeout("mcl('"+id+"','"+hi+"')", tmout);
  $(".bfdl div").css("z-index",5000);
}

/*mike menu slide closed*/
function ms(id,hi)
{
  /*cancel the "close timer" to avoid suddenly the menu underlay disappering when mousing over it*/
  mcct();
  
  /*now show the underlay ..the cars*/
  $("#"+id).slideUp(300,'linear');
  
  /*keep the header title higlighted in red*/
  document.getElementById(hi).style.color="#b51f28";

  ctmr = window.setTimeout("mcl('"+id+"','"+hi+"')", tmout);
}


/*mcl=menu close*/
function mcl(id,hi)
{
  $("#"+id).fadeOut('0');
  document.getElementById(hi).style.color="#333333";
}


/*mcct=menu cancel close timer*/
function mcct()
{
  if(ctmr)
  {
    window.clearTimeout(ctmr);
    ctmr=null;
  }
}




