';
next_html += lrmiddlelayout.find(".next_inner.first").prop("outerhtml");
next_html += '
';
if(lrmiddlelayout.hasclass("mobilehidden") && body_width<768){
}else if(lrmiddlelayout.hasclass("desktophidden") && body_width>768){
}else{
jquery("body").append(pre_html+next_html);
}
}
if( jquery("#page .lrmiddlelayout").length==0){
jquery(".lrmiddlelayout.wrap").remove();
}
}
function bit_circliful(obj){
if( "undefined" != typeof obj ){
obj = obj.find(".ts-circliful-counter:not(.loaded)");
}else{
obj = jquery(".ts-circliful-counter:not(.loaded)");
}
if(obj.length==0) return;
if(typeof jquery.fn.circliful=="undefined"){
jquery.ondemandscript("/qfy-content/plugins/qfy_editor/js/jquery.circliful.min.js",function() {
_bit_circliful(obj);
})
}else{
_bit_circliful(obj);
}
}
function _bit_circliful(obj){
"undefined" != typeof jquery.fn.waypoint && "undefined" != typeof jquery.fn.circliful && obj.each(function() {
jquery(this).bind("inview", function(t, e, a, i) {
if (e) {
var r = jquery(this);
"top" == i || "bottom" == i || r.addclass("ts-circliful-visible")
} else {
var r = jquery(this);
r.removeclass("ts-circliful-visible")
}
})
jquery(this).addclass("loaded").circliful();
});
}
function formatnumber(s,o){
s = s+"";
if(/[^0-9\.]/.test(s)) return false;
s=s.replace(/^(\d*)$/,"$1.");
s=s.replace(".",o);
var re=/(\d)(\d{3},)/;
while(re.test(s))
s=s.replace(re,"$1,$2");
s=s.replace(/,(\d\d)$/,".$1");
s=s.substring(0,s.length-1);
return s;
}
function bit_counter(obj){
if( "undefined" != typeof obj ){
obj = obj.find(".ts-icon-counter");
if(obj.length==0) return false;
}else{
obj = jquery(".ts-icon-counter");
}
if(obj.length==0) return;
if(typeof jquery.fn.countto=="undefined"){
jquery.ondemandscript("/qfy-content/plugins/qfy_editor/js/jquery.countto.min.js",function() {
_bit_counter(obj);
})
}else{
_bit_counter(obj);
}
}
function bit_newgallery(obj){
if( "undefined" != typeof obj ){
obj = obj.find(".royalslider_gallery");
if(obj.length==0) return false;
}else{
obj = jquery(".royalslider_gallery");
}
if(obj.length==0) return;
if(typeof jquery.fn.royalslider=="undefined"){
jquery.ondemandscript("/feieditor/bitsite/js/jquery.royalslider.min.js",function() {
_bit_newgallery(obj);
})
}else{
_bit_newgallery(obj);
}
}
function fullscreenclick(obj){
jquery(obj).closest(".royalslider_gallery").find(".rsfullscreenicn").click();
}
function bit_myaccountlayout(){
var defaultindex=getcookie("qfy_order_index");
if(jquery(".qfy_account.tablayout").length>0 && jquery(".qfy_account.tablayout.ontab").length==0){
jquery(".qfy_account > .bitcommerce").append('