//****************************************************
// Sliding Fourth Column with search boxes and the ad
//****************************************************
tombstones=true;


isNav4=isIE4=isIE3=isNav3=isIE5=false;
if ( ( navigator.userAgent.indexOf( "MSIE" ) >=0 ) &&  ( parseInt( navigator.appVersion ) >= 4 ) && (navigator.appVersion.indexOf("Mac") >= 0) )
{
	isNav3=true;
}else if ((navigator.appVersion.indexOf("MSIE 5") >-1) || (navigator.appVersion.indexOf("MSIE 6") >-1)) {
                isIE5 = true;
                layerRef = "document.all";
                styleRef = ".style";
}else if (navigator.appVersion.charAt(0) == "4") {
        if (navigator.appName == "Netscape") {
                isNav4 = true;
                layerRef = "document.layers";
                styleRef = "";
        } else {
                isIE4 = true;
                layerRef = "document.all";
                styleRef = ".style";
        }
} else if (navigator.appVersion.charAt(0) < "4") {
        if (navigator.appName == "Netscape") {
                isNav3 = true;
        } else {
                isIE3 = true;
        }
}

isMoz401=false;
if(navigator.userAgent.indexOf("Mozilla/4.01") >=0 )
	isMoz401=true;

busy=false;
dealsTop=0;

//******************
// Some dimentions
fc_width=156;
tomb_top=0;
tomb_left_0=619;
tomb_width=156;

button_h=21;
button_w=147;
deals_button_w=138;

current='';	// Current expanded menu
state='out';	// State of the Search button ("left", "right" or "out")

deals_down_alt="Search deals archive";
deals_up_alt="Close deals archive";
spacer_gif="http://interactive.wsj.com/media/fc-spacer.gif";

if(isIE4)
{
	tomb_top=-19;
}
if(isIE5)
{
	tomb_top=0;
}
if(isNav4)
{
	tomb_top=0;
	tomb_left_0=616;
}
if(isIE4 && (navigator.appVersion.indexOf("Mac") >-1))
{
	tomb_top=0;
}

allObj=new Array("tombstones","articles-panel","quotes-panel","company-panel","temp");

//***************************************************************
// Editorial promo boxes editable from the publishing system
//***************************************************************

//**********************
// market-start
market_promo=
"<table border=0 bgcolor=#660000 cellspacing=0 cellpadding=1 width=156><tr><td>"+ 
'<table width=100% cellpadding=4 border=0 cellspacing=0 border=0>'+
	"<tr>"+
	"<td bgcolor=#660000 width=60% class=promo-h>"+
		"<!-- h1 --><center>Also Inside</center><!-- h1 -->"+
	"</td><td bgcolor=#ffffff>&nbsp;</td></tr>"+
	"<tr><td colspan=2 class=promo bgcolor=#ffffff>"+
	'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<!-- b1 --><a href=\"http://discussions.wsj.com/n/mb/message.asp?webtag=wsjvoices&nav=messages&msg=1890.1\" class=market-l>Question of the Day:</a> Are you more confident in airline security now than you were right after the Sept. 11 attacks?'+
'<!-- b1 -->'+
'<br><img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<!-- b2 -->TiVo changes its tune on <a href= http://interactive.wsj.com/articles/SB1008543856753228040.htm class=market-l>merits of commercials</a> for its ad-skipping viewers.<!-- b2 -->'+
'</td></tr></table></td></tr></table>'
// market-end	
//**********************


market_extra_promo=''

//**********************
// tech-start
tech_promo=
"<table border=0 bgcolor=#006633 cellspacing=0 cellpadding=1 width=156><tr><td>"+ 
'<table width=100% cellpadding=4 border=0 cellspacing=0 border=0>'+
	"<tr>"+
	"<td bgcolor=#006633 width=60% class=promo-h>"+
		"<!-- h1 --><center>Also Inside</center><!-- h1 -->"+
	"</td><td bgcolor=#ffffff>&nbsp;</td></tr>"+
	"<tr><td colspan=2 class=promo bgcolor=#ffffff>"+
	'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<!-- b1 --><a href=\"http://interactive.wsj.com/user-cgi-bin/searchUser.pl?action=emailalert\" class=tech-l>Sign up</a> to receive e-mail alerts when Personal Technology and E-World are published.'+
''+
'<!--- <a href=http://interactive.wsj.com/pages/ecommerce2001-8.htm class=tech-l>E-Commerce</a><br>'+
'Consumers pick their favorite shopping sites.---!>'+
''+
'<!-- b1 -->'+
'<br><img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<!-- b2 --><b>In Depth:</b><br>'+
'&#149;&nbsp;<a href=\"http://interactive.wsj.com/pages/microsft.htm\" class=tech-l>Microsoft Settlement</a>'+
'<br>'+
'&#149;&nbsp;<a href=\"http://interactive.wsj.com/pages/xp2001.htm\" class=tech-l>Windows XP Review</a><br>'+
''+
'&#149;&nbsp;<a href=\"http://interactive.wsj.com/pages/hpcompaq.htm\" class=tech-l>H-P/Compaq deal</a><br>'+
''+
''+
'<!--<a href=\"http://interactive.wsj.com/pages/tertech.htm\" class=tech-l>Tragedy and Technology</a><br>'+
''+
'<a href=\"http://interactive.wsj.com/user-cgi-bin/searchUser.pl?action=emailalert\" class=tech-l>Sign up</a> to receive e-mail alerts when Personal Technology and E-World are published.'+
'-->'+
''+
''+
''+
' <!-- b2 -->'+
'</td></tr></table></td></tr></table>'
// tech-end	
//**********************


