﻿
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var FarmIT3000Menu = new Array()
FarmIT3000Menu[0] = '<a style="color: #ffffff;" href="../default.asp">Home</a>'
FarmIT3000Menu[1] = '<a style="color: #ffffff;" href="../Pages/Featuresandbenefits.asp">About FarmIT 3000</a>'
FarmIT3000Menu[2] = '<a style="color: #ffffff;" href="../Pages/contactus.asp">Contact Us</a>'
FarmIT3000Menu[3] = '<a style="color: #ffffff;" href="http://www.bordersoftware.com/Pages/AboutBS.asp">About Border Software</a>'
FarmIT3000Menu[4] = '<a style="color: #ffffff;" href="../Pages/Testimonials.asp">Testimonials</a>'
FarmIT3000Menu[5] = '<a style="color: #ffffff;" href="../Pages/Prices.asp">Prices</a>'

var CattleMenu = new Array()
CattleMenu[0] = '<a style="color: #ffffff;" href="../Pages/Cattle.asp">Overview</a>'
CattleMenu[1] = '<a style="color: #ffffff;" href="../Pages/PedigreeBreedingCattle.asp">Pedigree Breeding</a>'
CattleMenu[2] = '<a style="color: #ffffff;" href="../Pages/BreedingTraits.asp">Breeding Traits</a>'
CattleMenu[3] = '<a style="color: #ffffff;" href="../Pages/RecordKeepingCattle.asp">Record Keeping</a>'
CattleMenu[4] = '<a style="color: #ffffff;" href="../Pages/WeighingCattle.asp">Weighing</a>'
CattleMenu[5] = '<a style="color: #ffffff;" href="../Pages/BCMS.asp">BCMS and CTS</a>'
//CattleMenu[5] = '<a style="color: #ffffff;" href="../Pages/Dairy.asp">Dairy Module</a>'
CattleMenu[6] = '<a style="color: #ffffff;" href="../Pages/Organics.asp">Organics</a>'
CattleMenu[7] = '<a style="color: #ffffff;" href="../Pages/Testimonials.asp">Testimonials</a>'
CattleMenu[8] = '<a style="color: #ffffff;" href="../Pages/EIDCattle.asp">EID</a>'

var SheepMenu = new Array()
SheepMenu[0] = '<a style="color: #ffffff;" href="../Pages/Sheep.asp">Overview</a>'
SheepMenu[1] = '<a style="color: #ffffff;" href="../Pages/PedigreeBreedingSheep.asp">Pedigree Breeding</a>'
SheepMenu[2] = '<a style="color: #ffffff;" href="../Pages/BreedingTraits.asp">Breeding Traits</a>'
SheepMenu[3] = '<a style="color: #ffffff;" href="../Pages/RecordKeepingSheep.asp">Record Keeping</a>'
SheepMenu[4] = '<a style="color: #ffffff;" href="../Pages/WeighingSheep.asp">Weighing</a>'
SheepMenu[5] = '<a style="color: #ffffff;" href="../Pages/EBVsandSIGNET.asp">Signet and EBVs</a>'
SheepMenu[6] = '<a style="color: #ffffff;" href="../Pages/Organics.asp">Organics</a>'
SheepMenu[7] = '<a style="color: #ffffff;" href="../Pages/Testimonials.asp">Testimonials</a>'
SheepMenu[8] = '<a style="color: #ffffff;" href="../Pages/EIDSheep.asp">EID</a>'

var ArableMenu = new Array()
ArableMenu[0] = '<a style="color: #ffffff;" href="../Pages/Arable.asp">Overview</a>'
ArableMenu[1] = '<a style="color: #ffffff;" href="../Pages/RecordKeepingArable.asp">Record Keeping</a>'
ArableMenu[2] = '<a style="color: #ffffff;" href="../Pages/Maps.asp">Farm Maps</a>'
ArableMenu[3] = '<a style="color: #ffffff;" href="../Pages/Testimonials.asp">Testimonials</a>'

var EIDMenu = new Array()
EIDMenu[0] = '<a style="color: #ffffff;" href="../Pages/EID.asp">EID Overview</a>'
EIDMenu[1] = '<a style="color: #ffffff;" href="../Pages/Psion.asp">Psion Workabout Pro</a>'
EIDMenu[2] = '<a style="color: #ffffff;" href="../Pages/GesIIReader.asp">GesII Hand Held</a>'
EIDMenu[3] = '<a style="color: #ffffff;" href="../Pages/AgridentReader.asp">Agrident Hand Held</a>'
EIDMenu[4] = '<a style="color: #ffffff;" href="../Pages/EIDPanelReaders.asp">Static Panel Readers</a>'
EIDMenu[5] = '<a style="color: #ffffff;" href="../Pages/Testimonials.asp">Testimonials</a>'


