/* Js for , Version=1775725796 */
 v.lang = {"confirmDelete":"Do you want to delete it?","deleteing":"Deleting","doing":"Doing","loading":"Loading","updating":"Updating","timeout":"Timeout. Please try it again.","errorThrown":"Error : ","continueShopping":"Continue shopping","required":"Required","back":"Back","continue":"Continue","bindWechatTip":"Posting sets the limit for binding WeChat. Please bind WeChat user first.","importTip":"Old layout data will be replaced","fullImportTip":"Old article, product, layout data will be replaced and import test data"};;$('#cartBox .label').insertBefore('.sidebar .cart i');
// $('#msgBox').insertBefore('.sidebar .msg');
$('#rightDocker').insertBefore('.sidebar .erweima em');
$('#go2top').insertBefore('.sidebar .top em');
$('#xuanxuanBtn').insertBefore('.sidebar .chat em');;$().ready(function() { $('#execIcon').tooltip({title:$('#execInfoBar').html(), html:true, placement:'right'}); }); ;$(document).ready(function()
{
    $('.nav-system-forum').addClass('active');
    $('#navbar li.active').parents('li').addClass('active');
})
$('#siteNav').insertAfter('#navbarWrapper');
$('#searchbar').insertBefore('#siteNav');
$('#foot').insertBefore('#footer');
$('#words').attr('placeholder','Search');

$(document).ready(function(){
    if(typeof headerList != 'undefined') return ;
    headerList = true;
    $('#siteNav').before('<div id="language"><a class="lang"><i class="icon icon-globe"></i><span>English</span><i class="icon icon-caret-down"></i></a><div class="globe"><a href="/">简体</a><a href="/tw/">繁体</a></div></div>');
});

if(screen.width > 767){
    $('#navbar .nav > li:nth-child(2) a').attr('onclick',"window.open('/en/solution/35.html','_self')");
    $('#navbar .nav > li:nth-child(3) a').attr('onclick',"window.open('/en/mall.html','_self')");
    $('#navbar .nav > li:nth-child(4) a').attr('onclick',"window.open('/en/faq.html','_self')");
    $('#navbar .nav > li:nth-child(5) a').attr('onclick',"window.open('/en/profile/31.html','_self')");
    
    $(".dropdown").mouseover(function(e){
       $(this).addClass('open');
    });
    $(".dropdown").mouseout(function(e) {
       $(this).removeClass('open');
    });
}$(".col-main,.col-side").wrapAll('<div class="row"></div>');
;
function loadCartInfo(twinkle)
{
    $('#siteNav').load(createLink('misc', 'printTopBar'),
        function()
        {
            if(twinkle) 
            {
                bootbox.dialog(
                {  
                    message: v.addToCartSuccess,  
                    buttons:
                    {  
                        back:
                        {  
                            label:     v.lang.continueShopping,
                            className: 'btn-primary',  
                            callback:  function(){location.reload();}  
                        },
                        cart:
                        {  
                            label:     v.gotoCart,  
                            className: 'btn-primary',  
                            callback:  function(){location.href = createLink('cart', 'browse');}  
                        }  
                    }  
                });
            }
        }
    );
}
;
var hash = window.location.hash.substring(1);
var browserLanguage = navigator.language || navigator.userLanguage; 
var resolution      = screen.availWidth + ' X ' + screen.availHeight;
$.get(createLink('log', 'record', "hash=" + hash), {browserLanguage:browserLanguage, resolution:resolution});
