/* ------------------------------------------------------------------------------------------------ */
/* All intellectual property rights relating to this code are owned by EURO RSCG DSW Partners, LLC. */
/* ------------------------------------------------------------------------------------------------ */
/* ver 01.07.03 local nav */


MENU_WIDTH=195;
MENU_OVERLAP=5;

//******* Rollover Functions ********//
var cacheArray=new Array(0);
function imageGroup() { if (this.total==null) { this.total=this.cached=this.rollovers=0; this.names=new Array(0); this.urls=new Array(0); this.count=new Array(0); this.i=new Object(); this.index=cacheArray.length; cacheArray[this.index]=this; this.defURL=''; this.add=imageGroup; } var a,j,k,args=arguments; for (j=0; j<args.length; j++) { k=this.total; a=args[j].split('|'); this.names[k]=a[0]; this.urls[k]=this.defURL+a[1]; this.total++; } }
function d_loadImages() { if (document.images) { var j,c=cacheArray; for (j=0; j<c.length; j++) d_loadGroup(c[j]); } }
function d_loadGroup(obj,pre) { if (obj.loaded) return; obj.loaded=1; var k,img,stuff=''; for (k=0; k<obj.total; k++) { img=obj.i[obj.names[k]]=new Image(); if (!isNS4) { img.group=obj.index; img.num=k; img.onload=d_countImg; } if (isNS4) { stuff+='<IMG SRC="'+ obj.urls[k] +'" BORDER="0" ONLOAD="d_countImg('+obj.index+','+k+');"><BR>'; } img.src=obj.urls[k]; } if (isNS4) { if (pre) { document.newLayer('cacher'+obj.index,stuff,0); } else { var cacher=new Layer(0),c=cacher.document; c.write(stuff); c.close(); } } }
function d_countImg(n,k) { if (!isNS4) {n=this.group; k=this.num;} var obj=cacheArray[n]; if (obj.count[k]!=1) { obj.count[k]=1; obj.cached++; if (obj.cached==obj.total) {obj.rollovers=1; if (obj.onload) eval(obj.onload);} } }
function d_swapImg(obj,who,n) { var img=document[who+'_bttn']; if ((obj.rollovers)&&(img)) {img.src = obj.i[who+((n)?'_on':'_off')].src;} }
//***********************************//


document.js = true; var navReady=0; var cnavReady=0;

var isIE=(document.all)?1:0;
var isNS4=(document.layers)?1:0;
var isNS6=((document.getElementById)&&(navigator.appName=='Netscape'))?1:0;
var isNS=(isNS4)?1:0;
var DHTML=(isIE||isNS4||isNS6)?1:0;
var isMac=(navigator.userAgent.indexOf('Mac')!=-1)?1:0;
var isIEMac=(isMac&&isIE)?1:0;
var isIE4Mac=(isIEMac&&(navigator.appVersion.indexOf('4.',4)!=-1))?1:0;
var isIE5Mac=(isIEMac&&(navigator.appVersion.indexOf('5.')!=-1))?1:0;

if (document.images) { 
  navPics=new imageGroup(); navPics.defURL='/sites/developer/i/';
  navPics.add('hardware_on|nav_hardware_on.gif','hardware_off|nav_hardware_off.gif', 'software_on|nav_software_on.gif','software_off|nav_software_off.gif', 'download_on|nav_download_on.gif','download_off|nav_download_off.gif', 'design_on|nav_design_on.gif','design_off|nav_design_off.gif', 'events_on|nav_events_on.gif','events_off|nav_events_off.gif', 'rdinit_on|nav_rdinit_on.gif','rdinit_off|nav_rdinit_off.gif');
}

if (isNS4) { 
  document.classes.nav1.all.fontSize='11px';
  document.classes.nav2.all.fontSize='11px';
  document.classes.nav3.all.fontSize='12px';
  document.classes.nav1.all.textDecoration='underline';
}

