// JavaScript Document

{
img1 = new Image();
img1.src = "images/home.gif";
ovr1 = new Image();
ovr1.src = "images/home-over.gif";

img2 = new Image();
img2.src = "images/services.gif";
ovr2 = new Image();
ovr2.src = "images/services-over.gif";

img3 = new Image();
img3.src = "images/portfolio.gif";
ovr3 = new Image();
ovr3.src = "images/portfolio-over.gif";

img4 = new Image();
img4.src = "images/client_talk.gif";
ovr4 = new Image();
ovr4.src = "images/client_talk-over.gif";

img5 = new Image();
img5.src = "images/pricing.gif";
ovr5 = new Image();
ovr5.src = "images/pricing-over.gif";

img6 = new Image();
img6.src = "images/contact.gif";
ovr6 = new Image();
ovr6.src = "images/contact-over.gif";

}
function imageChange(imageID,imageName){ 


{
document.images[imageID].src = eval(imageName + ".src");
}

}

// random featured site
var featSite = new Array()

featSite[0] = 'sites/brigadearmory.jpg'
featSite[1] = 'sites/FugittRubber.jpg'
featSite[2] = 'sites/carpenterclothingco.jpg'
featSite[3] = 'sites/FBCsearcy.jpg'
featSite[4] = 'sites/taxmancentral.jpg'
featSite[5] = 'sites/altheadx.jpg'
featSite[6] = 'sites/hugghall.jpg'
featSite[7] = 'sites/PennDelYouth.jpg'
featSite[8] = 'sites/RobinBertram.jpg'
featSite[9] = 'sites/nano.jpg'
featSite[10] = 'sites/CypressCreekOutdoors.jpg'
featSite[11] = 'sites/vontrapp.jpg'
featSite[12] = 'sites/dcmian.jpg'

var siteURL = new Array()
siteURL[0] = 'http://www.brigadearmory.com'
siteURL[1] = 'http://www.fugittrubber.com'
siteURL[2] = 'http://www.carpenterclothingco.com'
siteURL[3] = 'http://www.fbcsearcy.com'
siteURL[4] = 'http://www.taxmancentral.com'
siteURL[5] = 'http://www.altheadx.com'
siteURL[6] = 'http://www.hugghall.com'
siteURL[7] = 'http://www.penndelyouth.com'
siteURL[8] = 'http://www.RobinBertram.org'
siteURL[9] = 'http://www.nano.com'
siteURL[10] = 'http://www.cypresscreekoutdoors.com'
siteURL[11] = 'http://www.vontrappchildren.com'
siteURL[12] = 'http://www.dcmian.org'

var i = 0
var p = featSite.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = featSite
   }

var whichImage = Math.round(Math.random()*(p-1));
function showSite(){
document.write('<a href="'+siteURL[whichImage]+'"><img src="'+featSite[whichImage]+'" border="0" width="150" height="110" alt="Web design by Astonished Man Web Design"></a>');
document.write('<p><a href="'+siteURL[whichImage + 1]+'"><img src="'+featSite[whichImage + 1]+'" border="0" width="150" height="110"></a>');
}  

// random featured Flash
var featFlash = new Array()

featFlash[0] = 'sites/twoemptychairs.jpg'
featFlash[1] = 'sites/williewill.jpg'
featFlash[2] = 'sites/90kw.jpg'
featFlash[3] = 'sites/xtcontrols.jpg'
featFlash[4] = 'sites/PennDelYouth.jpg'
featFlash[5] = 'sites/yellowcabmagazine.jpg'
featFlash[6] = 'sites/bootlegger.jpg'
featFlash[7] = 'sites/aerialbanners.jpg'
featFlash[8] = 'Flash/RMLhonors.jpg'

var flashURL = new Array()
flashURL[0] = 'RetiredSites/2ec'
flashURL[1] = 'Flash/WillieWill'
flashURL[2] = 'TestSite/90kw/90kw.html'
flashURL[3] = 'http://www.xtcontrols.com'
flashURL[4] = 'http://www.PennDelYouth.com'
flashURL[5] = 'http://www.yellowcabmagazine.com'
flashURL[6] = 'RetiredSites/bootlegger'
flashURL[7] = 'http://www.aerialbanners.com'
flashURL[8] = 'TestSite/RML/RMLhonors.html'


var i = 0
var p = featFlash.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = featFlash
   }

var whichImage = Math.round(Math.random()*(p-1));
function showFlash(){
document.write('<a href="'+flashURL[whichImage]+'"><img src="'+featFlash[whichImage]+'" border="0" width="150" height="110" alt="Web design by Astonished Man Web Design"></a>');
document.write('<p><a href="'+flashURL[whichImage + 1]+'"><img src="'+featFlash[whichImage + 1]+'" border="0" width="150" height="110"></a>');
}  


// random quote

var randomQuote = new Array()
randomQuote[0] = 'Choosing Astonished Man Design has been the best business decision I&acute;ve made.<br><b>April Evans</b>, River Java, LLC<br><a href="http://www.riverjava.com">www.riverjava.com</a>'
randomQuote[1] = 'From a church perspective, I can&acute;t imagine working with someone that strikes a better balance between quality design work and a natural understanding of the specific needs of a church.<br><b>Greg Sykes</b>, Minister of Education<br><a href="http://www.fbcruss.org">First Baptist Church</a>, Russellville, AR'
randomQuote[2] = 'I have worked with many web designers in the past and working with Astonished Man Design has been the most positive experience that i have had thus far.<br><b>Laura Cromarty</b>, Marketing Manager<br>Shooters Restaurant &amp; <a href="http://www.shooterscafe.com">Shooters Waterfront Cafe</a>, Ft. Lauderdale, FL'
randomQuote[3] = 'I am very impressed with the finished web site and applaud Astonished Man Design for the willingness to make changes and work alongside our staff in designing the right site for us.<br><b>Hal Stroupe</b>,<a href="http://www.ibceldorado.org">Immanuel Baptist Church</a>, El Dorado, AR'
randomQuote[4] = 'I was so pleased with his work that we have now hired him to create a website for our second location as well.<br><b>Laura Cromarty</b>, Marketing Manager<br>Shooters Restaurant &amp; <a href="http://www.shooterscafe.com">Shooters Waterfront Cafe</a>, Ft. Lauderdale, FL'
randomQuote[5] = 'Astonished Man Design was very easy to work with. I gave him my ideas and without delay, there they were on my web site.<br><b>Brad Bargman</b>, <a href="http://www.yellowcabmagazine.com">Yellow Cab Magazine</a>, Ft. Lauderdale, FL'
randomQuote[6] = 'Astonished Man Design&acute;s understanding of my needs at every stage of development has been reassuring and I am impressed with the final results, as are my customers who enjoy their online experience with our company.<br><b>April Evans</b>, River Java, LLC<br><a href="http://www.riverjava.com">www.riverjava.com</a>'
randomQuote[7] = 'Astonished Man astonished me! The simple effectiveness of the website they produced for me is exactly what I need, and they were a pleasure to work with. Ultra professional, I will have no hesitation in recommending them.</p><p><a href="http://www.maishman.net">Andrew Maishman</a><br>artist, New Jersey'
var j = 0
var w = randomQuote.length;

var preBuf = new Array()
for (j = 0; j < w; j++){
   preBuf[j] = new Image()
   preBuf[j].src = randomQuote
   }

var whichQuote = Math.round(Math.random()*(w-1));
function showQuote(){
document.write(''+randomQuote[whichQuote]+'');
}  