//**********************
// money-start
money_promo=
"<table border=0 bgcolor=#006666 cellspacing=0 cellpadding=1 width=156><tr><td>"+ 
'<table width=100% cellpadding=4 border=0 cellspacing=0 border=0>'+
	"<tr>"+
	"<td bgcolor=#006666 width=60% class=promo-h>"+
		"<!-- h1 --><center>Also Inside</center><!-- h1 -->"+
	"</td><td bgcolor=#ffffff>&nbsp;</td></tr>"+
	"<tr><td colspan=2 class=promo bgcolor=#ffffff>"+
	'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<!-- b1 --><a href=\"http://interactive.wsj.com/pages/sunday.htm\" class=money-l>Sunday Journal:</a> Here are 10 stocks you\'ll wish you bought in 2001.<!-- b1 -->'+
'<br><img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<!-- b2 --><a href=\"http://interactive.wsj.com/pages/asiavc2001.htm\" class=money-l>Asia\'s Value Creators:</a> An annual survey reveals the region\'s elite firms that give investors value for their money.'+
''+
'<!--'+
'<a href=\"http://interactive.wsj.com/pages/enronpage.htm\" class=money-l>Enron\'s Rise and Fall:</a> See full coverage, including an archive of previous articles.'+
''+
'See updated data on trends and prices among <a href=\"http://interactive.wsj.com/documents/deals-loans.htm\" class=money-l>syndicated loans</a>.'+
''+
'View an <a href=\"javascript: window.open(\'http://interactive.wsj.com/public/resources/documents/dj10k-frameset.html\',\'\',\'toolbar=no,scrollbar=no,location=no, width=580,height=500,left=100+,top=100\'); void(\'\');\" class=money-l>interactive timeline</a> that tracks the performance of the Dow industrials.'+
''+
'<Read past installments in the continuing series <a href=\"http://interactive.wsj.com/articles/SB1003165545871153040.htm\" class=money-l>Rebuilding Wall Street.</a>'+
''+
'Learn how you can participate in the next <a href=\"http://interactive.wsj.com/documents/dartboard-portfolio.htm\" class=money-l>Investment Dartboard</a> stock-picking contest. '+
'--><!-- b2 -->'+
'</td></tr></table></td></tr></table>'
// money-end	
//**********************


//**********************
// front-start
front_promo=
"<table border=0 bgcolor=#3A4E95 cellspacing=0 cellpadding=1 width=156><tr><td>"+ 
'<table width=100% cellpadding=4 border=0 cellspacing=0 border=0>'+
	"<tr>"+
	"<td bgcolor=#3A4E95 width=60% class=promo-h>"+
		"<!-- h1 --><center>Also Inside</center><!-- h1 -->"+
	"</td><td bgcolor=#ffffff>&nbsp;</td></tr>"+
	"<tr><td colspan=2 class=promo bgcolor=#ffffff>"+
	'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<!-- b1 --><a href=\"http://interactive.wsj.com/pages/terattack.htm\" class=front-l>Aftermath of Terror:</a> See full coverage of the war in Afghanistan, plus an archive of articles.'+
