
var mqAry1=[
['assets/images/logo_patrocinadores.jpg','#'],
['assets/images/logo_concytec.jpg','http://portal.concytec.gob.pe'],			
			
['assets/images/logo_asociados.jpg','#'],
['assets/images/logo_molina.jpg','http://www.lamolina.edu.pe'],
['assets/images/logo_uni.jpg','http://www.uni.edu.pe/'],
['assets/images/logo_unmsm.jpg','http://www.unmsm.edu.pe'],
['assets/images/logo_upch.jpg','http://www.upch.edu.pe'],
['assets/images/logo_catolica.jpg','http://www.pucp.edu.pe'],

['assets/images/logo_usuarios.jpg','#'],
['assets/images/logo_inictel.jpg','http://www.inictel-uni.edu.pe'],
['assets/images/logo_urp.jpg','http://www.urp.edu.pe/'],
['assets/images/logo_usmp.jpg','http://www.usmp.edu.pe/'],
['assets/images/logo_senahmi.jpg', 'http://www.senamhi.gob.pe/'],


];



function start() {
   new mq('m1',mqAry1,90);
   mqRotate(mqr); // must come last
}

//window.onload = start;

// Continuous Image Marquee



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.target='blank';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)',50);}
