//  Jayakar - SPAR Capital
//  Script3 to write the stored news articles, Get Quotes and Get Research
//  SPAR3Right3.js 


// News Print

	var webfeed_heading = "";
	var width = "170";
//	var numberofarticles = global_article.length;
	var numberofarticles = 5;
	var item_spacing = "2";
	var cluster_bgcolor = "efefef";
	var cluster_border = "0";
	var heading_display = "Yes";
	var time_display = "No";
	var cell_spacing = "0";
	var cell_padding = "2";
	var heading_bgcolor = "efefef";
	var heading_font = "Times New Roman, Times, serif";
	var heading_font_size = "2";
	var heading_fgcolor = "000080";
	var headline_bgcolor = "ffffff";
	var headline_font = "Arial, Verdana, Helvetica, sans-serif";
	var headline_font_size = "1";
	var headline_fgcolor = "000080";
	var source_font = "Times New Roman, Times, serif";
	var source_font_size = "-2";
	var source_fgcolor = "ff3f00";
	var access_font = "Arial, Verdana, Helvetica, sans-serif;";
	var access_font_size = "-2";
	var access_fgcolor = "ff3f00";
	var time_font = "Times New Roman, Times, serif";
	var time_font_size = "-2";
	var time_fgcolor = "ff3f00";
	var time = new Array(global_article.length);

global_Section = 0;
global_actual_counter = 0;

document.write('<DIV STYLE="width: 170; left: 2; top: 4; ');
document.write('position: relative; border-left: thin solid #004B96; border-right: medium solid #004B96; ');
document.write('border-top: thin solid #004B96; border-bottom: medium solid #004B96" ');
document.write('TITLE="News Headlines!\nClick on Headline!" ');
document.write('ONMOUSEOVER="window.status=\'Click on News Headline for details- Opens a new window!\';return true;" ');
document.write('ONMOUSEOUT="window.status=\'\';return true;">');

for (global_Section = 1; global_Section < 7; global_Section++) {
// this loop covers the entire rest of the script
	// Print out the table containing the headlines
	document.write('<TABLE SUMMARY="MAST News Heading" BORDER='+cluster_border+' BGCOLOR="#'+cluster_bgcolor+'" WIDTH="'+width+'" CELLPADDING=1 CELLSPACING=0>');
	document.write('<TR><TD class="MASTnewsHead">&nbsp;'+global_PrintHead[global_Section]+'</TD></TR>');
	document.write('<TR><TD><TABLE SUMMARY="MAST News" BGCOLOR="#'+cluster_bgcolor+'" CELLPADDING='+cell_padding+' CELLSPACING='+cell_spacing+'  WIDTH="100%">');
	// Start loop for articles 
	for (var counter=1; counter < global_CA_Len[global_Section]; counter++)   {
		global_actual_counter++;
		if ((global_actual_counter == (global_CA_Len[global_Section] - 1)) && moreover_text == 1)  { 
			headline_fgcolor = source_fgcolor; 
			time_display = "No";
		}
		// Print out the headline
		document.write("<TR><TD class='MASTnewsLine'><A STYLE='text-decoration: none; color: #000080; font: Arial, Verdana, Helvetica, sans-serif;' ");
		document.write('HREF="'+global_article[global_actual_counter].url+'">'+global_article[global_actual_counter].headline_text+'</A>');
		// Print out the source
		if ((global_actual_counter != (global_CA_Len[global_Section] - 1)) || moreover_text != 1)  {
			document.write('<A HREF="'+global_article[global_actual_counter].document_url+'" STYLE="text-decoration: none; color: #FF3F00">');
			document.write(' '+global_article[global_actual_counter].source+'</A>');
		} // End of if counter...
		document.write('</TD></TR><TR BGCOLOR="#'+headline_bgcolor+'"><TD BGCOLOR="#'+headline_bgcolor+'" HEIGHT='+item_spacing+'></TD></TR>');

	} // End of article for loop
	document.write('</TABLE></TD></TR></TABLE>');
	global_actual_counter++;            // to skip the ad

} // End of for global_Section... print loop