if (DHTML) {

  var xmargin, ymargin;
  d_hidden = (isNS4)? 'hide':'hidden'; d_visible = (isNS4)? 'show':'visible';

  currentNav=new Array(0);

  d_mouseY=0; nsFix=0;

  d_navTimer=setTimeout("null",10);
  d_moveNavTimer = setInterval('null',1); clearInterval(d_moveNavTimer);
  d_popupTimer = setTimeout("null",10);

  d_navtabletop = '<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD WIDTH="1" ROWSPAN="3" BGCOLOR="#FF9900">'+d_spacer()+'</TD><TD BGCOLOR="#FF9900">'+d_spacer()+'</TD><TD WIDTH="7" ROWSPAN="2" COLSPAN="3">'+IMG('nav/navtopright.gif',7,7)+'</TD></TR><TR><TD BGCOLOR="#FFFFCC">'+d_spacer(1,6)+'</TD></TR><TR><TD BGCOLOR="#FFFFCC">';
  d_navtablebot = '</TD><TD WIDTH="5" BGCOLOR="#FFFFCC">'+d_spacer(5,1)+'</TD><TD WIDTH="1" BGCOLOR="#FF9900">'+d_spacer()+'</TD><TD WIDTH="1" BGCOLOR="#000000">'+d_spacer()+'</TD></TR><TR><TD WIDTH="1" ROWSPAN="3">'+IMG('nav/navbotleft2.gif',1,8)+'</TD><TD BGCOLOR="#FFFFCC">'+d_spacer(1,5)+'</TD><TD WIDTH="7" ROWSPAN="3" COLSPAN="3">'+IMG('nav/navbotright.gif',7,8)+'</TD></TR><TR><TD BGCOLOR="#FF9900">'+d_spacer()+'</TD></TR><TR><TD BGCOLOR="#000000">'+d_spacer(1,2)+'</TD></TR></TABLE>';
  
  boxPics=new imageGroup(); boxPics.defURL='/sites/developer/i/';
  boxPics.add('navarrow|nav/navarrow.gif','navarrowblue|nav/navarrowblue.gif','tr|nav/navtopright.gif', 'bl|nav/navbotleft2.gif', 'br|nav/navbotright.gif','stl|nav/nav_s_topleft.gif', 'str|nav/nav_s_topright.gif', 'su|nav/nav_s_up.gif', 'sbl|nav/nav_s_botleft.gif', 'sbr|nav/nav_s_botright.gif', 'sd|nav/nav_s_dn.gif');

  cascadeNav=new Object(); menuList = new Object(); layers = new Object(); layers.EQ=new Array();
  var TempArgs;

}


//******* Basic DHTML Functions ********//

function equalizeLayers(n) { var k,l; var list=(n==null)?layers.EQ:arguments; for (k=0; k<list.length; k++) {l=d_getLayer(list[k]); if(l) d_equalize(l); } if (n==null) layers.EQ=new Array(); }
function d_getLayer(spec,base) { if (!isNS4) return getIt(spec); var j=0,temp=null; if (!base) base=document; if (base.layers[spec]) return base.layers[spec]; for (j=0; j<base.layers.length; j++) { temp=d_getLayer(spec,base.layers[j].document); if (temp) return temp; } return null; }
function getIt(id) { if (isIE) return document.all[id]; if (isNS6) return document.getElementById(id); }

function d_equalize(layer) { if (layers[layer.id]) return;
  layer.getTop = new Function("return(parseInt(this.style.top))");
  layer.getLeft = new Function("return(parseInt(this.style.left))");
  layer.getHeight = new Function("if (isIE) return this.scrollHeight; if (isNS4) return this.document.height; if (isNS6) return this.offsetHeight;");
  layer.setClip = new Function ("l","t","r","b","if (isNS4) {this.clip.left=l; this.clip.top=t; this.clip.right=r; this.clip.bottom=b;} else { this.style.clip='rect('+t+' '+r+' '+b+' '+l+')'; }");
  layer.rewrite = new Function ("html","if (isIE||isNS6) this.innerHTML=html; if (isNS4) {this.document.write(html); this.document.close();}");
  layer.vis = new Function("n","this.style.visibility=(n)?d_visible:d_hidden; if (isNS6) {this.style.zIndex=(n)?this.z:eval(this.z)-1;}");
  layers[layer.id]=layer; if (isNS4)layer.style=layer; if (isNS6) { layer.z=layer.style.zIndex; if(layer.style.visibility==d_hidden)layer.vis(0); } }


