function cssNav(_tag,_class){
 if(document.getElementById){
  var _t,_c,_a=[],_i;
  _a=document.getElementsByTagName(_tag);
  for(_i=0;_i<_a.length;_i++){
   if(_a[_i].className){ 
    _c=_a[_i].className.toString().split(' ');
    if(_c[1]=='on'){
     if(_a[_i].id=='ln_first'){
      document.getElementById('ln_ul').style.borderColor='#4a7297';
     }else{
      _a[_i-1].style.borderColor='#4a7297';
     }
    }
   }
  }
 }
}

function clickerInput(){
 var _args=arguments,_tag=_args[0];_class=_args[1];
 if(document.getElementById){
  var _a=[],_i=0,_title;
  _a=document.getElementsByTagName(_tag);
  for(_i;_i<_a.length;_i++){
   if(_a[_i].className && (_a[_i].className.toString().indexOf(_args[1])>=0)){
    _title=_a[_i].getAttribute('title');
    if(_title.length > 0){
     _a[_i].setAttribute('value',_title);
     _a[_i].onclick=function(){javascript:this.value=(this.value==this.getAttribute('title'))?'':this.value;};
     _a[_i].onkeypress=function(){javascript:this.value=(this.value==this.getAttribute('title'))?'':this.value;};
    }
   }
  }
 }
}

window.onload=function(){
 // fontsize handler
 handleFontSize('FontSize',0.75,true);
 // leftnav upper border
 cssNav('li','lev1');
 // popup links
 popJS('a','video');
 popJS('a','slideshow');
 popJS('a','webcast');
 popJS('a','pdf');
 popJS('a','word');
 popJS('a','note');
 clickerInput('input','clicker');
};
