/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=1000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=2 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",50)', delayb4scroll)
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee

///nav starts here

function divswitchto(x,state)
{
	if (document.all)
	{ //IS IE 4 or 5 (or 6 beta)
		eval('document.all.' + x + '.style.display = state');
	}
	if (document.layers)
	{ //IS NETSCAPE 4 or below
		document.layers[x].display = state;
	}
	if (document.getElementById &&!document.all)
	{
		acb = document.getElementById(x).style.display = state;
	}
}

function divactivate(x)
{
	divswitchto('ctl00_Uc_menu1_home','none');
	divswitchto('ctl00_Uc_menu1_clients','none');
	divswitchto('ctl00_Uc_menu1_transactions','none');
	divswitchto('ctl00_Uc_menu1_research','none');
	divswitchto('ctl00_Uc_menu1_investors','none');
	divswitchto('ctl00_Uc_menu1_rem','none');
	divswitchto(x,'block');
	//setCookie('dttoptab',x);
}

function divactivatem(a)
{
	if(a==1)
	{
		divswitchto("inc1",'block');
		divswitchto("inc2",'none');
		divswitchto("inc3",'block');
		divswitchto("inc4",'none');
		divswitchto("dl2",'none');
		divswitchto("dl1",'block');
	}
	if(a==2)
	{
		divswitchto("inc4",'block');
		divswitchto("inc3",'none');
		divswitchto("inc2",'block');
		divswitchto("inc1",'none');
		divswitchto("dl1",'none');
		divswitchto("dl2",'block');
	}
	return false;
}
function popup_cnews(page){
	window.open(page,'','width=800,height=500');
}
	

