
//script for scrolling the text in table compatible for both browsers
//Specify the marquee's width (in pixels)

var marqueewidth=413

//Specify the marquee's height

var marqueeheight=15

//Specify the marquee's scroll speed (larger is faster)

var speed=5

//Specify the marquee contents
//Kolkotta, Bngalore Dec06 & Jan07

var marqueecontents='<p style="padding-left:9" class="newscroll">Announcing About Next M.Ch Ophthal Batch on 1st October 2010. For details contact on 9225515041.</p>'
if (document.all)

	document.write('<marquee direction="left" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>');

	function regenerate(){

		window.location.reload()
		

	}

	function regenerate2(){

		if (document.layers){

			setTimeout("window.onresize=regenerate",0)

			intializemarquee()

		}

	}



	function intializemarquee(){

		document.cmarquee01.document.cmarquee02.document.write(marqueecontents)

		document.cmarquee01.document.cmarquee02.document.close()

		thelength=document.cmarquee01.document.cmarquee02.document.height

		scrollit()

	}



	function scrollit(){

	if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){

		document.cmarquee01.document.cmarquee02.left-=speed

		setTimeout("scrollit()",100)

	}

	else{

		document.cmarquee01.document.cmarquee02.left=marqueeheight

		scrollit()

		}

}

	//window.onload=regenerate2// JavaScript Document
