/* 
	- rewritten css dropdownlist script to exclude any other list items on the page apart from those with a certain class (only supports one class tho)
	- dynamic events to hyperlinks
	last updated: 13/04/2005
	by: philippe.huysmans@investis.com
*/

function cssDD(_tag,_class){
	if(document.all && document.getElementById){
		var _t,_a=[],_i=0;
		_a=document.getElementsByTagName(_tag);
		for(_i;_i<_a.length;_i++){
			if(_a[_i].className && (_a[_i].className==_class)){
				_t=_a[_i];
				_t.onmouseover=function(){this.className+=' over';};
				_t.onmouseout=function(){this.className=_class;};
			}
		}
	}
}

function popJS(){
	var _args=arguments,_tag=_args[0],_class=_args[1];
	if(document.getElementById){
		var _a=[],_i=0;
		_a=document.getElementsByTagName(_tag);
		for(_i;_i<_a.length;_i++){
			if(_a[_i].className && (_a[_i].className==_args[1])){
				_a[_i].onclick=function(){javascript:w(this.href,_args[1]);return false;};
				_a[_i].onkeypress=function(){javascript:w(this.href,_args[1]);return false;};
			}
		}
	}
}

window.onload=function(){
	cssDD('li','nav'); 
	popJS('a','print');
	popJS('a','note');
	popJS('a','text');
	popJS('a','xls');
 	popJS('a','summary');
 	popJS('a','high');	
};