// Start of clone button code //
// NOTE: DO NOT REMOVE any of the code in this section //
document.write("<FORM METHOD='POST' ACTION='http://www.moreover.com/cgi-local/wizard_clone.pl' target='clone' name='moreover_clone'>");
document.write("<INPUT TYPE='hidden' NAME='parent_code' VALUE='485544'>");
document.write("<INPUT TYPE='hidden' NAME='heading_font_size' VALUE='-1'>");
document.write("<INPUT TYPE='hidden' NAME='source_font_size' VALUE='-2'>")
document.write("<INPUT TYPE='hidden' NAME='cluster_width' VALUE='170'>");
document.write("<INPUT TYPE='hidden' NAME='time_display' VALUE='No'>")
document.write("<INPUT TYPE='hidden' NAME='time_font' VALUE='Times New Roman, Times, serif'>");
document.write("<INPUT TYPE='hidden' NAME='cluster_cellspacing' VALUE='0'>")
document.write("<INPUT TYPE='hidden' NAME='heading_font' VALUE='Times New Roman, Times, serif'>");
document.write("<INPUT TYPE='hidden' NAME='number_of_headlines' VALUE='3'>")
document.write("<INPUT TYPE='hidden' NAME='cluster_bgcolor' VALUE='ffff00'>");
document.write("<INPUT TYPE='hidden' NAME='search_keywords' VALUE=''>")
document.write("<INPUT TYPE='hidden' NAME='refine_category' VALUE=''>");
document.write("<INPUT TYPE='hidden' NAME='time_fgcolor' VALUE='ff6600'>")
document.write("<INPUT TYPE='hidden' NAME='access_fgcolor' VALUE='ff6600'>");
document.write("<INPUT TYPE='hidden' NAME='time_font_size' VALUE='-2'>")
document.write("<INPUT TYPE='hidden' NAME='headline_bgcolor' VALUE='ffff9b'>");
document.write("<INPUT TYPE='hidden' NAME='access_font_size' VALUE='-2'>")
document.write("<INPUT TYPE='hidden' NAME='cluster_name' VALUE='c=Top%20stories&o=js'>");
document.write("<INPUT TYPE='hidden' NAME='heading_display' VALUE='Yes'>")
document.write("<INPUT TYPE='hidden' NAME='headline_fgcolor' VALUE='800000'>");
document.write("<INPUT TYPE='hidden' NAME='source_font' VALUE='Times New Roman, Times, serif'>")
document.write("<INPUT TYPE='hidden' NAME='access_font' VALUE='Times New Roman, Times, serif'>");
document.write("<INPUT TYPE='hidden' NAME='headline_font_size' VALUE='-1'>")
document.write("<INPUT TYPE='hidden' NAME='headline_font' VALUE='Arial, Verdana, Helvetica, sans-serif;'>");
document.write("<INPUT TYPE='hidden' NAME='heading_bold' VALUE='Yes'>")
document.write("<INPUT TYPE='hidden' NAME='item_spacing' VALUE='3'>");
document.write("<INPUT TYPE='hidden' NAME='wizard_brand' VALUE='moreover_new'>")
document.write("<INPUT TYPE='hidden' NAME='heading_bgcolor' VALUE='ffff00'>");
document.write("<INPUT TYPE='hidden' NAME='cluster_cellpadding' VALUE='1'>")
document.write("<INPUT TYPE='hidden' NAME='heading_fgcolor' VALUE='800000'>");
document.write("<INPUT TYPE='hidden' NAME='source_fgcolor' VALUE='ff6600'>")
document.write("<INPUT TYPE='hidden' NAME='cluster_border' VALUE='0'>");
document.write("<INPUT TYPE='hidden' NAME='cluster_layout' VALUE=''>")
document.write("</FORM>");
// End of clone button code //