''+
''+
''+
''+
'<!--'+
'<a href=\"http://interactive.wsj.com/pages/terattack.htm\" class=front-l>'+
'Aftermath of Terror:</a> See complete coverage.'+
'<a href=\"http://discussions.wsj.com/n/mb/message.asp?webtag=wsjvoices&nav=messages&msg=1890.1\" class=front-l>'+
'How should airlines address the gap between business and leisure fares?'+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
''+
'<a href=\"http://interactive.wsj.com/pages/enronpage.htm\" class=front-l>Power Play:</a> See the latest on Enron\'s fall.-->'+
''+
'<!--'+
'<a href=\"http://interactive.wsj.com/articles/DailyFix.htm\" class=front-l>The Daily Fix:</a> A pro-wrestling impresario turns to real theater.'+
''+
''+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
''+
'<a href=\"http://www.hearings.com/client/wholesalelogin.asp?ID=40&HID=4354\" class=front-l>Terrorism and Liberty:</a> Listen to a Senate hearing on counterterrorism.'+
''+
''+
'<a href=\"http://interactive.wsj.com/pages/crestate.htm\" class=front-l>Property Report:</a> Business booms for firms that liquidate retail space when retailers declare bankruptcy. '+
''+
'<br>'+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<a href=\"http://interactive.wsj.com/pages/weekend.htm\" class=front-l>'+
'Weekend:</a> High-tech airport gear ... and more.'+
''+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
''+
'<a href=\"http://interactive.wsj.com/articles/SB1006299958132042320.htm\" class=front-l>Toyland Surprise:</a> Shrinky Dinks are hot.'+
''+
''+
'<br>'+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<a href=\"http://interactive.wsj.com/pages/terattack.htm\" class=front-l>'+
'Aftermath of Terror:</a> See complete coverage.'+
''+
'<br>'+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<a href=\"http://interactive.wsj.com/pages/weekend.htm\" class=front-l>'+
'Weekend Journal:</a> High-tech security gear ... and more.'+
''+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<a href=\"javascript:%20window.open(\'http://interactive.wsj.com/documents/fl_info.html\',\'\',\'toolbar=no,location=no,%20width=580,height=500,left=100+,top=100\');%20void(\'\');\" class=front-l>Interactive Graphic:</a> The Florida ballot review.'+
''+
'-->'+
''+
''+
'<!-- b1 -->'+
'<br><img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<!-- b2 --><a href=\"http://discussions.wsj.com/n/mb/message.asp?webtag=wsjvoices&nav=messages&msg=1890.1\" class=front-l>Question of the Day:</a> Are you more confident in airline security now than just after Sept. 11?'+
''+
'<!--'+
'<a href=\"http://discussions.wsj.com/n/mb/message.asp?webtag=wsjvoices&nav=messages&msg=1890.1\" class=front-l>Question of the Day:</a> Are you more confident in airline security now than you were immediately following the Sept. 11 attacks? '+
''+
''+
'<br><a href=\"http://interactive.wsj.com/articles/SB1008198997563801880.htm\" class=front-l>The military</a> turns to robots to detect the enemy.<br>'+
''+
'<a href=\"http://interactive.wsj.com/pages/terattack.htm\" class=front-l>'+
'Aftermath of Terror:</a> See complete coverage.'+
'<br>'+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'-->'+
''+
'<!--'+
''+
''+
''+
''+
'<a href=\"javascript: window.open(\'http://interactive.wsj.com/public/resources/documents/dj10k-frameset.html\',\'\',\'toolbar=no,scrollbar=no,location=no, width=580,height=500,left=100+,top=100\'); void(\'\');\" class=front-l>'+
'Retaking Dow 10000:</a> View an interactive timeline that tracks the performance of the Dow industrials.'+
'<a href=\"http://interactive.wsj.com/pages/terattack.htm\" class=front-l>'+
'Aftermath of Terror:</a> See complete coverage.'+
''+
'<!--'+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
''+
'<a href=\"http://interactive.wsj.com/articles/DailyFix.htm\" class=front-l>'+
'The Daily Fix:</a> Fives and sixes dominate the NFL.'+
''+
'<br>'+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
''+
'<a href=\"http://discussions.wsj.com/n/mb/message.asp?webtag=wsjvoices&nav=messages&msg=1890.1\" class=front-l> Will the stock market\'s recent rally be sustained over the next several '+
'months? '+
''+
'<a href=\"http://interactive.wsj.com/articles/DailyFix.htm\" class=front-l>The Daily Fix:</a> The weekend was a treat for college-football fans.'+
'-->'+
''+
'<!--'+
'<a href=\"http://interactive.wsj.com/user-cgi-bin/searchUser.pl?action=emailalert\" class=front-l>New E-Mail Alerts:</a> '+
'<br>'+
'&#149;&nbsp;Aftermath of Terror'+
'<br>'+
'&#149;&nbsp;Tomorrow\'s News Today'+
''+
'<br>'+
'&#149;&nbsp;Walt Mossberg'+
'<br>'+
'&#149;&nbsp;The Daily Fix'+
'<br>'+
'-->'+
'<!--'+
''+
''+
'<a href=\"javascript:%20window.open(\'http://interactive.wsj.com/documents/fl_info.html\',\'\',\'toolbar=no,location=no,%20width=580,height=500,left=100+,top=100\');%20void(\'\');\" class=front-l>Interactive Graphic:</a> The Florida ballot review.'+
''+
'<a href=\"http://interactive.wsj.com/pages/terattack.htm\" class=front-l>'+
'Aftermath of Terror:</a> See complete coverage, including '+
'an archive of stories since Sept. 11.'+
''+
'<br>'+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
''+
'<a href=\"http://interactive.wsj.com/user-cgi-bin/searchUser.pl?action=emailalert\" class=front-l>New E-Mail Alerts:</a> '+
'<br>'+
'&#149;&nbsp;Aftermath of Terror'+
'<br>'+
'&#149;&nbsp;Tomorrow\'s News Today'+
''+
'<br>'+
'&#149;&nbsp;Walt Mossberg'+
'<br>'+
'&#149;&nbsp;The Daily Fix'+
'<br>'+
'-->'+
''+
'<!--'+
'<br>'+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'<a href=\"http://interactive.wsj.com/pages/weekend.htm\" class=front-l>Weekend Journal:</a> Which cars are hot? ... and more.'+
''+
'<B>Earnings:</B><BR>'+
'<B>></b> <a href=\"http://interactive.wsj.com/documents/mktindex.htm?earncal.htm\" class=front-l>Calendar of reports</A><BR>'+
'<b>></B> <a href=\"http://interactive.wsj.com/pages/earnings.htm\" class=front-l>News coverage</a><BR>'+
'<B>> </b> <a href=\"http://interactive.wsj.com/public/resources/documents/digest_earnings.htm\" class=front-l>Digest of Earnings</a>'+
''+
'<img src=http://interactive.wsj.com/media/c_box.gif width=6 height=6>&nbsp;&nbsp;'+
'--><!-- b2 -->'+
'</td></tr></table></td></tr></table>'
// front-end	
//**********************


