function flip(id, d) {
	var n=(ct+1)%src.length;
	if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
   		if (document.all){
      		document.getElementById(id).style.filter="blendTrans(duration=.08)"
      		document.getElementById(id).style.filter="blendTrans(duration=crossFadeDuration)"
      		document.getElementById(id).filters.blendTrans.Apply()      
   			}
		document.getElementById(id).src = ads[ct=n].src;
   		if (document.all){
      		document.getElementById(id).filters.blendTrans.Play()
			}
		}
	ads[n=(ct+1)%src.length] = new Image;
	ads[n].src = src[n];
	setTimeout("flip('"+id+"',"+d+")",d*1000);
	}
function geckoGetWidth(ele) {
  var w = parseInt(document.defaultView.getComputedStyle(ele, '').getPropertyValue("width"));
  var pl = parseInt(document.defaultView.getComputedStyle(ele, '').getPropertyValue("padding-left"));
  var pr = parseInt(document.defaultView.getComputedStyle(ele, '').getPropertyValue("padding-right"));
  var blw = parseInt(document.defaultView.getComputedStyle(ele, '').getPropertyValue("border-left-width"));
  var brw = parseInt(document.defaultView.getComputedStyle(ele, '').getPropertyValue("border-right-width"));
  return w + pl + pr + blw + brw;
}
function geckoGetHeight(ele) {
  var h = parseInt(document.defaultView.getComputedStyle(ele, '').getPropertyValue("height"));
  var pt = parseInt(document.defaultView.getComputedStyle(ele, '').getPropertyValue("padding-top"));
  var pb = parseInt(document.defaultView.getComputedStyle(ele, '').getPropertyValue("padding-bottom"));
  var btw = parseInt(document.defaultView.getComputedStyle(ele, '').getPropertyValue("border-top-width"));
  var bbw = parseInt(document.defaultView.getComputedStyle(ele, '').getPropertyValue("border-bottom-width"));
  return h + pt + pb + btw + bbw;
}
function startIcon(id, dx, dy) {
  var e1;
  e1 = document.getElementById(id).cbe;
  e1.left(cx);
  e1.top(cy);
  e1.parametricEquation(dx, dy, 0);
  duration = .165
  }
function stopIcon(id) {
  var e1;
  e1 = document.getElementById(id).cbe;
  e1.stopSlide();
  cx = e1.left();
  cy = e1.top();
  }
function pauseIcon(id) {
  var e1;
  e1 = document.getElementById(id).cbe;
  e1.pause = true;
  duration = .63;
  }
function resumeIcon(id) {
  var e1;
  e1 = document.getElementById(id).cbe;
  e1.pause = false;
  duration = .165
  }

function startIcon(id, dx, dy) {
  var e1;
  e1 = document.getElementById(id).cbe;
  e1.left(cx);
  e1.top(cy);
  e1.parametricEquation(dx, dy, 0);
  duration = .165
  }

