
var imgpath="images/";

var index1=0;
var index2=0;
var index3=0;
var index4=0;

var index5=0;
var index6=0;
var index7=0;
var index8=0;
var index9=0;

var imglist1=new Array("icbt.jpg","arabian.jpg","pathe.jpg","jetwing.jpg","astron.jpg","idl.jpg");

var lglnk1 = new Array("","","http://www.pathenet.com/","http://www.jetwing.net","http://www.astronasia.com","http://www.idl.lk");

var imglist2=new Array("acbt.jpg","ewis.jpg","maga.jpg","slinsur.jpg","niit.jpg","rusi.jpg");

var lglnk2 = new Array("http://www.acbt.net/","","","http://www.srilankainsurance.com","http://www.mmblcyberskills.com","http://www.rusirumal.lk");

var imglist3=new Array("gtw.jpg","gsr.jpg","transgulf.jpg","rgi.jpg","dsc.jpg","image.jpg");

var lglnk3 = new Array("http://www.gatewayworldwide.com","http://www.gsrecruitment.com/","http://www.arabianbusinesssl.com/","","","http://www.biodatabank.net/");

var imglist4=new Array("alaman.jpg","dana.jpg","cadd.jpg","qp.jpg","nine.jpg");

var lglnk4 = new Array("http://www.gsrecruitment.com/","http://www.danamanpower.com/","http://www.jrlanka.com/","http://www.qpemployment.com/","");

var imglist5=new Array("techwood.jpg", "exit.jpg", "networks.jpg", "abe.jpg","hicc.jpg","city.jpg");

var lglnk5 = new Array("http://www.exitrec.com/","http://www.winsysnetworks.net/", "http://www.abesrilanka.com/","http://www.actos.lk/","http://www.e-quals.co.uk/servlet/page?_pageid=680&_dad=cg2&_schema=PORTAL30");

var imglist6=new Array("dib.jpg","ovs.jpg","gimi.jpg","janashakthi.jpg","eagle.jpg","comtech.jpg");

var lglnk6 = new Array("http://www.dibsrilanka.com/","","","http://www.abesrilanka.com/","http://www.eagle.com.lk/","http://www.comtechnology.org/");

var imglist7=new Array("unique.jpg","LTCS .jpg","acca.jpg","amewaters.jpg","ua.jpg");

var lglnk7 = new Array("http://www.uniquesrilanka.com/","http://londontec-edu.net/","http://www.accaglobal.com/","http://www.american-premium.com/","http://www.ualink.lk/");

var imglist8=new Array("gak.jpg","american.jpg","vntc.jpg","topaz.jpg","singlanka.jpg");

var lglnk8 = new Array("","http://www.americancollege.lk/","http://www.lankanursing.com/","http://www.jobsnet.lk/TopazLanka/Index.htm?PHPSESSID=bda7fa939413bfaf4fc76c6034edfddf", "http://www.singlun.com.sg/");

var imglist9=new Array("gtw.jpg","niit.jpg","rusi.jpg","idl.jpg","astron.jpg","gak.jpg","american.jpg","vntc.jpg","topaz.jpg","singlanka.jpg","icbt.jpg","arabian.jpg","pathe.jpg","jetwing.jpg","acbt.jpg","ewis.jpg","maga.jpg","slinsur.jpg","gsr.jpg","transgulf.jpg","rgi.jpg","dsc.jpg","image.jpg","alaman.jpg","dana.jpg","cadd.jpg","qp.jpg","nine.jpg","techwood.jpg", "exit.jpg", "networks.jpg", "abe.jpg","hicc.jpg","city.jpg","dib.jpg","ovs.jpg","gimi.jpg","janashakthi.jpg","eagle.jpg","comtech.jpg","unique.jpg","LTCS .jpg","acca.jpg","amewaters.jpg","ua.jpg");
var lglnk9 = new Array("http://www.gatewayworldwide.com","http://www.mmblcyberskills.com","http://www.rusirumal.lk","http://www.idl.lk","http://www.astronasia.com","","http://www.americancollege.lk/","http://www.lankanursing.com/","http://www.jobsnet.lk/TopazLanka/Index.htm?PHPSESSID=bda7fa939413bfaf4fc76c6034edfddf", "http://www.singlun.com.sg/","http://www.isb.edu/newsletter/default.htm","http://www.pathenet.com/","http://www.jetwing.net","","http://www.acbt.net/","","","http://www.srilankainsurance.com","http://www.gsrecruitment.com/","http://www.arabianbusinesssl.com/","","","http://www.biodatabank.net/","http://www.gsrecruitment.com/","http://www.danamanpower.com/","http://www.jrlanka.com/","http://www.qpemployment.com/","","http://www.exitrec.com/","http://www.winsysnetworks.net/", "http://www.abesrilanka.com/","http://www.actos.lk/","http://www.e-quals.co.uk/servlet/page?_pageid=680&_dad=cg2&_schema=PORTAL30","http://www.dibsrilanka.com/","","","http://www.abesrilanka.com/","http://www.eagle.com.lk/","http://www.comtechnology.org/","http://www.uniquesrilanka.com/","http://londontec-edu.net/","http://www.accaglobal.com/","http://www.american-premium.com/","http://www.ualink.lk/");
/*
*	Function definitions goes here
*/

