function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM1_openBrWindow(theURL) { //v2.0
  window.open(theURL,'','width=600,height=400 ,status=no,location=no,buttons=0,scrollbars=yes,resizable=yes');
}
var highlightbehavior="TD"

var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TABLE")
return
while(source.tagName!=highlightbehavior && source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function goto(e){
	source=ie? event.srcElement : e.target
	if(source.children.length>0)
	source.children[0].click();
}

function changeback(e,originalcolor){
if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TABLE")
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}

String.prototype.trim=function(){		// Remove traling white spaces
	var s=this.replace(/^\s+/g,"");
	return s.replace(/\s+$/g,"")
};

function popup_window(theURL,pwidth,pheight)
{
	window.open(theURL,'','width='+pwidth+',height='+pheight+' ,status=no,location=no,buttons=0,scrollbars=yes,resizable=yes');
}



//**********UuDownScroll Text**************
var marqueewidth_ud="160px"
var marqueeheight_ud="1385px"
var marqueespeed_ud=1
var pauseit_ud=1
var marqueecontent='<font face="Verdana"><div align="center"><a href="/pdf/pr_sens_infohf.pdf">:: PRICE SENSITIVE INFORMATION ::</a></div><br><div align="justify">The Board of Directors of Investment Corporation of Bangladesh (ICB) in its 396th Meeting held on January 26, 2012 at 3:15 p.m approved the un-audited Half Yearly Accounts of the Corporation for the period from 01 July, 2011 to 31 December, 2011. As per the un-audited Half Yearly Accounts the summarized information are as follows...<a href="/pdf/pr_sens_infohf.pdf">(See Details...)<img alt="" border="0" src="image/new1.gif" width="31" height="12"></a></div><br><div align="center"><a href="/pdf/priceseninfo.pdf">:: PRICE SENSITIVE INFORMATION ::</a></div><br><div align="justify">This is for information of all concerned that the Board of Directors of Investment Corporation of Bangladesh (ICB) at its 387th meeting held on 18 September, 2011 at 3.05 p.m has recommended 35 bonus share for 100 ordinary shares (35%) and cash dividend Tk. 15.00 per share  of Tk. 100.00 each for the year ended 30 June, 2011. ICB earned Net profit after tax Tk.385.52 crore, NAV per share Tk.1031.62, Earning Per Share (EPS) Tk. 154.21 and Net Operating  Cash Flow per Share (Tk.156.42) for the year 2010-11...<a href="/pdf/priceseninfo.pdf">(See Details...) </a> </div><br><div align="center"><a href="dividends10_11.php">:: DIVIDENDS ON ICB  UNIT FUND & MUTUAL FUNDS FOR THE YEAR 2010-2011 ::</a><div><br><div align="justify">This is for information of all concerned that the Board of Directors of the Investment Corporation  of Bangladesh in its meeting held on 30 July, 2011 approved Dividends on ICB Unit Fund &amp; ICB Mutual Funds for the year 2010-2011...<a href="dividends10_11.php"> (See details...)</a> </div><br><div align="center"><a href="news_sadf.php">:: OPPORTUNITIES FOR INVESTMENT IN NEW PROJECTS ::</a></div><br><div align="justify">The SADF has financed 14 (Fourteen)   Techno Economic Feasibility Studies (TEFS) for establishing new projects in the SAARC region, out of which the 9 (Nine) projects are related to Bangladesh but are also expected to   benefit one or more other countries of the SAARC Region.  The prospective sponsors  who are willing to make use the  SADFs TEFS Reports to set up projects in SAARC Region covered    by the studies may kindly approach ICB...<a href="news_sadf.php">(See details...)</a></div></font>'
marqueespeed_ud=(document.all)? marqueespeed_ud : Math.max(1, marqueespeed_ud-1) 
var copyspeed=marqueespeed_ud
var pausespeed=(pauseit_ud==0)? copyspeed: 0
var iedom_ud=document.all||document.getElementById
var actualheight_ud=''
var cross_marquee_ud, ns_marquee_ud

//*************Right Left Scroll Text******************



var marqueewidth_rl="775px"
var marqueeheight_rl="17px"
var marqueespeed_rl=2
var marqueebgcolor_rl="#DFFEA9"
//var marqueebgcolor_rl="#ffffff"
var pauseit_rl=1
var marqueecontent_rl='<nobr><font face="Arial">Thank you for visiting <a href="">Investment Corporation Of Bangladesh.</a>We can Use this panal for ad, please consider linking to us by <a href="">clicking here.</a> Enjoy your stay!</font></nobr>'
marqueespeed_rl=(document.all)? marqueespeed_rl : Math.max(1, marqueespeed_rl-1)
var copyspeed_rl=marqueespeed_rl
var pausespeed_rl=(pauseit_rl==0)? copyspeed_rl: 0
var iedom_rl=document.all||document.getElementById
if (iedom_rl)
	document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+marqueecontent_rl+'</span>')
