/* USE WORDWRAP TOO SEE THIS FILE
----------------------------------------+
 SmartMenus v3.2                        |
 ©2001 VASIL DINKOV - PLOVDIV, BULGARIA |
 http://mp3-portal.hit.bg               |
----------------------------------------+
 For IE 4+, Netscape 4+ & Opera 5+      |
----------------------------------------+
 Get the menus with a great manual & examples at:
 http://mp3-portal.hit.bg/SmartMenus.zip
 Any reports for the functionallity of the menus on non Windows
 platforms will be highly appreciated.
 LEAVE THESE NOTES PLEASE - delete the comments if u want */

// ==1== Colors, Fonts & Extras
var menuBorderColor='#FFFFFF';
var menuBgColor='#FFFFFF';
var menuOverBgColor='#FFFFFF';
var menuFontColor='#004988';
var menuOverFontColor='#699419';
var font='verdana,arial,helvetica';
var fontSize='12px';
var NS4fontSize='12px';//11px=10px in NS4
var fontWeight='normal';//(bold or normal)
var cellPadding=2;
var frameBorderWidth=1;
var hideElementsIfOnWay=0;//1 or 0
   /*hides the elements that are shown over the menus by default
   like EMBED, IFRAME(not in Opera), OBJECT, SELECT
   if set to 0 performance is much better
   so if you don`t have these elements near the menus
   set this to 0
   view samples\hiding\hiding.html*/
var hideElementsInOpera=0;
   /*added separetely because Opera hides all FORMs not only
   those which are 'in the menus way', so you decide*/
var menuIE55filter='blendtrans(duration=0.5)';
   /*cool filter effects that are applied in IE4+
   if u don`t want leave [='']
   view samples\IE4(5.5)Filters for more*/
var hideTimeout=100;//1000=1 second
   /*time to wait before hiding the menu on mouseout*/

// ==2== Default TARGET for all the links
   /*for navigation to frame, calling functions or
   different target for any link view
   IMPORTANT HOWTOS 1 NOTES in the readme.html*/
var target='self'//(newWindow or self)

// ==3== The Menus Width
var menuWidth=130;

// ==4== Menus Placement (absolute positioned)
var menu1TopPixels=50;//from document top & left corner(without quotes)
var menu1LeftPixels=184
var menu2TopPixels=50;
var menu2LeftPixels=314
var menu3TopPixels=50;
var menu3LeftPixels=54
//var menu6TopPixels=15;//(if u want more add like this)
//var menu6LeftPixels=400

// ==5== IMPORTANT: The Menus Count (how many do u want)
var menuCount=3;

// ===== MENU DEFINITIONS =====
// u MUST have the same number of array items for both href & text (subhref & subtext)
// ==Menu 1
href1=new Array('what.html','what-design.html','what-identity.html','what-editorial.html','what-print.html','what-marketing.html');
text1=new Array('What we do','Design services','Corporate identity','Editorial services','Print management','Marketing services');
// ==Menu 1 END
// ==Menu 2
href2=new Array('case-studies.html','case-study-sonam.html','case-study-bubbles.html');
text2=new Array('Case studies','University of Southampton','Bubbles Dive Club');
// ==Menu 2 END
// ==Menu 3
href3=new Array('who.html','diversity.html');
text3=new Array('Who we are','Diversity & Equality');
// ==Menu 3 END
// ===== MENU DEFINITIONS END =====

