// Remember 0 is a #. If you want a number between 0-19 (20 total numbers) you need to use Math.random()*20, because the floor method rounds down.
//These are the quote variables***********************************************************************************************************
var randyNum = Math.floor(Math.random()*17);

var testimonial = new Array ();
testimonial[0] = "&quot;I needed a site that reflected my ideas, feelings and sincerity. AJ's understanding of what I wanted was amazing.  His creativity, professionalism, promptness and resourcefulness were beyond what I had expected.  AJ Hauser and Hangnail Productions helped me successfully launch my project.&quot;<br /><cite>&#151; Kristyne Neal (HopeTrack)</cite>";

testimonial[1] = "&quot;Hangnail Productions is excellent!! Highly recommended for anyone who wants professional work done!!&quot;<br /><cite>&#151; Dan Castro</cite>";

testimonial[2] = "&quot;Thanks for all your help. It was a pleasure dealing with someone that made me feel like a person rather than a work order. I appreciate that. You have nailed everything - your work, your ideas, your personality, and your customer service are nothing short of spectacular. Your work speaks for itself - thanks again!&quot;<br /><cite>&#151; John Hooked</cite>";

testimonial[3] = "&quot;Hey AJ - I never did tell you what a great job you did on the artwork for us. It really looks great. I think everything turned out better than I expected and we're all very happy. All I could say when I saw the design was WOW. Thanks again for everything.&quot;<br /><cite>&#151; Rick Brozink</cite>";

testimonial[4] = "&quot;Thanks again AJ, you are the best! I will have more work for you soon. I have a few album projects starting up and I plan on sending them your way.&quot;<br /><cite>&#151; Todd Joos (Owner, Cellar Records)</cite>";

testimonial[5] = "&quot;The new website is gorgeous!!! This is really fabulous. That's all I have to say right now. God bless you for all your work. This is the most beautiful website I have EVER seen (and trust me I've been looking at a lot lately). Thank you!&quot;<br /><cite>&#151; Laurel Madison (Director, IVCL)</cite>";

testimonial[6] = "&quot;The website is just beautiful.  It's so striking with the color images!  AJ...we are very blessed to have a talented, life-loving, witty and fun individual like you to lead the way. This is so exciting!!! Thank you.&quot;<br /><cite>&#151; Joanie Resendiz (Member, IVCL)</cite>";

testimonial[7] = "&quot;AJ - I want to commend you for your technical knowledge and the professionalism with which you conduct your business. I appreciate your patience and your diligence. You have been most accommodating. I am happy to recommend Hangnail Productions to anyone looking to develop and maintain a website.&quot;<br /><cite>&#151; Father Philip Halfacre (Author, Genuine Friendship)</cite>";

testimonial[8] = "&quot;Hangnail Productions did a great job on my web site. As a small business owner it is hard to find people that follow through and get the job done. AJ completed my website in a timely manner with much professionalism. Good Job Hangnail Productions!! Highly recommended!!&quot;<br /><cite>&#151; Beth Johnson (Owner, Canal Port Restaurant)</cite>";

testimonial[9] = "&quot;Thank you so much for the truly Amazing artwork!!! Within a few days you made our imaginations a reality. You answered calls and emails right away, and you were very nice on the phone and met every deadline that was set (that's a mark of professionalism dear reader). Thank you for making it easy.&quot;<br /><cite>&#151; Lilly Rivera</cite>";

testimonial[10] = "&quot;I'm exceptionally pleased with AJ's creativity and execution of ideas. He's quality-minded, responsive, thorough and reliable. He acts as a partner, not a vendor. Our website and initial e-blast promotion are only the first two projects I expect to do with AJ. Thanks again Hangnail Productions!&quot;<br /><cite>&#151; Paul Gerber (Principal, Patient Communication Advisors, LLC)</cite>";

testimonial[11] = "&quot;When we needed a website, AJ designed one that conveyed an image that perfectly suited us and was user friendly. His suggestions were invaluable, he was easy to work with, knowledgeable in the field and patient as I learned what was needed when there was a change in our organization's leadership.&quot;<br /><cite>&#151; Pat Wagner (Director, IVCL)</cite>";

