
function changeArrow()
{
   document.getElementById('arrow').src = 'images/leftArrow_over.gif';
}

function restoreArrow()
{
   document.getElementById('arrow').src = 'images/leftArrow.gif';
}

function changeUpArrow()
{
   document.getElementById('up').src = 'images/upArrow_over.gif';
}

function restoreUpArrow()
{
   document.getElementById('up').src = 'images/upArrow.gif';
}

function openImageWindow(addr,w,h)
{
   var str = 'left=0,top=0,width=' +
             w +
             ',height=' +
             h +
             ',toolbar=no,menubar=no,status=no,resizable=yes';
   window.open ( addr + '.html','',str );
}

var refArray = new Array ( 
[ 'South Tacoma Glass', 'Gail Hemley', 'Co-Owner', 'Tacoma', 'WA', '254-752-1506', 'Elmo P.O.S.', 'We&#39;re really happy with Elmo32.  It is very user friendly.  The simplicity of use is very nice and is what everyone likes about Elmo32. The biggest plus is the phone support...it is worth everything.' ],
                           [ 'Deb&#39;s Auto Glass', 'Russ Oden', 'Owner', 'Grant&#39;s Pass', 'OR', '541-479-4444', 'Elmo P.O.S. and EDI', 'Elmo32 is fantastic!  The staff is super and I can call 24 hours a day, 7 days a week for Technical Support.  IBS actually wrote a special program to help me save time.  I am really happy with my decision to use IBS Software and Elmo32.' ],
                           [ 'Interstate Glass & Door', 'Rennie Deboer', 'Owner', 'Mitchell', 'SD', '605-996-2720', 'Elmo P.O.S., EDI and Accounting', 'The Elmo32 software is very user friendly. IBS Technical Support has been very helpful to our business.' ],
                           [ 'T G Auto Glass', 'Frank Novelli', 'Co-Owner', 'Chicago', 'IL', '630-916-7818', 'Elmo P.O.S.', '24 hours a day I can call an 800 number and reach Technical Support. We have been with them for over five years and they are one of the best investments made for our business.' ],
                           [ 'Dallas Glass Co', 'Bruce Arnold', 'Owner', 'Selma', 'AL', '334-874-4648', 'Elmo P.O.S. and EDI', 'The Elmo32 program is fantastic. Information is easy to retrieve, there are over 80 reports that come pre-installed with Elmo32, and their Technical Support has always been there to assist my business.' ],
                           [ 'Quick Set Auto Glass', 'Lottie Short', 'Ofc. Mgr.', 'Denver', 'CO', '303-452-5378', 'Elmo P.O.S., EDI, Accounting and Inventory', 'We have had the Elmo32 program for over two years and have always received patient, supportive assistance from Technical Support. We appreciate all the expert help.' ],
						   [ 'Absolute Service Inc.', 'Staff', '', 'Diamond Springs', 'CA', '', 'Elmo P.O.S., EDI, Inventory, and Schedule', 'It has been a pleasure doing business with your company Your staff is very informative fast and friendly. We have dealt with other software companies and by far your&#39;s has been the best.' ],
						   [ 'Auto Glass Solutions', 'Eric Justice', 'Owner', 'Louisville', 'KY', '502-583-4527', 'Elmo P.O.S., EDI, and Accounting', 'I would like to thank IBS Software and Judy Todd for their prompt service and dedication! I was deployed to Iraq in January 2008 with the United States Army and when I came back in February 2009, I came back to a job that didn’t exist any longer...' ],
						   [ 'Taylor Glass', 'Guy Taylor', '', 'Springfield', 'IL', '217-525-0613', 'Elmo P.O.S., EDI, and Schedule', 'Everyone has been very helpful with getting our software installed. Judy Todd was wonderful to work with. Very professional organization!' ] 
						   );

var lineArray = new Array();
var fieldArray = new Array([,,,,,,,]);

function makeArray(theString, delimiter)
{
   var arrMyArray;
   arrMyArray = theString.split(delimiter);
   // alert ( 'new Array len: ' + arrMyArray.length );
   return arrMyArray;
}

function formatToArrays()
{
   // Parse the database, seperating each line into array entries
   lineArray = makeArray ( global_str, '\n' );
}

function formatToFields()
{
   for ( var i = 0; i < lineArray.length; i++ )
   {
      // alert (lineArray[i]);
      fieldArray[i] = makeArray( lineArray[i], ';' );
   }
   // alert ( 'fieldArray[0].length: ' + fieldArray[0].length );
}
/**
   // alert ( '1: ' + lineArray[1] );
   var debug = '';
   for ( var i = 0; i < lineArray.length; i++ )
   {
      // Parse each line entry of database into fields
      fieldArray[i] = makeArray( lineArray[i], '\\' );
      // alert ( fieldArray[i] );
   }
   var s = '';
   for ( var i = 0; i < lineArray.length; i++ )
   {
      for ( var j = 0; j < fieldArray[i].length; j++ )
      {
         s += fieldArray[i][j] + ', ';
      }
      alert ( s );
      s = '';
   }
}
**/
var doOnce = false;
function loadTestimony ( el )
{
// if ( !doOnce )
   {
      call('ajax/references.csv');
      // alert ( global_str );
      formatToArrays();
      formatToFields();
      doOnce = true;
   }
   var num = el.substring(el.length - 1, el.length);
   var s = '';
   s += '<p class="references">' + fieldArray[num][0] + '</p>';
   s += '<ul class="references">';
   s += '<li><span class="underscore">' + fieldArray[num][1] + ',</span> ' + fieldArray[num][2] + '<br>' + fieldArray[num][3] + ', ' + fieldArray[num][4] + '<br>' + fieldArray[num][5];
   s += '</ul>';
   s += '<ul class="references">';
   s += '<li class="underscore">Software Products</li><li>' + fieldArray[num][6] + '</li>';
   s += '</ul>';
   s += '<p class="quote">&quot;' + fieldArray[num][7] + '&quot;</p>';
   document.getElementById(el).innerHTML = s;
}

function openSalesWindow(addr,w,h)
{
   var str = 'left=0,top=0,width=' +
             w +
             ',height=' +
             h +
             ',toolbar=no,menubar=yes,status=yes,resizable=yes';
   window.open ( addr,'',str );
}