// THE SERIOUS SCRIPT PLEASE DO NOT TOUCH
iE=document.all&&!window.innerWidth?1:0;oP=navigator.userAgent.indexOf("Opera")!=-1&&document.getElementById?1:0;nS=document.getElementById&&!document.all&&navigator.userAgent.indexOf("Opera")==-1?1:0;nS4=document.layers&&!document.getElementById?1:0;cur=iE?'hand':'default';TIM=0;acE=0;nSPad=nS?('padding:'+cellPadding+'px;'):'';if(!nS4){for(k=1;k<=menuCount;k++){mvf='';mvf="function MV"+k+"(){x='';for(i=0;i<href"+k+".length;i++){x+="+'"'+"<tr><td class=mxz ";mvf=mvf+"onclick=doGo('"+'"'+"+href"+k+"[i]+"+'"'+"') onmouseover=ov(this) onmouseout=ou(this)>"+'"'+"+text"+k+"[i]+'</td></tr>'};return x};";eval(mvf)};};if(nS4){
for(k=1;k<=menuCount;k++){mvf='';mvf=mvf+"function MV"+k+"(){x='';for(i=0;i<href"+k+".length;i++){x=x+"+'"'+"<tr><td><ilayer><layer width=100% bgcolor="+menuOverBgColor+"><a href=javascript:doGo('"+'"'+"+href"+k+"[i]+"+'"'+"') class=aNS4><font color="+menuOverFontColor+">"+'"'+"+text"+k+"[i]+'</font></a><span class=aNS42>&nbsp;</span></layer><layer bgcolor="+menuBgColor+" width=100% onmouseover=acE.visibility=\"inherit\";acE=this;this.visibility=\"hide\"><a href=javascript:; class=aNS4>'+text"+k+"[i]+'</a><span class=aNS42>&nbsp;</span></layer></ilayer></td></tr>'};return x}";eval(mvf)}}function hTg(tagN,s){if(hideElementsIfOnWay||(oP&&hideElementsInOpera)){srav=iE?document.all.tags(tagN).length:document.getElementsByTagName(tagN).length;for(i=0;i<srav;i++){mO=iE?document.all.tags(tagN)[i]:document.getElementsByTagName(tagN)[i];MENU=iE?eval(s):document.getElementById(s);mOLeft=mO.offsetLeft;mOTop=mO.offsetTop;mOParent=mO.offsetParent;mOW=mO.offsetWidth;mOH=mO.offsetHeight;while(mOParent){mOLeft+=mOParent.offsetLeft;mOTop+=mOParent.offsetTop;mOParent=mOParent.offsetParent};if(oP&&hideElementsInOpera)mO.style.visibility='hidden';if(((mOLeft+mOW)>MENU.offsetLeft&&mOLeft<MENU.offsetLeft+MENU.offsetWidth)&&((mOTop+mOH)>MENU.offsetTop&&mOTop<MENU.offsetTop+MENU.offsetHeight))mO.style.visibility="hidden"}}};function sTg(tagN){if(hideElementsIfOnWay||(oP&&hideElementsInOpera)){srav=iE?document.all.tags(tagN).length:document.getElementsByTagName(tagN).length;for(i=0;i<srav;i++){mO=iE?document.all.tags(tagN)[i]:document.getElementsByTagName(tagN)[i];mO.style.visibility ="visible"}}};function overer(){TIM?clearTimeout(TIM):0};function hide(){TIM=setTimeout("hide2();if(oP){sTg('FORM');sTg('OBJECT');sTg('EMBED')};if(iE){sTg('SELECT');sTg('EMBED');sTg('OBJECT');sTg('IFRAME')};if(nS){sTg('EMBED');sTg('IFRAME')}",hideTimeout)};function rV(){q='';for(z=1;z<=menuCount;z++){iE?q=q+"m"+z+".style.visibility='hidden';":nS4?q=q+"document.layers['m"+z+"'].visibility='hide';":q=q+"document.getElementById('m"+z+"').style.visibility='hidden';"};return q};function cBack(){if(nS4){if(acE)acE.visibility='inherit'}else{if(acE){acE.style.background=menuBgColor;acE.style.color=menuFontColor}}};function ov(ok,x){acE=ok;ok.style.background=menuOverBgColor;ok.style.color=menuOverFontColor};function ou(ok){ok.style.background=menuBgColor;ok.style.color=menuFontColor};eval("function hide2(){"+rV()+";cBack()}");function show(a){TIM?clearTimeout(TIM):0;cBack();o=iE?eval(a).style:nS4?document.layers[a]:document.getElementById(a).style;if(iE||oP){if(o.visibility!='visible'){if(oP){sTg('FORM');sTg('OBJECT');sTg('EMBED')}else{sTg('SELECT');sTg('OBJECT');sTg('EMBED');sTg('IFRAME')};if(iE&&(eval(a).filters&&eval(a).filters.length!=0)){hTg('SELECT',a);hTg('OBJECT',a);hTg('EMBED',a);hTg('IFRAME',a);hide2();eval(a).filters[0].apply();o.visibility='visible';eval(a).filters[0].play()}else{if(oP){hTg('FORM',a);hTg('OBJECT',a);hTg('EMBED',a)}else{hTg('SELECT',a);hTg('OBJECT',a);hTg('EMBED',a);hTg('IFRAME',a)};hide2();o.visibility='visible'}}}else{if(nS){if(o.visibility!='visible'){sTg('EMBED');sTg('IFRAME');hTg('EMBED',a);hTg('IFRAME',a);hide2();o.visibility='visible'}};if(nS4){if(o.visibility!='show'){hide2();o.visibility='show'}}}};function doGo(ok){if(ok.substring(0,5)=='show:')return;hide();if(ok.charAt(0)=='*'){if(ok.substring(0,6)=='*self*'){document.location.href=ok.substring(6,ok.length);return};if(ok.substring(0,11)=='*newWindow*'){window.open(ok.substring(11,ok.length));return};for(s=1;s<ok.length;s++){if(ok.charAt(s)=='*'){eval('top.'+ok.substring(1,s)+'.location="'+ok.substring(s+1,ok.length)+'"')}}return};if(ok.substring(0,11)=='javascript:'){document.location.href=ok;return};if(target=='self'){document.location.href=ok;return};if(target=='newWindow'){window.open(ok);return};alert("ERROR:\nThe \"target\" variable is not set correctly!")};document.write("<style>.mxz{font-family:"+font+";font-size:"+fontSize+";color:"+menuFontColor+";font-weight:"+fontWeight+";background:"+menuBgColor+";"+nSPad+"cursor:"+cur+"}.aNS4{font-weight:"+fontWeight+";font-family:"+font+";font-size:"+NS4fontSize+";color:"+menuFontColor+";padding:"+cellPadding+";text-decoration:none}.aNS42{font-size:1pt}</style>");if(iE||oP||nS){for(j=1;j<=menuCount;j++){document.write("<div style='position:absolute;top:"+eval('menu'+j+'TopPixels')+";left:"+eval('menu'+j+'LeftPixels')+";z-index:1000;visibility:hidden;width:"+menuWidth+"px;filter:"+menuIE55filter+"' id="+('m'+j)+" onmouseover=overer() onmouseout=hide()><table cellpadding=0 cellspacing=0 border=0><tr><td bgcolor="+menuBorderColor+"><table cellpadding="+cellPadding+" width="+menuWidth+" cellspacing="+frameBorderWidth+" border=0>"+eval('MV'+j+'()')+"</table></td></tr></table></div>")}};if(nS4){for(j=1;j<=menuCount;j++){document.write("<layer z-index=1000 id=m"+j+" visibility=hide left="+eval('menu'+j+'LeftPixels')+" top="+eval('menu'+j+'TopPixels')+" bgcolor="+menuBorderColor+" width="+menuWidth+" onmouseover=overer() onmouseout=hide()><table cellspacing="+frameBorderWidth+" cellpadding=0 border=0 width=100%>"+eval('MV'+j+'()')+"</table></layer>")}}
