
<!-- 

var messages = new Array();

messages[0] = new Array('',' ',"#E9E9E9");

messages[1] = new Array('pics/ny092.gif','Happy New Year from all of the staff at<b><font color=#3232CD size="2"> Olsens Grain</font></b><br><br><font color=#FF0000 size="1">All Stores Closed.</font>',"#FFFFFF");

// Ground Hog Day
messages[2] = new Array('pics/gh.gif','Ground Hog&#39s Day ',"#FFFFFF");

// Lincon
messages[3] = new Array('pics/l.gif','Lincon&#39s Birthday<br>born Feb. 12, 1809, in Hardin County, Kentucky, died April 14, 1865<br>16th President of the United States<br>Lincoln warned the South in his Inaugural Address: &#148In your hands, my dissatisfied fellow countrymen, and not in mine, is the momentous issue of civil war. The government will not assail you.... You have no oath registered in Heaven to destroy the government, while I shall have the most solemn one to preserve, protect and defend it.&#148',"#DDECFF");

//Valentines Day
messages[4] = new Array('pics/v2.gif','Valentine&#39s Day',"#FF1CAE");

//Washington
messages[5] = new Array('pics/gw.jpg',' George Washington&#39s birthday<br> born in 1732 into a Virginia planter family.<br>died of a throat infection December 14, 1799.<br>On April 30, 1789, standing on the balcony of Federal Hall on Wall Street in New York, took his oath of office as the first President of the United States. As the first of every thing, in our situation will serve to establish a Precedent.',"#E9E9E9");

// St. Patrick
messages[6] = new Array('pics/st3.gif','<font color=#FFFFFF>St. Patrick&#39s Day<br>Beannachtaí na Féile Pádraig is the Gaelic<br> way of expressing a wish that you have all<br> the blessings of St. Patrick&#39s Day and the <br>&#147luck of the Irish&#148 to go with it. So, why is it <br>celebrated on March 17th&#63 One theory is that  is the day that St. Patrick died. Since the holiday began in Ireland, it is believed that as the Irish spread out around the world, they took with them their history and celebrations. The biggest observance of all <br> is,of course, in Ireland. With the exception <br>of restaurants and pubs, almost all<br> businesses close on March 17th. Being a religious holiday as well, many Irish attend mass, where March 17th is the traditional<br> day for offering prayers for missionaries worldwide before the serious celebrating begins.</font>',"#238E23");


//Easter
messages[7] = new Array(' ',' ',"#FFFFFF");

//Mothers day
messages[8] = new Array(' ',' ',"#DDECFF");

//Memorial Day
messages[9] = new Array(' ',' ',"#DDECFF");

//Father's Day
messages[10] = new Array(' ',' ',"#E9E9E9");

//4th of July
messages[11] = new Array(' ',' ',"#E9E9E9");

//Labor Day
messages[12] = new Array(' ',' ',"#E9E9E9");

//Halloween
messages[13] = new Array(' ',' ',"#E9E9E9");

//Veterans Day
messages[14] = new Array(' ',' ',"#DDECFF");

//Thanksgiving
messages[15] = new Array(' ',' ',"#E9E9E9");

//Xmas
messages[16] = new Array(' ',' ',"#FFFFCC");

//Dewey Chicks
messages[17] = new Array('/0Chick/feed/chick.jpg','<b>Dewey will Host a Poultry Seminar Monday March 7th, 6pm to 8pm. </b><br>Contact the Dewey store for Start&#39em Right day. Learn proper nutrition and care for your baby chicks, during our Start&#39em Right event. You&#39ll see all the latest products for your little ones,  including new SunFresh Recipe Family Flock feeds. With a wide selection of items you need and special Start&#39em Right prices, this is one baby animal event you don&#39t want to miss. ',"#FFFF00");

//Verde Chicks
messages[18] = new Array('/0Chick/feed/chick.jpg','Contact the Verde Valley store for Start&#39em Right day. Learn proper nutrition and care for your baby chicks, during our Start&#39em Right event. You&#39ll see all the latest products for your little ones,  including new SunFresh Recipe Family Flock feeds. With a wide selection of items you need and special Start&#39em Right prices, this is one baby animal event you don&#39t want to miss. ',"#FFFF00");

