// Distributed by http://www.hypergurl.com
//version2 

// Scrollers width here (in pixels)
var scrollerwidth="325px"

// Scrollers height here
var scrollerheight="90px"

// Scrollers speed here (larger is faster 1-10)
var scrollerspeed=1
var scrollerGap = 0;

// Scrollers content goes here! Keep all of the message on the same line!

var scrollercontent='<div align="left">'

scrollercontent += '<font color="#666666"><strong>Commercial Bank of Dubai 2009 net profit AED 803 mln, up 4.1%. ... </strong><br>'
scrollercontent += 'Dubai, January 2010: Commercial Bank of Dubai (CBD) has announced a net profit of AED 803 Million for the year  ...</font><br>'
scrollercontent += '<a href="about_Press_Release_2009_profit.aspx" class="Heading">read more &gt;</a><br><br>'

scrollercontent += '<font color="#666666"><strong>CBD inks agreement with Emirates Medical Association to provide customized services ... </strong><br>'
scrollercontent += 'Dubai, January 2010: As part of its aim to innovate while providing value-added services to residents of the UAE   ...</font><br>'
scrollercontent += '<a href="about_Press_Release_cbd_ema.aspx" class="Heading">read more &gt;</a><br><br>'

scrollercontent += '<font color="#666666"><strong>Commercial Bank of Dubai celebrates its 40th Anniversary amidst prominent UAE dignataries ... </strong><br>'
scrollercontent += 'Dubai, December 2009: The Bank celebrated its 40th anniversary in a ceremony held at Grand Hyatt in the presence of   ...</font><br>'
scrollercontent += '<a href="about_Press_Release_40anni_gala.aspx" class="Heading">read more &gt;</a><br><br>'

scrollercontent += '<font color="#666666"><strong>Commercial Bank of Dubai operating profit increased by 6.6% to AED 915 Million ... </strong><br>'
scrollercontent += 'Dubai, October 2009: CBD yesterday said that its operating profit for the first nine months of 2009 rose 6.6% to AED 915 Million  ...</font><br>'
scrollercontent += '<a href="about_Press_Release_Q3_2009.aspx" class="Heading">read more &gt;</a><br><br>'

scrollercontent += '<font color="#666666"><strong>Commercial Bank of Dubai net profits increase by 14% to AED 268 Million in Q2-2009 ... </strong><br>'
scrollercontent += 'Dubai, July 2009: CBD yesterday said that its operating profit in the first 6 months of 2009 rose 3.2% to AED 599 Million ...</font><br>'
scrollercontent += '<a href="about_Press_Release_Q2_2009.aspx" class="Heading">read more &gt;</a><br><br>'

scrollercontent += '<font color="#666666"><strong>Commercial Bank of Dubai announces the winners of the 1st draw of 40th Anniversary Summer Promotion ... </strong><br>'
scrollercontent += 'Dubai, July 2009: CBD has announced the first 10 winners of its 40th anniversary summer promotion to 40 fantastic destinations ...</font><br>'
scrollercontent += '<a href="about_Press_Release_40_anni_01.aspx" class="Heading">read more &gt;</a><br><br>'

scrollercontent += '<font color="#666666"><strong>Commercial Bank of Dubai opens a new branch of &rsquo;Attijari Al Islami&rsquo; in Sharjah ... </strong><br>'
scrollercontent += 'Dubai, July 2009: Commercial Bank of Dubai announced the opening of a new Attijari Al Islami branch in Sharjah ...</font><br>'
scrollercontent += '<a href="about_Press_Release_al_islami_branch.aspx" class="Heading">read more &gt;</a><br><br>'

scrollercontent += '<font color="#666666"><strong>CBD now in Souq Al Bahar in Burj Dubai area ... </strong><br>'
scrollercontent += 'Dubai, July 2009: In line with its strategy to expand in strategic locations close to growing up market communities ...</font><br>'
scrollercontent += '<a href="about_Press_Release_old_town_branch.aspx" class="Heading">read more &gt;</a><br><br>'