//  end of News Print

document.write("</DIV><br>");



//  Get Quotes - Script to get Quick Quotes 

document.write('<form METHOD="GET" NAME="getquote" ACTION="http://quotes.barchart.com/quote.asp" TARGET="_blank" ');
document.write('ONMOUSEOVER="window.status=\'MAST Partners: Get a Quick Quote- Enter Ticker Symbol\';return true;" ');
document.write('ONMOUSEOUT="window.status=\'\';return true;" TITLE="MAST Quick Quote:\nEnter Ticker Symbol" ');
document.write('STYLE="background-color: #EFEFEF; color: #800000; width: 172; left: 2; ');
document.write('position: relative; z-index:19; border-left: thin solid #004B96; border-right: medium solid #004B96; border-top: thin solid #004B96; border-bottom: medium solid #004B96;">');
document.write('&nbsp;<img BORDER="0" SRC="images/MASTQuickQuote.gif" WIDTH="130" HEIGHT="13" ');
document.write('ALT="MAST Quick Quote:\nEnter Ticker Symbol" NAME="QuickQuote"><br>');
document.write('&nbsp;<input TYPE="text" SIZE="13" NAME="sym" VALUE="SPY"> ');
document.write('&nbsp;<input TYPE="image" SRC="images/MASTGetIt.gif" NAME="GetIt" ');
document.write('ALT="MAST Quick Quote:\nEnter Ticker Symbol" ALIGN="absbottom" ');
document.write('STYLE="top: -1; position: relative" width="48" height="20"></form>');

//  end of Get Quotes


//  Get Research - Script to get Zacks Research

document.write('<form METHOD="GET" NAME="getzacksresearch" ACTION="http://www1.zacks.com/cgi-bin/JMFR/FreeReport" TARGET="_blank" ');
document.write('TITLE="MAST Partners, FREE Research!\nEnter Ticker Symbol for Report"  ');
document.write('ONMOUSEOVER="window.status=\'MAST Partners: FREE Research Reports from Zacks!  Enter Ticker Symbol\';return true;"  ');
document.write('ONMOUSEOUT="window.status=\'\';return true;" STYLE="background-color: #EFEFEF; color: #800000; width: 172; left: 2; ');
document.write('position: relative; z-index:19; border-left: thin solid #004B96; border-right: medium solid #004B96; border-top: thin solid #004B96; border-bottom: medium solid #004B96; "> ');
document.write('&nbsp;<img BORDER="0" SRC="images/MASTZacksRes.gif" ALT="MAST Partners, FREE Research!\nEnter Ticker Symbol for Report" ');
document.write('NAME="ZacksResearch" WIDTH="135" HEIGHT="13"><br> ');
document.write('&nbsp;<input TYPE="hidden" NAME="ref" VALUE="mast"><input TYPE="text" NAME="ticker" VALUE="MSFT" SIZE="13"> ');
document.write('&nbsp;<input TYPE="image" SRC="images/MASTGetIt.gif" ALT="MAST Partners, FREE Research!\nEnter Ticker Symbol for Report" ');
document.write('NAME="Get It!" ALIGN="absbottom" STYLE="top: -1; position: relative" width="48" height="20"></form><br>');

//  end of Get Research