function layerTag(id,content,z,vis,l,t,w,h,extra) {layers.EQ[layers.EQ.length]=id; if(w==0)w=1; if(!t)t=0; if(!l)l=0; if(!vis)vis=d_hidden; if(!z)z=10; if(!extra)extra='';
  if (!isNS4) {var stuff = '<DIV ID="'+id+'" STYLE="position:absolute; overflow:visible; left:'+l+'px; top:'+t+'px;'+((w)?(' width:'+w+'px;'):'')+((h)?(' height:'+h+'px;'):'')+' visibility:'+vis+'; z-index:'+z+'" '+extra+'>'; }
  if (isNS4)  {var stuff = '<LAYER NAME="'+id+'" left="'+l+'" top="'+t+'"'+((w)?(' width="'+w+'"'):'')+((h)?(' height="'+h+'"'):'')+' visibility="'+vis+'" z-index="'+z+'" '+extra+'>'; } return (stuff+content+((isNS4)?'</LAYER>':'</DIV>')); }

function newLayer(id,content,z,vis,l,t,w,h,extra) { var layer; /*?*/
  if (isIE) { document.body.insertAdjacentHTML('BeforeEnd',layerTag(id,content,z,vis,l,t,w,h,extra)); layer=document.all[id]; }
  if (isNS4) { if (w==null)w=2000; layer=new Layer(w); layer.document.write(content); layer.document.close(); layer.left=(l)?l:0; layer.top=(t)?t:0; layer.height=(h!=null)?h:1; layer.zIndex=(z)?z:10; layer.width=layer.document.width; layer.visibility=(vis)?vis:d_visible; } d_equalize(layer); return (layer);  }

function d_writeLayer(id,content,z,vis,l,t,w,h,extra) { this.writeln(layerTag(id,content,z,vis,l,t,w,h,extra)); equalizeLayers();}
if (DHTML) {  document.newLayer=d_writeLayer; }

//******* End Basic DHTML Functions ********//

// body onload fix
var dhtmlnav=0; var dhtmlBrowser=0; if (document.images) dhtmlBrowser=1;
function d_loadChecker() { if (dhtmlnav) { d_initNav(); } else { setTimeout('d_loadChecker()',100); } } d_loadChecker();

function d_init() { navReady=1; showCArrows(); if (document.prev) setTimeout("startPrev()",50); }

function d_initNav() { document.loaded=1; eval(onLoadStr); d_posCheck(); d_loadImages(); }
function whenPageLoaded(code) { onLoadStr+=code+'; '; } var onLoadStr='';
function d_posCheck() {
  if (!DHTML) return;
  var img=document.images[(newlocalnav)?'localCheck':'cnavCheck'];
  cascadeNav.cpos=(img)?(getIy(img)-ymargin):0;
  var img=document.images.margincheck;
  if (img&&(!isMac)) { ymargin=img[(isNS4)?'y':'offsetTop']-73+((isNS6)?NS6offY:0); }
}