testimonial[12] = "&quot;AJ is a great self starter and very confident in his services. He is quite knowledgeable with the ins and outs of the web. He has quickly made changes on my website and his skills in other areas have helped me expand my business.&quot;<br /><cite>&#151; Darlene Huntinghouse (Owner, Craft Master Engraving)</cite>";

testimonial[13] = "&quot;AJ is very talented and committed to customer service. His cutting edge design is what you need to take your business to the next level. I thoroughly enjoyed working with AJ and would love the chance to work with him again in the future.&quot;<br /><cite>&#151; Ben Schroeder (Prepress Tech., The River Street Press)</cite>";

testimonial[14] = "&quot;AJ's designs are fresh and current with today's trends. He is very easy to get along with and will go the extra mile to make sure whatever he does looks great.&quot;<br /><cite>&#151; Ben Schroeder (Prepress Tech., The River Street Press)</cite>";

testimonial[15] = "It's a pleasure doing business with you. On top of being professional about everything, your work keeps getting better and better. I have no plans of working with anyone else.<br /><cite>&#151; Jason Rowland</cite>";

testimonial[16] = "AJ, the website is everything I thought it could be and more. I am convinced that we had the right guy at bat for us. Thank you for your hard work and patience. I look forward to keeping this site one of the most interesting and impressive out there. Nice job, and thanks again!<br /><cite>&#151; Duane Geisness (Owner, Geisness &amp; Associates)</cite>";

//testimonial[0] = "Quote Here.<br /><cite>&#151;Author Here</cite>";




//These are the calendar variables*******************************************************************************************************
var month = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
var fulldte = new Date();
var mm = fulldte.getMonth();
var dt = fulldte.getDate();

//Use innerHTML so you can also add in HTML tags - firstChild.nodeValue adds it all as a string but writes the tags on screen
//This makes the functions that populate the testimonials and calendar run***************************************************************

//This method was unusable because it caused the testimonial and date at the very top to display "after" the page was completely done loading,
//creating the illusion of dramatic lag time. Note the IDs "RandomTestimonial" and "CalendarDay" have been removed.
/*window.onload = function ()
{
	document.getElementById("RandomTestimonial").innerHTML = testimonial[randyNum];
	document.getElementById("CalendarDay").innerHTML = month[mm] + "<br />" + dt;
}*/




//Script that finds the version of IE you're using, and redirects if lower than the set parameter.***************************************

//alert("Working!!");

var browser		= navigator.appName
var ver			= navigator.appVersion
var thestart	= parseFloat(ver.indexOf("MSIE"))+1 //This finds the start of the MS version string.
var brow_ver	= parseFloat(ver.substring(thestart+4,thestart+7)) //This cuts out the bit of string we need.

if ((browser=="Microsoft Internet Explorer") && (brow_ver < 7)) //By default the min. IE ver is set to 6. Change as desired.
	{
	window.location="http://www.temp3.hangnailproductions.com/ie6_redirect.html"; //URL to redirect to.
	}




//Mouseover Menu Setup*******************************************************************************************************************
// Cool CSS Menu- By JavaScriptKit.com (http://www.javascriptkit.com)
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
// Fading routine based on Dynamic Drive script: http://www.dynamicdrive.com/dynamicindex4/highlightgrad.htm
// This notice must stay intact for use

var baseopacity=0

function showtext(thetext){
if (!document.getElementById)
return
textcontainerobj=document.getElementById("Navigation_ID")
browserdetect=textcontainerobj.filters? "ie" : typeof textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)
document.getElementById("Navigation_ID").innerHTML=thetext
highlighting=setInterval("gradualfade(textcontainerobj)",50)
}

function hidetext(){
cleartimer()
instantset(baseopacity)
}

function instantset(degree){
if (browserdetect=="mozilla")
textcontainerobj.style.MozOpacity=degree/100
else if (browserdetect=="ie")
textcontainerobj.filters.alpha.opacity=degree
else if (document.getElementById && baseopacity==0)
document.getElementById("Navigation_ID").innerHTML=""
}

function cleartimer(){
if (window.highlighting) clearInterval(highlighting)
}

function gradualfade(cur2){
if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.2, 0.99)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=20
else if (window.highlighting)
clearInterval(highlighting)
}
