// Author: Ron Grafe grafer@columbus.rr.com http://www.gdevresources.com/Pages/Scripts/Hovermenu/hovermenu.htm

// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/

// Browser Check

iens6=document.all||document.getElementById

ns4=document.layers

//DEFINE CONTENT-->

//PLACE ALL YOUR BOX TITLES HERE - Just add another element to the array

var titleArray = new Array

titleArray[1]=""

//PLACE ALL YOUR BOX CONTENT HERE - Make sure you use a += after the first line

var linkArray = new Array

linkArray[1]="<a href='coffee_and_cocoa.html' class='navlink2'>Coffee</a>"

linkArray[1]+="<a href='cheeseballs_dips_dressings.html' class='navlink2'>Cheeseball Mixes</a>"

linkArray[1]+="<a href='cheeseballs_dips_dressings.html' class='navlink2'>Dip Mixes</a>"

linkArray[1]+="<a href='cheeseballs_dips_dressings.html' class='navlink2'>Salsas, Marinades & Dressings</a>"

linkArray[1]+="<a href='jams_jellies_breads_soups.html' class='navlink2'>Jams, Jellies & Chutneys</a>"

linkArray[1]+="<a href='jams_jellies_breads_soups.html' class='navlink2'>Soup Mixes & Bread Mixes</a>"

linkArray[1]+="<a href='gift_baskets.html' class='navlink2'>Gift Baskets</a>"

//linkArray[2]="<a href='carpet_bags.html' class='navlink2'>Carpet Bags</a>"

//linkArray[2]+="<a href='petite_carpet_bags.html' class='navlink2'>Petite Carpet Bags</a>"

//linkArray[2]+="<a href='handbags.html' class='navlink2'>Handbags</a>"

//linkArray[2]+="<a href='totes_doctors_and_cosmetic_bags.html' class='navlink2'>Totes with Ribbon</a>"

//linkArray[2]+="<a href='totes_doctors_and_cosmetic_bags.html' class='navlink2'>Sash Tote Bag</a>"

//linkArray[2]+="<a href='totes_doctors_and_cosmetic_bags.html' class='navlink2'>Medium Doctor's Bag</a>"

//linkArray[2]+="<a href='totes_doctors_and_cosmetic_bags.html' class='navlink2'>Square Cosmetic Bag</a>"

//linkArray[3]="<a href='' class='navlink2'>Furniture</a>"

//linkArray[3]+="<a href='' class='navlink2'>Metal Accents</a>"

//linkArray[3]+="<a href='' class='navlink2'>Art</a>"

//linkArray[3]+="<a href='' class='navlink2'>Accent Pieces</a>"

linkArray[4]="<a href='lori_mitchell_figurines.html' class='navlink2'>Lori Mitchell Figurines</a>"

linkArray[4]+="<a href='candles.html' class='navlink2'>Candles</a>"

linkArray[4]+="<a href='potpourri_sprays_diffusers.html' class='navlink2'>Potpourri, Sprays & Diffusers</a>"

linkArray[4]+="<a href='gift_baskets.html' class='navlink2'>Gift Baskets</a>"

//linkArray[4]+="<a href='' class='navlink2'>Floral</a>"

//linkArray[4]+="<a href='' class='navlink2'>Bath & Beauty Products</a>"

//linkArray[4]+="<a href='' class='navlink2'>Soft Goods</a>"





//END DEFINE CONTENT-->

//GLOBAL VARIABLES-->

var thename

var theobj

var thetext

var winHeight

var winWidth

var boxPosition

var headerColor

var tableColor

var timerID

var seconds=0

var x=0

var y=0

var offsetx = 2

var offsety = 2

//END GLOBAL VARIABLES-->

if(ns4) {

	document.captureEvents(Event.MOUSEMOVE)

}

document.onmousemove=getXY

//GLOBAL FUNCTIONS-->

