//##### loading function start ######

function loading(i) {
	startleftnavimoving(i)
}

//##### loading function end ######

//###### partner moving start ######

var rollerimagepartner="";
var howtime="";
var toppos="";
var k=2;
var heightdiv="";
var partnertiming="";

function startleftnavimoving(ichk) {
	rollerimagepartner='<div id="div1" style="position:relative;left:0;top:0;">';
	var partner_image=new Array();
	var partner_link=new Array();
	//user changed area end
	//give atleast 3 images
	if(ichk==1) {
		partner_image[0]='Year Established 1990 <br><br>Studies completed >20 (2008-2009)<br><br>Workforce > 30 (and growing)<br><br>8 Data Management staff average 17 years of experience <br><br>8 Biostatisticians average 21 years of experience<br><br>8 Statistical Programmers average 16 years of experience<br><br>3 QA Associates<br><br>2 Medical Writers<br><br>3 Project Managers';
		partner_image[1]='<span class="symbianclr">Meet us at Partnerships with CROs</span> <br>April 12 -14 <br>Orlando, FL';
		partner_image[2]='<span class="symbianclr">Join us at SAS Global Forum</span> <br>April 12 -14<br>Seattle, WA';
		partner_image[3]='<span class="symbianclr">Visit us at DIA Annual Meeting</span><br>June 13 – 17<br>Washington, DC';
		partner_image[4]='<span class="symbianclr">Visit us at ASA 2010 Joint Statistical Meeting</span><br>July 31 – Aug. 5<br>Vancouver, British Columbia, Canada';
	} else if(ichk==2) {
		partner_image[0]='<b>"</b><span class="des01 symbianclr"> We owe our success to their efficient and focused work, cooperative spirit and dedication.</span><b>"</b>';
		partner_image[1]='<b>"</b><span class="des01 symbianclr"> It would have been impossible to achieve [our goals] if you and your team didn&rsquo;t work through weekends and under "crazy" timelines.</span><b>"</b>';
		partner_image[2]='<b>"</b><span class="des01 symbianclr"> I believe that the secret of our success has been in our ability to communicate directly and work as a team.</span><b>"</b>';
		partner_image[3]='<b>"</b><span class="des01 symbianclr"> Symbiance&rsquo;s work has been excellent and they showed dedication to us and our timelines. Frequent and clear communication, reliability and rapid data turn.</span><b>"</b>';
		partner_image[4]='<b>"</b><span class="des01 symbianclr"> Symbiance not only delivered all required information but were also exceptionally responsive to our needs.</span><b>"</b>';
		partner_image[5]='<b>"</b><span class="des01 symbianclr"> Symbiance&rsquo;s work has been excellent and they showed dedication to us and our timelines. Frequent and clear communication, reliability and rapid data turn.</span><b>"</b>';
	}
	
	//give link
	partner_link['link0']='https://ww.test0.com';
	partner_link['link1']='https://ww.test1.com';
	partner_link['link2']='https://ww.test2.com';
	partner_link['link3']='https://ww.test3.com';
	//user changed area end
	howtime=3;
	for (i=0,j=1;i<partner_image.length;i++) {
		rollerimagepartner+='<p class="des06" '+((ichk==1)?"style='text-align:left;'":"")+'>'+partner_image[i]+'</p><br>';
		if(partner_image.length-1==i && howtime>j) {
			i=-1;
			j+=1;
			rollerimagepartner+='</div><div id="div'+j+'" style="position:relative;left:0;top:0;">';
		}
	}
	rollerimagepartner+='</div>';
	document.getElementById("partnermoveimg").innerHTML=rollerimagepartner;
	heightdiv=document.getElementById("div1").offsetHeight;
	chkroll=heightdiv*howtime;
	if(chkroll>"219") {
	image_move();
	}
}
function image_move() {
	for (i=1;i<=howtime;i++) {
		toppos=document.getElementById("div"+i).style.top;
		toppos=toppos.substring(0,toppos.length-2);
		document.getElementById("div"+i).style.top=parseInt(toppos-1);
	}
	if(k==1) {
		chkheightdiv=0;
		giveheightdiv=0;
	}
	if(k==2) {
		chkheightdiv=-heightdiv;
		giveheightdiv=parseInt(heightdiv+heightdiv);
	}
	 if(k==3) {
		chkheightdiv=-parseInt(heightdiv+heightdiv);
		giveheightdiv=parseInt(heightdiv);
	}
	chktop=document.getElementById("div"+k).style.top;
	chktop=chktop.substring(0,chktop.length-2);
	if(chktop==parseInt(chkheightdiv-1) || chktop==chkheightdiv) {
		if(k==1) {
			ij=howtime;
		} else {
			ij=parseInt(k-1);
		}
		document.getElementById("div"+ij).style.top=giveheightdiv;
		k=parseInt(k+1);
		if(k>howtime) {
			k=1;
		}
	}
	window.clearTimeout(partnertiming);
	partnertiming=window.setTimeout('image_move()',40);
}

function moveStart(e) {
	window.clearTimeout(partnertiming);
	partnertiming=window.setTimeout('image_move()',40);
	var obj=(e.srcElement) ? e.srcElement : e.target;
	if(obj.tagName=="IMG") {
		obj.style.border="0";
	}
}

function moveStop(e) {
	window.clearInterval(partnertiming);
	var obj=(e.srcElement) ? e.srcElement : e.target;
	if(obj.tagName=="IMG") {
		//obj.style.border="1px solid #D9CED5";
	}
}
//##### partner moving stop ######
