<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*
Powered by ueeshop.com		http://www.ueeshop.com
å¹¿å·žè”é›…ç½‘ç»œç§‘æŠ€æœ‰é™å…¬å¸		020-83226791
*/

var global_obj={
	timer:'',
	check_form:function(notnull_obj, format_obj, type, is_new){
		var flag = false,
			is_new = (typeof(arguments[3]) == 'undefined') ? 0 : 1,
            errorObj = new Object;
		if (notnull_obj) {
			notnull_obj.each(function(){
				var $lang = $(this).parents('.tab_txt').attr('lang'); //åŽå°è¯­è¨€ç‰ˆ
                if (!errorObj[$lang]) {
                    errorObj[$lang] = 0;
                }
				if (!$(this).find('input').length &amp;&amp; $.trim($(this).val()) == '') {
					if ($lang) {
                        //åŽå°è¯­è¨€ç‰ˆ
                        errorObj[$lang] += 1;
						$(this).parents('.rows').find('.tab_box_btn[data-lang='+$lang+']').addClass('empty');
						$('.r_con_wrap').animate({scrollTop:$(this).parents('.rows').position().top}, 0);
					}
					if ($(this).attr('parent_null')) {
                        //æç¤ºåœ¨çˆ¶çº§
						$(this).parent().css('border', '1px solid red').addClass('null');
						$(this).parents('[parent_null]').css('border', '1px solid red').addClass('null');
					} else {
						$(this).css('border', '1px solid red').addClass('null');
					}
					flag == false &amp;&amp; ($(this).focus());
					flag = true;
				} else {
					if (errorObj[$lang] == 0) {
                        $(this).parents('.rows').find('.tab_box_btn[data-lang='+$lang+']').removeClass('empty');
                    }
					if ($(this).attr('parent_null')) {
                        //æç¤ºåœ¨çˆ¶çº§
						$(this).parents('[parent_null]').removeAttr('style').removeClass('null');
					} else {
						$(this).removeAttr('style').removeClass('null');
					}
				}
			});
			//åŽå°è¯­è¨€ç‰ˆ
			$('.rows').find('.tab_box_row .tips').hide();
			$('.rows').find('.tab_box_row .tab_box_btn').each(function(){
				if ($(this).hasClass('empty')) {
					$(this).parents('.tab_box_row').find('.tips').show();
				}
			});
			if (flag){ return flag; };
		}
		if(format_obj){
			var reg={
				'MobilePhone':/^1[34578]\d{9}$/,
				'Telephone':/^(0\d{2,3})(-)?(\d{7,8})(-)?(\d{3,})?$/,
				'Fax':/^(0\d{2,3})(-)?(\d{7,8})(-)?(\d{3,})?$/,
				'Email':/^\w+[a-zA-Z0-9-.+_]+@[a-zA-Z0-9-.+_]+\.\w*$/,
				'Length':/^.*/
			};
			var tips={
				'MobilePhone':lang_obj.format.mobilephone,
				'Telephone':lang_obj.format.telephone,
				'Fax':lang_obj.format.fax,
				'Email':lang_obj.format.email,
				'Length':lang_obj.format.length
			};
			if(type==1){
				format_obj.each(function(){
					var o=$(this);
					if($.trim(o.val())){
						if(reg[o.attr('format')].test($.trim(o.val()))===false){
							o.css('border', '1px solid red').addClass('null');
							o.focus();
							flag=true;
						}
					}
				});
			}else{
				format_obj.each(function(){
					var o=$(this);
					var s=o.attr('format').split('|');
					if(!$.trim(o.val())){
						flag=false;
					}else if((s[0]=='Length' &amp;&amp; $.trim(o.val()).length!=parseInt(s[1])) || (s[0]!='Length' &amp;&amp; reg[s[0]].test($.trim(o.val()))===false)){
						if(is_new==1){
							global_obj.new_win_alert(tips[s[0]].replace('%num%', s[1]));
						}else{
							global_obj.win_alert(tips[s[0]].replace('%num%', s[1]));
						}
						o.css('border', '1px solid red').addClass('null');
						o.focus();
						flag=true;
						return false;
					}
				});
			}
		}
		return flag;
	},

	win_alert:function(tips, callback, type, is_pop, status){
		var type=(typeof(arguments[2])=='undefined')?'alert':arguments[2],
			is_pop=(typeof(arguments[3])=='undefined')?0:1,
			status=(typeof(arguments[4])=='undefined')?'':arguments[4], //status =&gt; success(æˆåŠŸ) fail(å¤±è´¥)
			not_remove_mask=$('.not_remove_mask:visible').length?1:0,	//ä¸åˆ&nbsp;é™¤é®ç½©å±‚
			html;
		$('#div_mask, .win_alert').remove();//ä¼˜å…ˆæ¸…ç©ºå¤šä½™çš„å¼¹å‡ºæ¡†
		global_obj.div_mask();
		html='&lt;div class="win_alert"&gt;';
			html+='&lt;div class="win_close"&gt;&lt;button class="close"&gt;x&lt;/button&gt;&lt;/div&gt;';
			html+='&lt;div class="win_tips '+status+'"&gt;'+tips+'&lt;/div&gt;';
			html+='&lt;div class="win_btns"&gt;';
				if(type=='confirm'){
					html+='&lt;button class="btn btn_sure"&gt;'+lang_obj.global.confirm+'&lt;/button&gt;';
					html+='&lt;button class="btn btn_cancel"&gt;'+lang_obj.global.cancel+'&lt;/button&gt;';
				}else{
					html+='&lt;button class="btn btn_sure btn_once_sure"&gt;'+lang_obj.global.confirm+'&lt;/button&gt;';
				}
			html+='&lt;/div&gt;';
		html+='&lt;/div&gt;';
		$('body').prepend(html);
		$('.win_alert').css({left:$(window).width()/2-$('.win_alert').outerWidth(true)/2,top:'30%'});
		if(type=='confirm'){
			$('.win_alert').delegate('.close, .btn_cancel', 'click', function(){
				$('.win_alert').remove();
				is_pop==0 &amp;&amp; not_remove_mask==0 &amp;&amp; global_obj.div_mask(1);
			}).delegate('.btn_sure', 'click', function(){
				$.isFunction(callback) &amp;&amp; callback();
				$('.win_alert .close').click();
			});
			/*$(document).keyup(function(event){	//Escã€Spaceå–æ¶ˆæç¤ºï¼Œç©ºæ&nbsp;¼ã€Enterç¡®å®šæç¤º
				if(event.keyCode==27 || event.keyCode==8){
					$('.win_alert .close').click();
				}else if(event.keyCode==32 || event.keyCode==13){
					$.isFunction(callback) &amp;&amp; callback();
					$('.win_alert .close').click();
				}
			});*/
		}else{
			$('.win_alert').delegate('.close, .btn_sure', 'click', function(){
				$.isFunction(callback) &amp;&amp; callback();
				$('.win_alert').remove();
				is_pop==0 &amp;&amp; not_remove_mask==0 &amp;&amp; global_obj.div_mask(1);
			});
			/*$(document).keyup(function(event){	//Escã€Enterã€Spaceã€ç©ºæ&nbsp;¼å–æ¶ˆæç¤º
				if(event.keyCode==13 || event.keyCode==8 || event.keyCode==27 || event.keyCode==32) {
					$('.win_alert .close').click();
				}
			});*/
		}
		return false;
	},

	new_win_alert:function(tips, callback, type, is_pop, status, btn){ //status =&gt; await(å¹å·) fail(çº¢å‰)
		var type=(typeof(arguments[2])=='undefined')?'alert':arguments[2],
			is_pop=(typeof(arguments[3])=='undefined')?0:1,
			status=(typeof(arguments[4])=='undefined')?'await':arguments[4],
			btn=(typeof(arguments[5])=='undefined')?lang_obj.global.confirm:arguments[5],
			html;
		$('#div_mask, .new_win_alert').remove();//ä¼˜å…ˆæ¸…ç©ºå¤šä½™çš„å¼¹å‡ºæ¡†
		global_obj.div_mask();
		html='&lt;div class="new_win_alert themes_popups"&gt;';
			html+='&lt;div class="win_close"&gt;&lt;button class="close"&gt;&lt;/button&gt;&lt;/div&gt;';
			html+='&lt;div class="win_tips"&gt;&lt;i class="icon_success_status '+status+'"&gt;&lt;/i&gt;'+tips+'&lt;/div&gt;';
			html+='&lt;div class="win_btns"&gt;';
				if(type=='confirm') html+='&lt;button class="btn btn_cancel"&gt;'+lang_obj.global.cancel+'&lt;/button&gt;';
				html+='&lt;button class="btn btn_sure"&gt;'+btn+'&lt;/button&gt;';
			html+='&lt;div class="clear"&gt;&lt;/div&gt;';
			html+='&lt;/div&gt;';
		html+='&lt;/div&gt;';
		$('body').prepend(html);
		$('.new_win_alert').css({left:$(window).width()/2-$('.new_win_alert').outerWidth()/2, top:'30%'});
		if(type=='confirm'){
			$('.new_win_alert').delegate('.close, .btn_cancel', 'click', function(){
				$('.new_win_alert').remove();
				is_pop==0 &amp;&amp; global_obj.div_mask(1);
			}).delegate('.btn_sure', 'click', function(){
				$.isFunction(callback) &amp;&amp; callback();
				$('.new_win_alert .close').click();
			});
			/*$(document).keyup(function(event){	//Escã€Spaceå–æ¶ˆæç¤ºï¼Œç©ºæ&nbsp;¼ã€Enterç¡®å®šæç¤º
				if(event.keyCode==27 || event.keyCode==8){
					$('.new_win_alert .close').click();
				}else if(event.keyCode==32 || event.keyCode==13){
					$.isFunction(callback) &amp;&amp; callback();
					$('.new_win_alert .close').click();
				}
			});*/
		}else{
			$('.new_win_alert').delegate('.close, .btn_sure', 'click', function(){
				$.isFunction(callback) &amp;&amp; callback();
				$('.new_win_alert').remove();
				is_pop==0 &amp;&amp; global_obj.div_mask(1);
			});
			/*$(document).keyup(function(event){	//Escã€Enterã€Spaceã€ç©ºæ&nbsp;¼å–æ¶ˆæç¤º
				if(event.keyCode==13 || event.keyCode==8 || event.keyCode==27 || event.keyCode==32) {
					$('.win_alert .close').click();
				}
			});*/
		}
		return false;
	},

	/*
	 *	@param:	tips			æç¤ºå†…å®¹
	 *	@param:	status			ç±»åž‹ï¼Œç•™ç©º(æ‰“é’©) await(å¹å·) fail(çº¢å‰) loading(åŠ&nbsp;è½½ä¸­)
	 *	@param:	time			åœç•™æ—¶é—´ (-1: é’ˆå¯¹loadingæ•ˆæžœå›ºå®šæ˜¾ç¤º)
	 *	@param:	pos_top			ä¸Žé¡¶éƒ¨çš„è·ç¦»
	 *	@param:	no_remove_mask	æ˜¯å¦ä¼˜å…ˆæ¸…é™¤å¤šä½™çš„å¼¹å‡ºæ¡†
	 */
	win_alert_auto_close:function(tips, status, time, pos_top, no_remove_mask){
		var status=(typeof(arguments[1])=='undefined')?'await':arguments[1],
			time=(typeof(arguments[2])=='undefined' || !arguments[2])?'2000':arguments[2],
			pos_top=(typeof(arguments[3])=='undefined' || !arguments[3])?'40%':arguments[3],
			no_remove_mask=(typeof(arguments[4])=='undefined')?1:arguments[4],
			html='';
		if(no_remove_mask) $('#div_mask, .new_win_alert').remove();//ä¼˜å…ˆæ¸…ç©ºå¤šä½™çš„å¼¹å‡ºæ¡†
		if(status!='loading' || (status=='loading' &amp;&amp; time==-1)){
			//é™¤äº†loading Or å›ºå®šæ˜¾ç¤ºloading
			html+='&lt;div class="new_win_alert win_alert_auto_close'+(status=='loading'?' win_alert_loading':'')+'"&gt;';
			html+=	'&lt;div class="win_tips"&gt;&lt;i class="icon_success_status '+status+'"&gt;&lt;/i&gt;'+tips+'&lt;/div&gt;';
			html+='&lt;/div&gt;';
			$('body').prepend(html);
			$('.new_win_alert').css({left:$(window).width()/2-$('.new_win_alert').outerWidth(true)/2, top:pos_top});
		}
		clearTimeout(global_obj.timer);
		if(status!='loading' || (status=='loading' &amp;&amp; time&gt;=0)){
			//é™¤äº†loading Or è®¡æ—¶è‡ªåŠ¨å…³é—­loading
			global_obj.timer=setTimeout(function(){
				$('.new_win_alert').remove();
			}, time);
		}
		return false;
	},

	div_mask:function(remove){
		var obj=(typeof(arguments[1])=='undefined')?'':arguments[1],
			$obj = $('body');
			if (typeof(obj) == 'object') $obj = obj;
		if(remove==1){
			$('#div_mask').remove();
		}else{
			if(!$('#div_mask').size()){
				$obj.prepend('&lt;div id="div_mask"&gt;&lt;/div&gt;');
				$('#div_mask').css({width:'100%', height:$(document).height(), overflow:'hidden', position:'fixed', top:0, left:0, background:'#000', opacity:0.6, 'z-index':10000});
			}
		}
	},

	data_posting:function(display, tips){
		if(display){
			$('body').prepend('&lt;div id="data_posting"&gt;&lt;img src="/static/ico/data_posting.gif" style="margin-top: 4px;display: inline-block;vertical-align: top;" width="16" height="16" align="absmiddle" /&gt;&amp;nbsp;&amp;nbsp;'+tips+'&lt;/div&gt;');
			$('#data_posting').css({
				width:'188px',
				height:'24px',
				'line-height':'24px',
				padding:'0 8px',
				overflow:'hidden',
				border:'1px solid #bbb',
				background:'#ddd',
				position:'fixed',
				top:'40%',
				left:'0',
				right:'0',
				margin:'auto',
				'z-index':10001
			});
		}else{
			setTimeout('$("#data_posting").remove();', 500);
		}
	},

	urlencode:function(str) {
		str = (str + '').toString();
		return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+');
	},

	json_encode_data:function(value){
		var result=new Object();
		if(typeof(value)=='string' &amp;&amp; value){
			if(typeof(JSON)=='object'){
				result=JSON.parse(value);
			}else{
				var ary, arr, key;
				ary=value.substr(1,value.length-2).split(',"');//è¸¢èµ°{}
				for(var i=0; i&lt;ary.length; i++){
					arr=ary[i].split(':');
					key=parseInt(isNaN(arr[0]) ? (i==0?arr[0].substr(1,arr[0].length-2):arr[0].substr(0,arr[0].length-1)): arr[0]);//ç¡®ä¿é”®æ˜¯æ•°å­—
					if(arr[1].substr(0,1)=='['){//å€¼ä¸ºæ•°ç»„
						result[key]=arr[1].substr(1,arr[1].length-2).split(',');
					}else{
						result[key]=arr[1];
					}
				}
			}
		}else{
			result=value;
		}
		return result;
	},

	json_decode_data:function(value){
		var result;
		if(typeof(value)=='object'){
			if(typeof(JSON)=='object'){
				result=JSON.stringify(value);
			}else{
				result='';
				for(k in value){
					if(global_obj.is_array(value[k])){
						result+=('"'+k+'":['+value[k]+'],');
					}else{
						result+=('"'+k+'":"'+value[k]+'",');
					}
				}
				result='{'+result.substr(0,result.length-1)+'}';
			}
		}else{
			result=value;
		}
		return result;
	},

	in_array:function(needle, arr){
		for(var i=0; i&lt;arr.length &amp;&amp; arr[i]!=needle; i++);
		return !(i==arr.length);
	},

	is_array:function(data){
		if(Object.prototype.toString.call(data)=='[object Array]'){
			return true;
		}else{
			return false;
		}
	},

	base64_encode:function(str){
		var c1, c2, c3;
		var base64EncodeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
		var i = 0, len= str.length, string = '';
		while (i &lt; len){
			c1 = str.charCodeAt(i++) &amp; 0xff;
			if (i == len){
				string += base64EncodeChars.charAt(c1 &gt;&gt; 2);
				string += base64EncodeChars.charAt((c1 &amp; 0x3) &lt;&lt; 4);
				string += "==";
				break;
			}
			c2 = str.charCodeAt(i++);
			if (i == len){
				string += base64EncodeChars.charAt(c1 &gt;&gt; 2);
				string += base64EncodeChars.charAt(((c1 &amp; 0x3) &lt;&lt; 4) | ((c2 &amp; 0xF0) &gt;&gt; 4));
				string += base64EncodeChars.charAt((c2 &amp; 0xF) &lt;&lt; 2);
				string += "=";
				break;
			}
			c3 = str.charCodeAt(i++);
			string += base64EncodeChars.charAt(c1 &gt;&gt; 2);
			string += base64EncodeChars.charAt(((c1 &amp; 0x3) &lt;&lt; 4) | ((c2 &amp; 0xF0) &gt;&gt; 4));
			string += base64EncodeChars.charAt(((c2 &amp; 0xF) &lt;&lt; 2) | ((c3 &amp; 0xC0) &gt;&gt; 6));
			string += base64EncodeChars.charAt(c3 &amp; 0x3F)
		}
		return string
	},

	htmlspecialchars:function(str){
		str = str.replace(/&amp;/g, '&amp;amp;');
		str = str.replace(/&lt;/g, '&amp;lt;');
		str = str.replace(/&gt;/g, '&amp;gt;');
		str = str.replace(/"/g, '&amp;quot;');
		str = str.replace(/'/g, '&amp;#039;');
		return str;
	},

	htmlspecialchars_decode:function(str){
		str = str.replace(/&amp;amp;/g, '&amp;');
		str = str.replace(/&amp;lt;/g, '&lt;');
		str = str.replace(/&amp;gt;/g, '&gt;');
		str = str.replace(/&amp;quot;/g, '"');
		str = str.replace(/&amp;#039;/g, "'");
		return str;
    },

	setCookie:function(name, value, expiredays){
		var exdate=new Date();
		exdate.setDate(exdate.getDate()+expiredays);
		document.cookie=name+"="+escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
	},

	getCookie:function(name){
		if(document.cookie.length&gt;0){
			start=document.cookie.indexOf(name+"=");
			if(start!=-1){
				start=start+(name.length+1);
				end=document.cookie.indexOf(";", start);
				if(end==-1) end=document.cookie.length;
				return unescape(document.cookie.substring(start, end));
			}
		}
		return "";
	},

	delCookie:function(name, expiredays){
		var exdate=new Date();
		exdate.setDate(exdate.getDate()-1);
		var value=global_obj.getCookie(name)
		if(value){
			document.cookie=name+"="+escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
		}
	},

	Waterfall:function(container, colWidth, colCount, cls){
		function Waterfall(param){
		    this.id = typeof param.container == 'string' ? document.getElementById(param.container) : param.container;
		    this.colWidth = param.colWidth;
		    this.colCount = param.colCount || 4;
		    this.cls = param.cls &amp;&amp; param.cls != '' ? param.cls : 'wf-cld';
		    this.init();
		}
		//ç€‘å¸ƒæµ
		Waterfall.prototype = {
		    getByClass:function(cls,p){
		        var arr = [],reg = new RegExp("(^|\\s+)" + cls + "(\\s+|$)","g");
		        var nodes = p.getElementsByTagName("*"),len = nodes.length;
		        for(var i = 0; i &lt; len; i++){
		            if(reg.test(nodes[i].className)){
		                arr.push(nodes[i]);//
		                reg.lastIndex = 0;
		            }
		        }
		        return arr;
		    },
		    maxArr:function(arr){
		        var len = arr.length,temp = arr[0];
		        for(var ii= 1; ii &lt; len; ii++){
		            if(temp &lt; arr[ii]){
		                temp = arr[ii];
		            }
		        }
		        return temp;
		    },
		    getMar:function(node){
		        var dis = 0;
		        if(node.currentStyle){
		            dis = parseInt(node.currentStyle.marginBottom);
		        }else if(document.defaultView){
		            dis = parseInt(document.defaultView.getComputedStyle(node,null).marginBottom);
		        }
		        return dis;
		    },
		    getMinCol:function(arr){
		        var ca = arr,cl = ca.length,temp = ca[0],minc = 0;
		        for(var ci = 0; ci &lt; cl; ci++){
		            if(temp &gt; ca[ci]){
		                temp = ca[ci];
		                minc = ci;
		            }
		        }
		        return minc;
		    },
		    init:function(){
		        var _this = this;
		        var col = [],//åˆ—é«˜
		            iArr = [];//ç´¢å¼•
		        var nodes = _this.getByClass(_this.cls,_this.id),len = nodes.length;
		        for(var i = 0; i &lt; _this.colCount; i++){
		            col[i] = 0;
		        }
		        for(var i = 0; i &lt; len; i++){
		            nodes[i].h = nodes[i].offsetHeight + _this.getMar(nodes[i]);
		            iArr[i] = i;
		        }

		        for(var i = 0; i &lt; len; i++){
		            var ming = _this.getMinCol(col);
		            nodes[i].style.left = ming * _this.colWidth + "px";
		            nodes[i].style.top = col[ming] + "px";
		            col[ming] += nodes[i].h;
		        }

		        _this.id.style.height = _this.maxArr(col) + "px";
		    }
		};

		new Waterfall({
		    "container": container, //id
		    "colWidth": colWidth,
		    "colCount": colCount,//parseInt($('#themes_box').width()/220)
		    "cls": cls //class
		});

	},

	sort:function(a,b){ //å±žæ€§é”®å€¼æŽ’åº Ov: æ˜¯æµ·å¤–ä»“ è¦æŽ’åˆ°æœ€åŽ
		if(a.indexOf('Ov:')!=-1){
			a=99999999;
		}
		if(b.indexOf('Ov:')!=-1){
			b=99999999;
		}
		return a - b;
	},

	checkCharLength:function(box,content){ //å­—é•¿åˆ¤æ–­
		var e=$(box);
		e.change(function(event){
			var curLength=e.val().length;
			var maxlength=e.attr('maxlength');
			if(curLength&gt;maxlength){
				e.val($.trim(e.val()).substr(0,maxlength)).trigger('change');
				return;
			}
			$('#review_form .font_tips em').text(curLength);
			$(content).text(maxlength-curLength).parent().toggleClass('red', curLength&gt;maxlength);
		}).keyup(function(){
			e.trigger('change');
		});
	},

	/**
	 *  èŽ·å–å½“å‰åœ°å€urlçš„getå‚æ•°
	 *  @param value[string] éœ€è¦èŽ·å–getçš„å‚æ•°
	 *  @param selecter[string]  é€‰æ‹©å™¨ï¼Œä¸€èˆ¬ä¸éœ€è¦ï¼Œæœ‰äº›åœ¨iframeé‡Œé¢çš„ï¼Œè¿™é‡Œå°±å†™parent
	 */
	query_get:function(value, selecter)
	{
		if (selecter == 'parent') {
			var query = window.parent.location.search.substring(1);
		} else {
			var query = window.location.search.substring(1);
		}
		var vars = query.split("&amp;");
		for (var i = 0; i &lt; vars.length; i++) {
			var pair = vars[i].split("=");
			if(pair[0] == value) return pair[1];
		}
		return false;
	}

}

// formå¯¹è±¡ è½¬æ¢æˆ jsonå¯¹è±¡
$.fn.serializeObject = function() {
	var self = this,
		json = {},
		push_counters = {},
		patterns = {
			"validate": /^[a-zA-Z][a-zA-Z0-9_]*(?:\[(?:\d*|[a-zA-Z0-9_]+)\])*$/,
			"key":      /[a-zA-Z0-9_]+|(?=\[\])/g,
			"push":     /^$/,
			"fixed":    /^\d+$/,
			"named":    /^[a-zA-Z0-9_]+$/
		};

	this.build = function(base, key, value){
		base[key] = value;
		return base;
	};

	this.push_counter = function(key){
		if(push_counters[key] === undefined){
			push_counters[key] = 0;
		}
		return push_counters[key]++;
	};
	
	$.each($(this).serializeArray(), function(){

		// skip invalid keys
		if(!patterns.validate.test(this.name)){
			return;
		}

		var k,
			keys = this.name.match(patterns.key),
			merge = this.value,
			reverse_key = this.name;

		while((k = keys.pop()) !== undefined){

			// adjust reverse_key
			reverse_key = reverse_key.replace(new RegExp("\\[" + k +"\\]$"), '');

			// push
			if(k.match(patterns.push)){
				merge = self.build([], self.push_counter(reverse_key), merge);
			}

			// fixed
			else if(k.match(patterns.fixed)){
				merge = self.build([], k, merge);
			}

			// named
			else if(k.match(patterns.named)){
				merge = self.build({}, k, merge);
			}
		}

		json = $.extend(true, json, merge);
	});

	return json;
};

//Object =&gt; string
$.toJSON = typeof JSON == "object" &amp;&amp; JSON.stringify ? JSON.stringify: function(e) {
	if (e === null) return "null";
	var t, n, r, i, s = $.type(e);
	if (s === "undefined") return undefined;
	if (s === "number" || s === "boolean") return String(e);
	if (s === "string") return $.quoteString(e);
	if (typeof e.toJSON == "function") return $.toJSON(e.toJSON());
	if (s === "date") {
		var o = e.getUTCMonth() + 1,
		u = e.getUTCDate(),
		a = e.getUTCFullYear(),
		f = e.getUTCHours(),
		l = e.getUTCMinutes(),
		c = e.getUTCSeconds(),
		h = e.getUTCMilliseconds();
		o &lt; 10 &amp;&amp; (o = "0" + o);
		u &lt; 10 &amp;&amp; (u = "0" + u);
		f &lt; 10 &amp;&amp; (f = "0" + f);
		l &lt; 10 &amp;&amp; (l = "0" + l);
		c &lt; 10 &amp;&amp; (c = "0" + c);
		h &lt; 100 &amp;&amp; (h = "0" + h);
		h &lt; 10 &amp;&amp; (h = "0" + h);
		return '"' + a + "-" + o + "-" + u + "T" + f + ":" + l + ":" + c + "." + h + 'Z"'
	}
	t = [];
	if ($.isArray(e)) {
		for (n = 0; n &lt; e.length; n++) t.push($.toJSON(e[n]) || "null");
		return "[" + t.join(",") + "]"
	}
	if (typeof e == "object") {
		for (n in e) if (hasOwn.call(e, n)) {
			s = typeof n;
			if (s === "number") r = '"' + n + '"';
			else {
				if (s !== "string") continue;
				r = $.quoteString(n)
			}
			s = typeof e[n];
			if (s !== "function" &amp;&amp; s !== "undefined") {
				i = $.toJSON(e[n]);
				t.push(r + ":" + i)
			}
		}
		return "{" + t.join(",") + "}"
	}
};

//string =&gt; Object
$.evalJSON = typeof JSON == "object" &amp;&amp; JSON.parse ? JSON.parse: function(str) {
	return eval("(" + str + ")")
};

var //escape=/["\\\x00-\x1f\x7f-\x9f]/g,
	meta={
		'\b': '\\b',
		'\t': '\\t',
		'\n': '\\n',
		'\f': '\\f',
		'\r': '\\r',
		'"': '\\"',
		'\\': '\\\\'
	},
	hasOwn=Object.prototype.hasOwnProperty;

$.quoteString = function (str) {
	if (str.match(escape)) {
		return '"' + str.replace(escape, function (a) {
			var c = meta[a];
			if (typeof c === 'string') {
				return c;
			}
			c = a.charCodeAt();
			return '\\u00' + Math.floor(c / 16).toString(16) + (c % 16).toString(16);
		}) + '"';
	}
	return '"' + str + '"';
};

//è§£å†³æµ®ç‚¹æ•°ç²¾åº¦ä¸¢å¤±é—®é¢˜
$.fn.floatingNumber = function(type, arg1, arg2) {
	var result = '';
	if (type == 'addition') {
		//åŠ&nbsp;æ³•
		var r1, r2, m;
		try {
			r1 = arg1.toString().split(".")[1].length;
		} catch(e) { r1 = 0; }
		try {
			r2 = arg2.toString().split(".")[1].length;
		} catch(e){ r2 = 0; }
		m = Math.pow(10, Math.max(r1, r2));
		result = (Math.round(arg1 * m) + Math.round(arg2 * m)) / m;
	} else if (type == 'subtraction') {
		//å‡æ³•
		var r1, r2, m, n;
		try {
			r1 = arg1.toString().split(".")[1].length;
		} catch(e) { r1 = 0; }
		try {
			r2 = arg2.toString().split(".")[1].length;
		} catch(e) { r2 = 0; }
		m = Math.pow(10, Math.max(r1, r2)); //åŠ¨æ€æŽ§åˆ¶ç²¾åº¦é•¿åº¦
		n = (r1 &gt;= r2) ? r1 : r2;
		result = parseFloat(((Math.round(arg1 * m) - Math.round(arg2 * m)) / m).toFixed(n));
	} else if (type == 'multiply') {
		//ä¹˜æ³•
		var m = 0, s1 = arg1.toString(), s2 = arg2.toString();
		try {
			m += s1.split(".")[1].length;
		} catch(e) {}
		try {
			m += s2.split(".")[1].length;
		} catch(e) {}
		result = Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m);
	} else if (type == 'division') {
		//é™¤æ³•
		var t1 = 0, t2 = 0, r1, r2;
		try {
			t1 = arg1.toString().split(".")[1].length;
		} catch(e) {}
		try {
			t2 = arg2.toString().split(".")[1].length;
		} catch(e) {}
		with (Math) {
			r1 = Number(arg1.toString().replace(".", ""));
			r2 = Number(arg2.toString().replace(".", ""));
			result = (r1 / r2) * pow(10, t2 - t1);
		}
	}
	return result;
}
Number.prototype.add = function(arg) {
	return $('html').floatingNumber('addition', arg, this);
};
Number.prototype.sub = function(arg) {
	return $('html').floatingNumber('subtraction', this, arg);
};
Number.prototype.mul = function (arg) {
	return $('html').floatingNumber('multiply', arg, this);
};
Number.prototype.div = function (arg) {
	return $('html').floatingNumber('division', this, arg);
};

//ä»·æ&nbsp;¼æ˜¾ç¤ºæ’ä»¶
$.fn.priceShow=function(){
	var $price=0;
	$(this).find('.price_data[data]').each(function(){
		$price=parseFloat($(this).attr('data')).mul(parseFloat(ueeshop_config.currency_rate));
		$(this).text($('html').iconvPriceFormat($price, 2, '', 1));
	});
}

//è´§å¸æ&nbsp;¼å¼æ˜¾ç¤º
$.fn.iconvPriceFormat = function(price) {
	var method		= (typeof(arguments[1]) == 'undefined') ? 0 : arguments[1],
		currency	= (typeof(arguments[2]) == 'undefined') ? '' : arguments[2],
		is_currency	= (typeof(arguments[3]) == 'undefined') ? 0 : arguments[3],
		symbol		= ueeshop_config.currency_symbols,
		price		= parseFloat(price),
		result		= 0;
	currency == '' &amp;&amp; (currency = ueeshop_config.currency);
	if (method == 0) {
		//ç¬¦å·+ä»·æ&nbsp;¼
		result = (Math.ceil(price.mul(10000).div(100)).div(100)).toFixed(2);
		is_currency == 1 &amp;&amp; currency &amp;&amp; (result = $('html').currencyFormat(result, currency));
		result = symbol + result;
	} else if (method == 1) {
		//ç¬¦å·
		result = symbol;
	} else {
		//ä»·æ&nbsp;¼
		result = (Math.ceil(price.mul(10000).div(100)).div(100)).toFixed(2);
		is_currency == 1 &amp;&amp; currency &amp;&amp; (result = $('html').currencyFormat(result, currency));
	}
	return result;
}

//è´§å¸æ&nbsp;¼å¼æ˜¾ç¤º
$.fn.currencyFormat=function(price, currency){
	var result=0;
	price=parseFloat(price);
	switch(currency){
		case 'USD':
		case 'GBP':
		case 'CAD':
		case 'AUD':
		case 'CHF':
		case 'HKD':
		case 'ILS':
		case 'MXN':
		case 'CNY':
		case 'SAR':
		case 'SGD':
		case 'NZD':
		case 'AED':
			result=price.formatMoney(2, '.', ','); break;
		case 'RUB':
			result=price.formatMoney(2, ',', ' '); break;
		case 'EUR':
		case 'BRL':
		case 'ARS':
			result=price.formatMoney(2, ',', '.'); break;
		case 'CLP':
		case 'NOK':
		case 'DKK':
		case 'COP':
			result=price.formatMoney(0, '', '.'); break;
		case 'JPY':
		case 'SEK':
		case 'KRW':
		case 'INR':
		case 'TWD':
			result=price.formatMoney(0, '', ','); break;
		default:
			result=price.formatMoney(2, '.', ','); break;
	}
	return result;
}

/**
 * å¯è§†åŒ–æ»šåŠ¨æ’ä»¶
 *
 * @param: data[object]	speed:æ»‘åŠ¨é€Ÿåº¦,é»˜è®¤300 count:äº§å“å¯è§†æ•°é‡,é»˜è®¤4 isTouch:å¼€å¯è§¦æ‘¸äº‹ä»¶,é»˜è®¤0 number:æ’ä»¶åºå·,é»˜è®¤0 callback:æ’ä»¶å›žè°ƒå‡½æ•°ï¼Œè´Ÿè´£æ’ä»¶åŠ&nbsp;è½½å®Œæ¯•åŽæ‰§è¡Œ
 *
 * æŒ‰é’®å‚è€ƒ: &lt;a href="javascript:;" rel="nofollow" data-btn-srcoll="æ’ä»¶åºå·" data-srcoll-direction="æ–¹å‘prevæˆ–è€…next"&gt;&lt;/a&gt;
 * ç»‘å®šå‚è€ƒ: $('#xxx').visualSrcoll({'speed':'500', 'isTouch':1});
*/
$.fn.visualSrcoll = function(data) {
    data = $.extend({
        obj: $(this),
        init: function() {
            this.self       = data.obj.html();
            this.html       = '';
            this.number     = data.number;
            this.index      = 0;
            this.speed      = data.speed || 300;
            this.count      = 4;
            this.isTouch    = data.isTouch || 0;
            this.element    = data.obj[0];
			this.callback	= data.callback || '';
			if (!this.element) {
				return false;
			}
            if (this.element.addEventListener) {
                if (this.isTouch == 1) {
                    this.element.addEventListener('touchstart', this, false);
                    this.element.addEventListener('touchmove', this, false);
                    this.element.addEventListener('touchend', this, false);
                }
                window.addEventListener('resize', this, false);
            }
            if (typeof(data.number) == 'undefined' &amp;&amp; $('.box_visual_srcoll').size() &gt; 0) {
                this.number = $('.box_visual_srcoll').size();
            }
			if (typeof(data.number) == 'undefined' &amp;&amp; $('.box_visual_srcoll').size() == 0) {
				this.number = 0;
			}
            this.html += '&lt;div class="srcoll_list"&gt;';
            this.html +=    '&lt;a href="javascript:;" rel="nofollow" class="srcoll_btn srcoll_btn_prev" data-btn-srcoll="' + this.number + '" data-srcoll-direction="prev"&gt;&lt;/a&gt;';
            this.html +=    '&lt;a href="javascript:;" rel="nofollow" class="srcoll_btn srcoll_btn_next" data-btn-srcoll="' + this.number + '" data-srcoll-direction="next"&gt;&lt;/a&gt;';
            this.html +=    '&lt;div class="srcoll_suit" style="width:100%; overflow:hidden;"&gt;';
            this.html +=        '&lt;div class="srcoll_suit_box"&gt;' + this.self + '&lt;/div&gt;';
            this.html +=    '&lt;/div&gt;';
            this.html += '&lt;/div"&gt;';
            data.obj.addClass('box_visual_srcoll').attr('data-box-srcoll', this.number).html(this.html);
            this.setup();
            this.bind();
			if ($.isFunction(this.callback)) {
				this.callback();
			}
        },
        setup: function() {
            this.suit           = data.obj.find('.srcoll_list .srcoll_suit');
            this.box            = data.obj.find('.srcoll_list .srcoll_suit_box');
            this.box.element    = this.box[0];
            this.children       = this.box.children();
            this.length         = this.children.size();
            //this.width          = this.children.eq(0).outerWidth(true);
			if (this.children.eq(0)[0].currentStyle) {
				//IEã€Opera
				this.cElement = this.children.eq(0)[0].currentStyle;
			} else {
				//FFã€Chromeã€Safari
				this.cElement = getComputedStyle(this.children.eq(0)[0], false);
			}
			this.width = parseFloat(this.cElement.width) + parseFloat(this.cElement.marginRight) + parseFloat(this.cElement.marginLeft); //ç²¾å‡†åˆ°å°æ•°ç‚¹
            if (this.length &lt; 2) {
                return false;
            }
            this.box.element.style.width = parseFloat(this.length * this.width + 1).toFixed(2) + 'px'; //1pxä¸ºé¢å¤–çš„åç§»é‡
            this.slide(this.index, 0);
			for (i = 1; i &lt;= this.length; ++i) {
				//å…¼å®¹å¯è§†åŒ–
				if ((i * this.width) &gt;= this.suit.width()) {
					this.count = i;
					if (((i - .5) * this.width) &gt;= this.suit.width()) {
						//å°šæœªè¶…è¿‡åŠä¸ª
						this.count = i - 1;
					}
					break;
				}
			}
        },
        bind: function() {
            $('*[data-btn-srcoll="' + this.number + '"]').on('click', function() {
                $(this).data('srcoll-direction') == 'prev' ? data.prev() : data.next();
            });
        },
        prev: function() {
            if (this.index) {
                this.slide(this.index - 1, this.speed);
            }
        },
        next: function() {
            if (this.index &lt; this.length - this.count) {
                this.slide(this.index + 1, this.speed);
            }
        },
        slide: function(index, speed) {
        	var moveWith = index * this.width;
        	var Offset = moveWith + this.suit.width() - this.length * this.width;
        	if(Offset &gt; 0) {
        		moveWith = moveWith - Offset;
        	}
            style = this.box.element.style;
            style.webkitTransitionDuration = style.MozTransitionDuration = style.msTransitionDuration = style.OTransitionDuration = style.transitionDuration = speed + 'ms';
            style.MozTransform = style.webkitTransform = 'translate3d(' + -(moveWith) + 'px, 0, 0)';
            style.msTransform = style.OTransform = 'translateX(' + -(moveWith) + 'px)';
            this.index = index;
        },
        handleEvent: function(e) {
            var that = this;
            if (!e.touches) {
                e.touches = new Array(e);
                e.scale = false;
            }
            switch (e.type) {
                case 'touchstart': this.touchStart(e); break;
                case 'touchmove': this.touchMove(e); break;
                case 'touchend': this.touchEnd(e); break;
                case 'resize': this.setup(); break;
            }
        },
        touchStart: function(e) {
            this.tConfig = {
                pageX: e.touches[0].pageX,
                pageY: e.touches[0].pageY,
				moveX: this.box.element.style.msTransform ? parseFloat(this.box.element.style.msTransform.replace('translateX(', '')) : 0
            };
            this.movingX = 0;
			this.surplus = parseFloat(this.box.width() - this.suit.width()) * -1;
			this.tMoveX = 0;
        },
        touchMove: function(e) {
            if (e.touches.length &gt; 1 || e.scale &amp;&amp; e.scale !== 1) return;
			this.movingX = e.touches[0].pageX - this.tConfig.pageX;
			if (this.count == 1) {
				this.movingX = this.movingX / (((this.index == 0 &amp;&amp; this.movingX &gt; 0) || (this.index == this.length - this.count &amp;&amp; this.movingX &lt; 0)) ? (Math.abs(this.movingX) / this.width + 1) : 1); //å·¦å³å°½å¤´çš„ç¼“å†²æ•ˆæžœ
				style = this.box.element.style;
				style.webkitTransitionDuration = style.MozTransitionDuration = style.msTransitionDuration = style.OTransitionDuration = style.transitionDuration = '0ms';
				style.MozTransform = style.webkitTransform = 'translate3d(' + (this.movingX - this.index * this.width) + 'px, 0, 0)';
				style.msTransform = style.OTransform = 'translateX(' + (this.movingX - this.index * this.width) + 'px)';
			} else {
				this.tMoveX = parseFloat(this.tConfig.moveX + this.movingX);
				if (this.tMoveX &gt; 0 || (this.tMoveX &lt; 0 &amp;&amp; this.tMoveX &lt; this.surplus)) {
					 //å·¦å³å°½å¤´çš„ç¼“å†²æ•ˆæžœ
					this.tMoveX = this.tConfig.moveX + (this.movingX / (Math.abs(this.tMoveX) / this.width + 1));
				}
				style = this.box.element.style;
				style.webkitTransitionDuration = style.MozTransitionDuration = style.msTransitionDuration = style.OTransitionDuration = style.transitionDuration = '0ms';
				style.MozTransform = style.webkitTransform = 'translate3d(' + this.tMoveX + 'px, 0, 0)';
				style.msTransform = style.OTransform = 'translateX(' + this.tMoveX + 'px)';
			}
        },
        touchEnd: function(e) {
        	if (this.movingX == 0) return false;  // åŽŸåœ°ç‚¹å‡»ï¼Œé€€å‡º
			if (this.count == 1) {
				var isSlideHalf = 1; //Math.abs(this.movingX) &gt; this.width / 2,
					isBoundary = (this.index == 0 &amp;&amp; this.movingX &gt; 0) || (this.index == this.length - this.count &amp;&amp; this.movingX &lt; 0); //å·¦å³ä¸¤è¾¹å°½å¤´
				this.slide(this.index + (isSlideHalf &amp;&amp; !isBoundary ? (this.movingX &lt; 0 ? 1 : -1) : 0), this.speed); //æ‹–å³è´Ÿæ•°ï¼Œæ‹–å·¦æ­£æ•°
			} else {
				this.tMoveX = this.tConfig.moveX + this.movingX;
				if (this.tMoveX &gt; 0) {
					//å·¦å°½å¤´
					this.slide(0, 0);
				} else if (this.tMoveX &lt; 0 &amp;&amp; this.tMoveX &lt; this.surplus) {
					//å³å°½å¤´
					this.slide(this.length - 1, 0);
				}
			}
        }
    }, data);
	data.init();
}

/**
 * å¯è§†åŒ–é€‰é¡¹å¡æ’ä»¶
 *
 * @param: data[object]	button:äº‹ä»¶è§¦å‘æŒ‰é’®(é€‰æ‹©å™¨) box:äº‹ä»¶è§¦å‘ç›’å­(é€‰æ‹©å™¨) current:é€‰ä¸­ç›¸å…³çš„æ&nbsp;·å¼ç±»å,é»˜è®¤current
 *
 * ç»‘å®šå‚è€ƒ: $('#xxx').visualTab({'button':'.category a', 'box':'.box', 'current':'cur FontBgColor', 'box_current':'cur FontBgColor'});
 */
$.fn.visualTab = function(data) {
    data = $.extend({
        obj: $(this),
        init: function() {
            this.button		= data.button;
            this.box		= data.box;
			this.current	= data.current || 'current';
			this.box_current= data.box_current || 'current';
			this.selector	= data.obj.find(this.button + ':visible').selector;
			this.selectorBox= data.obj.find(this.box).selector;
            this.bind();
        },
		bind: function() {
            data.obj.find(this.button + ':visible').on('click', function() {
				index = $(this).index(this.selector);
                data.display(index);
            });
        },
		display: function(index) {
			data.obj.find(this.button).eq(index).addClass(this.current).siblings(this.selector).removeClass(this.current);
			data.obj.find(this.box).eq(index).show().addClass(this.box_current).siblings(this.selectorBox).hide().removeClass(this.box_current);
        },
    }, data);
	data.init();
}

//å…·æœ‰å…¨å±€æ&nbsp;‡å¿—gçš„æ­£åˆ™è¡¨è¾¾å¼çš„å®šä¹‰æ–¹æ³•
String.prototype.replaceAll = function(s1, s2) {
    return this.replace(new RegExp(s1, "gm"), s2);
}

// å¯è§†åŒ–ç«‹å³è´­ä¹°æ’ä»¶æ¨¡å—
$.fn.VisualBuyNow = function (options) {
	$.fn.VisualBuyNow.defaults = {
		'item'		:	'.visual_buynow_item',  // å±žæ€§item
		'button'	:	'.visual_buynow_btn',  // buynowæŒ‰é’®
		'current'	:	'current'  // ç€è‰²æ&nbsp;‡è®°
	};
	let _this = this;
	let opts = $.extend({},$.fn.VisualBuyNow.defaults,options);
	let tips = function(tips){
		if ($(window).width() &lt; 768) {  // ç§»åŠ¨ç«¯
			$('html').tips_box(tips, 'error', '', 1);
		} else {
			global_obj.new_win_alert(tips);
		}
	};
	// é€‰æ‹©å±žæ€§
	_this.find(opts.item).on('click', function () {
		$(this).addClass(opts.current).find('input[type=hidden]').prop('disabled', false);
		$(this).siblings().removeClass(opts.current).find('input[type=hidden]').prop('disabled', true);
	});
	// ç‚¹å‡»buynowæŒ‰é’®
	_this.find(opts.button).on('click', function () {
		if (!_this.find(opts.item + '.current').size()) {  // æ²¡æœ‰é€‰æ‹©å±žæ€§
			tips(lang_obj.cart.batch_buy_option);
			return false;
		}
		let $Formdata = new FormData(_this[0]);
		$Formdata.append('IsBuyNow', 1);
		$Formdata.append('back', 1);
		_this.find(opts.button).attr('disabled', true);
		$.ajax({
			type: 'POST',
			url: '/?do_action=cart.additem',
			data: $Formdata,
			dataType: 'json',
			async: false,
			cache: false,
			contentType: false,
			processData: false,
			success: function(data) {
				if (data.ret == 1) {
					parseInt(ueeshop_config.FbPixelOpen)==1 &amp;&amp; $('html').fbq_addtocart(data.msg.item_price);
					//BuyNowç»Ÿè®¡
					analytics_click_statistics(1);//æš‚æ—¶ç»Ÿè®¡ä¸ºæ·»åŠ&nbsp;è´­ç‰©è½¦äº‹ä»¶
					$.post('/?do_action=cart.check_low_consumption&amp;t='+Math.random(), {'CId':data.msg.CId, 'ProId':data.msg.ProId}, function(json){ //æœ€ä½Žæ¶ˆè´¹é‡‘é¢åˆ¤æ–­
						if(json.ret==1){
							window.location.href=data.msg.location;
						}else{
							//ä¸ç¬¦åˆ
							var tips=(lang_obj.cart.consumption).replace('%low_price%', ueeshop_config.currency_symbols+$('html').currencyFormat(json.msg.low_price, ueeshop_config.currency)).replace('%difference%', ueeshop_config.currency_symbols+$('html').currencyFormat(json.msg.difference, ueeshop_config.currency));
							//global_obj.new_win_alert(tips, function(){ _this.find(opts.button).attr('disabled', false); }, '', undefined, 'await');
							tips(tips);
						}
					}, 'json');
				} else {
					_this.find(opts.button).attr('disabled', false);
					tips(data.msg);
				}
			}
		});
		return false;
	});
}

$.fn.GetTruePixel = function (options) {
	$.fn.GetTruePixel.defaults = {
		'type'		:	'width',  // width-å®½åº¦ height-é«˜åº¦
		'padding'	:	true,  // æ˜¯å¦éœ€è¦padding
		'border'	:	true,  // æ˜¯å¦éœ€è¦border
		'margin'	:	false  // æ˜¯å¦éœ€è¦margin
	};
	let _this = this;
	let opts = $.extend({},$.fn.GetTruePixel.defaults,options);
	let result;
	// getBoundingClientRectèŽ·å–åˆ°çš„æ˜¯åŒ…å«border,padding,marginçš„
	if (opts.type == 'width') {
		result = _this[0].getBoundingClientRect().width;
	} else if (opts.type == 'height') {
		result = _this[0].getBoundingClientRect().height;
	}
	let type_obj = {
		'width'		:	{
			'margin'	:	{'left':'margin-left', 'right':'margin-right'},
			'padding'	:	{'left':'padding-left', 'right':'padding-right'},
			'border'	:	{'left':'border-left-width', 'right':'border-right-width'}
		},
		'height'	:	{
			'margin'	:	{'left':'margin-top', 'right':'margin-bottom'},
			'padding'	:	{'left':'padding-top', 'right':'padding-bottom'},
			'border'	:	{'left':'border-top-width', 'right':'border-bottom-width'}
		}
	};
	if (opts.border == false) {
		result = result - parseFloat(_this.css(type_obj[opts.type].border.left)) - parseFloat(_this.css(type_obj[opts.type].border.right));
	}
	if (opts.padding == false) {
		result = result - parseFloat(_this.css(type_obj[opts.type].padding.left)) - parseFloat(_this.css(type_obj[opts.type].padding.right));
	}
	if (opts.margin == true) {
		result = result + parseFloat(_this.css(type_obj[opts.type].margin.left)) + parseFloat(_this.css(type_obj[opts.type].margin.right));
	}
	return result;
}</pre></body></html>