var SupportMenu = new Array()
SupportMenu[0] = '<a style="color: #ffffff;" href="../Pages/Support.asp">Support</a>'
SupportMenu[1] = '<a style="color: #ffffff;" href="../Pages/Forum.asp">Forum</a>'
SupportMenu[2] = '<a style="color: #ffffff;" href="../Pages/ContactUs.asp">Contact Us</a>'
SupportMenu[3] = '<a style="color: #ffffff;" href="../Pages/FAQ.asp">FAQs</a>'
SupportMenu[4] = '<a style="color: #ffffff;" href="../Pages/Tips.asp">Tips and Tricks</a>'
SupportMenu[5] = '<a style="color: #ffffff;" href="../Pages/Downloads.asp">Downloads</a>'

var OrganicsMenu = new Array()
OrganicsMenu[0] = '<a style="color: #ffffff;" href="../Pages/Organics.asp">Organics</a>'
OrganicsMenu[1] = '<a style="color: #ffffff;" href="../Pages/Testimonials.asp">Testimonials</a>'

var NewsMenu = new Array()
NewsMenu[0] = '<a style="color: #ffffff;" href="../Pages/Events.asp">Events</a>'
NewsMenu[1] = '<a style="color: #ffffff;" href="../Pages/PressReleases.asp">News</a>'

var AccountsMenu = new Array()
AccountsMenu[0] = '<a style="color: #ffffff;" href="../Pages/Account.asp">Overview</a>'

var ModulesMenu = new Array()
ModulesMenu[0] = '<a style="color: #ffffff;" href="../Pages/Modules.asp">Available Modules</a>'
ModulesMenu[1] = '<a style="color: #ffffff;" href="../Pages/Pigs.asp">Pigs</a>'
ModulesMenu[2] = '<a style="color: #ffffff;" href="../Pages/Deer.asp">Deer</a>'
//ModulesMenu[2] = '<a style="color: #ffffff;" href="../Pages/Dairy.asp">Dairy</a>'

var TruTestMenu = new Array()
TruTestMenu[0] = '<a style="color: #ffffff;" href="../Pages/TRUTest.asp">TruTest</a>'
TruTestMenu[1] = '<a style="color: #ffffff;" href="../Pages/TRUTestWeighing.asp">Weighing</a>'
TruTestMenu[2] = '<a style="color: #ffffff;" href="../Pages/TRUTestDrafting.asp">Drafting</a>'

var DFarmIT3000Menu = new Array()
DFarmIT3000Menu[0] = '<a style="color: #ffffff;" href="default.asp">Home</a>'
DFarmIT3000Menu[1] = '<a style="color: #ffffff;" href="Pages/Featuresandbenefits.asp">About FarmIT 3000</a>'
DFarmIT3000Menu[2] = '<a style="color: #ffffff;" href="Pages/contactus.asp">Contact Us</a>'
DFarmIT3000Menu[3] = '<a style="color: #ffffff;" href="http://www.bordersoftware.com/Pages/AboutBS.asp">About Border Software</a>'
DFarmIT3000Menu[4] = '<a style="color: #ffffff;" href="Pages/Testimonials.asp">Testimonials</a>'
DFarmIT3000Menu[5] = '<a style="color: #ffffff;" href="Pages/Prices.asp">Prices</a>'

var DCattleMenu = new Array()
DCattleMenu[0] = '<a style="color: #ffffff;" href="Pages/Cattle.asp">Overview</a>'
DCattleMenu[1] = '<a style="color: #ffffff;" href="Pages/PedigreeBreedingCattle.asp">Pedigree Breeding</a>'
DCattleMenu[2] = '<a style="color: #ffffff;" href="Pages/BreedingTraits.asp">Breeding Traits</a>'
DCattleMenu[3] = '<a style="color: #ffffff;" href="Pages/RecordKeepingCattle.asp">Record Keeping</a>'
DCattleMenu[4] = '<a style="color: #ffffff;" href="Pages/WeighingCattle.asp">Weighing</a>'
DCattleMenu[5] = '<a style="color: #ffffff;" href="Pages/BCMS.asp">BCMS and CTS</a>'
//DCattleMenu[5] = '<a style="color: #ffffff;" href="Pages/Dairy.asp">Dairy Module</a>'
DCattleMenu[6] = '<a style="color: #ffffff;" href="Pages/Organics.asp">Organics</a>'
DCattleMenu[7] = '<a style="color: #ffffff;" href="Pages/Testamonials.asp">Testimonials</a>'
DCattleMenu[8] = '<a style="color: #ffffff;" href="Pages/EIDCattle.asp">EID</a>'

