// JavaScript Document



//var mqAry1=['http://site121.mysite4now.net/amlaki/site1/Website/Portals/0/Logos/logo01.jpg','/amlaki/site1/Website/Portals/0/Logos/logo02.jpg','/amlaki/site1/Website/Portals/0/Logos/logo03.jpg','/amlaki/site1/Website/Portals/0/Logos/logo04.jpg','/amlaki/site1/Website/Portals/0/Logos/logo05.jpg','/amlaki/site1/Website/Portals/0/Logos/logo06.jpg','/amlaki/site1/Website/Portals/0/Logos/logo07.jpg'];
//var mqAry2=['/amlaki/site1/Website/Portals/0/Logos/logo03.jpg','/amlaki/site1/Website/Portals/0/Logos/logo04.jpg','/amlaki/site1/Website/Portals/0/Logos/logo05.jpg','/amlaki/site1/Website/Portals/0/Logos/logo06.jpg','/amlaki/site1/Website/Portals/0/Logos/logo07.jpg','/amlaki/site1/Website/Portals/0/Logos/logo01.jpg','/amlaki/site1/Website/Portals/0/Logos/logo02.jpg'];



//function start() {
//   new mq('m1',mqAry1,100);
//   new mq('m2',mqAry2,100);// repeat for as many fuields as required
//   mqRotate(mqr); // must come last
//}
//window.onload = start;


//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)',10);}


var m = 0;
var n = 424;
var speed = 20;
function scrollPics() {
    document.getElementById('div1').style.left = m + 'px';
    document.getElementById('div2').style.left = n + 'px';
    m--;
    n--;
    if (m == -424) {
        m = 424;
    }
    if (n == -424) {
        n = 424;
    }
    setTimeout('scrollPics()', speed);
}
window.onload = function() {
    scrollPics();
}
