//-------------------------------------------------------------------------
// Vertical Scrolling News Ticker
// XHTML Compat
// Version 2.0
// Copyright 2006 DevDude.com
//-------------------------------------------------------------------------
	
	//scroller width
var swidth=200;

//scroller height
var sheight=50;

//background color 
var sbcolor="#FFFFFF";

//scroller's speed
var sspeed=3;

var msg='';

//Your messages go below:

msg=	"<ul><li><a href='careers/great_place_work.html' target='_self' title=''>DHFL is ranked among India's top 100 Best Employers - <span style='font-weight:normal;'>Survey by Great Places to Work Institute</span></a></li>"+
		"<li>&nbsp;</li></ul>"+
		"<ul><li><a href='who_we_are/press_release.html' target='_self' title=''>DHFL's announces a 64.22% increase in Net Profit for the Year ended 31.03.2010</a></li>"+
		"<li>&nbsp;</li></ul>"+
"<ul><li><a href='who_we_are/press_release.html' target='_self' title=''>DHFL announces the opening of its 91st branch in Gwalior Branch on 16th May'2010</a></li>"+
		"<li>&nbsp;</li></ul>"+
//MSG 2
"<ul><li><a href='who_we_are/press_release.html' target='_self' title=''>DHFL's Retail Prime Lending Rate (RPLR) - 15.25%</a></li>"+
"<li>&nbsp;</li></ul>"+

"<ul><li><a href='who_we_are/press_release.html' target='_self' title=''>DHFL inaugurates its Central Processing Unit in Ludhiana through its alliance with Punjab & Sind Bank</a></li>"+
"<li>&nbsp;</li></ul>";
//"<ul><li><a href='who_we_are/press_release.html' target='_self' title=''>DEWAN HOUSING NET UP - Financial Express</a></li>"+
//"<li>&nbsp;</li></ul>";

//End of your messages


var resumesspeed=sspeed
function start() {
	if (document.all) iemarquee(ticker);
	else if (document.getElementById)
		ns6marquee(document.getElementById('ticker'));
}

function iemarquee(whichdiv){
	iediv=eval(whichdiv)
	sheight += 50;
	iediv.style.pixelTop=sheight
	iediv.innerHTML=msg 
	sizeup=iediv.offsetHeight
	ieslide()
}

function ieslide(){
	if (iediv.style.pixelTop>=sizeup*(-1)){
		iediv.style.pixelTop-=sspeed
		setTimeout("ieslide()",100)
	}
	else{
		iediv.style.pixelTop=sheight
		ieslide()
	}
}

function ns6marquee(whichdiv){
	ns6div=eval(whichdiv)
	sheight += 50;
	ns6div.style.top=sheight + "px";
	ns6div.innerHTML=msg
	sizeup=ns6div.offsetHeight
	ns6slide()
}
function ns6slide(){
	if (parseInt(ns6div.style.top)>=sizeup*(-1)){
		theTop = parseInt(ns6div.style.top)-sspeed
		ns6div.style.top = theTop + "px";
		setTimeout("ns6slide()",100)
	}
	else {
		ns6div.style.top = sheight + "px";
		ns6slide()
	}
}