function scrollWin(elementTo){new Effect.ScrollTo (elementTo , {duration: 0.9 , offset: -60}  );  }
function pageTop(){new Effect.ScrollTo('body' );}


function viewAll(){
$$('.hidden').each(function(hiddenElement) {
//$(hiddenElement).removeClassName('hidden');
new Effect.Appear(hiddenElement, {duration: 0.8} )
})
scrollWin('showMore');
$('showMore').hide();

return false;
}



function recompileStrapline(){
strapLineWords = $('strap').innerHTML.split(" ");
$('strap').innerHTML="";
numWords = strapLineWords.length;
for (w=0; w < numWords; w++ ){
eachWord= strapLineWords[w];
if (strapLineWords[w] !='') $('strap').innerHTML += '<span id=sLine'  + w + '>' + eachWord   +   '</span> '; 
} 
}//recompiled with spand divs



wordNum = 0;
function boldStrapLine(){
if (wordNum == numWords) {
$$('#strap span').each(function(spanId) { $(spanId).addClassName('black') })
new Effect.Opacity('strap', {duration:1.0, from:0.1, to: 1});
wordNum=0;
window.setTimeout("boldStrapLine()" ,5000);
return
}//all
if (wordNum < numWords) {
$$('#strap span').each(function(spanId) { $(spanId).removeClassName('black') })
$('sLine' + wordNum ).addClassName('black');
new Effect.Opacity('sLine' + wordNum, {duration:1.0, from:0.2, to: 1});
wordNum++;
window.setTimeout("boldStrapLine()" ,1000);
return
} //each
}




 
Event.observe(window, 'load', function() {
									   
if (browser !="IE5/6") {
var allMains = $$('.PSmainDD');
for (i=0; i < allMains.length; i++) {
var theMainId =  allMains[i].id; 


(function (theMainId) {  
$(theMainId ).observe('click', function(event) {
event.stop();
});
}) (theMainId) ;

(function (theMainId) {  
$(theMainId + '_sub').observe('mouseover', function(event) {
Element.addClassName(theMainId, 'mainActive'); 
});
}) (theMainId) ;

(function (theMainId) {  
$(theMainId + '_sub').observe('mouseout', function(event) {
Element.removeClassName(theMainId, 'mainActive'); 
});
}) (theMainId) ;

(function (theMainId) {  
$(theMainId).observe('mouseover', function(event) {
currStatus = $(theMainId).className;
//if (currStyle =='' ) {
//$(theMainId + '_sub').style.display='none';
//$(theMainId + '_sub').style.height='auto';
//new Effect.BlindDown(theMainId + '_sub'  , { duration: 0.2, delay:0.2, queue:'front'} )
//}
});
}) (theMainId) ; 

} //eo loop	
}//not 5/6

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";
}

//side bar long list
$$('.hidden').each(function(hiddenElement) {
$(hiddenElement).style.display='none';
})



recompileStrapline();
 window.setTimeout("boldStrapLine()" ,1500);
 
})// eo ready*/

