﻿/* 
http://lexrus.blueidea.com
这是把事件动作绑定到菜单上的函数
*/
function attachXMenu(objid){
	var tds=objid.getElementsByTagName('td');
	for(var i=1;i<tds.length;i++){
		with(tds[i]){
			onmouseover=function(){
				with(this){
					filters[0].apply();
					style.background='#dab5ab'; //这是鼠标移上去时的背景颜色
					style.color='black'; //文字颜色
					filters[0].play();
			        }
		        }  			
			
			onmouseout=function(){
				with(this){
					filters[0].apply();
					style.background='#da251d'; //这是鼠标离开时的背景颜色
					style.color='#ffffff'; //文字颜色
					filters[0].play();
				}
			}
		}
		
		with(tds[0]){
			onmouseover=function(){
				with(this){
					filters[0].apply();
					style.background='#a6e4ff'; //这是鼠标移上去时的背景颜色
					style.cursor='default';
					filters[0].play();
			        }
		        }  			
			
			onmouseout=function(){
				with(this){
					filters[0].apply();
					style.background='#009de4'; //这是鼠标离开时的背景颜色
					filters[0].play();
				}
			}
		}		
	}
}

function gotoLink(link)
{
    window.location.href = link;
}