// Weather
document.write('<form METHOD="GET" ACTION="http://www.weatherforyou.com/cgi-bin/hw3/hw3.cgi" TARGET="MAST_Weather" ');
document.write('TITLE="MAST Local Weather Forecast:\nEnter City &amp; State OR Zip Code!" ');
document.write('ONMOUSEOVER="window.status=\'MAST Partners: Get your Local Weather- Enter City &amp; State or Zip Code!\';return true;" ');
document.write('ONMOUSEOUT="window.status=\'\';return true;" STYLE="background-color: #EFEFEF; color: #800000; width: 172; left: 2; '); 
document.write('position: relative; z-index:19; border-left: thin solid #004B96; border-right: medium solid #004B96; ');
document.write('border-top: thin solid #004B96; border-bottom: medium solid #004B96; "> ');
document.write('&nbsp;<img BORDER="0" SRC="images/MASTWeather.gif" NAME="WeatherForecast" ');
document.write('ALT="MAST Weather Forecast:\nEnter City and State OR Zip Code!" WIDTH="137" HEIGHT="10"> ');
document.write('<br>&nbsp;<input TYPE="hidden" NAME="forecast" VALUE="zandh"><input TYPE="text" NAME="pands" ');
document.write('SIZE="13" VALUE="City,ST or  Zip" ');
document.write('TITLE="MAST Weather Forecast:\nEnter City and State OR Zip Code!"> ');
document.write('&nbsp;<input TYPE="image" SRC="images/MASTGetIt.gif" NAME="GetIt" ');
document.write('ALT="MAST Weather Forecast:\nEnter City and State OR Zip Code!" ALIGN="absbottom" ');
document.write('STYLE="top: -1; position: relative;" width="48" height="20"></form>');

// Current Conditions
document.write('<div class="MASTsmcell" style="color: green; text-align: center; position: relative; top: 8;">* Current Conditions *<br><hr align="center" width="164" style="color: #DFDFDF;"></div>');
document.write('<A HREF="javascript:refreshMASTChart();" ');
document.write('ONMOUSEOVER="window.status=\'MAST Current Weather: Greenwich, CT: CLICK to REFRESH!\';return true;" ');
document.write('ONMOUSEOUT="window.status=\'\';return true;">');
document.write('<img src="http://www.weatherforyou.net/fcgi-bin/hw3/hw3.cgi?config=png&forecast=hourly&alt=hwihourly&place=Greenwich&state=ct&country=us&hwvbg=transparent&hwvtc=navy&metric=0&hwvdisplay=Greenwich,+CT+-+NYC" ');
document.write('name="MASTGwchWeather" border="0" alt="Updated Hourly: Click to Refresh Current Weather Conditions in Greenwich, CT!" border="0" width="175" height="90" STYLE="top: 8; left: 8; position: relative;"></a>');

// Forecasts
document.write('<div TITLE="MAST Select City Weather Forecast!" align="center" class="MASTsmcell" ');
document.write('ONMOUSEOVER="window.status=\'MAST Partners: Local Weather Forecasts - Select Cities!\';return true;" ');
document.write('ONMOUSEOUT="window.status=\'\';return true;" STYLE="background-color: #EFEFEF; color: #800000; '); 
document.write('position: relative; border-left: thin solid #004B96; border-right: medium solid #004B96; width: 170; left: 2; top: -4; border-top: thin solid #004B96; border-bottom: medium solid #004B96; ">');
document.write('<span style="vertical-align: -50%; color: green;">* Weather Forecasts *</span><br><hr width="164" style="color: navy;">New York City');
document.write('<img src="http://www.weatherforyou.net/fcgi-bin/hw3/hw3.cgi?config=png&forecast=zone&place=New+York&state=NY&alt=hwizonemicro&daysonly=3&hwvbg=transparent&hwvtc=navy" ');
document.write('alt="3 Day Forecast for the\nFinancial Capital of the World" border="0" width="140" height="65" STYLE="position: relative;">');
document.write('<br><span STYLE="background-color: #EFEFEF; position: relative; width: 150; top: -8;"><hr>');
// Watch the quotes...
document.write("View More Forecasts?</span><br><A HREF=\"javascript:popMASTWin('privatedir/p_weatherForecast1.html','220','580','pweather1','yes','');\">");
document.write('<img SRC="images/MASTGetIt.gif" NAME="GetIt" width="48" height="20" ');
document.write('border="0" ALT="MAST Weather Forecast for more Select Cities"></a><br><br style="line-height: 50%;">');

document.write('</div></td></tr></table>');


//  end of Weather


//  END of SCRIPT SPAR3Right3.js 
