﻿function importflash(f, w, h) {
   document.write('<object type="application/x-shockwave-flash" data="' + f + '.swf" width="' + w + '" height="' + h + '">\n');
   document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
   document.write('<param name="movie" value="' + f + '.swf" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="menu" value="false" />\n');
   document.write('</object>\n');
}

function getHeader() {
    var theImages = new Array()
    var theLinks = new Array()
theImages[0] = '/_flash/home/1.jpg?v=1'
theLinks[0] = '/testimonials_roy.aspx'
theImages[1] = '/_flash/home/2.jpg?v=1'
theLinks[1] = '/testimonials_susan.aspx'
theImages[2] = '/_flash/home/3.jpg?v=1'
theLinks[2] = '/testimonials_t.aspx'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichNumber = Math.round(Math.random()*(p-1));
document.write('<a href="'+theLinks[whichNumber]+'"><img src="'+theImages[whichNumber]+'" alt="" border="0" /></a>');
//document.getElementById("header").style.backgroundImage = "url("+theImages[whichNumber]+")";
}