var actualwidth_rl=''
var cross_marquee_rl, ns_marquee_rl

//****************************************





function populate()
{
	if (iedom_ud)
	{
		cross_marquee_ud=document.getElementById? document.getElementById("marquee_ud") : document.all.marquee_ud
		cross_marquee_ud.style.top=parseInt(marqueeheight_ud)+8+"px"
		cross_marquee_ud.innerHTML=marqueecontent
		actualheight_ud=cross_marquee_ud.offsetHeight
	}
	else if (document.layers)
	{
		ns_marquee_ud=document.ns_marquee_ud.document.ns_marquee_ud
		ns_marquee_ud.top=parseInt(marqueeheight_ud)+8
		ns_marquee_ud.document.write(marqueecontent)
		ns_marquee_ud.document.close()
		actualheight_ud=ns_marquee_ud.document.height
	}
	
	if (iedom_rl)
		{
			cross_marquee_rl=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
			cross_marquee_rl.style.left=parseInt(marqueewidth_rl)+8+"px"
			cross_marquee_rl.innerHTML=marqueecontent_rl
			actualwidth_rl=document.all? temp.offsetWidth : document.getElementById("temp").offsetWidth
		}
		else if (document.layers)
		{
			ns_marquee_rl=document.ns_marquee_rl.document.ns_marquee_rl2
			ns_marquee_rl.left=parseInt(marqueewidth_rl)+8
			ns_marquee_rl.document.write(marqueecontent_rl)
			ns_marquee_rl.document.close()
			actualwidth_rl=ns_marquee_rl.document.width
	}
	lefttime=setInterval("scrollmarquee()",20)
}
function scrollmarquee()
{
	if (iedom_ud)
	{
		if (parseInt(cross_marquee_ud.style.top)>(actualheight_ud*(-1)+8))
			cross_marquee_ud.style.top=parseInt(cross_marquee_ud.style.top)-copyspeed+"px"
		else
			cross_marquee_ud.style.top=parseInt(marqueeheight_ud)+8+"px"
	}
	else if (document.layers)
	{
		if (ns_marquee_ud.top>(actualheight_ud*(-1)+8))
			ns_marquee_ud.top-=copyspeed
		else
			ns_marquee_ud.top=parseInt(marqueeheight_ud)+8
	}
	
	if (iedom_rl)
		{
			if (parseInt(cross_marquee_rl.style.left)>(actualwidth_rl*(-1)+8))
				cross_marquee_rl.style.left=parseInt(cross_marquee_rl.style.left)-copyspeed_rl+"px"
			else
				cross_marquee_rl.style.left=parseInt(marqueewidth_rl)+8+"px"
		}
		else if (document.layers)
		{
			if (ns_marquee_rl.left>(actualwidth_rl*(-1)+8))
				ns_marquee_rl.left-=copyspeed_rl
			else
				ns_marquee_rl.left=parseInt(marqueewidth_rl)+8
	}
	
}

