function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
// JavaScript Document
function getClient() {
  this.exclude=1;
  this.agt=navigator.userAgent.toLowerCase();
  this.win=0;
  this.mac=0;
  this.lin=1;
  if (this.agt.indexOf('win')!=-1) {
    this.win=1;
    this.lin=0;
  }
  if (this.agt.indexOf('mac')!=-1) {
    this.mac=1;
    this.lin=0;
  }
  this.lnx=0;
  if (this.lin) {
    this.lnx=1;
  }
  this.ice=0;
  this.ie=0;
  this.ie4=0;
  this.ie5=0;
  this.ie6=0;
  this.com=0;
  this.dcm;
  this.op5=0;
  this.op6=0;
  this.op7=0;
  this.ns4=0;
  this.ns6=0;
  this.ns7=0;
  this.mz7=0;
  this.kde=0;
  this.saf=0;
  if (typeof navigator.vendor!="undefined" && navigator.vendor=="KDE") {
    this.thisKDE=this.agt;
    this.splitKDE=this.thisKDE.split("konqueror/");
    this.aKDE=this.splitKDE[1].split("; ");
    this.KDEn=parseFloat(this.aKDE[0]);
    if (this.KDEn>=2.2) {
      this.kde=1;
      this.ns6=1;
      this.exclude=0;
    }
  }
  else if (this.agt.indexOf('webtv')!=-1) {
    this.exclude=1;
  }
  else if (typeof window.opera!="undefined") {
    this.exclude=0;
    if (/opera[\/ ][5]/.test(this.agt)) {
      this.op5=1;
    }
    if (/opera[\/ ][6]/.test(this.agt)) {
      this.op6=1;
    }
    if (/opera[\/ ][7-9]/.test(this.agt)) {
      this.op7=1;
    }
  }
  else if (typeof document.all!="undefined"&&!this.kde) {
    this.exclude=0;
    this.ie=1;
    if (typeof document.getElementById!="undefined") {
      this.ie5=1;
      if (this.agt.indexOf("msie 6")!=-1) {
        this.ie6=1;
        this.dcm=document.compatMode;
        if (this.dcm!="BackCompat") {
          this.com=1;
        }
      }
    }
    else{
      this.ie4=1;
    }
  }
  else if (typeof document.getElementById!="undefined") {
    this.exclude=0;
    if (this.agt.indexOf("netscape/6")!=-1||
        this.agt.indexOf("netscape6")!=-1) {
      this.ns6=1;
    }
    else if (this.agt.indexOf("netscape/7")!=-1||
             this.agt.indexOf("netscape7")!=-1) {
      this.ns6=1;
      this.ns7=1;
    }
    else if (this.agt.indexOf("gecko")!=-1) {
      this.ns6=1;
      this.mz7=1;
    }
    if (this.agt.indexOf("safari")!=-1 ||
        (typeof document.childNodes!="undefined" &&
         typeof document.all=="undefined" &&
         typeof navigator.taintEnabled=="undefined")) {
      this.mz7=0;
      this.ns6=1;
      this.saf=1;
    }
  }
  else if ((this.agt.indexOf('mozilla')!=-1)&&
           (parseInt(navigator.appVersion)>=4)) {
    this.exclude=0;
    this.ns4=1;
    if (typeof navigator.mimeTypes['*']=="undefined") {
      this.exclude=1;
      this.ns4=0;
    }
  }
  if (this.agt.indexOf('escape')!=-1) {
    this.exclude=1;
    this.ns4=0;
  }
  if (typeof navigator.__ice_version!="undefined") {
    this.exclude=1;
    this.ie4=0;
  }
}
var is=new getClient();
function initLinks() {
  if (!document.getElementsByTagName) return;
  var anchors = document.getElementsByTagName("a");
  var ind;
  for (ind=0; ind<anchors.length; ind++) {
    var anchor = anchors[ind];
    if (anchor.href && anchor.rel == "external")
      anchor.target = "_blank";
  }
  var areas = document.getElementsByTagName("area");
  for (ind=0; ind<areas.length; ind++) {
    var area = areas[ind];
    if (area.href && area.className == "externLink")
      area.target = "_blank";
  }
}
function getRotation() {
  this.images=new Array();
  this.duration=1;
  this.ind=0;
}
var rotation=new getRotation();
function startRotate(id, imgs, root, ext) {
  rotation.elm=document.getElementById(id);
  for (preLoadInd=0;preLoadInd<imgs.length;preLoadInd++) {
    rotation.images[preLoadInd+1]=new Image();
    rotation.images[preLoadInd+1].src=root+imgs[preLoadInd]+ext;
  }
  window.setTimeout('rotate()',600);
}
function rotate(){
  if (!rotation.images[0]) {
    rotation.images[0]=new Image();
    rotation.images[0].src=rotation.elm.src;
  }
  rotation.ind=(rotation.ind+1)%rotation.images.length;
  if (is.ie5 || is.ie6){
    rotation.elm.style.filter='blendTrans(duration='+rotation.duration+')';
    rotation.elm.filters.blendTrans.Apply()
    rotation.elm.src=rotation.images[rotation.ind].src;
    rotation.elm.filters.blendTrans.Play();
  }
  else {
    rotation.elm.src=rotation.images[rotation.ind].src;
  }
  window.setTimeout('rotate()',2000);
}