/*var mqAry1=['/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/2_steel structure.jpg','/images/scroller/6_Conveyor.jpg','/images/scroller/6_Conveyor.jpg','/images/scroller/6_Conveyor.jpg','/images/scroller/6_Conveyor.jpg','/images/scroller/6_Conveyor.jpg'];*/


var mqAry1=[



['/images/scroller/1_Technical Services.JPG','/index.php?option=com_content&view=article&id=51&Itemid=46'],
['/images/scroller/2_Project Management.jpg','/index.php?option=com_content&view=article&id=14&Itemid=47'],
['/images/scroller/3_General Conveyors.JPG','/index.php?option=com_content&view=article&id=34&Itemid=41'],

['/images/scroller/4_Process.JPG','/index.php?option=com_content&view=article&id=19&Itemid=23'],
['/images/scroller/5_General Filling.jpg','/index.php?option=com_content&view=article&id=1&Itemid=1'],
['/images/scroller/6_General Conveying.JPG','/index.php?option=com_content&view=article&id=34&Itemid=41'],

['/images/scroller/7_General Labelling.JPG','/index.php?option=com_content&view=article&id=31&Itemid=32'],
['/images/scroller/8_Shrink-Wrapping.JPG','/index.php?option=com_content&view=article&id=20&Itemid=24'],
['/images/scroller/9_Bulk Palletising.JPG','/index.php?option=com_content&view=article&id=9&Itemid=16'],
['/images/scroller/10_Palletising.JPG','/index.php?option=com_content&view=article&id=2&Itemid=4'],
['/images/scroller/11_Kegging.JPG','/index.php?option=com_content&view=article&id=13&Itemid=17'],

['/images/scroller/1_Technical Service.jpg','/index.php?option=com_content&view=article&id=51&Itemid=46'],
['/images/scroller/General Filling.JPG','/index.php?option=com_content&view=article&id=1&Itemid=1'],
['/images/scroller/Process.JPG','/index.php?option=com_content&view=article&id=19&Itemid=23'],
['/images/scroller/Wraparound Cartonner.jpg','/index.php?option=com_content&view=article&id=36&Itemid=39']];


function start() {
   new mq('m1',mqAry1,126);
   mqRotate(mqr); // must come last
}
window.onload = start;

// 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.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);}
