/*禁止复制*/
//document.oncontextmenu =
//document.onselectstart =
//new Function("return false");
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	target.style.MozUserSelect="none"
else //www.codefans.net All other route (ie: Opera)
	target.onmousedown=function(){return false}
    target.style.cursor="default"
}
/*收藏本站*/
function AddFavorite()
{if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function'))
   {
      window.sidebar.addPanel('北京海城户外官方网上商城 [www.hchw.net]', 'http://www.hchw.net', "");
   }
   else
   {
      window.external.addFavorite('http://www.hchw.net','北京海城户外官方网上商城 [www.hchw.net]');
   }
}
/*显示图层*/
function display(d){
         document.getElementById(d).style.display="block"; 
}

/*隐藏图层*/
function disappear(d){
         document.getElementById(d).style.display="none"; 
}
//层切换特效
function pucker_show(name,no,hiddenclassname,showclassname,num) {
//name:命名前缀
//no:当前鼠标所处对象的序号
//showclassname:展开状态样式名
//hiddenclassname:折叠状态样式名
for (var i=1;i<num;i++ )
{
document.getElementById(name+i).className=hiddenclassname;
}
document.getElementById(name+no).className=showclassname;
}
//特效显示提示信息
$(document).ready(function()
{
	// Match all <A/> links with a title tag and use it as the content (default).
	$('span[title]').qtip({position:{my:"top center",at:"bottom center"}});

})

//选项卡切换
function setTab(name,cursel,n){
for(i=1;i<=n;i++){
var menu=document.getElementById(name+i);
var con=document.getElementById("con_"+name+"_"+i);
menu.className=i==cursel?"hover":"";
con.style.display=i==cursel?"block":"none";
}
}

