// News scroller
var message= new Array()

// Please read section 2 above on how the messages have to be configured.
// You may add as many messages as you like!





message[0]="The Prescription That Changed Practice - UNIQUE BENEFITS OF THE PATENTS ACT 1970||prescription01.htm"

message[1]="AZIPRO—Delivers the Difference ||html/newintrocipla.htm#AZIPRO"

message[2]="LEVOLIN AUTOHALER ||html/newintrocipla.htm#LEVOLIN"

message[3]="ZOLMIST: Head to Relief in Minutes ||html/newintrocipla.htm#ZOLMIST"

message[4]="Quiz on Overactive Bladder ||html/medquiz.htm"

message[5]="Malaria ||dotm/dotm.htm"

message[6]="ACC Scientific Sessions 2010: Highlights ||html/cardiology/ACC2010.pdf"

message[7]="Tuberculosis &ndash; Where Are We Headed In 2010? ||html/infection/disease_at_a_glimpse/tuberculosis.pdf"




// The height of the scrollerbox (pixels)
var scrollerheight=100

// The width of the scrollerbox (pixels)
var scrollerwidth=150

// The distance to the left border of the window (pixels)
var scrollertop=75

// The distance to the top border of the window (pixels)
var scrollerleft=270

// The padding between the scrollerbox and the text (pixels)
var scrollerpadding=3

// The width of the scrollerbox-border (pixels)
var backgroundborder=0

// The background-colour of the scrollerbox
var scrollerbgcolor="EFFFD0"

// Font attributes of the title
var font_titleface="Verdana"
var font_titlecolor="000000"
var font_titlesize=1

// Font attributes of the copytext
var font_copyface="Verdana"
var font_copycolor="000000"
var font_copysize=1

// standstill between the messages (milliseconds)
var standstillfix=1500

// Do not edit below this line
var cliptop=0
var clipbottom=scrollerheight-2*scrollerpadding
var clipleft=0
var clipright=scrollerwidth

var i_message=0
var mes_joined
var mes_split
var contenttext
var contentbg

var totalheight=scrollerheight*(message.length)
var i_height=0
var step=2
var pause=50

var standstillflex=150

//Amey adding this for which message id to change
var change_id=0 
var dohack=1

function initiate(){
	contenttext="<table cellpadding=0 cellspacing=0 border=0 width="+(scrollerwidth-2*scrollerpadding)+">"
	contenttext+="<tr valign='top'><td height='"+scrollerheight+"'><br></td></tr>"
	for (i=0;i<=message.length-1;i++) {
		mes_joined=message[i]
		mes_split=mes_joined.split("|")
		
		// Amey -- fixing specific message scroll attributes
		if(dohack)
		{
			if (i==change_id) {
				// change the attributes here
				font_titlecolor="ff0000"
				font_titlesize=2
				
			}
			else
			{
				font_titlecolor="000000"
				font_titlesize=2
			}
		}

		contenttext+="<tr valign='top'><td height='"+scrollerheight+"'><a href='"+mes_split[2]+"' target='_blank'><font face='"+font_titleface+"' color='"+font_titlecolor+"' size='"+font_titlesize+"'>"+mes_split[0]+"</font></a><br><font face='"+font_copyface+"' color='"+font_copycolor+"' size='"+font_copysize+"'>"+mes_split[1]+"</font></td></tr>"
	}
	contenttext+="</table>"
	
	contentbg="<table cellpadding=0 cellspacing=0 border="+backgroundborder+" width='"+scrollerwidth+"'><tr><td height='"+scrollerheight+"' bgcolor="+scrollerbgcolor+">&nbsp;</td></tr></table>"
	
	if (document.all) {
		scrollertext.innerHTML=contenttext
		scrollerbg.innerHTML=contentbg
		document.all.scrollertext.style.posTop=scrollertop
		document.all.scrollertext.style.posLeft=scrollerleft
		document.all.scrollerbg.style.posTop=scrollertop-scrollerpadding
		document.all.scrollerbg.style.posLeft=scrollerleft-scrollerpadding
		document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
	}
	if (document.layers) {
		document.scrollertext.document.write(contenttext)
		document.scrollertext.document.close()
		document.scrollerbg.document.write(contentbg)
		document.scrollerbg.document.close()
		document.scrollertext.top=scrollertop
		document.scrollertext.left=scrollerleft
		document.scrollerbg.top=scrollertop-scrollerpadding
		document.scrollerbg.left=scrollerleft-scrollerpadding	
		document.scrollertext.clip.left=clipleft
        document.scrollertext.clip.right=clipright
        document.scrollertext.clip.top=cliptop
        document.scrollertext.clip.bottom=clipbottom
	}
	scroll()
}

