// ==1== Colors, Fonts & Extras
var menuBorderColor='#1B3897';
var menuBgColor='#EEEEEE';
var menuOverBgColor='#005D9A';
var menuFontColor='#1B3897';
var menuOverFontColor='#ffffff';
var font='arial,verdana,helvetica';
var fontSize='10px';
var NS4fontSize='11px';//11px=10px in NS4
var fontWeight='bold';//(bold or normal)
var cellPadding=2;
var frameBorderWidth=0;//1 show
var hideTimeout=100;//1000=1 second
   /*time to wait before hiding the menu on mouseout*/
var menuIEfilter='';
   /*cool animation effects in IE4+
   if u don't want leave [='']
   view Samples\IE4(5.5)Filters for more*/
var subMenuOffsetX=3;//pixels (if no subs, leave as u like)
var subMenuOffsetY=2;
   /*the sub menus will be displaced from their normal
   position by the pixels specified here*/
var arrowImgSource='../../../images/arrow.gif';
var arrowImgOverSource='../../../images/arrowOver.gif';
var arrowImgSize=7;//pixels

//detect visitor's screen resolution, based screen size 800x600
var visiwidth = screen.width;
var adjwidth=0;
if (visiwidth > 800)
{
	adjwidth=(visiwidth-800)/2;
}


// ==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 manual.html*/
var target='top'//(newWindow, self or top)

// ==3== The Menus Width
var menusWidth=new Array(140,110,380,150);
// var subsWidth=new Array(100,190,130,230); //4 subsub menu width
   /*menus & submenus width- if you want more menus, add more array items*/

// ==4== Menus Placement (absolute positioned)
var topPX=new Array(302,320,380,400);
var leftPX=new Array(144+adjwidth,144+adjwidth,160+adjwidth,139+adjwidth);
   /*from document top & left corner(without quotes)
   if you want more menus, add more array items
   these're for the menus- submenus appear on their place automatically*/

// ==5== IMPORTANT: The Menus Count (how many do u want)
var menuCount=4;
var subMenuCount=0;//if no, set to 0

// ===== MENU DEFINITIONS =====
// u MUST have the same number of array items for both href & text (subhref & subtext)
// -- 1 overview
href1=new Array('aboutus.html','mission.html','objectives.html','management.html','advisory.html','partners.html');
text1=new Array('About Us','Mission','Objectives','Management Committee','Advisory Committee','Partners');

// -- 2 calendar
href2=new Array('upcomingevent.html','passevent.html');
text2=new Array('Upcoming Events','Past Events');

// -- 3 workshop
href3=new Array('event1.html','event2.html','event3.html','event4.html','event5.html','event6.html','event7.html','event8.html');
text3=new Array('C-CIARN Ontario Special Session','Sudbury Restoration Conference & Workshop','A Consultation Workshop on Climate Change & Ontario Vulnerable Forests','Climate Change & Ontario Vulnerable Communities','Global Warming: Coming soon to a planet near you!','Climate Change Scenarios Workshop','A.D. Latornell Conservation Symposium','TRCA Water Management Workshop');

// -- 4 reports
href4=new Array('highlights.html','stakeholder.html','2001proceedings.html','docs/AnnualReport.pdf','workshopreport.html','docs/C-CIARNResPriorities2003final.pdf');
text4=new Array('Highlights of Proposal','Stakeholder Report','2001 Workshop Proceedings','Annual Report','Workshop Reports','Priority Research Areas 2003');
// ===== MENU DEFINITIONS END =====


