// JavaScript Document
var mqAry1=['images/cl_logos/1.jpg',
            'images/cl_logos/2.jpg',
			'images/cl_logos/3.jpg',
			'images/cl_logos/4.jpg',
			'images/cl_logos/5.jpg',
			'images/cl_logos/6.jpg',
			'images/cl_logos/7.jpg',
			'images/cl_logos/8.jpg',
			'images/cl_logos/9.jpg',
			'images/cl_logos/10.jpg',
			'images/cl_logos/11.jpg',
			'images/cl_logos/12.jpg',
			'images/cl_logos/13.jpg',
			'images/cl_logos/14.jpg',
			'images/cl_logos/15.jpg',
			'images/cl_logos/16.jpg',
			'images/cl_logos/17.jpg',
			'images/cl_logos/18.jpg',
			'images/cl_logos/19.jpg',
			'images/cl_logos/20.jpg',
			'images/cl_logos/21.jpg',
			'images/cl_logos/22.jpg',
			'images/cl_logos/23.jpg',
			'images/cl_logos/24.jpg',
			'images/cl_logos/25.jpg',
			'images/cl_logos/26.jpg',
			'images/cl_logos/27.jpg',
			'images/cl_logos/28.jpg',
			'images/cl_logos/29.jpg'];


function start() {
   new mq('m1',mqAry1,90);
   mqRotate(mqr); // must come last
}
window.onload = start;

// Continuous Image Marquee
// copyright 24th July 2008 by Stephen Chapman
// http://javascript.about.com
// permission to use this Javascript on your web page is granted
// provided that all of the code below in this script (including these
// comments) is used without any alteration
var mqr = [];
function mq(id,ary,wid){
  this.mqo=document.getElementById(id);
  var heit = this.mqo.style.height;
  
  this.mqo.onmouseout=function() {
    mqRotate(mqr);
  };
  
  this.mqo.onmouseover=function() {
    clearTimeout(mqr[0].TO);
  };
  
  this.mqo.ary=[];
  var maxw = ary.length;
  
  for (var i=0;i<maxw;i++) {
    this.mqo.ary[i]=document.createElement('img');
	this.mqo.ary[i].src=ary[i];
	this.mqo.ary[i].style.position = 'absolute';
	this.mqo.ary[i].style.left = (wid*i)+'px';
	this.mqo.ary[i].style.width = wid+'px';
	this.mqo.ary[i].style.height = heit;
	this.mqo.appendChild(this.mqo.ary[i]);
  }
  
  mqr.push(this.mqo);
}

function mqRotate(mqr) {
  if (!mqr) return;
  for (var j=mqr.length - 1; j > -1; j--) {
    maxa = mqr[j].ary.length;
	for (var i=0;i<maxa;i++) {
	  var x = mqr[j].ary[i].style;
	  x.left=(parseInt(x.left,10)-1)+'px';
	}
	
	var y = mqr[j].ary[0].style;
	
	if (parseInt(y.left,10)+parseInt(y.width,10)<0) {
	  var z = mqr[j].ary.shift();
	  z.style.left = (parseInt(z.style.left) + parseInt(z.style.width)*maxa) + 'px';
	  mqr[j].ary.push(z);
	}
  } 
  
  mqr[0].TO=setTimeout('mqRotate(mqr)',20);
}