function addScrollers() {
// code each scroller as follows:
// startScroll('id of scroller div','content of scroller');
var content='';
content='<p>1. <a href="#">College open on<\/a>--21-07-2011<\/p>';
content+='<p>2. <a href="#">1st Counselling<\/a>--10-08-2011 to 19-09-2011<\/p>';
content+='<p>3. <a href="#">Teaching starts on<\/a>--22-09-2011<\/p>';
content+='<p>4. <a href="#">Class Tests (4 in a week)<\/a>--19-10-2011 to 31-06-2011 (except during exam & TP)<\/p>';
content+='<p>5. <a href="#">Model lession and T.P. in simulation<\/a>--05-11-2011 to 11-11-2011<\/p>';
content+='<p>6. <a href="#">Teaching Practice (Phase – I)<\/a>--12-11-2011 to 30-11-2011<\/p>';
content+='<p>7. <a href="#">Exhibition of Teaching Aids<\/a>--14-10-2011<\/p>';
content+='<p>8. <a href="#">Intra Colleg Skill in Teaching Competitions<\/a>--30-11-2011<\/p>';
content+='<p>9. <a href="#">Winter Break<\/a>--24-12-2011 to 02-01-2012<\/p>';
content+='<p>10. <a href="#">NSS Camp<\/a>-- 17-12-2011 to 23-12-2011<\/p>';
content+='<p>11. <a href="#">House test (1st Semester)<\/a>--07-12-2011 to 14-12-2011<\/p>';
content+='<p>12. <a href="#">Practical Exam (IV B)<\/a>--15-12-2011<\/p>';
content+='<p>13. <a href="#">1st Make up test<\/a>--22-12-2011 to 31-12-2011<\/p>';
content+='<p>14. <a href="#">Inter Sadan sports Competition<\/a>--01-02-2012 to 12-02-2012<\/p>';
content+='<p>15. <a href="#">Educational Tour<\/a>--11-02-2012 to 13-02-2012<\/p>';
content+='<p>16. <a href="#">House Test (2nd Semester)<\/a>--18-03-2012 to 31-03-2012<\/p>';
content+='<p>17. <a href="#">2nd Make up test<\/a>--01-04-2012 to 14-04-2012<\/p>';
content+='<p>18. <a href="#">T.P. in Simulation & Teaching Practice (2nd Phase)<\/a>--10-04-2012 to 25-04-2012<\/p>';
content+='<p>19. <a href="#">Final skill-in-teaching practical<\/a>--21-05-2012 to 30-05-2012<\/p>';
content+='<p>20. <a href="#">Final Examination<\/a>--10-06-2012 to 31-06-2012<\/p>';




startScroll('myscroller',content);
//startScroll('twoscroll','<p>Yet another scroller!</p>');
}

var speed=15; // scroll speed (bigger = faster)
var dR=false; // reverse direction

// Vertical Scroller Javascript
// copyright 24th September 2005, by Stephen Chapman
// permission to use this Javascript on your web page is granted
// provided that all of the code below (as well as these
// comments) is used without any alteration
var step = 2;
function objWidth(obj) 
{
	if(obj.offsetWidth) 
		return obj.offsetWidth; 
	if (obj.clip) 
		return obj.clip.width; 
	return 0;
} 
function objHeight(obj) 
{
	if(obj.offsetHeight) 
		return obj.offsetHeight; 
	if (obj.clip) 
		return obj.clip.height; 
	return 0;
} 

function scrF(i,sH,eH){
	var x=parseInt(i.top)+(dR? step: -step); 
	if(dR && x>sH)
		x=-eH;
	else if(x<2-eH)
		x=sH;
	i.top = x+'px';
} 
function startScroll(sN,txt)
{
	var scr=document.getElementById(sN); 
	var sW = objWidth(scr)-6; 
	var sH = objHeight(scr); 
	scr.innerHTML = '<div id="'+sN+'in" style="position:absolute; left:3px; width:'+sW+';">'+txt+'<\/div>'; 
	var sTxt=document.getElementById(sN+'in'); 
	var eH=objHeight(sTxt);
	sTxt.style.top=(dR? -eH : sH)+'px';
	sTxt.style.clip='rect(0,'+sW+'px,'+eH+'px,0)'; 
	setInterval(function() {scrF(sTxt.style,sH,eH);},1000/speed);
	}
window.onload = addScrollers;              
