function getInternetExplorerVersion(){
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).

  var rv = -1; // Return value assumes failure
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}

var s = false;

function startSlides(){
	var ver = getInternetExplorerVersion();
	if(ver<7 && ver>-1){
	s=false;
	}
	else
	{
	s=true;
	clearInterval(MulticlockID);
	//generate random number
	var randomnumber=Math.floor(Math.random()*10000)
	var randomnumber1=Math.floor(Math.random()*10000)
		Pos=document.getElementById("Slides1").style.backgroundPosition;
		T=Pos.split(" ");
		xPos=parseInt(T[0]);
		yPos=parseInt(T[1]);
	var xPos=(xPos+(Direction*randomnumber));
	var yPos=(yPos+0);
	document.getElementById("Slides1").style.backgroundPosition=xPos+"px "+yPos+"px";
		Pos=document.getElementById("Slides2").style.backgroundPosition;
		T=Pos.split(" ");
		xPos=parseInt(T[0]);
		yPos=parseInt(T[1]);
	xPos=(xPos+(Direction*randomnumber1));
	yPos=(yPos+0);
	document.getElementById("Slides2").style.backgroundPosition=xPos+"px "+yPos+"px";
	Multistart();
	}
}
function Multistart() {
	clearInterval(MulticlockID);
	Slides1=Sl.split(",");
	Slides2=S2.split(",");
	MulticlockID=setInterval("MultiMover()",20);
}

var Direction=1;

var Sl="Slides1";
var S2="Slides2";
var Slides1=null;
var Slides2=null;
function MultiMover() {  //
if(document.getElementById("Slides1")==null){
	clearInterval(MulticlockID);
}
else{
if(s==true){
	for(x in Slides1){
		Pos=document.getElementById(Slides1[x]).style.backgroundPosition;
		T=Pos.split(" ");
		xPos=parseInt(T[0]);
		yPos=parseInt(T[1]);
		xPos=(xPos+1);
		yPos=(yPos-0);
		document.getElementById(Slides1[x]).style.backgroundPosition=xPos+"px "+yPos+"px";
	}
	
	for(y in Slides2){
		Pos=document.getElementById(Slides2[y]).style.backgroundPosition;
		T=Pos.split(" ");
		xPos=parseInt(T[0]);
		yPos=parseInt(T[1]);
		xPos=(xPos-1);
		yPos=(yPos+0);
		document.getElementById(Slides2[y]).style.backgroundPosition=xPos+"px "+yPos+"px";
	}
	}
	}
}

var MulticlockID=null;

