
Event.observe(window, 'load', function() {


var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank";
}


$$('.menuDD').each(function(menuDDlinks) {
menuDDlinks.observe('click', function(event) {
event.stop()
});
}); //prevent natural clicks
 


$$('.menuDD').each(function(theMenuDD) {
theMenuDD.observe("click", function() {
theMenuId = theMenuDD.id ;
theSubMenuId = theMenuId + '_sub' ;  

//remove navSel highlights from any pre-selected navs and add only to selected one
$$('.navSel').each(function(navSelected) {
navSelected.className=' ';
});
theMenuDD.className='navSel';


$$('.subMenu').each(function(eachSub) {
if ( theSubMenuId != eachSub.id) eachSub.style.display='none';
});

Effect.toggle(theSubMenuId,'blind' ,{duration:0.6});
});
});


})// eo ready*/

