//滑动门函数
function tabChange(obj,id)
{
 var arrayli = obj.parentNode.getElementsByTagName("li"); //获取li数组
 var arrayul = document.getElementById(id).getElementsByTagName("ul"); //获取ul数组
 for(i=0;i<arrayul.length;i++)
 {
  if(obj==arrayli[i])
  {
   arrayli[i].className = "sec1";
   arrayul[i].className = "";
  }
  else
  {
   arrayli[i].className = "sec2";
   arrayul[i].className = "hidden";
  }
 }
}
//结束滑动门
function showSwitch(){
		if(document.getElementById("cart").style.display=='none') {
			document.getElementById("cart").style.display='';

		}
		if(typeof(hideTime)!='undefined'){
			clearTimeout(hideTime)
		}
	}
	function hideSwitch(){
		hideTime = setTimeout(
			function(){
				document.getElementById("cart").style.display='none';
			},1
		);
	}

	function showSwitch1(){
		if(document.getElementById("homedrop").style.display=='none') {
			document.getElementById("homedrop").style.display='';

		}
		if(typeof(hideTime)!='undefined'){
			clearTimeout(hideTime)
		}
	}
	function hideSwitch1(){
		hideTime = setTimeout(
			function(){
				document.getElementById("homedrop").style.display='none';
			},1
		);
	}
   function showSwitch2(){
		if(document.getElementById("navdrop").style.display=='none') {
			document.getElementById("navdrop").style.display='';

		}
		if(typeof(hideTime)!='undefined'){
			clearTimeout(hideTime)
		}
	}
	function hideSwitch2(){
		hideTime = setTimeout(
			function(){
				document.getElementById("navdrop").style.display='none';
			},1
		);
	}

	
	
	
	
	var _adwq = _adwq || [];
  _adwq.push(['_setAccount', '81t1s']);
  _adwq.push(['_setDomainName', '.eshopsingapore.com']);
  _adwq.push(['_trackPageview']);
  (function() {
    var adw = document.createElement('script'); adw.type = 'text/javascript';
    adw.async = true;
    adw.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//s.emarbox.com/js/adw.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(adw, s);
  })();