//Chino Valley chicks
messages[19] = new Array('/0Chick/feed/chick.jpg','Contact the Chino Valley store for Start&#39em Right day. Learn proper nutrition and care for your baby chicks, during our Start&#39em Right event. You&#39ll see all the latest products for your little ones,  including new SunFresh Recipe Family Flock feeds. With a wide selection of items you need and special Start&#39em Right prices, this is one baby animal event you don&#39t want to miss.',"#FFFF00"); 

//  Flagstaff chicks  31       easter pictures   66

// Chino HOW   61
//Dewey HOW  60


//Flagstaff HOW
messages[20] = new Array('/0Gifs/how2.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Flagstaff Host:</font></b><br>H.O.W. Across the nation, horse owners will have the opportunity to ask questions of leading equine experts, attend a workshop, learn the latest in equine care and nutrition and meet other horse enthusiasts at their local Purina dealer.',"#C0C0C0");

//Verde HOW
messages[21] = new Array('/0Gifs/how2.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Verde Valley Host:</font></b><br>H.O.W. Across the nation, horse owners will have the opportunity to ask questions of leading equine experts, attend a workshop, learn the latest in equine care and nutrition and meet other horse enthusiasts at their local Purina dealer.',"#D9D9F3");

//Dewey Vaccine Clinic
messages[22] = new Array('pics/docr.gif ','Contact the Dewey store for more information on the vaccine clinic.',"#DBDB70");

//     Arizona Equifest
messages[23] = new Array('pics/eqcoloredrt.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Host:<br>The Arizona Equifest</font><br>Northern Arizona&#39s Premier Horse and Dog Event.<br>Click to go to the Arizona Equifest site.<br>',"#ADEAEA");

//Purina HOW Arizona Eq 
messages[24] = new Array('/0Gifs/how2.gif','Click this link to take you to Purina&#39s site for more information on H.O.W. events (will open in a new window).',"#FF5040");

// Flagstaff Customer Appreciation day
messages[25] = new Array('pics/p1.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Flagstaff Host:</font></b><br>Customer Appreciation day, to show our appreciation to all our customers.<br><b>Entertainment, Fun, Food, Prizes and Sales !!</b>',"#C0D9D9");


//Verde - October 2nd  Customer Appreciation day 
messages[26] = new Array('pics/p2.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Verde Valley Host:</font></b><br>Customer Appreciation day, to show our appreciation to all our customers.<br><b>Entertainment, Fun, Food, Prizes and Sales !!</b> ',"#EBC79E");

//Chino - October 9th  Customer Appreciation day 
messages[27] = new Array('pics/p1.gif ',' <b><font color="blue" size="2">Olsen&#39s Grain -Chino Valley Host:</font></b><br>Customer Appreciation day, to show our appreciation to all our customers.<br><b>Entertainment, Fun, Food, Prizes and Sales !!</b>',"#EBC79E");

//Prescott - October 16th  Customer Appreciation day 
messages[28] = new Array('pics/p2.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Prescott Host:</font></b><br>Customer Appreciation day, to show our appreciation to all our customers.<br><b>Entertainment, Fun, Food, Prizes and Sales !!</b> ',"#A68064");

//Dewey - October 23rd  Customer Appreciation day 
messages[29] = new Array('pics/p1.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Dewey Host:</font></b><br>Customer Appreciation day, to show our appreciation to all our customers.<br><b>Entertainment, Fun, Food, Prizes and Sales !!</b> ',"#DBDB70");

// Chino Chick List
messages[30] = new Array('/0Gifs/Ch.gif','Chino Valley babies list will be posted.<br>Check the Chino Valley store web page or contact the store.',"#FFFF00");
 

// Flagstaff Chicks
messages[31] = new Array('/0Chick/feed/chick.jpg','Contact the Flagstaff store for Start&#39em Right day. Learn proper nutrition and care for your baby chicks, during our Start&#39em Right event. You&#39ll see all the latest products for your little ones,  including new SunFresh Recipe Family Flock feeds. With a wide selection of items you need and special Start&#39em Right prices, this is one baby animal event you don&#39t want to miss.',"#FFFF00");

// Chicks Arrive
messages[32] = new Array('/0Gifs/Ch.gif','Chino Valley babies arrive today.<br>Click for more information.',"#FFFFCC");
messages[33] = new Array('/0Gifs/Ch.gif','Dewey babies arrive today.<br>Click for more information.',"#EBC79E");
messages[34] = new Array('/0Gifs/Ch.gif ','Flagstaff babies arrive today.<br>Click for more information.',"#A68064");
messages[35] = new Array('/0Gifs/Ch.gif ','Prescott babies arrive today.<br>Click for more information.',"#DBDB70");
messages[36] = new Array('/0Gifs/Ch.gif ','Verde Valley babies arrive today.<br>Click for more information.',"#C0C0C0");

