// TO SEE THE FILE BETTER USE WORDWRAP

//------------------------------------------+
// SmartMenus v.1                           |
// ©2001 VASIL DINKOV - PLOVDIV, BULGARIA   |
// http://mp3.dinkov.com | vasko@dinkov.com |
//------------------------------------------+
// For Internet Explorer 4 and Netscape 6   |
//------------------------------------------+

//==1==Defining Colors
var menuFrameColor='#000000';
var menuBgColor='#0E05AD';
var menuOverBgColor='#CFE9FE';
var menuFontColor='#FFFFFF';
var menuOverFontColor='#000000'//(can be the same as menuFontColor)

//==2==Defining TARGET for the links in the menu
var target='self'//(newWindow or self)(cannot navigate to frame)

//==3==Defining font, menu cell padding & frame border width
var font='verdana,arial,helvetica';
var fontSize='10px';
var fontWeight='bold';//(bold or normal)
var cellPadding='2';
var frameBorderWidth='1';

//==4==Defining The Menus Width
var menuWidth='140';

//==5==Defining The Menus Placement (top left corner of the menus)
var menuTopPixels=15;//from document top & left corner(without quotes)
var menu1LeftPixels=0;
var menu2LeftPixels=74;
var menu3LeftPixels=144;
var menu4LeftPixels=226;
var menu5LeftPixels=296;
//var menu6LeftPixels=400;//(if you want more add like this)

//==6==Defining The Menus Count (how many do you want)
var menuCount=5;//(without quotes)

//=============MENU DEFINITIONS=============
//(be sure to have the same number of array items for both href & text)

//===Menu 1
href1=new Array('http://www.dqpasadena.com/store.htm','http://www.dqpasadena.com/jobs.htm','http://www.dqpasadena.com/feedback.htm','http://www.dqpasadena.com/franchise.htm','http://www.dqpasadena.com/legal.htm');
text1=new Array('Our Stores','Job Information','Your Feedback Appreciated','Franchise Information','Legal Information');

function MV1(){var x='';for(i=0;i<href1.length;i++){x=x+"<tr><td class=mxz onclick=doGo('"+href1[i]+"') onmouseover=ov(this) onmouseout=ou(this)>"+text1[i]+"</td></tr>"};return x};
//===Menu 1 END

//===Menu 2
href2=new Array('http://www.dqpasadena.com/promote.htm','http://www.dqpasadena.com/new.htm');
text2=new Array('Current Promotions','Whats New at DQ');

function MV2(){var x='';for(i=0;i<href2.length;i++){x=x+"<tr><td class=mxz onclick=doGo('"+href2[i]+"') onmouseover=ov(this) onmouseout=ou(this)>"+text2[i]+"</td></tr>"};return x};
//===Menu 2 END

//===Menu 3
href3=new Array('http://www.dqpasadena.com/cakes.htm','http://www.dairyqueen.com/en-US/Cakes/default.htm');
text3=new Array('DQ Pasadena Cakes','IDQ Cakes Page');

function MV3(){var x='';for(i=0;i<href3.length;i++){x=x+"<tr><td class=mxz onclick=doGo('"+href3[i]+"') onmouseover=ov(this) onmouseout=ou(this)>"+text3[i]+"</td></tr>"};return x};
//===Menu 3 END

//===Menu 4
href4=new Array('http://www.dairyqueen.com/','http://www.dqtexas.com/');
text4=new Array('IDQ','DQ Texas');

function MV4(){var x='';for(i=0;i<href4.length;i++){x=x+"<tr><td class=mxz onclick=doGo('"+href4[i]+"') onmouseover=ov(this) onmouseout=ou(this)>"+text4[i]+"</td></tr>"};return x};
//===Menu4 END

//===Menu 5
href5=new Array('http://www.dairyqueen.com/en-US/Childrens+Miracle+Network/default.htm','http://www.cmn.org');
text5=new Array('DQ CMN','CMN Website');

function MV5(){var x='';for(i=0;i<href5.length;i++){x=x+"<tr><td class=mxz //onclick=doGo('"+href5[i]+"') onmouseover=ov(this) onmouseout=ou(this)>"+text5[i]+"</td></tr>"};return x};
//===Menu 5 END

//=============MENU DEFINITIONS END=============

// THE SERIOUS SCRIPT PLEASE DO NOT TOUCH
if(document.all){topY=menuTopPixels}else{topY=menuTopPixels-2};/*NS bud*/function rV(){q='';for(z=1;z<=menuCount;z++){if(document.all){q=q+"m"+z+".style.display='none';"}else{q=q+"document.getElementById('m"+z+"').style.display='none';"}};return q};eval("function hide(a){if(a.clientY<=topY){"+rV()+"}};function hide2(){"+rV()+"}");eval("function ov(ok){ok.style.background='"+menuOverBgColor+"';ok.style.color='"+menuOverFontColor+"'};function ou(ok){ok.style.background='"+menuBgColor+"';ok.style.color='"+menuFontColor+"'};function doGo(ok){var tgt='"+target+"';if(tgt=='newWindow'){window.open(ok)}else{document.location.href=ok}};function show(a){if(document.all){eval(a).style.display=''}else{document.getElementById(a).style.display=''}}");document.write("<style>.mxz{font-family:"+font+";font-size:"+fontSize+";color:"+menuFontColor+";font-weight:"+fontWeight+";background:"+menuBgColor+";padding:"+cellPadding+";cursor:default}</style>");function buildTheAsses(){for(j=1;j<=menuCount;j++){document.write("<div style=position:absolute;top:"+(menuTopPixels-1)+";left:"+(eval('menu'+j+'LeftPixels')-100)+";z-index:3;display:none id="+('m'+j)+"><table cellpadding=0 cellspacing=0 border=0><tr><td colspan=3 height=1></td></tr><tr><td width=100 onmouseover=hide2()></td><td bgcolor="+menuFrameColor+"><table width="+menuWidth+" cellspacing="+frameBorderWidth+" border=0>"+eval('MV'+j+'()')+"</table></td><td width=100 onmouseover=hide2()></td></tr><tr><td colspan=3 height=200 onmouseover=hide2()></td></tr></table></div>")}};buildTheAsses()
