/***********************************************
* Fading Ticker Tape Script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var speed=3000
var fadescheme=0 //set 0 to fade bgcolor from (white to black), 1 for (black to white)
var hex=(fadescheme==0)? 255 : 0
var startcolor=(fadescheme==0)? "rgb(255,255,255)" : "rgb(0,0,0)"
var endcolor=(fadescheme==0)? "rgb(0,0,0)" : "rgb(255,255,255)"
var frame=20;
var ie=document.all
var ns6=document.getElementById
var ns4=document.layers
var preLoad = new Image();

function regenerate(){
  window.location.reload()
}

function regenerate2(){
  if (document.layers)
    setTimeout("window.onresize=regenerate",450)
}

function get_updir (uplevel) {
	var updir = '';
  if (uplevel == "0") updir='';
  if (uplevel == "1") updir='../';
  if (uplevel == "2") updir='../../';
  if (uplevel == "3") updir='../../../';
  if (uplevel == "4") updir='../../../';
  return (updir);	
}

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19176568-1']);
  _gaq.push(['_trackPageview']);
  
function setupGA()
{}

function trackGA()
{	
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
}

function hide(id) {
   document.getElementById(id).style.display = 'none';
}

function show(id) {
   document.getElementById(id).style.display = 'block';
}

function news (type)
{
	
	if (type=="summary") 
	{
		document.write('<h2><a href="news-events.html" class="blueLink">News and Events</a></h2>');
	}
	else 
	{
		document.write('<h2>News and Events </h2>');
	}
	document.write('<a id="n1" name="n1"></a><p>Today\'s Date: <span class="title"><strong>' + GetFormattedDate() + '</strong></span></p>');

  document.write('<p class="greyline"></p>');
	document.write('<p><span class="title"><strong><a href="news-events.html" class="blueLinkXUL">Order Sharing is now available!</a></strong></span><br /><em>posted: 03/25/11</em><br><br>');
	if (type=="summary") 
	{
		document.write('Order Sharing gives you the ability to specify which other accounts should also receive the results of any orders that you place. ');
		document.write('<strong><a href="news-events.html" class="blueLinkXUL">Read More...</a></strong><br><br>');
	}
	else 
	{
		document.write('<p><i>Share reports and controllers files with dealers, applicators, farm managers, and others.</i>');
		document.write('<br><br>');
		document.write('Order Sharing gives you the ability to specify which other accounts should also receive the results of any orders that you place. ');
		document.write('The other accounts will be able to download the report and controller files as soon as the job has completed; when they log in, they will ');
		document.write('be able to view all orders that you\'ve shared with them, and well as orders that others have shared with them.<br><br>');
		document.write('This provides a very effective method of making controller files available to an applicator, without having to email them.');
		document.write('Call us for more details: 1-888-336-0029');
		document.write('<br><br>');
 	}


  document.write('<p class="greyline"></p>');
	document.write('<p><span class="title"><strong><a href="http://brownfieldagnews.com/2010/12/08/precision-ag-software-cuts-down-on-lime-application" class="blueLinkXUL" target="_blank">Brownfield Network Interview with David Hydrick on FieldRx</a></strong></span><br /><em>posted: 12/09/10</em><br><br><a href="http://brownfieldagnews.com/2010/12/08/precision-ag-software-cuts-down-on-lime-application" class="BlackLink" target="_blank">Hear an interview with David Hydrick on FieldRx</a>');
	if (type=="summary") 
	{
		document.write('<br><br>');
	}
	else 
	{
		document.write('<p><a href="http://brownfieldagnews.com/2010/12/08/precision-ag-software-cuts-down-on-lime-application" class="BlackLinkXUL" target="_blank">David Hydrick, the co-developer of web-based FieldRx software, easily discusses what he knows best: precision agriculture. He spends the bulk of his time advising his clients about what’s best for their crops. He and his partner saw the need for software that could translate the data that comes out of soil test laboratories into what comes out of the fertilizer application truck. The result is FieldRx, an easy to use program that Hydrick says will save money by avoiding over-application of nutrients. Another benefit, says Hydrick, is that FieldRx is environmentally green.</a> </p>');
		document.write('<p><a href="http://brownfieldagnews.com/2010/12/08/precision-ag-software-cuts-down-on-lime-application" class="BlackLinkUL" target="_blank">Hear the complete interview</a>.... </p>');
 	}

  document.write('<p class="greyline"></p>');
	document.write('<p><span class="title"><strong><a href="webnews/FieldRx-Launch-Release.pdf" class="blueLinkXUL">Press Release</a></strong></span><br /><em>posted: 10/19/10</em><br><br><a href="webnews/FieldRx-Launch-Release.pdf" class="BlackLink">FieldRx Streamlines VRT Recommendations for Ag Professionals</a>');
	if (type=="summary") 
	{
		document.write('<br><br>');
	}
	else 
	{
		document.write('<p><a href="webnews/FieldRx-Launch-Release.pdf" class="BlackLinkXUL">Ag Software Designs, LLC is pleased to announce the launch of FieldRx™, an independent web-based precision ag engine to be used by ag professionals for creating site-specific field prescriptions. Now available nationwide for any crop, FieldRx is currently being offered at promotional pricing through January 2011.</a> </p>');
		document.write('<p><a href="webnews/FieldRx-Launch-Release.pdf" class="BlackLinkUL">Read the complete press release</a>.... </p>');
 	}
 	
  document.write('<p class="greyline"></p>');
	document.write('<p><span class="title"><strong><a href="mailto:david.hydrick@fieldrx.com" class="blueLinkXUL">Training Available</a></strong></span><br /><em>posted: 9/22/10</em><br><br>FieldRx training is available. For more information, contact David Hydrick at <a href="mailto:david.hydrick@fieldrx.com" class="BlackLinkUL">david.hydrick@fieldrx.com</a>.');
	if (type=="summary") 
	{
		document.write('<br><br>');
	}
	else 
	{
		document.write('<p>In these training sessions you\'ll learn how to upload field borders, sample locations and lab results to FieldRx; how to place an order; and how to view the output files. </a></p>');
	}

	if (type=="summary") 
	{
  	document.write('<p class="greyline"></p>');
		document.write('<p><a href="news-events.html" class="blueLinkXUL"><span class="title">Read more>></span></a></P>');
	}
	
}

function GetFormattedDate()
{
 var dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
 var monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
 var now = new Date
 return ( dayName[now.getDay()] + ", " + monName[now.getMonth()] + " "+ now.getDate() )
}

var maxTestimonials = 4;

function showTestimonial()
{
	for (i=1; i<(maxTestimonials+1); i++)
	{
		tag = "T"+ i;	
		hide(tag);
	}
	tag = "T"+rand;
	//alert (tag);
	show(tag);	
}

function displayNext()
{
	currTag = 'T' + currentTestimonial;
	hide(currTag);
	if (currentTestimonial >= maxTestimonials) 
	{
		currentTestimonial = 1;
	}
	else
	{
		currentTestimonial++;
	}
	currTag = 'T' + currentTestimonial;
	show(currTag);
}

function displayPrev()
{
	currTag = 'T' + currentTestimonial;
	hide(currTag);
	if (currentTestimonial <= 1) 
	{
		currentTestimonial = maxTestimonials;
	}
	else
	{
		currentTestimonial--;
	}
	currTag = 'T' + currentTestimonial;
	show(currTag);
}


var rand = Math.floor(Math.random()*maxTestimonials)+1; 
var currentTestimonial = rand;