// Mothers Day
messages[37] = new Array('pics/mds.jpg',' The holiday was declared officially by the state of West Virginia in 1910, and the rest of states followed quickly. On May 8, 1914, the U.S. Congress passed a law designating the second Sunday in May as Mother&#39s Day and requesting a proclamation.<br> On May 9, 1914, President Woodrow Wilson issued a proclamation, declaring the first national Mother&#39s Day, as a day for American citizens to show the flag in honor of those mothers whose sons had died in war.<br>In 1934, US President Franklin D. Roosevelt approved a stamp commemorating the holiday.',"#FF99FF");

//woofdown
messages[38] = new Array('pics/wdl.jpg','United Animal Friends and Olsen&#39s Grain are joining forces for this Fun and Entertaining and Educational Event to support the United Animal Friends&#39 successful spay/neuter and foster/adopt programs.<br> Dogtoberfest on the Square, Prescott Az.',"#C0D9D9");


// Memorial Day
messages[39] = new Array('pics/mday.jpg','Memorial Day is a United States federal holiday observed on the last Monday of May. Formerly known as Decoration Day, it commemorates U.S. men and women who died while in the military service. First enacted to honor Union soldiers of the American Civil War, it is celebrated near the day of reunification after the Civil War, it was expanded after World War I. ',"#FFFFFF");

// Verde Open Barn
messages[40] = new Array('pics/1.gif','OPEN BARN at RT ARROW RANCH<br>May 22nd 2010 3:00 PM-5:00 PM<br>Cornville, Arizona<br>contact Olsen&#39s Grain - Verde Valley for more information',"#70DB93");

// Vede vaccine clinic
messages[41] = new Array('pics/docr.gif','Contact the Verde Valley store for more information on the vaccine clinic. ',"#70DB93");


messages[42] = new Array('pics/rib4tr.gif','Flagstaff is raffleing a saddle for Breast Cancer Awareness and will be having an event October 2.',"#FAAFBA");

// Chino vaccine clinic
messages[43] = new Array('pics/docr.gif','Contact the Chino Valley store for more information on the vaccine clinic. ',"#70DB93");


// Dewey Pics
messages[44] = new Array('santa.gif','Contact the Dewey store for more information on the Pet Pictures.',"#70DB93");


// your store
messages[45] = new Array('santa.gif','Contact the your store for more information on the Pet Pictures.',"#70DB93");

// Verde store
messages[46] = new Array('santa.gif','Contact the Verde store for more information on the Pet Pictures.',"#70DB93");

// Verde store
messages[47] = new Array('santa.gif','Contact the Prescott store for more information on the Santa Paws Pet Pictures.',"#70DB93");

// Chino pet store
messages[48] = new Array('santa.gif','Contact the Chino Valley store for more information on the Pet Pictures.',"#70DB93");

// Wild Bird
messages[49] = new Array('/0Gifs/wildbird.gif','Chino Valley babies arrive today.<br>Click for more information.',"#FFFFCC");

// Purina Wild Bird
messages[50] = new Array('/0Gifs/wildbirdc.gif','Purina Wild Bird Chow.<br>The all new Wild Bird Chow has a new look and a new product selection for Purina customers. The line has expanded to include a broad range of products for a large variety of wild birds in all areas of the country. New, colorful and informative packaging will help you select the right product.<br>Click for more information.<br>Flyers will be posted.',"#EBC79E");

messages[51] = new Array('/0Gifs/Ch.gif ','Flagstaff babies arrive today.<br>Click for more information.',"#A68064");
messages[52] = new Array('/0Gifs/Ch.gif ','Prescott babies arrive today.<br>Click for more information.',"#DBDB70");
messages[53] = new Array('/0Gifs/Ch.gif ','Verde Valley babies arrive today.<br>Click for more information.',"#C0C0C0");

messages[54] = new Array('santa.gif','Contact the Dewey store for more information on the Pet Pictures.',"#70DB93");


//
messages[55] = new Array('santa.gif','Contact the your store for more information on the Pet Pictures.',"#70DB93");

// 
messages[56] = new Array('santa.gif','Contact the Verde store for more information on the Pet Pictures.',"#70DB93");