scrollercontent += '<font color="#666666"><strong>Commercial Bank of Dubai unveils its summer promotion to celebrate its 40th anniversary ... </strong><br>'
scrollercontent += 'Dubai, May 2009: As part of its continuous endeavors to offer more value to customers and to celebrate ...</font><br>'
scrollercontent += '<a href="about_Press_Release_40_year_promo.aspx" class="Heading">read more &gt;</a><br><br>'

scrollercontent += '<font color="#666666"><strong>Commercial Bank of Dubai operating profits increase by 5.4% to AED 289 Million in Q1 2009 ... </strong><br>'
scrollercontent += 'Dubai, April 2009: Commercial Bank of Dubai (CBD) announced yesterday its results for the first quarter of 2009 ...</font><br>'
scrollercontent += '<a href="about_Press_Release_Q1_2009.aspx" class="Heading">read more &gt;</a><br><br>'
scrollercontent += '</div>'
var pauseit=1

// Change nothing below!

scrollerspeed=(document.all)? scrollerspeed : Math.max(1, scrollerspeed-1) //slow speed down by 1 for NS
var copyspeed=scrollerspeed
var iedom=document.all||document.getElementById
var actualheight1=''
var cross_scroller1, cross_scroller2, ns_scroller
var pausespeed=(pauseit==0)? copyspeed: 0

function populate(){
	if (iedom){
		cross_scrollerMain=document.getElementById? document.getElementById("ie_scrollerMain") : document.all.ie_scrollerMain
		cross_scrollerMain.innerHTML=scrollercontent
		scrollerGap = eval(cross_scrollerMain.offsetHeight)
		cross_scrollerMain.innerHTML = ""
		
		cross_scroller1=document.getElementById? document.getElementById("ie_scroller1") : document.all.ie_scroller1
		cross_scroller1.style.top= 1+"px"
		cross_scroller1.innerHTML= scrollercontent
		actualheight1=cross_scroller1.offsetHeight
		
		cross_scroller2=document.getElementById? document.getElementById("ie_scroller2") : document.all.ie_scroller2
		cross_scroller2.style.top=parseInt(cross_scroller1.style.top)+scrollerGap+"px"
		cross_scroller2.innerHTML= scrollercontent
		actualheight2=cross_scroller2.offsetHeight
	}
	else if (document.layers){
		ns_scroller=document.ns_scroller.document.ns_scroller1
		ns_scroller.top = 1
		ns_scroller.document.write(scrollercontent)
		ns_scroller.document.close()
		actualheight1=ns_scroller.document.height
	}
	lefttime=setTimeout("startscroller()",2000)
}

window.onload=populate

function startscroller (){
	lefttime=setInterval("scrollscroller()",35)
}

function scrollscroller(){
	if (iedom){
		if (parseInt(cross_scroller1.style.top)<=(actualheight1*(-1)+8))
			cross_scroller1.style.top=parseInt(cross_scroller2.style.top)+scrollerGap+"px"
		else if (parseInt(cross_scroller2.style.top)<=(actualheight2*(-1)+8)){
			cross_scroller2.style.top=parseInt(cross_scroller1.style.top)+scrollerGap+"px"
		}
		
		cross_scroller1.style.top=parseInt(cross_scroller1.style.top)-copyspeed+"px"
		cross_scroller2.style.top=parseInt(cross_scroller2.style.top)-copyspeed+"px"
	}
	else if (document.layers){
		if (ns_scroller.top>(actualheight1*(-1)+8))
			ns_scroller.top-=copyspeed
		else
			ns_scroller.top=parseInt(scrollerheight)+8
	}
}

if (iedom||document.layers){
	with (document){
		if (iedom){
			write('<div id="ie_scrollerMain" style="position:relative;width:'+scrollerwidth+';">')
			write('</div>')
			write('<div style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=scrollerspeed">')
			write('<div id="ie_scroller1" style="position:absolute;left:0px;top:0px;width:100%;"></div>')
			write('<div id="ie_scroller2" style="position:absolute;left:0px;top:0px;width:100%;"></div>')
			write('</div>')
		}
		else if (document.layers){
			write('<ilayer width='+scrollerwidth+' height='+scrollerheight+'>')
			write('<layer name="ns_scroller1" width='+scrollerwidth+' height='+scrollerheight+' left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=scrollerspeed"></layer>')
			write('</ilayer>')
		}
	}
}