function d_navEnter(who) { if ((who==null)||(who==currentNav[0])) { clearTimeout(d_navTimer); if (isNS4) { if (nsFix==1) nsFix=2; else nsFix=1; } } }
function d_navExit(who) { if (!navReady) return; clearTimeout(d_popupTimer); if ((who!=null)&&(who!=currentNav[0])) return; if (isNS4) {if (nsFix==2) {nsFix=0; return;}  nsFix=0;} clearTimeout(d_navTimer); d_navTimer=setTimeout("d_endNav();",1000); }
function d_navOver(who) { if (DHTML) { d_startNav(who,arguments); } else { d_swapImg(navPics,who,1); } }
function d_navOut(who) { if (DHTML) { d_navExit(who); } else { d_swapImg(navPics,who,0); } }
function d_findMouse(e) { if (isNS4||isNS6) { d_mouseY=e.pageY;} if (isIE) { d_mouseY=event.clientY+document.body.scrollTop; } }
function d_startNav(who,args) { if (!navReady) return; d_navEnter(who); if (who==currentNav[0]) return; TempArgs=args; d_popupTimer=setTimeout("d_beginNav('"+who+"',1)",200); }
function d_beginNav(who,n) { d_navEnter(); d_endNav(); currentNav[0]=who; cascadeNav.args=(n)?TempArgs:new Object(); d_popupNav(who,1); }
function d_endNav() { var c=currentNav[0]; if (c==null) return; if (menuList[c]) { d_swapImg(navPics,c,0); d_swapLocal(c,0); d_hideLev(0); d_setConnect('off'); }  else { d_other(c); } currentNav[0]=null; }
function d_popupNav(who,lev,delay) { if (lev>3) return; if (!menuList[who]) { d_other(who,1); return;} if (delay!=null) { d_popupTimer=setTimeout("d_popupNav('"+who+"',"+lev+")",delay); return; } var l=layers[(isMac)?('ML_'+who):('menuLayer'+lev)]; if (!l) return; if (isMac) l.lev=lev; if (who==currentNav[l.lev]) return; d_hideLev(l.lev-1); currentNav[l.lev]=who; if (!isMac) writeNavLayer(who,l.lev,l.id); d_setNavY(l); if(isMac){ l.style.zIndex=(60+2*lev); l.style.left=(xmargin+174+(lev-1)*(MENU_WIDTH-MENU_OVERLAP))} l.vis(1); if (l.lev>1) { d_toggleArrow(l.lev,1); } else { d_swapImg(navPics,currentNav[0],1); d_swapLocal(currentNav[0],1); d_setConnect(cascadeNav.args[1]); } }
function d_other(who,n) { var l=layers[who]; if (!l) return; if (l.ready==0) return; l.vis(n); if(n) { layers.on=l; l.onmouseover=new Function("d_navEnter()"); l.onmouseout=new Function("if (!document.alert) d_navExit()");} else { layers.on=null; document.alert=0; if (document.navdisabled) navdisable(1);} }
function d_hideLev(num,delay) { if (num>3) return; if (delay) { d_popupTimer=setTimeout("d_hideLev("+num+")",500); return; } var l,k=0; for (k=3; k>=(num+1); k--) { if (currentNav[k]!=null) { l=getML(k); l.vis(0); if (k>1) d_toggleArrow(k,0); if (l.clipped != null) { l.clipIt(0,2000); layers['menuLayer'+l.lev+'up'].vis(0); layers['menuLayer'+l.lev+'dn'].vis(0); l.clipped=null; } currentNav[k]=null; } } }
function d_setConnect(y) { if((y==null)||(!navPics.rollovers)) return; var nc=layers.navconnect; if (y=='off') {nc.vis(0); return;} nc.style.top=(ymargin+114+y); nc.vis(1); }
function d_toggleArrow(lev,show) {var who=currentNav[lev],b=(isNS4)?getML(lev-1):window; var newimg=(show)?boxPics.i.navarrowblue:boxPics.i.navarrow; var img=b.document.images[who+'_ar']; if (img) {img.src=newimg.src;} if (isIE||isNS6) { var lnk=(isIE)?document.all[who+'_link']:document.links[who+'_link']; if (!lnk) return; if (!lnk.cls) lnk.cls=lnk.className; lnk.className=lnk.cls+((show)? 'on':''); } }
function d_setNavY(l) { var db=document.body; var st=(isIE)?db.scrollTop:window.pageYOffset; var wh=(isIE)?db.clientHeight:window.innerHeight; var pb=((isIE)?db[(isMac)?'offsetHeight':'scrollHeight']:document.height)-((l.lev==1)?43:22)-((isNS6)?-1:(isIEMac)?0:1)*ymargin; var lh=l.getHeight(); var wb=wh+st; if (wb>pb)wb=pb; var y=d_mouseY-Math.round(lh/2); var a2=cascadeNav.args[2]; if ((l.lev==1)&&(a2)&&(y<a2+ymargin)) y=a2+ymargin; if (l.lev>1){ var prevTop=getML(l.lev-1).getTop(); if (y<(prevTop)) y=prevTop; } if ((y+lh)>wb)y=wb-lh; if (y<(ymargin+70))y=ymargin+70; if (y<st)y=st; l.style.top=y; if ((y+lh)>wb) { l.clipped=1; layers['menuLayer'+l.lev+'up'].style.top=y; layers['menuLayer'+l.lev+'dn'].style.top=wb-14; d_moveNav(l.id,0); } }
function d_moveNav(id,s) { var who=layers[id]; if (who==null) { clearInterval(d_moveNavTimer); return; } var lh=who.getHeight(); var up=layers['menuLayer'+who.lev+'up'];  var dn=layers['menuLayer'+who.lev+'dn']; var y=who.getTop()+s; var uptop=up.getTop(); var dnbot=dn.getTop()+14; if(y>uptop) y=uptop; if((y+lh)<dnbot) y=dnbot-lh; up.vis((y<uptop)); dn.vis(((y+lh)>dnbot)); who.style.top=y; who.clipIt((y<uptop)?(uptop-y+8):0,((y+lh)>dnbot)?(dnbot-y-10):2000); if (((s<0)&&((y+lh)==dnbot))||((s>0)&&(y==uptop))) clearInterval(d_moveNavTimer); if (isIE4Mac) { var z=who.style.zIndex; who.style.zIndex=(z-1); who.style.zIndex=z; } }
function d_scrollNav(lev,s) { clearInterval(d_moveNavTimer); var l=getML(lev); if ((lev==0)||(!l)) return; d_moveNavTimer=setInterval("d_moveNav('"+l.id+"',"+s+")",50); }
function getIy(img) {if (isIE4Mac) return(parseXY(img)); return(img[(isNS4)?'y':'offsetTop']+((isNS6)?NS6offY:(isIE5Mac)?ymargin:0));} function getIx(img) {if (isIE4Mac) return(parseXY(img,'X')); return(img[(isNS4)?'x':'offsetLeft']+((isNS6)?NS6offX:(isIE5Mac)?xmargin:0));}
function parseXY(who,n) {var val=0; var num=who[(n=='X')?'offsetLeft':'offsetTop']; if(num)val+=num;  var oP=who.parentElement; if (oP) val+=parseXY(oP,n); return(val); }