//**********************
// tombstones-start
ad_tombstones=
''
// tombstones-end
//**********************


//**********************
// Search panels
articles_expanded=
		'<table width='+(tomb_width)+' cellpadding=5 border=0 cellspacing=0>'+
		'<tr><td bgcolor=#eeeeee>'+
		'<form name="a_s" action="/archive/search.cgi" method=post >'+
		'<font size=2 face=arial><b><span class=search>Article Search</span></b></font><span class=menu><br>'+
		'<input type=hidden name="template" value="atlas-srch-searchrecent-nf.tmpl">'+
		'<input type=hidden name="form" value="atlas-srch-searchrecent-nf.html">'+
		'<input type=hidden name="from-and" value="AND">'+
		'<input type=hidden name="to-and" value="AND">'+
		'<input type=hidden name="sort" value="Article-Doc-Date desc">'+					
		'<input type=hidden name="qand" value="">'+
		'<input type=text name="bool_query" value="" size=10>'+

		'<input type=hidden name="dbname" value="&amp;name1=dbname&amp;name2=dbname&amp;name3=dbname;wsjie&amp;named=dbname&amp;period=:720">'+
		'<input type=hidden name="location" value="article">'+
		'&nbsp;&nbsp;&nbsp;<input type=submit value=Go><br>'+

		'<a href=/documents/search.htm target=_top><font color=#000099 size=2 face=Arial><span class=menu><span class=menu-l>Advanced Search</span></font></a>'+
		'&nbsp;/&nbsp;'+
		'<a href=/documents/help.htm?copy=help-search-articles.htm target=_top><font color=#000099 size=2 face=Arial><span class=menu><span class=menu-l>Help</span></font></a>'+
		'</td></tr>'+
		'</form>'
		
	
quotes_expanded=
		'<form  target="_top" name=q_s action="/mds/companyresearch-quote.cgi" method="GET" onSubmit="q();return false;">'+
		'<tr><td bgcolor=#eeeeee>'+
		'<font size=2 face=arial><b><span class=search>Quotes & Research</span></b></font><span class=menu><br>'+
		'<input type=hidden name=route value=BOEH>'+
		'<input type=hidden name=template value=company-research>'+
		'<input type=hidden name="ambiguous-purchase-template" value="company-research-symbol-ambiguity">'+
		'<input type=hidden name="profile-name" value="Portfolio1">'+
		'<input type=hidden name="profile-version" value="3.0">'+
		'<input type=hidden name="profile-type" value="Portfolio">'+
		'<input type=hidden name="profile-format-action" value="include">'+
		'<input type=hidden name="profile-read-action" value="skip-read">'+
		'<input type=hidden name="profile-write-action" value="skip-write">'+
		'<input type=text name=transform-value-quote-search value="" size=10>'+
		'&nbsp;&nbsp;&nbsp;<input type=submit name=go value=Go><br>'+
		'<input type=radio name="transform-name-quote-search" value="nvp-set-p-sym" checked>Symbol(s)'+
		'<input type=radio name="transform-name-quote-search" value="nvp-no-set-p-name">Name'+
		'<input type=hidden name="section" value="quote">'+
		'<input type=hidden name="nvp-companion-p-type" value="usstock usfund">'+
		'<br><a href=/documents/bbsearch.htm target=_top><font color=#000099 size=2 face=Arial><span class=menu><span class=menu-l>Advanced Search</span></font></a>'+
		'&nbsp;/&nbsp;'+
		'<a href=/documents/bbsearch.htm#help target=_top><font color=#000099 size=2 face=Arial><span class=menu><span class=menu-l>Help</span></font></a>'+
		'</td></tr>'+
		'<input type=hidden name=transform-name-quote-search value="nvp-set-p-sym">'+
		'<input type=hidden name=p-sym value="">'+
		'<input type=hidden name=p-name value="">'+
		'<input type=hidden name="q-match" value="stem">'+
		'<input type=hidden name=profile-end value=Portfolio>'+
		'<input type=hidden name=p-headline value=wsjie>'+
		'</form>'+
		'<form target="_top" name=fund_search action="/inap-bin/bb" method="POST">'+
		'<input type="HIDDEN" name="page" value="9">'+
		'<input type="HIDDEN" name="sym" size="8">'+
		'</form>'+	
		'</table>'
		