// THE SERIOUS SCRIPT - PLEASE DO NOT TOUCH
function show(a){return};function hide(){return};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;var nS4=document.layers&&!document.getElementById?1:0;cur=iE?'hand':'pointer';TIM=0;acE=0;acE2=0;nSPad=nS?('padding:'+cellPadding+'px;'):'';FTR=iE?';filter:'+menuIEfilter:'';Ioff=new Image();Ion=new Image();Ioff.src=arrowImgSource;Ion.src=arrowImgOverSource;ImG=0;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}</style>");if(nS4){document.write('<layer visibility=hide id=lll1><a href="" class=aNS4>a</a></layer>');mHei=document.lll1.document.height+cellPadding};if(iE||oP||nS){document.write("<div style='position:absolute;font:"+fontWeight+" "+fontSize+" "+font+";visibility:hidden'><span id=tD1>a</span><br><span id=tD2>a</span></div>");ELE1=iE?document.all['tD1']:document.getElementById('tD1');ELE2=oP?document.getElementById('tD2'):0;if(oP){EL1t=ELE1.offsetTop;EL2t=ELE2.offsetTop;EL1p=ELE1.offsetParent;EL2p=ELE2.offsetParent;while(EL1p){EL1t+=EL1p.offsetTop;EL2t+=EL2p.offsetTop;EL1p=EL1p.offsetParent;EL2p=EL2p.offsetParent};mHei=EL2t-EL1t+cellPadding*2};if(nS){ELE1=document.createElement("A");ELE1.innerHTML='x';ELE1.style.font=fontWeight+' '+fontSize+' '+font;ELE1.style.position='absolute';ELE1.style.visibility='hidden';document.body.appendChild(ELE1)};if(!oP)mHei=ELE1.offsetHeight+cellPadding*2};for(m=1;m<=menuCount;m++){if(nS4)eval('text2'+m+'=new Array()');for(n=0;n<eval('href'+m+'.length');n++){if(nS4){eval('text2'+m+'['+n+']=text'+m+'['+n+']')};if(eval('href'+m+'['+n+']').substring(0,5)=="show:"){if(iE||nS||oP){eval('text'+m+'['+n+']="<div style=position:relative;width:'+(menusWidth[m-1]-frameBorderWidth*2-cellPadding*2-arrowImgSize)+'px>"+text'+m+'['+n+']+"<img name=IMg'+eval("parseInt(href"+m+"["+n+"].substring(12))")+' style=position:absolute;left:'+(menusWidth[m-1]-cellPadding*2-frameBorderWidth*2-arrowImgSize)+'px;top:'+parseInt((mHei-cellPadding*2-arrowImgSize)/2)+'px width='+arrowImgSize+' height='+arrowImgSize+' src='+arrowImgSource+'></div>"')};if(nS4){eval('text'+m+'['+n+']+="<layer left='+(menusWidth[m-1]-cellPadding-frameBorderWidth*2-arrowImgSize)+' top='+parseInt((mHei-arrowImgSize)/2)+'><img width='+arrowImgSize+' height='+arrowImgSize+' src='+arrowImgSource+'></layer>"');eval('text2'+m+'['+n+']+="<layer left='+(menusWidth[m-1]-cellPadding-frameBorderWidth*2-arrowImgSize)+' top='+parseInt((mHei-arrowImgSize)/2)+'><img width='+arrowImgSize+' height='+arrowImgSize+' src='+arrowImgOverSource+'></layer>"')}}}};if(oP||iE||nS){for(k=1;k<=menuCount;k++){mvf='';mvf="function MV"+k+"(){var x='';for(var i=0;i<href"+k+".length;i++){x+='<tr><td class=mxz onclick=doGo(\"'+href"+k+"[i]+'\") onmouseover=overer();ov(this,\"'+href"+k+"[i]+'\","+k+");acE=this;this.style.background=menuOverBgColor;this.style.color=menuOverFontColor>'+text"+k+"[i]+'</td></tr>'};return x};";eval(mvf)};for(k=1;k<=subMenuCount;k++){mvf='';mvf="function SMV"+k+"(){var x='';for(var i=0;i<subhref"+k+".length;i++){x+='<tr><td class=mxz onclick=doGo(\"'+subhref"+k+"[i]+'\") onmouseover=this.style.background=menuOverBgColor;this.style.color=menuOverFontColor;acE2=this onmouseout=this.style.background=menuBgColor;this.style.color=menuFontColor>'+subtext"+k+"[i]+'</td></tr>'};return x};";eval(mvf)}};if(nS4){for(k=1;k<=menuCount;k++){mvf='';mvf="function MV"+k+"(){var x='';for(var i=0;i<href"+k+".length;i++){x+='<tr><td><ilayer><layer width=100% height="+mHei+" bgcolor=\""+menuOverBgColor+"\" onmouseover=overer()><a href=javascript:doGo(\"'+href"+k+"[i]+'\") class=aNS4><font color="+menuOverFontColor+">'+text2"+k+"[i]+'</font></a></layer><layer bgcolor=\""+menuBgColor+"\" width=100% height="+mHei+" onmouseover=overer();ov(this,\"'+href"+k+"[i]+'\","+k+");cBack();acE=this;this.visibility=\"hide\"><a href=javascript:; class=aNS4>'+text"+k+"[i]+'</a></layer></ilayer></td></tr>'};return x}";eval(mvf)};for(k=1;k<=subMenuCount;k++){mvf='';mvf="function SMV"+k+"(){var x='';for(var i=0;i<subhref"+k+".length;i++){x+='<tr><td><ilayer><layer width=100% height="+mHei+" bgcolor=\""+menuOverBgColor+"\"><a href=javascript:doGo(\"'+subhref"+k+"[i]+'\") class=aNS4><font color="+menuOverFontColor+">'+subtext"+k+"[i]+'</font></a></layer><layer bgcolor=\""+menuBgColor+"\" width=100% height="+mHei+" onmouseover=acE2.visibility=\"inherit\";acE2=this;this.visibility=\"hide\"><a href=javascript:; class=aNS4>'+subtext"+k+"[i]+'</a></layer></ilayer></td></tr>'};return x}";eval(mvf)}};function overer(){TIM?clearTimeout(TIM):0};function rV(){var q='';for(z=1;z<=menuCount;z++){iE?q+="m"+z+".style.visibility='hidden';":nS4?q+="document.layers['m"+z+"'].visibility='hide';":q+="document.getElementById('m"+z+"').style.visibility='hidden';"};return q};function rV2(){var q='if(subMenuCount){';for(z=1;z<=subMenuCount;z++){iE?q=q+"if(s!='subMenu"+z+"')subMenu"+z+".style.visibility='hidden';":nS4?q=q+"if(s!='subMenu"+z+"')document.layers['subMenu"+z+"'].visibility='hide';":q=q+"if(s!='subMenu"+z+"')document.getElementById('subMenu"+z+"').style.visibility='hidden';"};q+='}';return q};function cBack(){if(nS4){if(acE)acE.visibility='inherit';if(acE2)acE2.visibility='inherit'}else{if(acE){acE.style.background=menuBgColor;acE.style.color=menuFontColor};if(ImG)ImG.src=Ioff.src;if(acE2){acE2.style.background=menuBgColor;acE2.style.color=menuFontColor}}};function ov(ok,x,j){var b=x.substring(0,5)=='show:'?x.indexOf(';')==13||x.indexOf(';')==14||x.indexOf(';')==15?x.substring(5,x.indexOf(';')):x.substring(5):0;cBack();hideSub(b);if(!(subMenuCount&&b))return;var c=b.substring(7);if(!nS4){ImG=document.images['IMg'+c];ImG.src=Ion.src};var F=iE?document.body.scrollLeft+document.body.clientWidth:pageXOffset+innerWidth;var SAP=ok.offsetParent;var SAL=!nS4?ok.offsetLeft:ok.pageX;var SAT=!nS4?ok.offsetTop:ok.pageY;while(SAP){SAL+=SAP.offsetLeft;SAT+=SAP.offsetTop;SAP=SAP.offsetParent};var r=iE?document.all[b].style:nS4?document.layers[b]:document.getElementById(b).style;if(iE||oP){r.pixelTop=SAT-frameBorderWidth+subMenuOffsetY;if(iE&&(SAT-frameBorderWidth+subMenuOffsetY+document.all[b].offsetHeight>document.body.scrollTop+document.body.clientHeight))r.pixelTop=document.body.scrollTop+document.body.clientHeight-document.all[b].offsetHeight;if(SAL+menusWidth[j-1]+subsWidth[c-1]-frameBorderWidth*2-subMenuOffsetX<F)r.pixelLeft=SAL+menusWidth[j-1]-frameBorderWidth*2-subMenuOffsetX;else r.pixelLeft=SAL-subsWidth[c-1]+subMenuOffsetX;showSub(b)};if(nS){if(SAT-frameBorderWidth+subMenuOffsetY+document.getElementById(b).offsetHeight+14>pageYOffset+innerHeight)r.top=pageYOffset+innerHeight-document.getElementById(b).offsetHeight-14;else r.top=SAT-frameBorderWidth+subMenuOffsetY;if(SAL+menusWidth[j-1]+subsWidth[c-1]-frameBorderWidth*2-subMenuOffsetX+14<F)r.left=SAL+menusWidth[j-1]-frameBorderWidth*2-subMenuOffsetX;else r.left=SAL-subsWidth[c-1]+subMenuOffsetX;showSub(b)};if(nS4){if(SAT-frameBorderWidth+subMenuOffsetY+r.document.height+16>pageYOffset+innerHeight)r.top=pageYOffset+innerHeight-r.document.height-16;else r.top=SAT-frameBorderWidth+subMenuOffsetY;if(SAL+menusWidth[j-1]+subsWidth[c-1]-frameBorderWidth*2-subMenuOffsetX+16<F)r.left=SAL+menusWidth[j-1]-frameBorderWidth*2-subMenuOffsetX;else r.left=SAL-subsWidth[c-1]+subMenuOffsetX;showSub(b)}};eval("function hide2(){"+rV()+";cBack()};function hideSub(s){"+rV2()+"}");function showSub(a){var o=iE?document.all[a].style:nS4?document.layers[a]:document.getElementById(a).style;if(!nS4){if(o.visibility!='visible'){hideSub();if(iE&&(document.all[a].filters&&document.all[a].filters.length!=0)){document.all[a].filters[0].apply();o.visibility='visible';document.all[a].filters[0].play()}else{o.visibility='visible'}}};if(nS4){if(o.visibility!='show'){hideSub();o.visibility='show'}}};function doGo(ok){if(ok.substring(0,5)=='show:'){if(ok.indexOf(';')==13||ok.indexOf(';')==14||ok.indexOf(';')==15){ok=ok.substring(ok.indexOf(';')+1)}else{return}};hide2();hideSub();if(ok.charAt(0)=='*'){if(ok.substring(0,6)=='*self*'){document.location.href=ok.substring(6);return};if(ok.substring(0,6)=='*top*'){top.document.location.href=ok.substring(5);return};if(ok.substring(0,11)=='*newWindow*'){window.open(ok.substring(11));return};for(s=1;s<ok.length;s++){if(ok.charAt(s)=='*'){eval('top.'+ok.substring(1,s)+'.location="'+ok.substring(s+1)+'"')}}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};if(target=='top'){top.document.location.href=ok;return};alert("ERROR:\nThe \"target\" variable is not set correctly!")};if(iE||oP||nS){for(j=1;j<=subMenuCount;j++){document.write("<div style='position:absolute;z-index:1001;top:-1000px;left:-1000px;visibility:hidden;width:"+subsWidth[j-1]+"px"+FTR+"' id=subMenu"+j+" onmouseover=overer() onmouseout=hide()><table cellpadding=0 cellspacing=0 border=0><tr><td bgcolor="+menuBorderColor+"><table cellpadding="+cellPadding+" width="+subsWidth[j-1]+" cellspacing="+frameBorderWidth+" border=0>"+eval('SMV'+j+'()')+"</table></td></tr></table></div>")}};if(iE||oP||nS){for(j=1;j<=menuCount;j++){document.write("<div style='position:absolute;top:"+topPX[j-1]+"px;left:"+leftPX[j-1]+"px;z-index:1000;visibility:hidden;width:"+menusWidth[j-1]+"px"+FTR+"' id=m"+j+" onmouseover=overer() onmouseout=hide()><table cellpadding=0 cellspacing=0 border=0><tr><td bgcolor="+menuBorderColor+"><table cellpadding="+cellPadding+" width="+menusWidth[j-1]+" 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="+leftPX[j-1]+" top="+topPX[j-1]+" bgcolor='"+menuBorderColor+"' width="+menusWidth[j-1]+" onmouseover=overer() onmouseout=hide()><table cellspacing="+frameBorderWidth+" cellpadding=0 border=0 width=100%>"+eval('MV'+j+'()')+"</table></layer>")};for(j=1;j<=subMenuCount;j++){document.write("<layer z-index=1001 id=subMenu"+j+" visibility=hide left=0 top=0 bgcolor='"+menuBorderColor+"' width="+subsWidth[j-1]+" onmouseover=overer() onmouseout=hide()><table cellspacing="+frameBorderWidth+" cellpadding=0 border=0 width=100%>"+eval('SMV'+j+'()')+"</table></layer>")}};function show(a){if(!(oP||iE||nS||nS4))return;TIM?clearTimeout(TIM):0;hideSub();cBack();var o=iE?document.all[a]:nS4?document.layers[a]:document.getElementById(a);var F=iE?document.body.scrollTop+document.body.clientHeight:pageYOffset+innerHeight;var s=a.substring(1)-1;if(!nS4){if(o.style.visibility!='visible'){hide2();if(oP){o.style.visibility='visible';return};if(nS){if(topPX[s]+14+o.offsetHeight>F)o.style.top=F-o.offsetHeight-14+'px';else o.style.top=topPX[s]+'px'}else{if(topPX[s]+o.offsetHeight>F)o.style.pixelTop=F-o.offsetHeight;else o.style.pixelTop=topPX[s]};if(iE&&(o.filters&&o.filters.length!=0)){o.filters[0].apply();o.style.visibility='visible';o.filters[0].play()}else{o.style.visibility='visible'}}};if(nS4){if(o.visibility!='show'){hide2();if(topPX[s]+16+o.document.height>F)o.top=F-o.document.height-16;else o.top=topPX[s];o.visibility='show'}}};function hide(){if(!(oP||iE||nS||nS4))return;TIM=setTimeout("hideSub();hide2()",hideTimeout)}



