var inc = 0;

// for changing color on rollover, for a table of row or cell
function scbg(objRef, state, oncolor, offcolor) 
{
	objRef.style.backgroundColor = (1 == state) ? oncolor : offcolor;
	return;
}

// for rotating text contents
function load()
{
	var text = new Array();
	text[0] = "<b>&quot;What stands out is PriorityONE's understanding of our needs. They listen carefully, have access to high quality candidates and never try to 'force-fit' anybody. This makes it very easy to work with them. I highly recommend PriorityONE.&quot; <br> - HD, Technology intensive products company</b>";
	text[1] = "<b>&quot;PriorityONE has proven to be a valuable partner by delivering quality hires for most of our posts. I am happy with the personal relation they build with their candidates, ensuring a lower dropout %. They are also very cooperative, proficient and professional.&quot;<br> &ndash; SM, Resourcing Manager, a financial domain MNC</b>";
	text[2] = "<b>&quot;What stands out is PriorityONE's understanding of our needs. They listen carefully, have access to high quality candidates and never try to 'force-fit' anybody. This makes it very easy to work with them. I highly recommend PriorityONE.&quot; <br> - HD, Technology intensive products company</b>";
	text[3] = "<b>&quot;PriorityONE has proven to be a valuable partner by delivering quality hires for most of our posts. I am happy with the personal relation they build with their candidates, ensuring a lower dropout %. They are also very cooperative, proficient and professional.&quot;<br> &ndash; SM, Resourcing Manager, a financial domain MNC</b>";
	if(inc > 2)
		inc = 0;
	obj = document.getElementById("text");
	//alert(text[inc]);
	obj.innerHTML = text[inc];
	++inc;
	timerID = window.setTimeout("load()", 7000);
}

// for headlines

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",450)
}

function bgcolorfade() {	         	
// 20 frames fading process
if(frame>0) {	
hex=(fadescheme==0)? hex-12 : hex+12 // increase or decrease color value depd on fadescheme
tickerobject.style.backgroundColor="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("bgcolorfade()",20);	
}
else{
tickerobject.style.backgroundColor=endcolor;
frame=20;
hex=(fadescheme==0)? 255 : 50
}   
}

function updatecontent(){
if (ie||ns6)
bgcolorfade()
if (ns4){
tickerobject.subtickertape.document.write('<span class="subtickertapefont">'+news[i]+'</span>')
tickerobject.subtickertape.document.close()
}
else 
tickerobject.innerHTML=news[i]

if (i<news.length-1)
i++
else
i=0
setTimeout("updatecontent()",speed)
}