// Horses with Heart  -------------------------------------
messages[57] = new Array('/0Calendar/pics/hwhlogo.jpg','Olsen&#39s Grain sponsors Horses with H.E.A.R.T. Since 1993, Horses with H.E.A.R.T. has served those with disabilities in Yavapai County, Arizona. In 2008, we provided 236 individuals of all ages with a therapeutic equine experience - grooming, leading and riding.  This was made possible by 218 volunteers, 15 specially-trained equines and 12 Directors on the Board.',"#FF6666");

// Roping  ----------------------
messages[58] = new Array('/0Gifs/rope.gif','  Equifest Roping. <br>At the Prescott Rodeo Grounds.  Produced by Fuller Roping Productions. For more information call.  Jack Fuller 928-692-8465 or Mike Olsen 928-636-2321.',"#70DB93");

// Pink
messages[59] = new Array('/0Gifs/rib4t.gif','<b>Purina <font color ="#FF44CC">Pink</font> Days.<br> </b>What is <b><font color ="#FF44CC"> Pink 50</font>&#63;</b><br>Purina is thinking pink this fall as they gear up for its first ever Pink 50 Campaign, an effort to unite animal lovers everywhere and raise awareness and support for breast cancer research. In September and October, more than 50 fundraising events will be held by Purina retailers nationwide in an effort to encourage everyone to take action against the disease. Purina&#39s Pink 50 campaign events will range from trail rides and barbeques to tack swaps, with each event sharing a common thread to feed today for a difference tomorrow. <br> In addition to events taking place across the nation in support of breast cancer awareness and research, Purina also will be turning its top animal feed packages pink. Purina plans to donate a portion of the proceeds from every pink bag sold to breast cancer research. <br>Click for more information.',"#FFBBCC");

// Dewey HOW
messages[60] = new Array('/0Gifs/how2.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Dewey Host:</font></b><br>H.O.W.  Across the nation, horse owners will have the opportunity to ask questions of leading equine experts, attend a workshop, learn the latest in equine care and nutrition and meet other horse enthusiasts at their local Purina dealer.',"#C0C0C0");

//  HOW
messages[61] = new Array('/0Gifs/how2.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Chino Valley Host:</font></b><br>H.O.W.  Across the nation, horse owners will have the opportunity to ask questions of leading equine experts, attend a workshop, learn the latest in equine care and nutrition and meet other horse enthusiasts at their local Purina dealer.',"#C0C0C0");

//  HOW
messages[62] = new Array('/0Gifs/how2.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Dewey Host:</font></b><br>H.O.W.  Across the nation, horse owners will have the opportunity to ask questions of leading equine experts, attend a workshop, learn the latest in equine care and nutrition and meet other horse enthusiasts at their local Purina dealer.',"#C0C0C0");

//  HOW
messages[63] = new Array('/0Gifs/how2.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Dewey Host:</font></b><br>H.O.W.  Across the nation, horse owners will have the opportunity to ask questions of leading equine experts, attend a workshop, learn the latest in equine care and nutrition and meet other horse enthusiasts at their local Purina dealer.',"#C0C0C0");

//   HOW
messages[64] = new Array('/0Gifs/how2.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Dewey Host:</font></b><br>H.O.W.  Across the nation, horse owners will have the opportunity to ask questions of leading equine experts, attend a workshop, learn the latest in equine care and nutrition and meet other horse enthusiasts at their local Purina dealer.',"#C0C0C0");

//  HOW
messages[65] = new Array('/0Gifs/how2.gif','<b><font color="blue" size="2">Olsen&#39s Grain - Dewey Host:</font></b><br>H.O.W.  Across the nation, horse owners will have the opportunity to ask questions of leading equine experts, attend a workshop, learn the latest in equine care and nutrition and meet other horse enthusiasts at their local Purina dealer.',"#C0C0C0");


// Flagstaff    Easter pictures
messages[66] = new Array('pics/easterbunny.png','<b><font color="blue" size="2">Olsen&#39s Grain - Flagstaff:</font></b><br> Have your Easter Pet Picture take at the Flagstaff store.',"#C0C0C0");



//  -------------------------------------------------------------------------------------------------------------------------------