if(isIE4 || isIE5 || isNav4) 
{
deals_expanded=
		'<table width='+(deals_button_w-9)+' cellpadding=0 border=0 cellspacing=0><tr><td><span class=menu>'+
		'<form name=d_d onSubmit="d();" method="GET" action="http://wsn.doremus.com/exe/wsn_wsj.cgi">'+
		'Search the Wall Street Net one-year database of Debt & Equity deals. Provided by CommScan Inc.<br> '+
		'<input type=hidden name="0" value="All">'+
		'<input type=hidden name="1" value=All>'+
		'<input type=hidden name="2" value=All>'+
		'<b>Issuer</b><br>'+
		'(leave blank for All)<br>'+
		'<input type=text name="3" value="" size=10>'+
		'<br><br>'+
		'<b>Date Range</b><br>'+
		'<SELECT NAME="5">'+
		'<OPTION selected>Past month'+
		'<OPTION>Past quarter'+
		'<OPTION>Past 2 quarters'+
		'<OPTION>Past 3 quarters'+
		'<OPTION>Past year'+
		'</SELECT>'+
		'<span class=break><br><br></span>'+
		'<input type=hidden name="7" value="1">'+
		'<input type=hidden name="8" value="1">'+
		'<input type=hidden name="9" value="0">'+
		'<input type=hidden name="10" value="1">'+
		'<input type=hidden name="11" value="0">'+
		'<input type=hidden name="12" value="1">'+
		'<input type=hidden name="13" value="0">'+
		'<input type=submit value="Go"><br>'+
		'For more options, go to the <a href="/documents/fc-debt-eq.htm" target=_top class=menu-l>Wall Street Net Database</a><br>'+
		'</form>'+
		'<a href="Javascript:collapse(\'deals\')"><img src=http://interactive.wsj.com/media/fc-close-little.gif width=42 height=10 border=0 align=right alt="'+deals_up_alt+'" onMouseOver="window.status=\''+deals_up_alt+'\';return true;" onMouseOut="window.status=\' \';return true;"></a>'+
		'<span class=break><br>&nbsp;<br></span>'+
		'</span>'+
		'</td></tr></table>'
}


//**********************
function dealsMouseClick()
{	
	if(isIE4 || isIE5)
		insideWindowWidth=document.body.clientWidth;
	if(isNav4)
		insideWindowWidth=window.innerWidth;

	if(state=='out')
		return;
		
	if(current && (state == 'right')) 
		collapse(current);

	tomb_right=getObjLeft(tombObj)+tomb_width;

	
}


//**********************
function change (change_menu)
{
	if (change_menu!=current)
		expand(change_menu);
	else
		collapse(change_menu);
}
 
//**********************
function expand(expand_menu)
{
	if(busy)
		return;
	busy=true;

	if((isIE4 || isIE5) && (document.all.deals) && (document.all['deals-panel'].style.pixelTop<=0))
	{
		dealsTop=0;
		obj="document.all.deals";
		while(eval(obj+".parentElement.id").indexOf("tombstones")<0 )
		{
			obj=obj+".parentElement";
			dealsTop+=eval(obj+".offsetTop");
		}
		dealsTop+=tomb_top+button_h-3;
		document.all['deals-panel'].style.pixelTop=dealsTop;
	}

	
	tempObj=eval(layerRef+"['temp']"+styleRef);

	if(expand_menu.indexOf("deals")>=0)
		setWidth(tempObj,(deals_button_w-4));

	menuObj=eval(layerRef+"['"+expand_menu+"-panel"+"']"+styleRef);

	if(current)
	{
		currentObj=eval(layerRef+"['"+current+"-panel']"+styleRef);
		currentObj.visibility='hidden';
		changeHeight(tempObj,-150);
		if(isNav4)
			if(current.indexOf("deals")>=0)
				currentButtonObj=document.layers['tombstones'].document.layers['deals'].document.images[current];
			else
				currentButtonObj=document.layers['tombstones'].document.images[current];
		if(isIE4 || isIE5)
			currentButtonObj=document.all[current];
		

		currentButtonObj.src = eval(current+'_down.src');
		currentButtonObj.alt= eval(current+'_down_alt');
	}	
	shiftTo(tempObj,(getObjLeft(menuObj)+2),(getObjTop(menuObj)+2));
	tempObj.visibility="visible";

	if(isNav4)
		if(expand_menu.indexOf("deals")>=0)
			expandButtonObj=document.layers['tombstones'].document.layers['deals'].document.images[expand_menu];
		else
			expandButtonObj=document.layers['tombstones'].document.images[expand_menu];
	
	if(isIE4 || isIE5)
		expandButtonObj=document.all[expand_menu];


	expandButtonObj.src = eval(expand_menu+'_up.src');
	expandButtonObj.alt = eval(expand_menu+'_up_alt');

	// Smooth expand start
	k=0
	intervalID=setInterval(
	"changeHeight(tempObj,50);k++;"+
	"if(k>2)"+ 
	"{"+
		"clearInterval(intervalID);"+
		"tempObj.visibility='hidden';"+
		"menuObj.visibility='visible';"+
		"tempObj.height=150;"+
		"setWidth(tempObj,(button_w-4));"+
		"busy=false;"+
	"}",10);
	 //Smooth expand end

	current=expand_menu;

	if(state == 'left')
	{
		dealsMouseClick();
	}
}

