	/***********************************************
	* 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
	***********************************************/

	//Contents for menu 1
	var menu1=new Array()
	menu1[0]='<a href="tasmaravinto.html">Täsmäravinto</a>'
	menu1[1]='<a href="tasmaravinto_ravinto.html">Ravinto</a>'
	menu1[2]='<a href="tasmaravinto_elainkunta.html">Eläinkunta</a>'
	menu1[3]='<a href="tasmaravinto_vihannekset.html">Vihannekset</a>'
	menu1[4]='<a href="tasmaravinto_juurekset.html">Juurekset</a>'
	menu1[5]='<a href="tasmaravinto_hedelmat.html">Hedelmät</a>'
	menu1[6]='<a href="tasmaravinto_vilja.html">Viljatuotteet</a>'
	menu1[7]='<a href="tasmaravinto_marjat.html">Marjat</a>'
	menu1[8]='<a href="tasmaravinto_muut.html">Muut</a>'

	//Contents for menu 2
	var menu2=new Array()
	menu2[0]='<a href="marjat.html">Marjat</a>'
	menu2[1]='<a href="tyrni.html">Tyrni</a>'
	menu2[2]='<a href="aronia.html">Aronia</a>'
	menu2[3]='<a href="mustikka.html">Mustikka</a>'

	//Contents for menu 3
	var menu3=new Array()
	menu3[0]='<a href="terveystieto.html">Terveystieto</a>'
	menu3[1]='<a href="terveystieto_entsyymit.html">Entsyymit</a>'
	menu3[2]='<a href="terveystieto_flavonoidit.html">Flavonoidit</a>'
	menu3[3]='<a href="terveystieto_hiilihydraatit.html">Hiilihydraatit</a>'
	menu3[4]='<a href="terveystieto_hivenaineet.html">Hivenaineet</a>'
	menu3[5]='<a href="terveystieto_antioksidantit.html">Antioksidantit</a>'
	menu3[6]='<a href="terveystieto_immuuni.html">Immuunijäjestelmä</a>'
	menu3[7]='<a href="terveystieto_kuidut.html">Kuidut</a>'
	menu3[8]='<a href="terveystieto_laihduttaminen.html">Laihduttaminen</a>'
	menu3[9]='<a href="terveystieto_liikunta.html">Liikunta</a>'
	menu3[10]='<a href="terveystieto_luonnon.html">Luonnonlääketiede</a>'
	menu3[11]='<a href="terveystieto_probiotit.html">Probiotit</a>'
	menu3[12]='<a href="terveystieto_proteiinit.html">Proteiinit</a>'
	menu3[13]='<a href="terveystieto_rasvat.html">Rasvat</a>'
	menu3[14]='<a href="terveystieto_ravinto.html">Ravinto</a>'
	menu3[15]='<a href="terveystieto_tautien.html">Tautien ehkäisy kasvisravinnolla</a>'
	menu3[16]='<a href="terveystieto_vanheneminen.html">Vanheneminen</a>'
	menu3[17]='<a href="terveystieto_vitamiinit.html">Vitamiinit</a>'
	menu3[18]='<a href="terveystieto_hormonit.html">Hormonit</a>'

	//Contents for menu 4
	var menu4=new Array()
	menu4[0]='<a href="tuotteet.html">Tuotteet</a>'
	menu4[1]='<a href="hinnasto_tilaukset.html">Hinnasto ja tilaukset</a>'
	menu4[2]='<a href="tuotteet_tyrni.html">Tyrni</a>'
	menu4[3]='<a href="tuotteet_parsa.html">Parsa</a>'
	menu4[4]='<a href="tuotteet_mustikka.html">Mustikka</a>'
	menu4[5]='<a href="tuotteet_aronia.html">Aronia</a>'
	menu4[6]='<a href="jauhot.html">Jauhot</a>'

	//Contents for menu 5
	var menu5=new Array()
	menu5[0]='<a href="tila.html">Tila</a>'
	menu5[1]='<a href="yritys.html">Yritys</a>'
	menu5[2]='<a href="luomu.html">Luomu</a>'
	menu5[3]='<a href="yhteystiedot.html">Yhteystiedot</a>'
	
	//Contents for menu 6
	var menu6=new Array()
	menu6[0]='<a href="tyrni.html">Yleistä tyrnistä</a>'
	menu6[1]='<a href="tyrnin_viljely.html">Tyrnin viljely</a>'
	menu6[2]='<a href="tyrnin_vitamiinit.html">Tyrnin vitamiinit</a>'
	menu6[3]='<a href="tyrnin_flavonoidit.html">Tyrnin flavonoidit</a>'
	menu6[4]='<a href="tyrnin_rasvahapot.html">Tyrnin rasvahapot</a>'
	menu6[5]='<a href="tyrnitutkimukset.html">Tutkimustuloksia tyrnistä</a>'
	menu6[6]='<a href="tyrninlehdet.html">Tyrninlehdet</a>'
	menu6[7]='<a href="tyrnireseptit.html">Tyrniruokareseptit</a>'
	menu6[8]='<a href="tyrni_linkit.html">Linkkikirjasto</a>'
	
	//Contents for menu 7
	var menu7=new Array()
	menu7[0]='<a href="aronia.html">Yleistä aroniasta</a>'
	menu7[1]='<a href="aroniatutkimukset.html">Tutkimustuloksia aroniasta</a>'
	menu7[2]='<a href="aroniareseptit.html">Aroniareseptit</a>'
	menu7[3]='<a href="aronia_linkit.html">Linkkikirjasto</a>'

	var menuwidth='165px' //default menu width
	var menubgcolor='lightyellow'  //menu bgcolor
	var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
	var hidemenu_onclick="yes" //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
