function externalLinks() {
  var contents = document.getElementById("page-content");
  if(contents) {
    if (!document.getElementsByTagName) {
      return; 
    }
    var anchors = document.getElementsByTagName('a');
    for(var i=0; i<anchors.length; i++) {
      classStr = anchors[i].className;
      if(classStr.indexOf('externLink') != -1) {
        anchors[i].onclick = function() {
          return !window.open(this.href);
        }
      }
    }
  }
}

function getRotation() {
  this.images=new Array();
  this.duration=2;
  this.ind=0;
}

var rotation=new getRotation();

function startRotate(id, imgs, root) {
  rotation.elm=getElt(id);
  for (preLoadInd=0;preLoadInd<imgs.length;preLoadInd++) {
    rotation.images[preLoadInd+1]=new Image();
    rotation.images[preLoadInd+1].src=root+imgs[preLoadInd];
  }
  //window.setTimeout('rotate()',5000);
  rotate();
}

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 || is.ie7) {
    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()',7000);
}