// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// =======================================
// set the following variables
// =======================================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 2500

// Duration of crossfade (seconds)
var crossFadeDuration = 12

// Specify the image files
var Pic = new Array()
Pic[0] = 'images/servicing-all-mobile-brands.jpg'
Pic[1] = 'images/mobile-three-months-warranty.jpg'
Pic[2] = 'images/mobile-fast-friendly-professional.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array();
for (i = 0; i < p; i++){
   preLoad[i] = new Image();
   preLoad[i].src = Pic[i];
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)";
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
      document.images.SlideShow.filters.blendTrans.Apply();
   }
   document.images.SlideShow.src = preLoad[j].src;
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play();
   }
   j = j + 1;
   if (j > (p-1)) j=0;
   t = setTimeout('runSlideShow()', slideShowSpeed);
}

function chgbgm(cellrefv)
{
	if (document.all)
	{
		cellrefid = "td"+cellrefv;
		textrefid = "tx"+cellrefv;
		var cellcolorv = eval ('document.all.' + cellrefid + '.style');
		var textcolorv = eval ('document.all.' + textrefid + '.style');
		textcolorv.color = '#9A1730';
		cellcolorv.backgroundColor = '#f0f0f0';
		cellcolorv.border = '2px solid #0083D7';
	}
}

function chgbgw(cellreft)
{
	if (document.all)
	{
		cellrefid = "td"+cellreft;
		textrefid = "tx"+cellreft;
		var cellcolort = eval ('document.all.' + cellrefid + '.style');
		var textcolort = eval ('document.all.' + textrefid + '.style');
		textcolort.color = '#000000';
		cellcolort.backgroundColor = '#FFFFFF';
		cellcolort.border = '2px solid #FFFFFF';
	}
}