function getML(lev) { return(layers[(isMac)?('ML_'+currentNav[lev]):('menuLayer'+lev)]); }

function IMG(url,w,h,b,ex) { return('<IMG SRC="/sites/developer/i/'+url+'" WIDTH="'+((w)?w:1)+'" HEIGHT="'+((h)?h:1)+'" BORDER="'+((b)?b:0)+'"'+((ex)?' '+ex:'')+'>');}
function d_spacer(w,h,b,ex) {return(IMG('spacer.gif',w,h,b,ex));}

function newNavMenu(who) { menuList[who]=new Array(); var j; for (j=1; j<arguments.length; j++) { menuList[who][j-1]=arguments[j]; } }
function createNavLayer(lev,who) { if ((lev==1)&&(who.substring(0,5)=='cnav_')) { who=who.substring(5); chanArrows[chanArrows.length]=who; } menuList[who]=new Array(); var j; for (j=2; j<arguments.length; j++) { menuList[who][j-2]=arguments[j]; } }
if (DHTML) newNavMenu('blank',"blank|/|blank");

function genNavLayer(lev,who) { var w=MENU_WIDTH; var id=(who)?('ML_'+who):('menuLayer'+lev);
  var build=d_navtabletop +((isMac||isNS4)?'':'<SPAN ID="'+id+'Area">')+writeNavLayer(((who)?who:'blank'),lev,id)+((isMac||isNS4)?'':'</SPAN>')+d_navtablebot;
  document.newLayer(id,build,(60+2*lev),d_hidden,(xmargin+174+(lev-1)*(MENU_WIDTH-MENU_OVERLAP)),0,w,null,'ONMOUSEOVER="d_navEnter();" ONMOUSEOUT="d_navExit();"');
  var l=layers[id]; l.lev=lev; if (!(isMac||isNS4)) equalizeLayers(id+'Area');
  l.clipIt=new Function ("t","b"," if (isNS4) {this.clip.top=t; this.clip.bottom=b;} else { this.style.clip='rect('+t+' "+MENU_WIDTH+" '+b+' 0)'; }");
  if (!who) { genNavScroller(id,lev,'up',w); genNavScroller(id,lev,'dn',w); }
}

