var mqAry1=[['images/clients/logan_furniture.jpg','http://www.loganfurniture.com/'],['images/clients/alacart.jpg','http://www.alacarteparties.com/'],['images/clients/punjab_cafe.jpg','http://www.punjabcafe.com/index.php'],['images/clients/i93_consulting.jpg','http://www.i93consulting.com/'],['images/clients/penns_hill_media.jpg','http://www.pennshill.com/'],['images/clients/gentleone.png','http://www.thegentleone.com/'],['images/clients/rockwood_designs.jpg','http://www.rockwooddesign.com/'],['images/clients/lmhs_pc.jpg','ttp://www.lmhspc.com/'],['images/clients/constables.png','http://southcoastlegalservices.com/'],['images/clients/guru.jpg','http://www.guruthecaterer.com/home.html'],['images/clients/kidding_around.jpg','http://kiddingaround.org/'],['images/clients/boardliving.jpg','http://www.boardliving.com/'],['images/clients/law1.png','http://howayeck.com/']];
var mqAry2=[['images/technology/android.jpg','http://www.android.com/'],['images/technology/bada.jpg','http://www.bada.com/'],['images/technology/blackberry.jpg','http://www.blackberry.com/'],['images/technology/iOS.jpg','http://www.apple.com/iphone/ios4/'],['images/technology/meego.jpg','http://meego.com/'],['images/technology/palmwebos.jpg','http://developer.palm.com/'],['images/technology/symbian.jpg','http://www.symbian.org/'],['images/technology/microsoft.jpg','http://www.microsoft.com/'],['images/technology/php.jpg','http://www.php.com/'],['images/technology/paypal.jpg','http://www.paypal.com/'],['images/technology/mysql.jpg','http://www.mysql.com/'],['images/technology/wordpress.jpg','http://www.wordpress.com/']];


function start() {
   new mq('m1',mqAry1,60);
   new mq('m2',mqAry2,70);// repeat for as many fuields as required
  
   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 = (291*i)+'px';

 this.mqo.ary[i].style.width = '291px';

 this.mqo.ary[i].style.height = wid+'px';

 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);

}*/
// Continuous Image Marquee with Links
// copyright 21st September 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++){var img=document.createElement('img');

 img.src=ary[i][0];

 var lnk=document.createElement('a');

 lnk.href=ary[i][1];

 lnk.appendChild(img);

 this.mqo.ary[i]=document.createElement('div');

 this.mqo.ary[i].appendChild(lnk);

 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.ary[i].style.left = (132*i)+'px';

 this.mqo.ary[i].style.width = '132px';

 this.mqo.ary[i].style.height = wid+'px';

 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)',40);

}
