/** Copyright (C) 2002 Dan Heuston. **/
/** All rights reserved.            **/


function showHires() {

 trailertype="Hire"
 setCookie("ckTrailer", "Hire")
 
 document.write("<table cellspacing=0 cellpadding=5 width='100%' align=center class='bordered_yellow'>")
 document.write("<tr class='header'>")
 document.write("<td width=295>" + trailers[0][trmanu] + "/" + trailers[0][trmodel] + "<\/td><td width=180>" + trailers[0][trbox] + "/" + trailers[0][trdim] +
                "<\/td><td>" + trailers[0][trgc] + "<\/td><td>Daily Cost<\/td><td>Weekly Cost<\/td><td>&nbsp;<\/td><\/tr>")

 getUnits()
 				  
 for(i=1; i < trailerslen; i++) {
 
  if(trailers[i][trtype].indexOf(trailertype) != -1) {
   trailerref = trailers[i][trmanu] + trailers[i][trmodel]
   
   trailerhreftype = trailers[i][trtype].substr(0, trailers[i][trtype].indexOf(','))

   document.write("<tr valign=middle align=center style='font-size: 10pt'>") 
   document.write("<td width=320><a name='"  + trailerref +  "'><\/a>")
   document.write("<a href='trailers.htm?" + trailerhreftype + "#" + trailerref + "'><img class='yellowframe' src='" + picDir + "\/" + trailers[i][trpic] + "' alt='[" + trailers[i][trmodel] + " picture]' title='Click here to view full details of this trailer.'><\/a><br><b>" + trailers[i][trmanu] + " " + trailers[i][trmodel] + "<\/b><\/td>")
   document.write("<td width=180>")
   if(trailers[i][trbox] != "") document.write(trailers[i][trbox] + "<br>")
   if(trailers[i][trdim][0] != 0) document.write(getDimensions(trailers[i][trdim]))
   document.write("<\/td><td>")
   if(trailers[i][trgc] != 0) document.write(getWeight(trailers[i][trgc]) + " " + weightunits)  

   pos = (trailers[i][trtype].indexOf("Hire:")) + 5
   temp = trailers[i][trtype].substring(pos)
   hirecostd = temp.substring(0, temp.indexOf(","))
   hirecostw = temp.substring(temp.indexOf(",")+1)
   document.write("<\/td><td>£" + hirecostd + "<\/td><td>£" + hirecostw + "<\/td>")
   
   document.write("<td><a href='hireform.htm?trailers=" + i + "'><img src='" + picDir + "\/bHireIt.gif' border=0 alt='[Hire this Trailer]' title=''><\/a><\/td><\/tr>")  
   document.write("<tr><td colspan=6><hr size=2 width='95%'><\/td><\/tr>")
  }
 }
 
 document.write("<\/table>")
}


function summaryPage() {

 document.write("<p class='hometxt'><br>We have an extensive range of trailers in stock, from flat beds, to low loaders, to tipping trailers, to vehicle carriers.<br>We can even make van trailers to measure - just contact us with the dimensions!<br><br>To view our full on-line catalogue, simply select one of the options above.<br>Note: all quoted prices are non-inclusive of V.A.T.</p>")
 document.write("<p class='hometxt'>We can also provide a full service for your trailer - click <a id='service' href='servicing.htm' title='Click here to view details on our servicing of trailers.'>here<\/a> for more details.<br><br>")
 document.write("<img src='" + picDir + "\/misc.jpg' alt='[Miscellaneous Trailers]' title='' border=2><br><br><br><\/p>")
 document.write("<table border='0' width='100%' cellspacing=0 cellpadding=5>")
 document.write("<tr align=center><td align=center width='50%'><img src='" + picDir + "\/trelgologo.gif' alt='[Trelgo]' title=''><td align=center width='50%'><img src='" + picDir + "\/franclogo.gif' alt='[Franc]' title=''>")
 document.write("<\/table><br>")

 setCookie("ckTrailer", "nochoice")  
}