//**********************
function collapse(collapse_menu)
{
	if(busy)
		return;
	busy=true;

	k=0
	current='';
	tempObj=eval(layerRef+"['temp']"+styleRef);

	if(collapse_menu.indexOf("deals")>=0)
		setWidth(tempObj,(deals_button_w-4));

	menuObj=eval(layerRef+"['"+collapse_menu+"-panel"+"']"+styleRef);

	if(isIE4 || isIE5)
		buttonObj=document.all[collapse_menu];
	if(isNav4)
		if(collapse_menu.indexOf("deals")>=0)
			buttonObj=document.layers['tombstones'].document.layers['deals'].document.images[collapse_menu];
		else
			buttonObj=document.layers['tombstones'].document.images[collapse_menu];

	tempObj.visibility='visible';
	menuObj.visibility='hidden';
	buttonObj.src= eval(collapse_menu+'_down.src');
	buttonObj.alt= eval(collapse_menu+'_down_alt');

	// Smooth collapse start
	intervalID=setInterval(
	"changeHeight(tempObj,-50);k++;"+
	"if(k>2)"+ 
	"{"+
		"clearInterval(intervalID);"+
		"tempObj.visibility='hidden';"+
		"menuObj.visibility='hidden';"+
		"tempObj.height=0;"+
		"setWidth(tempObj,(button_w-4));"+
		"busy=false;"+
	"}",10);
	// Smooth collapse end
}

//**********************
function getObjLeft(obj)
{
	if(isNav4)
		return obj.pageX;
	if(isIE4 || isIE5)
		return obj.pixelLeft;
}

//**********************
function getObjTop(obj)
{
	if(isNav4)
		return obj.pageY;
	if(isIE4 || isIE5)
		return obj.pixelTop;
}

//**********************
function changeHeight(obj,y)
{
	if(isNav4)
		obj.resizeBy(0,y);
	if(isIE4 || isIE5)
		obj.pixelHeight+=y;
}

//**********************
function changeWidth(obj,x)
{
	if(isNav4)
		obj.resizeBy(x,0);
	if(isIE4 || isIE5)
		obj.pixelWidth+=x;
}

//**********************
function setWidth(obj,x)
{
	if(isNav4)
		obj.clip.width=x;
	if(isIE4 || isIE5)
		obj.pixelWidth=x;
}

//**********************
function shiftTo(obj,x,y)
{
	if(isNav4)
		obj.moveToAbsolute(x,y);
	if(isIE4 || isIE5)
	{
		obj.pixelLeft=x;
		obj.pixelTop=y;
	}
}

//**********************
function d()
{
	if(isNav4)
		d_doc=document.layers['deals-panel'].document;
	else
		d_doc=window.document;
		
	if(d_doc.d_d.elements['0'].value == '')
		d_doc.d_d.elements['0'].value="All";

return true;
}

//**********************
function q()
{
	if(isNav4)
		var form1 =document.layers['tombstones'].document.q_s;
	else
		var form1 =window.document.q_s;

	if(isNav4)
		var form2=document.layers['tombstones'].document.fund_search;
	else
		var form2=window.document.fund_search;

	if(isNav4)
		q_doc=document.layers['tombstones'].document;
	else
		q_doc=window.document;

	var sym=form1['transform-value-quote-search'].value;
	if (sym == '')
	{
		alert('Please enter a name or symbol');
		return false;
	}
	if ((form1.elements["transform-name-quote-search"][0].checked) && ( (sym.length == 5) && (sym.charAt(4) == 'x' || sym.charAt(4) == 'X') && (sym.indexOf(" ") <0) && (sym.indexOf(".") <0))){
		form2.sym.value = sym;
		form2.submit();
	}
	else
	{
		form1.submit();
	}
	return true;
	
	
}




//**********************
function setFc()
{
}

//**********************
function fcTab(type)
{
}