function genNavScroller(id,lev,which,w) {
  if (which=='up') { var topbot='top',s=8,cs=3,h=12; } else { var s=-8,topbot='bot',cs=4,h=14; }
  var build='<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="'+w+'"><TR>'
    +'<TD WIDTH="6" ROWSPAN="'+cs+'">'+IMG('nav/nav_s_'+topbot+'left.gif',6,h)+'</TD>'
    +'<TD WIDTH="'+(w-13)+'" BGCOLOR="#FF9900">'+d_spacer(w-13,1)+'</TD>'
    +'<TD WIDTH="7" ROWSPAN="'+cs+'">'+IMG('nav/nav_s_'+topbot+'right.gif',7,h)+'</TD></TR>'
    +'<TR><TD BGCOLOR="#FFFFCC" ALIGN="center">'+IMG('nav/nav_s_'+which+'.gif',12,10)+'</TD></TR>'
    +'<TR><TD BGCOLOR="#FF9900">'+d_spacer()+'</TD></TR>'
    +((which=='dn')?'<TR><TD BGCOLOR="#000000">'+d_spacer(1,2)+'</TD></TR>':'')
    +'</TABLE>';
  document.newLayer(id+which,build,(60+2*lev+1),d_hidden,(xmargin+174+(lev-1)*(MENU_WIDTH-MENU_OVERLAP)),0,null,null,'ONMOUSEOVER="d_scrollNav(\''+lev+'\','+s+'); d_navEnter();" ONMOUSEOUT="d_scrollNav(0); d_navExit();"');
}


function writeNavLayer(who,lev,id) { var w=MENU_WIDTH;
  var stuff='',menu = menuList[who]; if (menu==null) return null;
    var j,a,url,submenu,subhead,txt;
    var stuff='<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="'+(w-8)+'">' + '<TR><TD WIDTH="15">'+d_spacer(15,5)+'</TD><TD WIDTH="'+(w-35)+'">'+d_spacer(w-35,5)+'</TD><TD WIDTH="12">'+d_spacer(12,5)+'</TD></TR>';
    for (j=0; j<menu.length; j++) { a=menu[j].split('|'); url=a[1]; if (url=='*')url=null; subhead=(url=='!')?1:0; submenu=a[2]; if (lev==3) submenu=null;
      var LEV=(isMac)?('layers.'+id+'.lev'):lev;
      if (subhead) {
        stuff+='<TR><TD COLSPAN="2"><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0"><TR><TD>'+d_spacer(5,2)+'</TD><TD><SPAN CLASS="nav3"><B>'+a[0]+'</B></SPAN></TD></TR></TABLE></TD></TR>';
      }
      else {
        stuff+='<TR><TD ALIGN="right" VALIGN="top">'+IMG('nav/navbullet'+((isNS4)?'2':'')+'.gif',11,10,null,'NAME="'+who+'_b'+j+'"')+'</TD><TD>';
        if (url||submenu) { stuff+= '<A CLASS="nav'+((url)?1:2)+'" HREF="' + ((url)? url:'javascript: // no link') + '" ONMOUSEOVER="'+((submenu)?('d_popupNav('+"'"+submenu+"'"+','+(LEV+((isMac)?'+1':1))+',200);" NAME="'+submenu+'_link"'):('d_hideLev('+LEV+',1);"')) + ' ONMOUSEOUT="clearTimeout(d_popupTimer);">'+a[0]+'</A>'; } else { stuff+='<SPAN CLASS="nav3">'+a[0]+'</SPAN>'; }
        stuff+='</TD><TD>'+ ((submenu)? IMG('nav/navarrow.gif',9,9,0,'NAME="'+submenu+'_ar"'):'') +'</TD></TR>';
      }
      stuff+='<TR><TD>'+d_spacer(1,6)+'</TD></TR>';
    }
    stuff+='</TABLE>'; if ((who=='blank')||(isMac)) return stuff;
  if (isNS4) stuff=d_navtabletop+stuff+d_navtablebot;
  var l=layers[id+((isNS4)?'':'Area')]; l.rewrite(stuff); return null; }


