var menu1=new Array()
menu1[9]='<a href="/recipe-cake/" TITLE="Cake Recipes" CLASS="asm">Cake</a>'
menu1[12]='<a href="/recipe-chicken/" TITLE="Chicken Recipes" CLASS="asm">Chicken</a>'
menu1[13]='<a href="/recipe-chutney/" TITLE="Chutney Recipes" CLASS="asm">Chutney</a>'
menu1[14]='<a href="/recipe-cocktail/" TITLE="Cocktail Recipes" CLASS="asm">Cocktail</a>'
menu1[18]='<a href="/recipe-dessert/" TITLE="Dessert Recipes" CLASS="asm">Dessert</a>'
menu1[20]='<a href="/recipe-drinks/" TITLE="Drinks Recipes" CLASS="asm">Drinks</a>'
menu1[22]='<a href="/recipe-fish/" TITLE="Fish Recipes" CLASS="asm">Fish</a>'
menu1[24]='<a href="/recipe-ham/" TITLE="Ham Recipes" CLASS="asm">Ham</a>'
menu1[28]='<a href="/recipe-lamb/" TITLE="Lamb Recipes" CLASS="asm">Lamb</a>'
menu1[50]='<a href="/recipe-pulses/" TITLE="Pulses Recipes" CLASS="asm">Pulses</a>'
menu1[51]='<a href="/recipe-rice/" TITLE="Rice Recipes" CLASS="asm">Rice</a>'
menu1[52]='<a href="/recipe-salad/" TITLE="Salad Recipes" CLASS="asm">Salad</a>'
menu1[62]='<a href="/recipe-snacks/" TITLE="Snacks Recipes" CLASS="asm">Snacks</a>'
menu1[64]='<a href="/recipe-soup/" TITLE="Soup Recipes" CLASS="asm">Soup</a>'
menu1[78]='<a href="/recipe-vegetables/" TITLE="Vegetables Recipes" CLASS="asm">Vegetables</a>'
menu1[100]='<a href="/index1.php" TITLE="Recipes by Category" CLASS="asm" STYLE=\'BACKGROUND-COLOR: #DBFD9A\'>All Categories</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="/american/" TITLE="American Recipes" CLASS="asm">American</a>'
menu2[1]='<a href="/british/" TITLE="British Recipes" CLASS="asm">British</a>'
menu2[2]='<a href="/canadian/" TITLE="Canadian Recipes" CLASS="asm">Canadian</a>'
menu2[3]='<a href="/chinese/" TITLE="Chinese Recipes" CLASS="asm">Chinese</a>'
menu2[4]='<a href="/indian/" TITLE="Indian Recipes" CLASS="asm">Indian</a>'
menu2[5]='<a href="/italian/" TITLE="Italian Recipes" CLASS="asm">Italian</a>'
menu2[6]='<a href="/irish/" TITLE="Irish Recipes" CLASS="asm">Irish</a>'
menu2[80]='<a href="/thai/" TITLE="Thai Recipes" CLASS="asm">Thai</a>'
menu2[100]='<a href="/index2.php" TITLE="Recipes by Region" CLASS="asm" STYLE=\'BACKGROUND-COLOR: #DBFD9A\'>All Regions</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="/recipe-puja/" TITLE="Durga Puja Recipes" CLASS="asm">Durga Puja Recipes</a>'
menu3[1]='<a href="/recipe-barbecue/" TITLE="Barbecue Recipes" CLASS="asm">Barbecue</a>'
//menu3[2]='<A HREF="/recipe-healthy-drinks/" TITLE="Healthy Drinks Recipes" CLASS=asm><B>Healthy Drinks</B></A>'
menu3[3]='<a href="/recipe-microwave/" TITLE="Microwave Recipes" CLASS="asm">Microwave Recipes</a>'
menu3[4]='<a href="/recipe-milkduds/" TITLE="Recipes with Milk Duds" CLASS="asm">Recipes with Milk Duds</a>'
menu3[5]='<A HREF="/recipe-low-calorie/" TITLE="Low Calorie Recipes" CLASS=asm><B>Low Calorie Recipes</B></A>'
menu3[6]='<A HREF="/recipe-low-fat/" TITLE="Low Fat Recipes" CLASS=asm><B>Low Fat Recipes</B></A>'
//menu3[7]='<A HREF="/recipe-low-protein/" TITLE="Low Protein Recipes" CLASS=asm><B>Low Protein Recipes</B></A>'
menu3[8]='<A HREF="/recipe-low-sodium/" TITLE="Low Sodium Recipes" CLASS=asm><B>Low Sodium Recipes</B></A>'
menu3[9]='<A HREF="/recipe-low-cholesterol/" TITLE="Low Cholesterol Recipes" CLASS=asm><B>Low Cholesterol Recipes</B></A>'
menu3[10]='<A HREF="/recipe-low-carb/" TITLE="Low Carb Recipes" CLASS=asm><B>Low Carb Recipes</B></A>'
menu3[11]='<A HREF="/recipe-diabetic/" TITLE="Diabetic Recipes" CLASS=asm><B>Diabetic Recipes</B></A>'
menu3[12]='<A HREF="/recipe-christmas/" TITLE="Christmas Recipes" CLASS=asm><B>Christmas Recipes</B></A>'
menu3[13]='<A HREF="/recipe-easter/" TITLE="Easter Recipes" CLASS=asm><B>Easter Recipes</B></A>'
menu3[13]='<A HREF="top_search.php?parm=valentine" TITLE="Valentine\'s Day Recipes" CLASS=asm><B>Valentine\'s Day Recipes</B></A>'
menu3[100]='<a href="/index3.php" TITLE="Special Recipes" CLASS="asm" STYLE=\'BACKGROUND-COLOR: #DBFD9A\'>Special Recipes Index</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="/glossary/indian-english.php" TITLE="Glossary of Endian to English terms" CLASS="asm">Indian to English</a>'
menu4[1]='<a href="/glossary/kitchen-glossary.php" TITLE="Kitche Glossary" CLASS="asm">Kitchen Glossary</a>'

		
//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="/health/" TITLE="Health Tips" CLASS="asm">Health</a>'
menu5[1]='<a href="/beauty/" TITLE="Beauty Tips" CLASS="asm">Beauty</a>'
menu5[2]='<a href="/diet/" TITLE="Diet Tips" CLASS="asm">Diet</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


//*********************************************************************************************************************************************

//Function for Popup window
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=650,height=600,left = 200,top = 114');");
}