function scrollSearch()
{
}
	
	
//**********************
function fc(family,ad_family,dart_page)
{
	random=Math.random();

	if(!ad_family)
		ad_family='group_usbus';

	if(!dart_page)
		dart_page='demo_yes.htm';

	if(ad_family.indexOf("whitespace") >=0)
		ad_family='group_globalbus';

	if(family == 'front')
		ed_promo=front_promo;
	else if(family == 'tech')
		ed_promo=tech_promo;
	else if(family == 'money')
		ed_promo=money_promo;
	else if(family == 'market')
		ed_promo=market_promo;
	else if(family == 'market_extra')
		ed_promo=market_extra_promo;
	else
		ed_promo=front_promo;

	if(isNav3 || isIE3 )
	{
		ad_regular='<table border=0 width=156 cellspacing=0 cellpadding=1><tr><td bgcolor=#999999>'+
				'<table border=0 width=100% cellspacing=0><tr><td align=center bgcolor=#FFFFFF>'+
				'<img src='+spacer_gif+' width=100 height=3><br>'+
				'<center><span class=ad-tit>Advertisement</span></center>'+
				'<img src='+spacer_gif+' width=100 height=2><br>'+
				'<a href="http://ad.doubleclick.net/jump/interactive.wsj.com/'+dart_page+';famil='+ad_family+';sz=120x600;ord='+random+'" target="_top">'+
				'<IMG SRC="http://ad.doubleclick.net/ad/interactive.wsj.com/'+dart_page+';famil='+ad_family+';sz=120x600;ord='+random+'" BORDER=0 WIDTH="120" HEIGHT="600" vspace="0" ALT="[Advertisement]"></A><BR CLEAR="ALL"><br>'+
				'<img src='+spacer_gif+' width=100 height=5>'+
				'<br><a href=http://public.wsj.com/ads/specials/specials.html><nobr><span class=menu-l>Special Advertising Sections</span></nobr></a><br><img src='+spacer_gif+' width=100 height=5>'+
				'</td></tr></table></td></tr></table>';			
		ad=ad_regular;
	
		if(tombstones && (family == 'money'))
			ad=
				'<table align=left cellpadding=0 cellspacing=0 border=1 bordercolor=#666666 width='+(tomb_width-14)+'><tr><td>'+
				'<table cellpadding=0 cellspacing=0 border=0 width=100%>'+
				'<tr><td bgcolor=#666666 align=center><font color=white size=2><b><nobr>ADVERTISEMENTS</nobr></b></font></td></tr>'+
				'<tr><td bgcolor=#cccc99 align=center><font color=white size=5><b><nobr>D E A L S</nobr></b></font></td></tr>'+
				'</table>'+
				'<table cellpadding=0 cellspacing=0 border=0 width=100%>'+
				'<tr><td align=left><a href="http://interactive.wsj.com/documents/fc-debt-eq.htm"><img src=http://interactive.wsj.com/media/fc-deals-3.gif border=0 height='+button_h+' width='+deals_button_w+' alt="'+deals_down_alt+'"></a></td></tr>'+
				'</table><center>'+
				ad_tombstones+
				'</td></tr></table>';
		document.writeln('<td valign=top width='+fc_width+' align=left rowspan=3>');

		document.writeln('<table  width=95% cellpadding=0 cellspacing=0 border=0><tr><td>');

		document.writeln(
			articles_expanded+
			quotes_expanded+
			'</td></tr><tr><td align=center>'+
			'<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td bgcolor=white align=right><img src='+spacer_gif+' width=1 height=10></td></tr></table>'+
			ed_promo+
			'<table width=100% cellpadding=0 cellspacing=0 border=0><tr><td bgcolor=white align=right><img src='+spacer_gif+' width=1 height=10></td></tr></table>'+
			ad);
			
		document.writeln(''+

			'</td></tr></table>')
		document.writeln('</td>');
		return;	
	}

	if(isIE4 || isIE5)
		insideWindowWidth=document.body.clientWidth;
	if(isNav4)
		insideWindowWidth=window.innerWidth;
			
	spacer=2;
	z0=2;
	if(isNav4)
		z0=3;
	z1=2;
	d0=0;
		
	deals_down=new Image();
	deals_down.src="http://interactive.wsj.com/media/fc-deals-down.gif";
	deals_up=new Image();
	deals_up.src="http://interactive.wsj.com/media/fc-deals-up.gif";
	
	if(isNav4)
	{
		document.writeln('<td valign=top width='+tomb_width+' align=center rowspan=2><layer id=tombstones  class=tom left='+tomb_left_0+' width='+tomb_width+' top='+tomb_top+' Z-INDEX=2>')
	}
	
	else if(isIE4 || isIE5)
	{
		document.writeln('<td valign=top width='+tomb_width+' align=center rowspan=2><div id=tombstones style="position=absolute;z-index:0;left='+tomb_left_0+';top='+tomb_top+';width='+tomb_width+';visibility=visible;" >')
	}
	else
	{
		document.writeln('<td valign=top width='+tomb_width+' align=center rowspan=2>')
	}	

	document.writeln(articles_expanded+
	quotes_expanded+
		'<img src='+spacer_gif+' width=100 height=5>'+
		ed_promo+
		'<img src='+spacer_gif+' width=100 height=5 ><br>'
	
	)

	if(isNav4)
	{
		if(tombstones && (family == 'money'))
		{
			document.writeln('<ilayer name=deals >'+
				'<table  align=left cellpadding=0 cellspacing=0 border=1 bordercolor=#666666 width='+(tomb_width-14)+'><tr><td>'+
				'<table cellpadding=0 cellspacing=0 border=0 width=100%>'+
				'<tr><td bgcolor=#666666 align=center><font color=white><b><span class=tombad><nobr>A D V E R T I S E M E N T S</nobr></span></b></font></td></tr>'+
				'<tr><td bgcolor=#cccc99 align=center><font color=white><b><span class=dealsad><nobr>D E A L S</nobr></span></b></font></td></tr>'+
				'</table>'+
				
				'<center>'+
				'<table cellpadding=0 cellspacing=0 border=0 width=100%>'+
				'<tr><td align=left><a href="" onClick="change(\'deals\');return false;"><img id=deals name=deals src='+deals_down.src+' border=0 height=21 width='+deals_button_w+' alt="'+deals_down_alt+'"></a></td></tr>'+
				'</table>'+
				'<table cellpadding=3 cellspacing=0 border=0 width=100%><tr><td align=center>'+
				ad_tombstones+
				'</td></tr></table>'+
				'</td></tr></table></ilayer>'					
			);
		}	
		else if(isMoz401)
		{
			document.writeln('<span class=ad-tit>Advertisements</span>'+
				'<a href="http://ad.doubleclick.net/jump/interactive.wsj.com/'+dart_page+';famil='+ad_family+';sz=120x600;ord='+random+'" target="_top">'+
				'<IMG SRC="http://ad.doubleclick.net/ad/interactive.wsj.com/'+dart_page+';famil='+ad_family+';sz=120x600;ord='+random+'" BORDER=0 WIDTH="120" HEIGHT="600" vspace="0" ALT="[Advertisement]"></A><BR CLEAR="ALL"><br>');

		}
		else
		{
			document.writeln('<table border=0 width=156 cellspacing=0 cellpadding=1><tr><td bgcolor=#999999>'+
				'<table border=0 width=100% cellspacing=0><tr><td align=center bgcolor=#FFFFFF>'+
				'<img src='+spacer_gif+' width=100 height=3><br>'+
				'<center><span class=ad-tit>Advertisement</span></center>'+
				'<img src='+spacer_gif+' width=100 height=2><br>'+
				'<ilayer id=adv height=600 width=120 left='+((tomb_width-120)/2)+'></ilayer><br>'+
				'<img src='+spacer_gif+' width=100 height=5>'+
				'<br><a href=http://public.wsj.com/ads/specials/specials.html><nobr><span class=menu-l>Special Advertising Sections</span></nobr></a><br><img src='+spacer_gif+' width=100 height=5>'+
				'</td></tr></table></td></tr></table>');

		}
	}		


	
	if(isIE4 || isIE5)
	{
		if(tombstones && (family == 'money'))
			document.writeln(
				'<table align=left cellpadding=0 cellspacing=0 border=1 bordercolor=#666666 width='+(tomb_width-14)+'><tr><td>'+
				'<table cellpadding=0 cellspacing=0 border=0 width=100%>'+
				'<tr><td bgcolor=#666666 align=center><font color=white><b><span class=tombad><nobr>A D V E R T I S E M E N T S</nobr></span></b></font></td></tr>'+
				'<tr><td bgcolor=#cccc99 align=center><font color=#009999><b><span class=dealsad><nobr>D E A L S</nobr></span></b></font></td></tr>'+
				'</table>'+
				'<table cellpadding=0 cellspacing=0 border=0 width='+deals_button_w+'>'+
				'<tr><td align=left><a href="" onClick="change(\'deals\');return false;"><img  id=deals  src='+deals_down.src+' border=0 height='+button_h+' width='+deals_button_w+' alt="'+deals_down_alt+'"></a></td></tr>'+
				'</table>'+
				'<table cellpadding=3 cellspacing=0 border=0 width=100%><tr><td align=center>'+
				ad_tombstones+
				'</td></tr></table>'+
				'</td></tr></table>'		
			);
		else
		document.writeln('<table border=0 width=156 cellspacing=0 cellpadding=1><tr><td bgcolor=#999999>'+
				'<table border=0 width=100% cellspacing=0><tr><td align=center bgcolor=#FFFFFF>'+
				'<img src='+spacer_gif+' width=100 height=3><br>'+
				'<center><span class=ad-tit>Advertisement</span></center>'+
				'<img src='+spacer_gif+' width=100 height=2><br>'+
				'<iframe  id=ad-v SRC="http://ad.doubleclick.net/adi/interactive.wsj.com/'+dart_page+';famil='+ad_family+';sz=120x600;ord='+random+'" width=120 height=600 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor="#000000"></iframe><br>'+
				'<img src='+spacer_gif+' width=100 height=5>'+
				'<br><a href=http://public.wsj.com/ads/specials/specials.html><nobr><span class=menu-l>Special Advertising Sections</span></nobr></a><br><img src='+spacer_gif+' width=100 height=5>'+
				'</td></tr></table></td></tr></table>');
	}		


	if(isNav4)
	{
		document.writeln('</layer>')

		if((!tombstones || !(family == 'money')) && !isMoz401)
		{
				document.writeln('<layer id=adl src="http://ad.doubleclick.net/adl/interactive.wsj.com/'+dart_page+';famil='+ad_family+';abr=!ie4;abr=!ie5;sz=120x600;ord='+random+'" visibility=hide onload="moveToAbsolute(tombstones.document.adv.pageX,tombstones.document.adv.pageY);visibility=\'show\';"></layer>');
		
		}
		
		document.writeln(
			'<layer top=30 id=temp class=temp bgcolor=dedede name=temp z-index=6 width='+(button_w-4)+' visibility=hidden height=0>'+
			'</layer>'	

		)
		if(tombstones && (family == 'money'))
		{
			document.writeln(
				'<layer top='+(55+button_h+document.tombstones.document.deals.pageY)+' class=panel bgcolor=#dedede name=deals-panel z-index=6 left='+(tomb_left_0+2)+' width='+(deals_button_w)+' visibility=hidden>'+
				deals_expanded+
				'</layer>'
			)		
		}
	}

	if(isIE4 || isIE5)
	{
		document.writeln(
			
			'</div>'+
		

			'<div id=deals-panel class=panel style="left:0'+(tomb_left_0+2)+';top:0;padding:3px;position:absolute;background:#dedede;z-index:6;width:'+(deals_button_w)+';visibility:hidden">'+
			deals_expanded+
			'</div>'+		

			'<div id=temp class=temp style="position:absolute;top:0;left:610;background:dedede;z-index:60;width:'+(button_w-4)+';visibility:hidden;height:0;">'+
			'</div>'	
		);
	}
	
	document.writeln('</td>')
	tombObj=eval(layerRef+"[ 'tombstones' ]"+styleRef);
}