function scroll(){
	standstillflex=standstillfix
	if (document.all){
		if (i_height<scrollerheight) {
			i_height+=step
			cliptop+=step
			clipbottom+=step
			document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
			document.all.scrollertext.style.posTop-=step
			var timer=setTimeout("scroll()",pause)
		}

		else {
			if (document.all.scrollertext.style.posTop<=-(totalheight)) {
				document.all.scrollertext.style.posTop=scrollertop
				cliptop=0
				clipbottom=scrollerheight-2*scrollerpadding
				document.all.scrollertext.style.clip="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
				standstillflex=0
			}
			i_height=0
			clearTimeout(timer)
			var timer=setTimeout("scroll()",standstillflex)
		}
	}
	
		if (document.layers){
			if (i_height<scrollerheight) {
				i_height+=step
				cliptop+=step
				clipbottom+=step
				document.scrollertext.clip.left=clipleft
        		document.scrollertext.clip.right=clipright
        		document.scrollertext.clip.top=cliptop
        		document.scrollertext.clip.bottom=clipbottom
				document.scrollertext.top-=step
				var timer=setTimeout("scroll()",pause)
			}

		else {
			if (document.scrollertext.top<=-(totalheight)) {
				document.scrollertext.top=scrollertop
				cliptop=0
				clipbottom=scrollerheight-2*scrollerpadding
				document.scrollertext.clip.left=clipleft
        		document.scrollertext.clip.right=clipright
        		document.scrollertext.clip.top=cliptop
        		document.scrollertext.clip.bottom=clipbottom
				standstillflex=0
			}
			i_height=0
			clearTimeout(timer)
			var timer=setTimeout("scroll()",standstillflex)
		}
	}
}





// Product scroller

/*
Cross browser marquee script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,&nbsp;
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/


//Specify the marquee's width (in pixels)
var marqueewidth=330
//Specify the marquee's height (in pixels, pertains only to NS)
var marqueeheight=20
//Specify the marquee's scroll speed (larger is faster)
var speed=5
//Specify the marquee contents
var marqueecontents='<a href="html/newintrocipla.htm#AZIPRO">AZIPRO—Delivers the Difference</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#LEVOLIN">LEVOLIN AUTOHALER</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#ZOLMIST">ZOLMIST: Head to Relief in Minutes</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#Nestacort">Nestacort &ndash; Safety and Efficacy together</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#RISOFOS">RISOFOS 150 &ndash; The Bone Protector</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#RISOFOSKIT">RISOFOS KIT &ndash; The Comprehensive and Convenient way for Bone Protection</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#SYNTHIVAN">SYNTHIVAN &ndash;&ndash; Simplicity Synthesized </a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#Rixmin">Rixmin &ndash; Gut Set Go</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#STON1B6">STON1B6 &ndash; Adding Value for Added Benefits</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#Cinmove">Cinmove &ndash; A Distinct Move</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#FURAMIST">FURAMIST &ndash; AZ:  Go Advanced</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#PULMOPRES">PULMOPRES &ndash; Regain Pace&hellip; Rediscover Ease</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#Pazflo">Pazflo: Attack with No Fear</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#Nestacort">Nestacort &ndash; Safety and Efficacy together</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#PRANDIAL">PRANDIAL: Rest Assured</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#LINOSPAN">LINOSPAN 100 DT &ndash; For positive results</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#Xgain">Xgain Shampoo &ndash; Specially Designed for Minoxidil Users</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#ROSULIP">ROSULIP: A Class Apart</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#Creslip">Creslip: Protects and Preserves</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#ANTIFLU">ANTIFLU SUSPENSION &ndash; Arrests Flu, Hastens Recovery</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#FORATEC_RESPULES">Foratec Respule: A New Alternative for COPD </a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#TUGAIN">TUGAIN FOAM &ndash; BEST OF THE BEST </a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#DARUVIR">DARUVIR: India&rsquo;s 1st third generation Protease Inhibitor </a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#IF2">IF 2: Superior Anti Allergic With Triple Action </a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#MISOPROST">MISOPROST 600 &ndash; Prevents PPH, Saves Lives  </a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#Fertolet">Fertolet &ndash; Efforts Fertilized </a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#STARPILL">STARPILL: The Polypill for High &ndash; Risk Patients </a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#MONTAIR">MONTAIR LC KID &ndash; Oral Strawberry Flavored Dispersible Tablets</a> &nbsp;&nbsp;<a href="html/newintrocipla.htm#TENVIR">TENVIR &ndash; A New Potent Weapon in Chronic Hepatitis B Treatment</a>'


function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
setTimeout("window.onresize=regenerate",450)
intializemarquee()
}
}

function intializemarquee(){
document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
document.cmarquee01.document.cmarquee02.document.close()
thelength=document.cmarquee01.document.cmarquee02.document.width
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=marqueewidth
scrollit()
}
}