var newlocalnav=0;
var NS6offX, NS6offY, MCoffX, MCoffY;
function writeLayers() { if (!(DHTML)) return;
  var mc=document.images.margincheck;
  if (document.images.localCheck) { initNewLocalNav(); }
  if (isNS6) { NS6offX=eval(document.body.offsetLeft); NS6offY=eval(document.body.offsetTop); MCoffX=mc.offsetLeft; MCoffY=mc.offsetTop; xmargin=NS6offX+MCoffX-1; ymargin=NS6offY+MCoffY-70; }
  if (isIE) { xmargin=eval(document.body.leftMargin); ymargin=eval(document.body.topMargin); }
  if (isNS4) { if(mc) { xmargin=mc.x-1; ymargin=mc.y-70; } }
  document.newLayer('navconnect',IMG('spffffcc.gif',3,18),70,0,(xmargin+172),0);
  if (newlocalnav) { document.newLayer('navconnect2',IMG('spffffcc.gif',3,20,0,'name="navconnectSpacer"'),70,0,(xmargin+172),0); }
  if (isMac) { var i; for(i in menuList) genNavLayer(1,i); }
  genNavLayer(1); genNavLayer(2); genNavLayer(3);
}

//******* Local Navigation DHTML Functions ********//

  var overCnav=null;
  var chanArrows= new Array(0);
  var localPics;

  function showCArrows() { if (DHTML) {  var j,a=chanArrows; if (a.length>0) { for (j=0; j<a.length; j++) d_swapCArrow(a[j],0); cnavReady=1; } else setTimeout("showCArrows()",200); } }
  function addCArrows() { if (DHTML) { var j,a=arguments; for (j=0; j<a.length; j++) chanArrows[chanArrows.length]=a[j];  } }
  function d_swapLocal(who,n) { d_swapCColor(who,n); d_swapCArrow(who,n); }

  function d_swapCArrow(who,n) { var img=document.images['ca_'+ who]; if (!img)return;
    if (newlocalnav){ img.src=localPics.i['localarrow'+((n)?'_on':'')].src; if(isIE) img.style.visibility=(n)?'hidden':'visible'; }
    else { img.src=boxPics.i[(n)?'navarrowblue':'navarrow'].src; }
  }

  function d_swapCColor(who,n) { if (!newlocalnav)return; if (isNS4) return;
    var row=getIt('nrow_'+ who); if (!row)return;
    row.bgColor=(n)?'#FFFFCC':'#3366FF'; var rowheight=row.offsetHeight;
    var img=document.images.navconnectSpacer; if (img) img.height=rowheight;
    var link=getIt('nlink_'+ who); if (link) link.className=(n)?'sidenav2':'sidenav';
    var nc=layers.navconnect2;
    if (n) { var img=document.images['cpos_'+ who]; if (img) { nc.style.top=getIy(img); nc.vis(1); } }
    else { nc.vis(0); }
  }

  function d_cnavOver(who) { if (overCnav)return; overCnav=1; if (cnavReady) { arguments[2]=cascadeNav.cpos; d_startNav(who,arguments); } }
  function d_cnavOut(who)  { if (!overCnav)return; overCnav=0; if (cnavReady) d_navExit(who); }

  function initNewLocalNav() { newlocalnav=1;
    localPics=new imageGroup(); localPics.defURL='/sites/developer/i/';
    localPics.add('localarrow|nav/local_arrow.gif','localarrow_on|nav/local_arrow_cream.gif');
    d_loadGroup(localPics,1);
  }

//******* End Second Level DHTML Functions ********//

if (isNS4) document.captureEvents(Event.MOUSEMOVE | Event.MOUSEUP);

if (DHTML) {
  document.onmousemove = d_findMouse;
  d_loadGroup(boxPics,1);
  if ((document.cookie)&&(document.cookie.indexOf('dev_ro=1')!=-1)) { navPics.add('blue|sp0033ff.gif','yellow|spffffcc.gif'); d_loadGroup(navPics,1); }
  navPics.onload="document.cookie='dev_ro=1; path=/'";
}

if (isNS4) document.newLayer('cacher_spacers',d_spacer(15,5)+ d_spacer(145,5)+ d_spacer(17,5)+ d_spacer(11,10)+ d_spacer(1,8)+ d_spacer()+ d_spacer(1,6)+ d_spacer(5,1)+ d_spacer(1,5)+ d_spacer(1,2));
if (isNS4) {var d_winW=window.innerWidth; var d_winH=window.innerHeight; window.onresize=new Function("if ((d_winW!=window.innerWidth)||(d_winH!=window.innerHeight)) history.go(0);"); }
