// 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]="An impressive service. An item the size of a mattress bought over the phone and delivered within 24 hours! We are very happy.<br/>Nigel & Angela Cox<br/>Wakefield";
messages[2]="IT ARRIVED AS SPECIFIED AND WAS WELL PROTECTED AND WRAPPED. I WAS MOST PLEASED AND WOULD GLADLY RECOMMEND YOU AND YOUR EFFICIENT SERVICE.<br/>Ann Nealon";
messages[3]="I would just like to say how delighted I am with my new bed. The service you provided from the day my order was placed to the delivery was first class. I will certainly recommend you to family and friends.<br/>Diana Bashall";
messages[4]="I would like to recommend your company to any prospective customer and happily inform them of the excellent service that I received from beginning to end. I am nothing less that completely satisified and delighted.<br/>Colin R Wood";
messages[5]="Just wanted to say how impressed we were with your service. Really quick delivery time, good communication and thorough packaging make you a highly recommendable company.<br/>Paul Carter";
messages[6]="I would just like to say thank you for an excellent and very speedy service. I would certainly use you again and wouldn't hesitate to recommend your website.<br/>Vivienne Sims<br/>Dorset";
messages[7]="I just wanted to send you a quick email to say thankyou. Received our mattress on the day and time stated. Excellent service and communication - we have recommended you to all our friends.<br/>Thelma Reddish<br/>Derbyshire";
messages[8]="I am just writing to say its a real pleasure to have dealt with you, refreshing that a company delivers the next day, im am so impressed, I would definately recommend to everyone i know, thanks again<br/>Louise Jordan";
messages[9]="The service you provided was excellent. I work in the retail trade and always feel its great to get good service. I certainly will be recommending my freinds to use your company.<br/>Mrs S Goldman";


//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("<left><b><font size=1 face=arial,helvetica color=black>" + messages[x]+ "<font></b></left>");
		break; }
}	}
    TipWizard();

		
