﻿function showKefu(val)
{
	   val.style.display = 'none';
	   //document.getElementById("qq_right").style.left=document.getElementById("header").offsetLeft+981+"px";
	   document.getElementById("a").style.display = '';
	   if(screen.width <=1024)
	   {
	      $("#a").attr("style","margin-left:-147px;");
	   }
}

function closekf()
{
	document.getElementById("e").style.display = '';
	document.getElementById("a").style.display = 'none';
}
//滚动代码开始
function qqshow(){
if (document.body.offsetWidth >900) {
    if (document.getElementById("qq_right") != null) {
        document.getElementById("qq_right").style.top = (document.documentElement.scrollTop + 30) + "px";
    }
    else { return false }
}
else
{
 document.getElementById("qq_right").style.display="none";
}
}
function showqq(){
setTimeout("qqshow();",10);
}
window.onscroll=showqq;
window.onresize=qqshow;
window.onload=qqshow;
function fullScreen(){
 this.moveTo(0,0);
this.outerWidth=screen.availWidth;
this.outerHeight=screen.availHeight;
}
window.maximize=fullScreen;

function changesize(stylename) {
    document.getElementById("content").className = stylename;
}

function GoToShoppingCart() {
        var cartForm = window.open(applicationPath + "/ShoppingCart.aspx", "ShoppingCart");
        if (cartForm != null && !cartForm.closed) cartForm.focus();
    }
$(document).ready(function(){
    document.getElementById("qq_right").style.left=document.getElementById("header").offsetLeft+981+"px";
    document.getElementById("qq_right").style.top=$.browser.scroll().top+$.browser.client().height+"px";
    //设置全部分类鼠标悬浮效果
        $("#o-search .allsort").bind("mouseover",function(){
            //alert("come");
            $(this).addClass("allsorthover")
        })
        $("#o-search .allsort").bind("mouseleave",function(){
            //alert("come");
            $(this).removeClass("allsorthover")
        })
        
       
})    
    
    