function addRotate1() {
	  //document.write(imgpath + imglist[index]);
		document.getElementById('logo1').src=imgpath+imglist1[index1];
		document.getElementById('logolink1').href=lglnk1[index1];
		index1++;
		if (index1==imglist1.length-1) {index1=0;}
		
		//alert("Calling addRotate1");
}

function addRotate2() {
	  //document.write(imgpath + imglist[index]);
		document.getElementById('logo2').src=imgpath+imglist2[index2];
		document.getElementById('logolink2').href=lglnk2[index2];
		index2++;
		if (index2==imglist2.length-1) {index2=0;}
		
		//alert("Calling addRotate2");
}

function addRotate3() {
	  //document.write(imgpath + imglist[index]);
		document.getElementById('logo3').src=imgpath+imglist3[index3];
		document.getElementById('logolink3').href=lglnk2[index3];
		index3++;
		if (index3==imglist3.length-1) {index3=0;}
		
		//alert("Calling addRotate3");
}

function addRotate4() {
	  //document.write(imgpath + imglist[index]);
		document.getElementById('logo4').src=imgpath+imglist4[index4];
		document.getElementById('logolink4').href=lglnk4[index4];
		index4++;
		if (index4==imglist4.length-1) {index4=0;}
		
		//alert("Calling addRotate4");
}

function addRotate5() {
	  //document.write(imgpath + imglist[index]);
		document.getElementById('logo5').src=imgpath+imglist5[index5];
		document.getElementById('logolink5').href=lglnk5[index5];
		index5++;
		if (index5==imglist5.length-1) {index5=0;}
		
		//alert("Calling addRotate4");
}

function addRotate6() {
	  //document.write(imgpath + imglist[index]);
		document.getElementById('logo6').src=imgpath+imglist6[index6];
		document.getElementById('logolink6').href=lglnk6[index6];
		index6++;
		if (index6==imglist6.length-1) {index6=0;}
		
		
}
function addRotate7() {
	  //document.write(imgpath + imglist[index]);
		document.getElementById('logo7').src=imgpath+imglist7[index7];
		document.getElementById('logolink7').href=lglnk7[index7];
		index7++;
		if (index7==imglist7.length-1) {index7=0;}
		
		
}

function addRotate8() {
	  //document.write(imgpath + imglist[index]);
		document.getElementById('logo8').src=imgpath+imglist8[index8];
		document.getElementById('logolink8').href=lglnk8[index8];
		index8++;
		if (index8==imglist8.length-1) {index8=0;}
		
		
}

function addRotate9() {
	  //document.write(imgpath + imglist[index]);
		document.getElementById('logo9').src=imgpath+imglist9[index9];
		document.getElementById('logolink9').href=lglnk9[index9];
		index9++;
		if (index9==imglist9.length-1) {index9=0;}
		
		
}

function starLoop() {
	var intval=setInterval('addRotate1()', 2000); 
	var intval=setInterval('addRotate2()', 4000); 
	var intval=setInterval('addRotate3()', 2000); 
	var intval=setInterval('addRotate4()', 4000); 
	var intval=setInterval('addRotate5()', 4000); 
	var intval=setInterval('addRotate6()', 2000); 
	var intval=setInterval('addRotate7()', 4000); 
	var intval=setInterval('addRotate8()', 2000); 
	
	var intval=setInterval('addRotate9()', 4000);
}	


function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	
	starLoop();
}

/*
*	Page load event handler goes here
*/

document.onload = MM_preloadImages("gtw.jpg","niit.jpg","rusi.jpg","idl.jpg","astron.jpg","images/icbt.jpg","images/arabian.jpg","images/pathe.jpg","images/jetwing.jpg","images/techwood.jpg", "images/exit.jpg", "images/networks.jpg", "images/abe.jpg","images/hicc.jpg","images/city.jpg", "images/acbt.jpg","images/ewis.jpg","images/maga.jpg","images/slinsur.jpg","images/dib.jpg","images/ovs.jpg","images/gimi.jpg","images/janashakthi.jpg","images/eagle.jpg","images/comtech.jpg", "images/gsr.jpg","images/transgulf.jpg","images/rgi.jpg","images/dsc.jpg","images/image.jpg","images/unique.jpg","images/LTCS .jpg","images/acca.jpg","images/amewaters.jpg","images/ua.jpg", "images/alaman.jpg","images/dana.jpg","images/cadd.jpg","images/qp.jpg","images/nine.jpg","images/gak.jpg","images/american.jpg","images/vntc.jpg","images/topaz.jpg","images/singlanka.jpg");
