//本js文件为基础的公共的js/**界面显示需要使用的information对象*/function Information(){	//var定义私有变量	var INFORMATION_ALREADYREG = "请首先填写联系信息，点击<a href=\'/sellerInfoUpdate/sellerInfoUpdate.do?choseFlag=11\'>这里<\/a>填写。以便我们为您认证，认证后您就可以上架您的商品。<a href=\'#\'>如何进行认证？<\/a>";	var INFORMATION_STAYAUTH = "请填写<a href=\'/auth/authUpload.do?choseFlag=13\'>上传证件</a>，以便我们为您认证，认证后您就可以上架您的商品。<a href=\'#\'>如何进行认证？</a>";	var INFORMATION_WAITAUTH = "您已经成功提交认证信息！我们将在7个工作日内与您取得联系，认证成功后我们会发送一封激活邮件到您的注册邮箱。";	var INFORMATION_ALREADYAUTH = "恭喜！您已经通过了认证，我们给您发送了激活邮件 请登录您的邮箱收信。<br /> 如果您没有收到激活邮件，请用您的注册邮箱给我们发送邮件或者拨打我们的客服电话。";	var INFORMATION_AUTHFAILED = "您的联系信息联系信息、认证信息未通过审核! 建议您根据页面的提示修改重新提交！";	var email;	var appendMessage;		//this定义public函数	this.setEmail = function(v){		email = v;	}		//合并的提示信息	this.setAppendMessage = function(v1){		appendMessage = v1;	}		this.showInformation = function(flag){		var showMsg;		if(flag != null && flag == 1){			showMsg = INFORMATION_ALREADYREG;		}else if(flag == 2){			showMsg = INFORMATION_STAYAUTH;		}else if(flag == 3){			showMsg = INFORMATION_WAITAUTH;		}else if(flag == 5){			showMsg = INFORMATION_ALREADYAUTH;		}else if(flag == 4){			showMsg = INFORMATION_AUTHFAILED;		}				if(appendMessage != null && appendMessage != ''){			showMsg = showMsg + "<br/>" + appendMessage;		}		showMessage('information','tips',showMsg);	}}/*隐藏或显示元素的交互*/function chkboxSwitch(objname, ischecked) {	var obj = document.getElementById(objname);		if(ischecked){			obj.className = "show";		} else {			obj.className = "hide";		}	}/*隐藏或显示元素的交互,隐藏后仍然占位*/function layerSwitch(objname) {	var obj = document.getElementById(objname);		if(obj.style.display != "none"){			obj.style.display = "none";		} else {			obj.style.display = "block";		}	}function radioShow(objname) {	var obj = document.getElementById(objname);	if(obj.className == "hide"){		obj.className = "show";		}}function radioHide(objname) {	var obj = document.getElementById(objname);	if(obj.className == "show"){		obj.className = "hide";		}}function inputShow(objname){	var obj = document.getElementById(objname);	obj.readOnly = false;	}function inputHide(objname){	var obj = document.getElementById(objname);	obj.value = '';	obj.readOnly = true;	}var mask_width = 800;var edi = false;var firsshow = 0;/* ================================== *//*  M A S K   P A N E L   B E G I N   *//* ================================== */var SHADOW = "<table cellpadding='0' cellspacing='0' id='shadow_table'>"+ "<tr>"+ "<td class='layer_shadow_lt'></td>"+ "<td class='layer_shadow_t'></td>"+ "<td class='layer_shadow_rt'></td>"+ "</tr>"+ "<tr>"+ "<td class='layer_shadow_l'><img src='http://image.linkchina.com/buyer/spacer.gif' width='11' height='1' /></td>"+ "<td class='layer_center'>"+ "<img alt='close' title='close' onclick='closeMask()' src='http://image.linkchina.com/buyer/icon_close.gif' class='layer_close'/><div id='layer_con'>loading...</div></td>"+ "<td valign='top' id='r_td'>"+ "<table cellpadding='0' cellspacing='0' class='layer_shadow_rtable'>"+ "<tr>"+ "<td class='layer_shadow_rct'></td>"+ "</tr>"+ "<tr>"+ "<td id='layer_shadow_r'><img src='http://image.linkchina.com/buyer/spacer.gif' width='11' height='1' /></td>"+ "</tr>"+ "<tr>"+ "<td class='layer_shadow_rcb'></td>"+ "</tr>"+ "</table>"+ "</td>"+ "</tr>"+ "<tr>"+ "<td class='layer_shadow_lb'></td>"+ "<td>"+ "<table cellpadding='0' cellspacing='0' width='100%'>"+ "<tr>"+ "<td class='layer_shadow_lcb'></td>"+ "<td class='layer_shadow_b' style='font-size:0.1em'>&nbsp;</td>"+ "<td class='layer_shadow_bcr'></td>"+ "</tr>"+ "</table>"+ "</td>"+ "<td class='layer_shadow_rb'></td>"+ "</tr>"+ "</table>";var MASK_WIDTH = 800;var EDITING_NOW = false;var FIRST_SHOW = 0;var MASK_OPACITY = 0;$(window).resize(function(event){ 		if(EDITING_NOW == true){		initMask();	}	//document.title = $('#accountProductsTit');	//document.title = (typeof(setVisNum) == "function");	if(typeof(setVisNum) == "function"){		setTimeout("setVisNum()",300);	}		if($('#order_container').width() != null){		setTimeout("resizeWidth()",200);	}	return;	});function initMask(dynamicWidth) {	if (!document.all){		var w = parseInt(window.innerWidth);//窗口可见宽度		var h = parseInt(window.innerHeight);//窗口可见高度		var x = parseInt(window.pageXOffset);//页面滚动的宽度		var y = parseInt(window.pageYOffset);//页面滚动的高度	}else{		var w = parseInt(document.documentElement.clientWidth);//窗口可见宽度		var h = parseInt(document.documentElement.clientHeight);//窗口可见高度		var x = parseInt(document.documentElement.scrollLeft);//页面滚动的宽度		var y = parseInt(document.documentElement.scrollTop);//页面滚动的高度	}	if(EDITING_NOW == false) return;		var panl = document.getElementById("panel_container");	var msk = document.getElementById("panel_mask");	var shadow = document.getElementById("shadow_table");		if(typeof(dynamicWidth) != "number"){		dynamicWidth = MASK_WIDTH;	}		var m_w = (w - parseInt(shadow.offsetWidth)) / 2;		var panl_h = parseInt(shadow.offsetHeight);	var body_h = parseInt(document.body.offsetHeight);		var real_H = findMax(h, panl_h, body_h);	if(real_H <= panl_h) {		real_H = real_H + 60;	}		msk.style.width = (w < 992) ? "992px" : w + "px";	//msk.style.width = (w < parseInt(panl.offsetWidth)) ? parseInt(panl.offsetWidth) + "px" : w + "px";	msk.style.height = real_H + "px"; 		shadow.style.left = (m_w <= 0) ? "0px" : m_w + "px";	//alert("scroll go top from here!");	if(FIRST_SHOW == 0){		shadow.style.top = y + 20 + "px";//别下沉!		}		var final_panl_h = panl_h + y + 20;	if(final_panl_h >= real_H) {		msk.style.height = final_panl_h + "px";	}		var r_shadow_h = document.getElementById("layer_shadow_r");	//r_shadow_h.style.height = parseInt(shadow.offsetHeight) + "px";	r_shadow_h.style.height = document.getElementById("layer_con").offsetHeight + "px";		FIRST_SHOW++;	}function giveH(){	var shadow = document.getElementById("shadow_table");	var sh = parseInt(shadow.offsetHeight) - 32 + "px";	var r_shadow_h = document.getElementById("layer_shadow_r");	r_shadow_h.style.height = sh;}function findMax (a, b, c) {	if(a>b) {		if(a > c){			return a;			} else {			return c;			}	} else {		if(b > c){			return b;			} else {			return c;			}	}}function openMask(url, mw, transp, fn) {		if(FIRST_SHOW==0){		writeCss();	}	var panl = document.getElementById("panel_container");	var msk = document.getElementById("panel_mask");		//transp = (transp>=40) ? 60 : 0;	var transp = 60;		if(document.all){		if(EDITING_NOW == false){			var selectObj = document.all.tags("SELECT");			if(selectObj.length > 0) {				for (i = 0; i < selectObj.length; ++i){					if(selectObj[i].nodeName == "SELECT" ){						selectObj[i].style.visibility = "hidden";					}				}			}		}	}	msk.style.position = "absolute";	msk.style.left = "0px";	msk.style.top = "0px";	msk.style.background = "#000";	msk.style.zIndex = 10;		//panl.style.display = "none";	panl.style.position = "absolute";		panl.style.zIndex = 11;	//panl.style.border = "1px solid #ff3";	panl.style.width = "100px";	panl.style.height = "100px";	panl.style.left = "0px";	panl.style.top = "0px";	panl.style.display = "block";	msk.style.display = "block";	if(document.all){		msk.style.filter = "alpha(opacity="+transp+")";	} else {		msk.style.opacity = transp / 100;	}	EDITING_NOW = true;	panl.innerHTML = SHADOW;	var shadow = document.getElementById("shadow_table");	shadow.style.position = "absolute";		//shadow.style.border = "1px solid #0f3";	shadow.style.zIndex = 12;	shadow.style.width = mw + "px";						var Shadow_Container = document.getElementById("layer_con");	initMask(mw);	openMaskDiv("layer_con", url, fn); //Ajax 方法，fn是回调函数		setTimeout("initMask("+mw+")",200);	var MASK_WIDTH = mw;		//panl.style.top = (h - parseInt(panl.offsetHeight)) / 2 + "px";}function closeMask() {	/*	if(document.all){		stop();	}	*/	//alert("PD请注意：\n如果ajax的页面无法载入，将导致Buyer无法关闭Mask.\n所以请在各自页面中删除代码如下\n<img alt='close' onclick='closeMask()' src='http://image.linkchina.com/buyer/icon_close.gif' class='layer_close'/>");	var panl = document.getElementById("panel_container");	var msk = document.getElementById("panel_mask");	var Shadow_Container = document.getElementById("layer_con");	if(document.all){		if(EDITING_NOW == true){			var selectObj = document.all.tags("SELECT");						if(selectObj.length > 0) {				for (i = 0; i < selectObj.length; ++i){					if(selectObj[i].nodeName == "SELECT" ){						selectObj[i].style.visibility = "visible";					}				}			}		}	}	Shadow_Container.innerHTML = "";	panl.style.display = "none";	msk.style.display = "none";		EDITING_NOW = false;	FIRST_SHOW = 0;}function writeCss(){	if(document.all){		var supported = /MSIE ((5\.5)|[6789])/.test(navigator.userAgent) &&						navigator.platform == "Win32";		if (supported){			if(document.createStyleSheet) {				document.createStyleSheet('http://css.linkchina.com/buyer/layer_ie.css');			}		}	}	}function stop(e) {	if (!e) e = window.event;	(e.stopPropagation) ? e.stopPropagation() : e.cancelBubble = true;	(e.preventDefault) ? e.preventDefault() : e.returnValue = false;	return false;}/* ============================== *//*  M A S K   P A N E L   E N D   *//* ============================== *//*feedback callback function*/function drawStar(){	$('input[type=radio].star').rating();}/**buffalo远程加载新增界面到列表页@divID 要加载到的div@otherPageName 链接，可以写成.do或者其他的页面链接都行*/function bindingOtherPage(divID, otherPageName, fn,callback) {	/**	$('#'+divID).ajaxStart(function()	{		$('#'+divID).html("<p class='loading'>&nbsp;</p>");	}).ajaxError(function(msg){$(this).hide();alert(msg);});    **/	//alert("fn: " + fn + " ,   callback: " + callback);	if(callback != undefined) {		$('#layer_con').load(otherPageName,initMask);		setTimeout("closeMask()",4000);		return;	}		var randomdate = new Date();	if(otherPageName.indexOf("?") == -1 && otherPageName.indexOf(".html") == -1){		otherPageName = otherPageName + "?randomurlparam=" + randomdate.getTime();	}else{		otherPageName = otherPageName + "&randomurlparam=" + randomdate.getTime();	}		if(fn == undefined){		$('#'+divID).load(otherPageName);	}else{				if(typeof(fn) == 'function'){			$('#'+divID).load(otherPageName,fn);		}else{		$('#'+divID).html(fn);		}	}	}function openMaskDiv(divID, otherPageName, fn) {		bindingOtherPage(divID,otherPageName,fn);}function activateResize() {	if(startList){		startList(); //菜单自适应定位	}	if(initMask){		initMask(mask_width); //蒙版自适应定位	}}var checkflag = "false";function allCheckBox (obj) {var chk = obj.name;var chkbx = obj.form.elements[chk];	if (checkflag == "false")     {         for (i = 0; i < chkbx.length; i++)         {			chkbx[i].checked = true;        }        checkflag = "true";    }    else     {        for (i = 0; i < chkbx.length; i++) {			chkbx[i].checked = false;		}		checkflag = "false";    }}/*一些通用验证方法*/function checkFinalAccount(text) {	var str = text.value;	if ( v = eval(str) ) 	{			if(v < 1) {			text.value = "";			text.focus();		}	}}//检查文本是否为正整数function checkIntText(text){	var str = text.value;		for( var i = ( str.length - 1 )*1; i >= 0; i -- ){		if( !isInt( str ) ){			var ilen = str.length;			str = str.substring( 0,ilen - 1 );		}	}	text.value  = str;}//检查文本是否为浮点数function checkFloatText(e,text1,suffix){			if (!e) var e = window.event;		if(parseInt(e.keyCode) == 13)  {	(e.stopPropagation) ? e.stopPropagation() : e.cancelBubble = true;	(e.preventDefault) ? e.preventDefault() : e.returnValue = false;	}	var str = text1.value;	for( var i = ( str.length - 1 )*1; i >= 0; i -- ){		if( !isFloat( str ) ){			var ilen = str.length;			str = str.substring( 0,ilen - 1 );					}else{			var dotindex = str.indexOf(".");			if(dotindex<0)			{							if(str.length>6)				{					var ilen = str.length;					str = str.substring( 0,ilen - 1 );				}			}			else if(dotindex>0){				if(str.length-dotindex>suffix+1){					var ilen = str.length;					str = str.substring( 0,ilen - 1 );				}			}			break;		}	}	text1.value  = str;}//判断是否是浮点数function isFloat(s){	var patrn =/^([1-9]\d*)$|(0)$/;	var patrn1=/^([0-9]\d*)$/		var dotindex=s.indexOf(".");	if(dotindex>0)	{		var bs=s.substring(0,dotindex);		if (!patrn.exec(bs)) 			return false;		if(dotindex==s.length-1){			return true;		}else{			var es = s.substring(dotindex+1);			if (!patrn1.exec(es)) 				return false;			else				return true;		}	}	if (!patrn.exec(s)) 		return false;	else		return true;}//判断是否是正整数function isInt(s){	var patrn =/^([1-9]\d{0,9})$/;	if (!patrn.exec(s)) 		return false;	else		return true;}function closeDiv(objname){	var obj = document.getElementById(objname);	if(obj.className == "show"){		obj.className = "hide";	}}function openDiv(objname){	var obj = document.getElementById(objname);	if(obj.className == "hide"){		obj.className = "show";	}}function selectOther(slct, slctVlu, divId){	if(slct.options[slct.selectedIndex].value == slctVlu){		openDiv(divId);	}else{		closeDiv(divId);	}}function swtch(obj){	var section = obj.parentNode;		if(section.style.overflow != "hidden"){		section.style.height = "10px";		section.style.overflow = "hidden";		obj.style.backgroundImage = "url(http://image.linkchina.com/seller/opn.gif)";	} else {		section.style.height = "auto";		section.style.overflow = "visible";		obj.style.backgroundImage = "url(http://image.linkchina.com/seller/cls.gif)";	}}function swchTab(obj, e, divName) {	if (!e) e = window.event;	(e.stopPropagation) ? e.stopPropagation() : e.cancelBubble = true;	(e.preventDefault) ? e.preventDefault() : e.returnValue = false;		obj.blur();		var liObj = obj.parentNode;	var ulObj = liObj.parentNode;	//var divObj = document.getElementById("swch_con");	var divObj = findNext(ulObj, "DIV")			for(var j=0; j<divObj.childNodes.length; j++){		if(divObj.childNodes[j].nodeName == "DIV"){			if(divObj.childNodes[j].id != divName){				divObj.childNodes[j].style.display = "none";			} else {				divObj.childNodes[j].style.display = "block";				//alert(divObj.childNodes[j].innerHTML);			}					}	}		for(var i=0; i<ulObj.childNodes.length; i++){		if(ulObj.childNodes[i].nodeName == "LI"){			ulObj.childNodes[i].className = "off";		}	}		obj.className = "shamrock";	liObj.className = "on";	divObj.style.display = "block";}function findNext(obj, elem){	while (obj.nodeName != elem && obj.nodeName != 1){		obj = obj.nextSibling;	}	return obj;}function findPre(obj, elem){	while (obj.nodeName != elem && obj.nodeName != 1){		obj = obj.previousSibling;	}	return obj;}function menuFlagPlus(vlu){	var firstMenuFlag = document.getElementById("leftFirstMenuFlag").value;	if(firstMenuFlag != ""){		firstMenuFlag = firstMenuFlag + "," + vlu;	} else {		firstMenuFlag = vlu;	}		document.getElementById("leftFirstMenuFlag").value = firstMenuFlag;}function menuFlagMinus(vlu){	var firstMenuFlag = document.getElementById("leftFirstMenuFlag").value;	if(firstMenuFlag != ""){		if(firstMenuFlag.indexOf(vlu) == 0){			if(firstMenuFlag.length > 2) {				vlu = vlu + ",";				}		} else {			vlu =  "," + vlu;		}		firstMenuFlag = firstMenuFlag.replace(vlu,"");	} else {		return false;		}		document.getElementById("leftFirstMenuFlag").value = firstMenuFlag;}function swtchMenu(obj,vlu){	var ulObj = obj.childNodes[0];	ulObj = findNext(ulObj, "UL");	if(ulObj.style.display != "block" && obj.className != "active"){		obj.className = "active";		ulObj.style.display = "block";		menuFlagPlus(vlu);	} else {		obj.className = "";		ulObj.style.display = "none";		menuFlagMinus(vlu);	}}/* Begin: delete table cell's */function removeTblCell(obj){	var tdCell = obj.parentNode.parentNode;	var tdIndex = tdCell.cellIndex;	var trRow = tdCell.parentNode;	var tblObj = trRow.parentNode;	while(tblObj.nodeName != "TABLE"){		tblObj = tblObj.parentNode;	}	if(tblObj.rows[0].cells.length > 3){		for(var i=0;i<tblObj.rows.length;i++){			tblObj.rows[i].deleteCell(tdIndex);		}		var cell_len = tblObj.rows[0].cells.length;		var cell_w = 164;		if(cell_len == 3){			cell_w = 344;		} else if ( cell_len == 4 ){			cell_w = 224;		}				for(var k = 1; k<cell_len; k++){			tblObj.rows[0].cells[k].width = cell_w;			//tblObj.rows[0].cells[k].innerHTML = tblObj.rows[0].cells[k].width;		}				//initMask();	} else {		return;	}}/* End : delete table cell's  *///复选框的全选function selectAll(checkboxName) {	var deleteVideo = document.getElementsByName(checkboxName);	for (var i = 0; i < deleteVideo.length; i++) {		deleteVideo[i].checked = true;	}}//复选框的反选function selectReverse(checkboxName) {	var deleteVideo = document.getElementsByName(checkboxName);	for (var i = 0; i < deleteVideo.length; i++) {		deleteVideo[i].checked = !deleteVideo[i].checked;	}}function hiddenMessage(messageDivId){	$('#'+messageDivId).css('display','none');}/**   多个复选框的选中验证**/function checkCheckBoxs(checkboxNames){	var item = document.getElementsByName(checkboxNames);	var count = 0;	for (var i = 0; i < item.length; i++) {		if (item[i].checked) {			count++;		}	}	if(count == 0){		return false;	}	return true;}/*function cacaulateName(Str, objId){		var invalidCharNum_1 = Str.search(/[^\x00-\xff]/);		var invalidCharNum_2 = Str.search(/[\u4e00-\u9fa5]/);			if(invalidCharNum_1 != -1 ||　invalidCharNum_2　!= -1){			var textStr = Str.replace(/[^\x00-\xff]/gi, "");			var textStr = Str.replace(/[\u4e00-\u9fa5]/gi, "");			document.getElementById(objId).value = textStr;		}}*/function findPrnt(obj,ndname){	var prntObj = obj.parentNode;	while(prntObj.nodeName != ndname){				prntObj = prntObj.parentNode;	}	return prntObj;}function cacaulate(Str, objId, showMethod, mxleng, charLeft, charEntered){		var MAXLEN = (typeof(mxleng) == "undefined") ? 1000 : mxleng;	var textStr = Str;		if(showMethod != null){			eval(showMethod);			}	//var textStr = Str.replace(/[^\x00-\xff]/gi, "");	//var textStr = Str.replace(/[\u4e00-\u9fa5]/gi, "");	var len = textStr.length;	if(len > MAXLEN) {		textStr = textStr.slice(0,MAXLEN);		var len = textStr.length;		document.getElementById(objId).value = textStr;	}		if(charLeft == undefined || charEntered == undefined){			charLeft = "characters_left";			charEntered = "characters_entered";	}		if(document.getElementById(charEntered)) document.getElementById(charEntered).innerHTML = len;	if(document.getElementById(charLeft)) document.getElementById(charLeft).innerHTML = MAXLEN - len;}function findPosX(obj){	var curleft = 0;	if(obj.offsetParent)		while(1) 		{		  curleft += obj.offsetLeft;		  if(!obj.offsetParent)			break;		  obj = obj.offsetParent;		}	else if(obj.x)		curleft += obj.x;	return curleft;}function findPosY(obj){	var curtop = 0;	if(obj.offsetParent)		while(1)		{		  curtop += obj.offsetTop;		  if(!obj.offsetParent)			break;		  obj = obj.offsetParent;		}	else if(obj.y)		curtop += obj.y;	return curtop;}function leaveMsg (){	window.open('/leaveMessageInsert.do','leaveMsg','status=yes,resizable=yes,width=610,height=430');}function privSearchList(_url){	if(_url != "" && _url != null){		window.location.href = _url;		} else {		window.location.href = "/index.html";	}	}function checkInputPrice(priceText) {	str = priceText.value;	for (var i = (str.length - 1) * 1; i >= 0; i--) {		if (!isFloat(str)) {			var ilen = str.length;			str = str.substring(0, ilen - 1);		} else {			var dotindex = str.indexOf(".");			if (dotindex > 0) {				if (str.length - dotindex > 3) {					var ilen = str.length;					str = str.substring(0, ilen - 1);				}			}			break;		}	}	priceText.value = str;}// close the validation alert of registration and sign in.function closeTips(obj){	var container = obj.parentNode.parentNode;	while(container.childNodes.length != 0){		var chd = container.childNodes[0];		container.removeChild(chd);	}}//for mini shopping cart closefunction miniCartClose(){	var miniCartDiv=document.getElementById('miniShoppingCart');	miniCartDiv.style.display='none';	}/** * 用于buyer端 查看指定seller profile使用 * @param formName * @param sellerid * @return */function showSellerProfile(formName,sellerid) {		var theForm = document.getElementById(formName);		theForm.sellerid.value = sellerid;	theForm.submit();} /**--判断浏览器为IE6--**/var isIE6Browser = false;function recoIeBrowser(){	var browser=navigator.appName;	var b_version=navigator.appVersion;	var version=b_version.split(";");	var trim_Version=version[1].replace(/[ ]/g,"");	if(browser=="Microsoft Internet Explorer" && trim_Version=="MSIE6.0")	{		isIE6Browser = true;	} else {		isIE6Browser = false;	}}recoIeBrowser();/**-- My Account自适应页面中，重定义IE6下的页面宽度--**/function resizeWidth(){	if(isIE6Browser){		var screenWidth = document.documentElement.clientWidth;		var containerWidth=document.getElementById('order_container');		if(containerWidth == null){			return;		}		if(screenWidth>1003){			containerWidth.style.width=(screenWidth-12)+'px';		}		else{			containerWidth.style.width=991+'px';		}	}}$(document).ready(function(){	//2009圣诞节风格	//var ChristmasDecorationThemeHTML = '<div id="christmas_2009_gift"><a href="http://www.linkchina.com/promotion/christmas-gift-decorations.html"><img src="http://image.linkchina.com/buyer/head/xmas2009/xmas_gift_link.gif" alt="Click here to see our christmas gift ideas!" /></a></div>';	//$("#logo").parent().append(ChristmasDecorationThemeHTML);	$("#accountProductsChange a.turnNext").click(function(){		showNextRecommdProduct();									  	})	$("#accountProductsChange a.turnPrev").click(function(){		showPrevRecommdProduct();									  	})	$('#copyright').html('<img src="http://image.linkchina.com/buyer/footer_logo.gif" alt="LinkChina.com" /> Copyright Notice &copy; 2008 - 2010 LinkChina.com All rights reserved. ');			//promotion adds	/*	if($('#site_promotion a').length == 0){		$('#breadcrumb').before('<div id="site_promotion"><a href="http://www.linkchina.com/promotion/chinese-new-year-2010.html"><img src="http://image.linkchina.com/buyer/promotions/chinese_new_year_2010/site_promotion.png" alt="All Free Shipping and 5% Off During the Chinese New Year" width="960" height="45" /></a></div>');	}	*/	})var RecommdProductNum = 0;var showflag = true;var showpagenum = 4;function setRecommdProductList(){		showNextRecommdProduct ();	$(window).resize(function(){		if($("#mycarouselContent").width() < 750){			showpagenum = 3;		}else{			showpagenum = 4;		}	});}function resetShowflag(){	if(!showflag){		showflag = true;		}	}function showNextRecommdProduct(){	resetShowflag();		if($("#mycarouselContent ul li").length == RecommdProductNum) return false;	var newConlength = RecommdProductNum + showpagenum;	var newContI = RecommdProductNum;	var newCon = "";	for(i=newContI; i < newConlength; i++){		if($("#mycarouselContent ul li").eq(i).html() == null) {			RecommdProductNum = i;			$("#mycarousel ul").html(newCon);			return;		}else{			newCon += "<li>" + $("#mycarouselContent ul li").eq(i).html() + "</li>";		}	}	RecommdProductNum = newConlength;	$("#mycarousel ul").html(newCon);}function showPrevRecommdProduct(){	if(RecommdProductNum <= showpagenum && !showflag) return false;		var total = parseInt(RecommdProductNum/showpagenum);	var newConlength = total*showpagenum;	var newContI = newConlength - showpagenum;	var newCon = "";	for(i=newContI; i < newConlength; i++){		if($("#mycarouselContent ul li").eq(i).html() == null) {			resetShowflag();			RecommdProductNum = i;			$("#mycarousel ul").html(newCon);			return;		}else{			newCon += "<li>" + $("#mycarouselContent ul li").eq(i).html() + "</li>";		}	}		if(newContI == 0){		showflag = false;		RecommdProductNum = showpagenum;	}else{		resetShowflag();		RecommdProductNum = newContI;		}		$("#mycarousel ul").html(newCon);}