/* 
======================================
 For Internet Explorer 4+
======================================
 */

var shadowSize=4;//pixels
var shadowTransparency=13;//(0-100) 100 is for none
var shadowColor='#1B3897';

// THE SERIOUS SCRIPT PLEASE DO NOT TOUCH
if(iE&&navigator.platform.indexOf("Mac")==-1){eval("function DropShadow(el,color,size,id){document.write('<div style=visibility:hidden;position:absolute;left:'+leftPX[el.substring(1)-1]+'px;top:0px id=SHFX'+id+'>');var e=document.all[el];for(var i=size;i>0;i--){var pW=e.offsetWidth;var pH=e.offsetHeight;document.write('<div style=position:absolute;top:'+i+'px;left:'+i+'px;width:'+pW+'px;height:'+pH+'px;background:'+color+';filter:alpha(opacity='+shadowTransparency+')></div>')};document.write('</div>')}");eval("for(j=1;j<=(menuCount+1);j++){if(j<=menuCount){eval(\"DropShadow('m\"+j+\"','\"+shadowColor+\"',\"+shadowSize+\",\"+j+\")\")}else{for(m=1;m<=subMenuCount;m++){eval(\"DropShadow('subMenu\"+m+\"','\"+shadowColor+\"',\"+shadowSize+\",\"+(m+j-1)+\")\")}}};");function rV8(){var q='';for(var z=1;z<=menuCount;z++){q+='SHFX'+z+'.style.visibility=\"hidden\";'}return q};function rV9(){var q='';for(z=1;z<=subMenuCount;z++){q=q+'SHFX'+(menuCount+z)+'.style.visibility=\"hidden\";'}return q};eval("function hide2(){"+rV8()+";"+rV()+";cBack()};function hideSub(s){if(!s){"+rV9()+"};"+rV2()+"};function show(a){if(!iE)return;TIM?clearTimeout(TIM):0;hideSub();cBack();var o=document.all[a];var F=document.body.scrollTop+document.body.clientHeight;var s=a.substring(1)-1;var sh=document.all['SHFX'+a.substring(1)];if(o.style.visibility!='visible'){hide2();if(topPX[s]+o.offsetHeight>F)o.style.pixelTop=F-o.offsetHeight;else o.style.pixelTop=topPX[s];sh.style.pixelTop=o.offsetTop;if(o.filters&&o.filters.length!=0){o.filters[0].apply();o.style.visibility='visible';o.filters[0].play();sh.style.visibility='visible'}else{o.style.visibility='visible';sh.style.visibility='visible'}}}");eval("function showSub(a){var o=document.all[a].style;var sh=document.all['SHFX'+(eval(a.substring(7))+menuCount)].style;if(o.visibility=='visible')return;hideSub();if(document.all[a].filters&&document.all[a].filters.length!=0){document.all[a].filters[0].apply();o.visibility='visible';document.all[a].filters[0].play();sh.visibility='visible'}else{o.visibility='visible';sh.visibility='visible'}};function ov(ok,x,j){var b=x.substring(0,5)=='show:'?x.indexOf(';')==13||x.indexOf(';')==14||x.indexOf(';')==15?x.substring(5,x.indexOf(';')):x.substring(5):0;cBack();hideSub(b);if(!(subMenuCount&&b))return;var c=b.substring(7);ImG=document.images['IMg'+c];ImG.src=Ion.src;var F=document.body.scrollLeft+document.body.clientWidth;var SAP=ok.offsetParent;var SAL=ok.offsetLeft;var SAT=ok.offsetTop;while(SAP){SAL+=SAP.offsetLeft;SAT+=SAP.offsetTop;SAP=SAP.offsetParent};var r=document.all[b].style;var sh=document.all['SHFX'+(eval(c)+menuCount)].style;r.pixelTop=SAT-frameBorderWidth+subMenuOffsetY;sh.pixelTop=SAT-frameBorderWidth+subMenuOffsetY;if(SAT-frameBorderWidth+subMenuOffsetY+document.all[b].offsetHeight>document.body.scrollTop+document.body.clientHeight){r.pixelTop=document.body.scrollTop+document.body.clientHeight-document.all[b].offsetHeight;sh.pixelTop=document.body.scrollTop+document.body.clientHeight-document.all[b].offsetHeight};if(SAL+menusWidth[j-1]+subsWidth[c-1]-frameBorderWidth*2-subMenuOffsetX<F){r.pixelLeft=SAL+menusWidth[j-1]-frameBorderWidth*2-subMenuOffsetX;sh.pixelLeft=SAL+menusWidth[j-1]-frameBorderWidth*2-subMenuOffsetX}else{r.pixelLeft=SAL-subsWidth[c-1]+subMenuOffsetX;sh.pixelLeft=SAL-subsWidth[c-1]+subMenuOffsetX};showSub(b)}")}
