vs4Arr=[



["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/adroitt.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/adroitt.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/anokhajob.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/anokhajob.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/auromatrix.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/auromatrix.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/bherigroup.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/bherigroup.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/bhs.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/bhs.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/bmi.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/bmi.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/ccl.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/ccl.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/chawdagroup.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/chawdagroup.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/ci.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/ci.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/comstarmedia.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/comstarmedia.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/corpus.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/corpus.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/delhi2010.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/delhi2010.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/firmlinkpharma.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/firmlinkpharma.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/hrb-group.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/hrb-group.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/kmointernational.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/kmointernational.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/legalpyegroup.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/legalpyegroup.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/m2junction.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/m2junction.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/mg.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/mg.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/microsoft.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/microsoft.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/motivitylab.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/motivitylab.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/nayavnetures.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/nayavnetures.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/nikkibeach.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/nikkibeach.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/prgassociated.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/prgassociated.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/proteck.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/proteck.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/rajnews.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/rajnews.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/singlepoint.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/singlepoint.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/slingkast.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/slingkast.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/softecnt.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/softecnt.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/spring.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/spring.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/sspventures.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/sspventures.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/topwebsitedirectories.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/topwebsitedirectories.png","Alt Text"],

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/youtoo.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/youtoo.png","Alt Text"], 

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/mps.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/mps.png","Alt Text"] ,

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/greaves.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/greaves.png","Alt Text"], 

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/vista-home.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/vista-home.png","Alt Text"], 

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/vasudhapharma.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/vasudhapharma.png","Alt Text"], 

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/manisha_constructions.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/manisha_constructions.png","Alt Text"] ,

["http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/hotelsouthernstar.png","http://www.globaloutlook.com/wp-content/themes/twentyten/images/clientlogos/hotelsouthernstar.png","Alt Text"]



/*



["pic06.jpg","pic06.jpg","Alt Text"],

["pic07.jpg","pic07.jpg","Alt Text"],

["pic08.jpg","pic08.jpg","Alt Text"],

["pic09.jpg","pic09.jpg","Alt Text"],

["pic10.jpg","pic10.jpg","Alt Text"]

*/



]



dir=0 // 0 = up 1 = down

speed=2

imageSize=50  // %

fixedWidth=100 // set a fixed width

fixedHeight=100 // set a fixed height



popupLeft= 100 // pixels

popupTop= 100 // pixels



biggest=0

ieBorder=0

sv4Timer=null



preload=new Array()

	for(var i=0;i<vs4Arr.length;i++){

	preload[i]=new Image()

	preload[i].src=vs4Arr[i][0]

}



function initVS4(){

	scroll1=document.getElementById("scroller1")

	 if(scroll1==null) return;

		for(var j=0;j<vs4Arr.length;j++){



			scroll1.innerHTML+='<img id="pic'+j+'" src="'+preload[j].src+'" alt="'+vs4Arr[j][2]+'" ><br>'



			if(imageSize!=0){ // use percentage size

				newWidth=preload[j].width/100*imageSize

				newHeight=preload[j].height/100*imageSize

			}

			else{ // use fixed size

				newWidth=fixedWidth

				newHeight=fixedHeight

			}



			document.getElementById("pic"+j).style.width= "150px";

			document.getElementById("pic"+j).style.height="111px";



			if(document.getElementById("pic"+j).offsetWidth>biggest){

				biggest=document.getElementById("pic"+j).offsetWidth

			}

		}

	 

	scrollBox=document.getElementById("scroll_box")

 

	if(document.getElementById&&document.all&&document.compatMode!="CSS1Compat"){

		ieBorder=parseInt(scrollBox.style.borderTopWidth)*2

	}



	scrollBox.style.width="150px"



	scroll2=document.getElementById("scroller2")

	scroll2.innerHTML=scroll1.innerHTML

	scroll2.style.top=scroll1.offsetHeight+"px"



	if(dir==0){

		speed= -speed

	}



	scrollVS4()

}

 



function scrollVS4(){

	if(paused==1){return}

	clearTimeout(sv4Timer)

	

	scroll1=document.getElementById("scroller1");

	scroll2=document.getElementById("scroller2");

	if(scroll1==null) return;

	 if(scroll2==null) return;

	scroll1Pos=parseInt(scroll1.style.top)

	scroll2Pos=parseInt(scroll2.style.top)



	scroll1Pos+=speed

	scroll2Pos+=speed



	scroll1.style.top=scroll1Pos+"px"

	scroll2.style.top=scroll2Pos+"px"



	sv4Timer=setTimeout("scrollVS4()",60)



	if(dir==0){

		if(scroll1Pos< -scroll1.offsetHeight){

			scroll1.style.top=scroll1.offsetHeight+"px"

		}



		if(scroll2Pos< -scroll1.offsetHeight){

		scroll2.style.top=scroll1.offsetHeight+"px"

		}

	}



	if(dir==1){

		if(scroll1Pos>parseInt(scrollBox.style.height)){

		scroll1.style.top=(scroll2Pos-scroll1.offsetHeight)+"px"

		}



		if(scroll2Pos>parseInt(scrollBox.style.height)){

		scroll2.style.top=(scroll1Pos - scroll2.offsetHeight)+"px"

		}

	}



}



st=null

function pause(){

clearTimeout(sv4Timer)

clearTimeout(st)

}



function reStartVS4(){

clearTimeout(st)

st=setTimeout("scrollVS4()",100)

}



paused=0

picWin=null

chkTimer=null



function showBigPic(p){



if(vs4Arr[p][1]!=""){

paused=1



if(picWin&&picWin.open&&!picWin.closed){picWin.close()} // if picWin exists close it



if(vs4Arr[p][1].indexOf("htm")==-1){

bigImg=new Image()

bigImg.src=vs4Arr[p][1]



data="\n<center>\n<img src='"+bigImg.src+"'>\n<\/center>\n"



var winProps = "left= "+popupLeft+", top = "+popupTop+", width="+(bigImg.width+20)+", height="+(bigImg.height+20)+", scrollbars=no, toolbar=no, directories=no, menu bar=no, resizable=yes, status=no" 

picWin=window.open("","win1",winProps)

picWin.document.write("<HTML>\n<HEAD>\n<TITLE><\/TITLE>\n")

picWin.document.write("<\/HEAD>\n")

picWin.document.write("<BODY style='backgground-color:black;margin-top:0px; '>\n")

picWin.document.write("<div id=\"display\" style=\"padding-bottom:0px; \">"+data+"<\/div>")

picWin.document.write("\n<\/BODY>\n<\/HTML>")

picWin.document.close()

}

else{

picWin=window.open(vs4Arr[p][1])

}



}

clearTimeout(chkTimer)

}



window.onfocus=function(){

/*

clearTimeout(chkTimer)

if(picWin&&picWin.open&&!picWin.closed){

chkTimer=setTimeout("picWin.close()",10000) // uncomment to have popup closed when blurred

}

*/

paused=0

scrollVS4()

}



// add onload="initVS4()" to the opening body tag



 
