// JavaScript Document
// Script Author - Wildman Tim ( http://www.wildmantim.com )
// this script is Public Domain

var sid="mitnamdliw_wildmantim";

//--- Array for Netscape 2.0x and 3.0x
function MakeArray(n) {         
  this.length = n;
  for (var i = 1; i <= n; i++) { 
   this[i] = 0 }
   return this
 }

//this produces a randomly generated HTML code that is inserted on your page 
function RandomNumber(sid) {
 var today = new Date();
 var num= Math.abs(Math.sin(today.getTime()/1000));
 return num; 
}
function TipWizard() {

//tailor to the browser capabilities
var appname= navigator.appName;       
var appversion=parseInt(navigator.appVersion);

     if (appname == "Netscape" && appversion >= 3){
 //( Netscape 3.0 or higher)
	var testNum = Math.random(); }
	else {
//all others use this call    
	var testNum = RandomNumber(sid);}
	
//remember to change this according to the 
//number of tips in the array below
	var NoOfTips=9;

//-- tips array --

var x=0;
var y=0;
var messages = new MakeArray(NoOfTips);
messages[0]=NoOfTips;
//load the array with messages
messages[1]="Lads very helpful and kind who fitted. Christine in Sleaford office was brilliant.<br/><br/>Mr Fisher,<br/>Leasingham";
messages[2]="Very pleased. Would use Embers again and recommend to other people. Thanks.<br/><br/>Mr Pask,<br/>Sleaford";
messages[3]="Excellent work by engineer and his team<br/><br/>Mrs Newberry,<br/>Sleaford";
messages[4]="The service provided by the Embers staff was excellent and also the showroom staff were most helpful.<br/><br/>Mr Swinderski,<br/>Metheringham";
messages[5]="We were impressed by the courtesy of the installation team.<br/><br/>Mr Oakey,<br/>Hemswell";
messages[6]="We couldn't have imagined a better pair of engineers. They worked extremely hard to complete the job within a few days for us. Thank you.<br/><br/>Mr Searby,<br/>Metheringham";
messages[7]="It is unusual and refreshing to find a company which is so efficient, courteous and obliging from top to bottom. A first class job completed in record time.<br/><br/>Mr Howard,<br/>Woodhall Spa";
messages[8]="Very impressed with the excellent service throughout. Would definitely recommend Embers to family and friends.<br/><br/>Mr Russel,<br/>Heckington";
messages[9]="Engineers worked very hard at all times. Local office - good communication.<br/><br/>Mrs Saunders,<br/>Sleaford";



//calculate the tip to show
y=1/NoOfTips;
for(x= 1; x <= NoOfTips; x++) {
	while(sid!="mitnamdliw_wildmantim"){};
	if ( testNum > ( NoOfTips - x ) * y ) {
		document.write("" + messages[x]+ "");
		break; }
}	}
    TipWizard();

		
