(function()

{function initToolbar(){showWelcome();bindDownMenus();showSellerPlan();};

function showWelcome()
{
var nick=$getCookie("hs"),name=nick?nick.replace(/[0,1]\/\d+\/[0,1]\//,""):"",skey=$getCookie("skey");
};

function showSellerPlan(){var mp=$getCookie("mp");if(!mp){return;}
var arrMp=mp.split(":");if(arrMp[0]==2){var o=$id("sellerPlan");o&&(o.style.display="block");}};

function bindDownMenus(){var oShop=$id("myPPLi"),oHelp=$id("helpLi");if(null!==oShop){$addHover({outLiID:"myPPLi",downListID:"myPPList"});}
if(null!==oHelp){$addHover({outLiID:"helpLi",downListID:"helpList"});}};window["_PP_head_showWelcome"]=showWelcome;initToolbar();function $id(id){return document.getElementById(id)};

function $setCookie(name,value,expiresd,path,domain,secure){var expdate=new Date(),expires=arguments[2]||null,path=arguments[3]||"/",domain=arguments[4]||null,secure=arguments[5]||false;expires?expdate.setMinutes(expdate.getMinutes()+parseInt(expires)):"";var cookietemp=escape(name)+'='+escape(value)+(expires?'; expires='+expdate.toGMTString():'')+(path?'; path='+path:'')+(domain?'; domain='+domain:'')+(secure?'; secure':'');document.cookie=cookietemp;};

function $getCookie(name){var reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"),val=document.cookie.match(reg);return val?unescape(val[2]):null;};

function $addHover(obj){var option={outLiID:"",downListID:"",hoverSpanID:""}
for(var i in obj){option[i]=obj[i];}
var oHover=$id(option.outLiID),oList=$id(option.downListID),oBind=option.hoverSpanID===""?oHover:$id(option.hoverSpanID);$mouseover(oBind,function(){oList.className="now";});$mouseout(oHover,function(){oList.className="now h";});};

function $mouseover(obj,func){obj.onmouseover=function(e){var e=window.event||e,target=e.fromElement||e.relatedTarget,parent=target;while(parent&&parent!==this){parent=parent.parentNode;}
if(parent!==this){func(this);}}}

function $mouseout(obj,func){obj.onmouseout=function(e){var e=window.event||e,target=e.toElement||e.relatedTarget,parent=target;while(parent&&parent!==this){parent=parent.parentNode;}
if(parent!==this){func(this);}}}
window["pp.head.toolbar.js"]=true;})();
//²àÀ¸Ò³¿¨
function tab(o,o2,n,o1c,o2c){var m_n=document.getElementById(o).getElementsByTagName(o1c);var c_n=document.getElementById(o2).getElementsByTagName(o2c);for(i=0;i<m_n.length;i++){m_n[i].className=i==n?"m1":"n1";c_n[i].className=i==n?"dis":"undis";}}
