<!--
var imgReady = 0;
var nav_on = new Array();
var nav_off = new Array();

//------------------------- Detect browser ------------------------------------
var dom = (document.getElementById)?true:false;
var ie4 = (!dom && document.all)?true:false;
var nn4 = (document.layers)?true:false;
var nn6 = (dom && navigator.appName == "Netscape")?true:false;
var vers=parseInt(navigator.appVersion);
var dhtml = (ie4 || nn4 || dom);
//---------------------- Platform detection ----------------------------------
var agt=navigator.userAgent.toLowerCase();
var is_win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));
var is_win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
var is_winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
var is_win32 = (is_win95 || is_winnt || is_win98 || ((parseInt(navigator.appVersion) >= 4) && (navigator.platform == "Win32")) || (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));


//------------------------- Rollover images -------------------------------
function M_preloadImages()
{
 if (dhtml) {
  // Rollovers
  for(var i=1;i<=10;i++) 
  {
   nav_off[i] = new Image(); nav_off[i].src = "img/nav"+i+"_off.gif";
   nav_on[i] = new Image(); nav_on[i].src = "img/nav"+i+"_on.gif";
  }

  nav_off[21] = new Image(); nav_off[21].src = "img/top1.gif";
  nav_on[21] = new Image(); nav_on[21].src = "img/top2.gif";

  imgReady = 1;
 }
}

function M_animator(id,isOn)
{
 if (imgReady) {
  var name = "nav" + id;
  if(isOn)  
   document.images[name].src=nav_on[id].src; 
  else  
   document.images[name].src=nav_off[id].src; 
 }
}

//------------ Cookie -------------------------------------
function M_parseCookie() 
{
 var cookieList = document.cookie.split("; ");
 var cookieArray = new Array();
 for(var i=0; i < cookieList.length; i++)
 {
  var name = cookieList[i].split("=");
  cookieArray[unescape(name[0])] = unescape(name[1]);
 }
 return cookieArray;
}

function M_setCookie(name,value)
{
 var expiredDate = new Date();
 expiredDate.setDate(365 + expiredDate.getDate());
 document.cookie = name + "=" + escape(value) + "; expires=" + expiredDate.toGMTString() + ";";
}

//------------------------ Detect flash 5 ------------------------------
var flashStatus;
function M_detectFlash()
{
 var cookies = M_parseCookie();
 if (null == cookies.is_flash) {
  // Check flash 5 in NN
  var flashPlugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);
  if (flashPlugin && parseInt(flashPlugin.description.substring(flashPlugin.description.indexOf(".")-1)) >= 5) { 
   flashStatus = 1; //Flash 5 or greater is available
  } else {
   flashStatus = 0; //Flash 5 is NOT available
  }
  // Check flash 5 in IE
  if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && is_win32) {
   document.write('<SCRIPT LANGUAGE="VBScript"\>\n');
   document.write('on error resume next\n');
   document.write('flashStatus = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
   document.write('<'+'/SCRIPT> \n');
  }
  
  M_setCookie('is_flash',flashStatus ? 1 : 0);
  self.location='/?intro';
 }
}

onload = M_preloadImages;

// -->