jQuery(function($) {
	$(document).ready(function(){//确定加载完成
	  // Search Box
		//getEbankingMenuTag();
		$(".butSearchOn").click(function(){
		$(".butSearchOn").toggleClass("butSearchOff");//添加或移除.butSearchOn元素下的样式
		$(".boxSearch").slideToggle();//隐藏或显示.boxSearch元素
		});
	  // Tag  
	$("#tag ul li,#tagTwo ul li,#tagTheer ul li").click(function() {
		var menu = $(this).parent().children().index(this); 
		$(this).parent().children().removeClass("on"); 
		$(this).addClass("on");
		$(this).parent().parent().next().children().hide().eq(menu).show();
        });
	// Tag Small
	$("#tagSa ul li,#tagSb ul li,#tagSc ul li").click(function() {
		var menu = $(this).parent().children().index(this); 
		$(this).parent().children().removeClass("on"); 
		$(this).addClass("on");
		$(this).parent().parent().next().children().hide().eq(menu).show();
        });
	// Tag select  
	$(".type ul li ul li ").click(function() {
		var menu = $(this).parent().children().index(this); //声明menu等于父级元素下的子元素第几个元素
		$(this).parent().parent().parent().parent().next().children("ul").hide().eq(menu).show();//menu元素显示
        });
	});
	//select下拉菜单模拟
	$('#selectOne .sonUl,#selectTwo .sonUl,#selectTheer .sonUl,#selectA .sonUl,#selectB .sonUl').hide(); //初始ul隐藏
	$('.selectOne span,.selectTheer span,.selectTwo span').click(function(){ //鼠标移动函数
	$(this).parent().find('ul.sonUl').slideDown();  //找到ul.sonUl显示
	$(this).parent().find('li').hover(function(){$(this).addClass('hover')},function(){$(this).removeClass('hover')}); 
	$(this).parent().hover(function(){},
		function(){
		$(this).parent().find("ul.sonUl").slideUp(); 
		}
		);
		},function(){}
	);
	$('ul.sonUl li').click(function(){
	$(this).parents('li').find('span').html($(this).html());
	$(this).parents('li').find('ul').slideUp();
	});	
});
//登录下拉菜单按钮值JS
	function chgurl(url){
		document.getElementById("theurl").value=url;	
	}
	function openurl(){
		window.open(document.getElementById("theurl").value);
	}
	