var dom = (document.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ns4 = (document.layers && !dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

var origWidth, origHeight;
if (ns4) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

if (nodyn) { event = "nope" }
var tipFollowMouse	= true;	
var tipWidth	= 260;
var offX	 	= 12;	// how far from mouse to show tip
var offY	 	= 12; 
var tipFontFamily 	= "Verdana, arial, helvetica, sans-serif";
var tipFontSize	= "8pt";
var tipFontColor	= "#000000";
var tipBgColor	= "#DDECFF"; 
var origBgColor 	= tipBgColor; // in case no bgColor set in array
var tipBorderColor 	= "#000080";
var tipBorderWidth 	= 2;
var tipBorderStyle 	= "ridge";
var tipPadding 	= 4;


if (document.images) {
	var theImgs = new Array();
	for (var i=0; i<messages.length; i++) {
  	theImgs[i] = new Image();
		theImgs[i].src = messages[i][0];
  }
}

var startStr = '<table width="' + tipWidth + '"><tr><td align="center" width="100%"><img src="';
var midStr = '" border="2"></td></tr><tr><td valign="top">';
var endStr = '</td></tr></table>';

var tooltip, tipcss;
function initTip() {
	if (nodyn) return;
	tooltip = (ns4)? document.tipDiv.document: (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
	tipcss = (ns4)? document.tipDiv: tooltip.style;
	if (ie4||ie5||ns5) {	// ns4 would lose all this on rewrites
		tipcss.width = tipWidth+"px";
		tipcss.fontFamily = tipFontFamily;
		tipcss.fontSize = tipFontSize;
		tipcss.color = tipFontColor;
		tipcss.backgroundColor = tipBgColor;
		tipcss.borderColor = tipBorderColor;
		tipcss.borderWidth = tipBorderWidth+"px";
		tipcss.padding = tipPadding+"px";
		tipcss.borderStyle = tipBorderStyle;
	}
	if (tooltip&&tipFollowMouse) {
		if (ns4) document.captureEvents(Event.MOUSEMOVE);
		document.onmousemove = trackMouse;
	}
}

// window.onload = initTip;

var t1,t2;	// for setTimeouts
var tipOn = false;	// check if over tooltip link
function doTooltip(evt,num) {

	if (!tooltip) return;
	if (t1) clearTimeout(t1);	if (t2) clearTimeout(t2);
	tipOn = true;
	// set colors if included in messages array
	if (messages[num][2])	var curBgColor = messages[num][2];
	else curBgColor = tipBgColor;
	if (messages[num][3])	var curFontColor = messages[num][3];
	else curFontColor = tipFontColor;
	if (ns4) {
		var tip = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + curBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td>'+ startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr + '</td></tr></table></td></tr></table>';
		tooltip.write(tip);
		tooltip.close();
	} else if (ie4||ie5||ns5) {
		var tip = startStr + messages[num][0] + midStr + '<span style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + curFontColor + ';">' + messages[num][1] + '</span>' + endStr;
		tipcss.backgroundColor = curBgColor;
	 	tooltip.innerHTML = tip;
	}
	if (!tipFollowMouse) positionTip(evt);
	else t1=setTimeout("tipcss.visibility='visible'",100);
}

var mouseX, mouseY;
function trackMouse(evt) {
	mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
	mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	if (tipOn) positionTip(evt);
}

function positionTip(evt) {
	if (!tipFollowMouse) {
		mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
		mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	}
	// tooltip width and height
	var tpWd = (ns4)? tooltip.width: (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ns4)? tooltip.height: (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
	// document area in view (subtract scrollbar width for ns)
	var winWd = (ns4||ns5)? window.innerWidth-20+window.pageXOffset: document.body.clientWidth+document.body.scrollLeft;
	var winHt = (ns4||ns5)? window.innerHeight-20+window.pageYOffset: document.body.clientHeight+document.body.scrollTop;
	// check mouse position against tip and window dimensions
	// and position the tooltip 
	if ((mouseX+offX+tpWd)>winWd) 
		tipcss.left = (ns4)? mouseX-(tpWd+offX): mouseX-(tpWd+offX)+"px";
	else tipcss.left = (ns4)? mouseX+offX: mouseX+offX+"px";
	if ((mouseY+offY+tpHt)>winHt) 
		tipcss.top = (ns4)? winHt-(tpHt+offY): winHt-(tpHt+offY)+"px";
	else tipcss.top = (ns4)? mouseY+offY: mouseY+offY+"px";
	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);
}

function hideTip() {
	if (!tooltip) return;
	t2=setTimeout("tipcss.visibility='hidden'",100);
	tipOn = false;
}
//-->
