// use php to create the javascript based on number of products available
// definded by page 30 to max_pages and then general parameter variable number of products
// as to how many to output

var currentdate = 0
var core = 0

function StringArray (n) {
  this.length = n
  for (var i =1; i <= n; i++) {
    this[i] = ' '

  }
}

image = new StringArray(13)
text_one = new StringArray(13)
text_two = new StringArray(13)

image[0] = '<li><a href="uk_domain.html" title=".co.uk Domain Registration"><img src="images/co_uk_domain.jpg" alt=".co.uk Domain Registration" title=".co.uk Domain Registration" width="105" height="75.75" class="image_border" /></a><br><a href="uk_domain.html" title=".co.uk Domain Registration"><h1>.co.uk Domain Registration</h1></a></a><br>'
text_one[0] = '&pound;18.40/2 years'
text_two[0] = '</li>'
image[1] = '<li><a href="6_page_website.html" title="6 Page Website Template A"><img src="images/template_a.jpg" alt="6 Page Website Template A" title="6 Page Website Template A" width="105" height="76" class="image_border" /></a><br><a href="6_page_website.html" title="6 Page Website Template A"><h1>6 Page Website Template A</h1></a></a><br>'
text_one[1] = '&pound;50.00'
text_two[1] = '(One time cost)</li>'
image[2] = '<li><a href="com_domain.html" title=".com Domain Registration"><img src="images/com_domain.jpg" alt=".com Domain Registration" title=".com Domain Registration" width="105" height="75.75" class="image_border" /></a><br><a href="com_domain.html" title=".com Domain Registration"><h1>.com Domain Registration</h1></a></a><br>'
text_one[2] = '&pound;39.40/2 years'
text_two[2] = '</li>'
image[3] = '<li><a href="12_page_website.html" title="12 Page Website Template A-F"><img src="images/template_b.jpg" alt="12 Page Website Template A-F" title="12 Page Website Template A-F" width="105" height="75.75" class="image_border" /></a><br><a href="12_page_website.html" title="12 Page Website Template A-F"><h1>12 Page Website Template A-F</h1></a></a><br>'
text_one[3] = '&pound;75.00'
text_two[3] = '(One time cost)</li>'
image[4] = '<li><a href="18_page_website.html" title="18 Page Website Template A-F"><img src="images/template_e.jpg" alt="18 Page Website Template A-F" title="18 Page Website Template A-F" width="105" height="76" class="image_border" /></a><br><a href="18_page_website.html" title="18 Page Website Template A-F"><h1>18 Page Website Template A-F</h1></a></a><br>'
text_one[4] = '&pound;100.00'
text_two[4] = '(One time cost)</li>'
image[5] = '<li><a href="50_page_website.html" title="50 Page Website Template A-F"><img src="images/template_f.jpg" alt="50 Page Website Template A-F" title="50 Page Website Template A-F" width="105" height="75.75" class="image_border" /></a><br><a href="50_page_website.html" title="50 Page Website Template A-F"><h1>50 Page Website Template A-F</h1></a></a><br>'
text_one[5] = '&pound;150.00'
text_two[5] = '(One time cost)</li>'
image[6] = '<li><a href="50_page_website_g.html" title="50 Page Website Template G"><img src="images/template_g.jpg" alt="50 Page Website Template G" title="50 Page Website Template G" width="105" height="76" class="image_border" /></a><br><a href="50_page_website_g.html" title="50 Page Website Template G"><h1>50 Page Website Template G</h1></a></a><br>'
text_one[6] = '&pound;150.00'
text_two[6] = '(One time cost)</li>'
image[7] = '<li><a href="100_page_website.html" title="100 Page Website Template G"><img src="images/template_g2.jpg" alt="100 Page Website Template G" title="100 Page Website Template G" width="105" height="75.75" class="image_border" /></a><br><a href="100_page_website.html" title="100 Page Website Template G"><h1>100 Page Website Template G</h1></a></a><br>'
text_one[7] = '&pound;190.00'
text_two[7] = '(One time cost)</li>'
image[8] = '<li><a href="150_page_website.html" title="150 Page Website Template G"><img src="images/template_g3.jpg" alt="150 Page Website Template G" title="150 Page Website Template G" width="105" height="75.75" class="image_border" /></a><br><a href="150_page_website.html" title="150 Page Website Template G"><h1>150 Page Website Template G</h1></a></a><br>'
text_one[8] = '&pound;230.00'
text_two[8] = '(One time cost)</li>'
image[9] = '<li><a href="website_back_office.html" title="Website Hosting, Fast Servers"><img src="images/hosting.jpg" alt="Website Hosting, Fast Servers" title="Website Hosting, Fast Servers" width="105" height="75.75" class="image_border" /></a><br><a href="website_back_office.html" title="Website Hosting, Fast Servers"><h1>Website Hosting, Fast Servers</h1></a></a><br>'
text_one[9] = 'from &pound;3.50/month'
text_two[9] = '(yearly contracts)</li>'


function ranimage(m) {
  offset = m
  currentdate = new Date()
  core = currentdate.getSeconds()
  core = Math.floor(Math.random()*2)
  core = core+offset
  return(image[core]+text_one[core]+'<br>'+text_two[core])
}

