  if (jobs != null)
    {
    for (var jobs_counter = 0; jobs_counter < Math.min(20,jobs.length);jobs_counter++)
      {
      global_jobs[global_jobs_counter] = jobs[jobs_counter]
      global_jobs_counter++
      }
    }
  else
    {
    if (early_exit == 0)
      {
      document.writeln("<center>Please reload this page to view the headlines</center>")
      early_exit = 1
      }
    }

  if (early_exit == 0)
  {
   // change these settings for affiliate
  var affiliate = "55"
  // change these settings to modify display
    // width of display box
  var width = "217"
  // title headline on box
  var title = "The Latest Jobs..."
  // select Yes to show title, No to not show title
  var title_display = "Yes"
  // select Yes to show salary, no to not show salary
  var salary_display = "Yes"
  // select Yes to show date, no to not show date
  var date_display = "Yes"
  // select Yes to show job location, no to not show job location
  var location_display = "No"
  // number of articles to display in box - maximum 20
  var numberofarticles = "10"
  // spacing between items - 5 is good
  var item_spacing = "3"
  // box background color
  var box_bgcolor = "FFFFFF"
  // box border size - 1 for border, 0 for no border
  var box_border = "0"
  // spacing between articles
  var cell_spacing = "0"
  // padding in front of articles
  var cell_padding = "0"
	//--------------------------------------
	//nh - added style sheet class for items
	var title_class = "h2"
	var content_class = "side_bkgd"
	var content_link_class = "menu_item"
 	//--------------------------------------
	// title font color
  var title_bgcolor = "FFFFFF"
  // title font face
  //var   title_font = "Verdana, Arial,Helvetica, sans-serif"
	var title_font = "Times New Roman, Times, serif"
  // title font size
  var title_font_size = "2"
  // title box font color
  var title_fgcolor = "3399cc"
  // job title background color
  var headline_bgcolor = "FFFFFF"
  // job title font face
  var headline_font = "Verdana, Arial,Helvetica, sans-serif"
 // job title  font size
  var headline_font_size = "-2"
   // job title  font color
  var headline_fgcolor = "333399"
  // job location font face
  var location_font = "Verdana, Arial,Helvetica, sans-serif"
  // job location font size
  var location_font_size = "-2"
  // job location font color
  var location_fgcolor = "AAAAAA"
  // salary font face
  var salary_font = "Verdana, Arial,Helvetica, sans-serif"
  // salary font size
  var salary_font_size = "-2"
  // salary font color
  var salary_fgcolor = "AAAAAA"
  // date font face
  var date_font = "Verdana, Arial,Helvetica, sans-serif"
  // date font size
  var date_font_size = "-2"
  // date font color
  var date_fgcolor = "AAAAAA"

  var time = new Array(global_jobs.length)

  // Print out the table to hold the title and headlines
	// BGCOLOR='#"+box_bgcolor+"'
  document.writeln("<TABLE BORDER="+box_border+" WIDTH='"+width+"' CELLPADDING=0 CELLSPACING=0 bordercolor=red>")
	
    if (title_display == "Yes")
      {
      //document.writeln("<TR BGCOLOR='#"+title_bgcolor+"'><TD>")
      //document.writeln("<FONT SIZE="+title_font_size+" FACE="+title_font+" COLOR='#"+title_fgcolor+"'>")
      //document.writeln("<B><i>"+title+"</i></B></FONT></TD></TR>")
			document.writeln("<TR><TD class='"+ title_class +"' colspan=2>" + title + "</TD></TR>")
      }
		//nh  - added topper like left nav
		document.writeln("<tr><td colspan=2 class=menu_toprow><img src='images/spacer.gif' width=1 height=5></td></tr>")
		//nh - added spacer cell like left nav
		document.writeln("<TR><td class='"+ content_class +"'><img src='images/spacer.gif' width=10 height=1>")

	// nested content table begins
  document.writeln("<TD><TABLE CELLPADDING="+cell_padding+" CELLSPACING="+cell_spacing+"  WIDTH='100%'>")
	// BGCOLOR='#"+box_bgcolor+"'
	// moved title_display from here

  // Start loop for articles
  for (var counter=0; counter < numberofarticles; counter++)
    {
		// Set affiliate Link
			var affiliatelink = ""
			if (affiliate != "")
				{
				var affiliatelink = "&affiliate="+affiliate
				}
				// Print out the job title
				// BGCOLOR='#"+headline_bgcolor+"'
			document.writeln("<TR><TD class='"+content_class+"'><A HREF="+global_jobs[counter].job_url+affiliatelink+"")
			document.writeln(" TARGET='_blank' class='"+content_link_class+"'>"+global_jobs[counter].job_title+"</a>")
			//...
			//document.writeln("<FONT SIZE="+headline_font_size+" FACE="+headline_font+" COLOR='#"+headline_fgcolor+"'")
			//document.writeln(">"+global_jobs[counter].job_title+"  ...</FONT></A>")
			//nh - add BR
			document.writeln("<br>")
		
		// check for and write salary
			if (salary_display == "Yes")
			{
			document.writeln(" <FONT SIZE="+salary_font_size+" FACE="+salary_font+" COLOR='#"+salary_fgcolor+"'")
				 document.writeln("> "+global_jobs[counter].job_salary+"</FONT>")
			}

		// check for and write location
				if (location_display == "Yes")
				{
				document.writeln(" <FONT SIZE="+location_font_size+" FACE="+location_font+" COLOR='#"+location_fgcolor+"'")
					 document.writeln(">"+global_jobs[counter].job_location+"</FONT>")
				}

		// check for and write date
			if (date_display == "Yes")
			{
				document.writeln(" <FONT SIZE="+date_font_size+" FACE="+date_font+" COLOR='#"+date_fgcolor+"'")
				document.writeln("> - "+global_jobs[counter].job_date+"</FONT>")
			}

			document.writeln("<br></TD></TR>")
			// colored spacer
			//document.writeln("</TD></TR><TR BGCOLOR='#"+headline_bgcolor+"'><TD BGCOLOR='#"+headline_bgcolor+"' HEIGHT="+item_spacing+">")
			//document.writeln("<img src='images/spacer.gif' height="+item_spacing+" width=1></TD></TR>")
		
			// custom spacer - nh
			if (counter != numberofarticles-1) {
			document.writeln("<TR><TD class='"+ content_class +"'><img src='images/nav_spacer2.gif' width='171' height='5'></td></tr>")
			}
		
    } // End of article loop
		
	document.writeln("</TABLE></TD></TR>")
		//nh  - added cap like left nav
	document.writeln("<tr><td colspan=2 class=menu_toprow><img src='images/spacer.gif' width=1 height=2></td></tr>")
  document.writeln("</TABLE>")
  }	