function buildText(value,tcolor,bcolor) {

// CHANGE EACH ARRAY ELEMENT BELOW TO YOUR OWN CONTENT. MAKE SURE TO USE SINGLE QUOTES INSIDE DOUBLE QUOTES.

text="<link href='../css/windy.css' rel='stylesheet' type='text/css' media='all' />"

text="<table width='"+(winWidth-4)+"' height='"+(winHeight-4)+"' border='0' bgcolor='"+tableColor+"' cellspacing='0' cellpadding=1>"

text+="<tr><td colspan='4' height='2' align='center' valign='top' bgcolor='"+headerColor+"'>"

text+="</td></tr>"

text+="<tr><td width='5' height='"+(winHeight-4)+"'></td><td width='"+winWidth+"' align='left' valign='top'>"

text+="<img src='../graphics/spacer.gif' height='5' border='0'><br>"

text+=linkArray[value]

text+="</td></tr></table>"

return text

}

// Browser Window Size and Position

// copyright Stephen Chapman, 3rd Jan 2005, 8th Dec 2005

// you may copy these functions but please keep the copyright notice as well

function pageWidth() {return window.innerWidth != null? window.innerWidth : document.documentElement && document.documentElement.clientWidth ?       document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null;} function pageHeight() {return  window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ?  document.documentElement.clientHeight : document.body != null? document.body.clientHeight : null;} function posLeft() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset :document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ? document.body.scrollLeft : 0;} function posTop() {return typeof window.pageYOffset != 'undefined' ?  window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ? document.body.scrollTop : 0;} function posRight() {return posLeft()+pageWidth();} function posBottom() {return posTop()+pageHeight();}

function setObj(textelement,inwidth,inheight,boxpos,titlecolor,boxcolor,tfontcolor,bfontcolor) {

	clearTimeout(timerID)

	boxPosition=boxpos

	tableColor=boxcolor

	headerColor=titlecolor

	winWidth=inwidth

	winHeight=inheight

	thetext=buildText(textelement,tfontcolor,bfontcolor)

	if (boxPosition == "bottomR") { // Right

		x=(pageWidth()/2)-337

		y=125

	}

	if (boxPosition == "bottomL") { // Left

		x=(pageWidth()/2)-215

		y=125

	}

	if (boxPosition == "topR") { // Top

		x=(pageWidth()/2)-115

		y=125

	}

	if (boxPosition == "topL") { // Top

		x=(pageWidth()/2)-12

		y=125

	}

	if(iens6){

		thename = "viewer"

		theobj=document.getElementById? document.getElementById(thename):document.all.thename

		theobj.style.width=winWidth

		theobj.style.height=winHeight

		theobj.style.left=x

		theobj.style.top=y

			if(iens6&&document.all) {

				theobj.innerHTML = ""

				theobj.insertAdjacentHTML("BeforeEnd","<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=0><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>")

			}

			if(iens6&&!document.all) {

				theobj.innerHTML = ""

				theobj.innerHTML="<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=0><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>"

			}

	}

	if(ns4){

		thename = "nsviewer"

		theobj = eval("document."+thename)

		theobj.left=x

		theobj.top=y

		theobj.width=winWidth

		theobj.clip.width=winWidth

		theobj.height=winHeight

		theobj.clip.height=winHeight

		theobj.document.write("<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=0><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>")

		theobj.document.close()

	}

	viewIt()

}

function viewIt() {

		if(iens6) {

			theobj.style.visibility="visible"

		}

		if(ns4) {

			theobj.visibility = "visible"

		}

}

function stopIt() {

	if(iens6) {

		theobj.innerHTML = ""

		theobj.style.visibility="hidden"

	}

	if(ns4) {

		theobj.document.write("")

		theobj.document.close()

		theobj.visibility="hidden"

	}

}

function timer(sec) {

	seconds=parseInt(sec)

	if(seconds>0) {

		seconds--

		timerID=setTimeout("timer(seconds)",1000)

	}else{

		stopIt()

	}

}

function getXY(e) {

	if (ns4) {

		x=0

		y=0

		x=e.pageX; 

		y=e.pageY;

	}

	if (iens6&&document.all) {

		x=0

		y=0

		x=event.x; 

		y=event.y;

	}

	if (iens6&&!document.all) {

		x=0

		y=0

		x=e.pageX; 

		y=e.pageY;

	}

}

//END GLOBAL FUNCTIONS-->