var DSheepMenu = new Array()
DSheepMenu[0] = '<a style="color: #ffffff;" href="Pages/Sheep.asp">Overview</a>'
DSheepMenu[1] = '<a style="color: #ffffff;" href="Pages/PedigreeBreedingSheep.asp">Pedigree Breeding</a>'
DSheepMenu[2] = '<a style="color: #ffffff;" href="Pages/BreedingTraits.asp">Breeding Traits</a>'
DSheepMenu[3] = '<a style="color: #ffffff;" href="Pages/RecordKeepingSheep.asp">Record Keeping</a>'
DSheepMenu[4] = '<a style="color: #ffffff;" href="Pages/WeighingSheep.asp">Weighing</a>'
DSheepMenu[5] = '<a style="color: #ffffff;" href="Pages/EBVSandSignet.asp">SIGNET and EBVs</a>'
DSheepMenu[6] = '<a style="color: #ffffff;" href="Pages/Organics.asp">Organics</a>'
DSheepMenu[7] = '<a style="color: #ffffff;" href="Pages/Testimonials.asp">Testimonials</a>'
DSheepMenu[8] = '<a style="color: #ffffff;" href="Pages/EIDSheep.asp">EID</a>'

var DArableMenu = new Array()
DArableMenu[0] = '<a style="color: #ffffff;" href="Pages/Arable.asp">Overview</a>'
DArableMenu[1] = '<a style="color: #ffffff;" href="Pages/RecordKeepingArable.asp">Record Keeping</a>'
DArableMenu[2] = '<a style="color: #ffffff;" href="Pages/Maps.asp">Farm Maps</a>'
DArableMenu[3] = '<a style="color: #ffffff;" href="Pages/Testimonials.asp">Testimonials</a>'

var DEIDMenu = new Array()
DEIDMenu[0] = '<a style="color: #ffffff;" href="Pages/EID.asp">EID Overview</a>'
DEIDMenu[1] = '<a style="color: #ffffff;" href="Pages/Psion.asp">Psion Workabout Pro</a>'
DEIDMenu[2] = '<a style="color: #ffffff;" href="Pages/GesIIReader.asp">GesII</a>'
DEIDMenu[3] = '<a style="color: #ffffff;" href="Pages/AgridentReader.asp">Agrident</a>'
DEIDMenu[4] = '<a style="color: #ffffff;" href="Pages/EIDPanelReaders.asp">Static Panel Readers</a>'
DEIDMenu[5] = '<a style="color: #ffffff;" href="Pages/Testimonials.asp">Testimonials</a>'

var DSupportMenu = new Array()
DSupportMenu[0] = '<a style="color: #ffffff;" href="Pages/Support.asp">Support</a>'
DSupportMenu[1] = '<a style="color: #ffffff;" href="Pages/Forum.asp">Forum</a>'
DSupportMenu[2] = '<a style="color: #ffffff;" href="Pages/ContactUs.asp">Contact Us</a>'
DSupportMenu[3] = '<a style="color: #ffffff;" href="Pages/FAQ.asp">FAQs</a>'
DSupportMenu[4] = '<a style="color: #ffffff;" href="Pages/Tips.asp">Tips and Tricks</a>'
DSupportMenu[5] = '<a style="color: #ffffff;" href="Pages/Downloads.asp">Downloads</a>'
var DOrganicsMenu = new Array()
DOrganicsMenu[0] = '<a style="color: #ffffff;" href="Pages/Organics.asp">Organics</a>'
DOrganicsMenu[1] = '<a style="color: #ffffff;" href="Pages/Testimonials.asp">Testimonials</a>'

var DNewsMenu = new Array()
DNewsMenu[0] = '<a style="color: #ffffff;" href="Pages/Events.asp">Events</a>'
DNewsMenu[1] = '<a style="color: #ffffff;" href="Pages/PressReleases.asp">News</a>'

var DAccountsMenu = new Array()
DAccountsMenu[0] = '<a style="color: #ffffff;" href="Pages/Account.asp">Overview</a>'

var DModulesMenu = new Array()
DModulesMenu[0] = '<a style="color: #ffffff;" href="Pages/Modules.asp">Available Modules</a>'
DModulesMenu[1] = '<a style="color: #ffffff;" href="Pages/Pigs.asp">Pigs</a>'
DModulesMenu[2] = '<a style="color: #ffffff;" href="Pages/Deer.asp">Deer</a>'
//DModulesMenu[2] = '<a style="color: #ffffff;" href="Pages/Dairy.asp">Dairy</a>'

var DTruTestMenu = new Array()
DTruTestMenu[0] = '<a style="color: #ffffff;" href="Pages/TRUTest.asp">TruTest</a>'
DTruTestMenu[1] = '<a style="color: #ffffff;" href="Pages/TRUTestWeighing.asp">Weighing</a>'
DTruTestMenu[2] = '<a style="color: #ffffff;" href="Pages/TRUTestDrafting.asp">Drafting</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='#a52a2a'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="no" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
