// 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=10;

//-- tips array --

var x=0;
var y=0;
var messages = new MakeArray(NoOfTips);
messages[0]=NoOfTips;
//load the array with messages
messages[1]="Your service, from our very initial enquiries having found your website, was first class. The radiators look great<br/><br/>Mr and Mrs Tytherleigh<br/>West Sussex";
messages[2]="It was lovely doing business with you and I will send a recommendation to Which Magazine<br/><br/>Mr and Mrs Cormack<br/>Wester Balbair";
messages[3]="Fantastic product and fantastic service<br/><br/>Mrs Hubbard<br/>Martin, Lincolnshire";
messages[4]="Thanks for all your help, thanks for your expert advice for our purchase<br/><br/>Mrs McGrath<br/>Aberdeen";
messages[5]="The radiator has arrived. Its beautiful, your employees have done a great job<br/><br/>Mr and Mrs Otto<br/>USA";
messages[6]="The radiator looks beautiful in our new kitchen. Thank you so much<br/><br/>Ms Lene<br/>London";
messages[7]="We are so pleased with our radiators, they look absolutely great, your delivery guys were so helpful and the whole experience with Paladin has been so enjoyable. We cannot thank you enough.<br/><br/>Anupa and Sanj<br/>London";
messages[8]="Just wanted to say the radiators look fabulous!<br/><br/>Mrs K. Smith";
messages[9]="Hi Liz, I just wanted to say thank you for helping me. You did a great job and I think your boss should give you a pay increase because you represent the Company so well.<br/><br/>Mr Marzullo<br/>USA";
messages[10]="The radiators have arrived and look so good and for the price I have paid they are amazing value. I would like to look at selling them for you as an agent in Germany.<br/><br/>Dr Hattendorf<br/>Germany";


//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();

		
