function ajaxShopListUpdateList(A,G,F,E){var B="/ajax/com.eonegroup.eonecommerce.ajax.AJAXShopListUpdateList";var C="linkType="+A+"&sequence="+G+"&title="+escape(F)+"&desc="+escape(E);var D=new Ajax.Request(B,{postBody:C})}function ajaxShopListAddItem(C,A,D,B){ajaxShopListAddItem(C,A,D,B,"")}function ajaxShopListAddItem(G,A,H,F,C){var B="/ajax/com.eonegroup.eonecommerce.ajax.AJAXShopListAddItem";var D="linkType="+A+"&itemId="+escape(G)+"&sequence="+H+"&quantity="+F+"&listName="+escape(C);var E=new Ajax.Request(B,{postBody:D,onComplete:ajaxShopListAddItemResponse})}function getContextPath(){var B="";var A=location.pathname.lastIndexOf("/")+1;if(A<=0){A=location.pathname.length-1}if(location.pathname.lastIndexOf("/")==0){B=location.pathname.substring(1,A)}else{B=location.pathname.substring(0,A)}return B}function ajaxShopListAddItemResponse(B){var D=B.responseXML.getElementsByTagName("success").item(0).firstChild.nodeValue;var A=B.responseXML.getElementsByTagName("linkType").item(0).firstChild.nodeValue;var C=B.responseXML.getElementsByTagName("itemId").item(0).firstChild.nodeValue;if(D=="true"){$("list_response_"+A+"_"+C).innerHTML="This item has been added to your wishlist"}else{}}function updateSkuOptions(D,B,F){var A=D.responseXML.getElementsByTagName(F);if(A.length>0){B.options.length=0}for(i=0;i<A.length;i++){var E=A.item(i).firstChild.nodeValue;var C=document.createElement("option");C.text=E;C.value=E;B.options.add(C)}}function updateskucontrols(control,skuControls){var skuControl=new SkuControl();var callingcontrolnumber=control.id.substring(control.id.length-1,control.id.length-0);for(var i=1;i<=callingcontrolnumber;i++){setSkuOption(skuControl,eval("$('skuvalue"+i+"')"),i)}var callingform=control.form;if(callingform==null){callingform=document.addtocartform}ajaxUpdateSkuControls(callingform,skuControl)}function setSkuOption(B,C,A){if(C){B.skuOptions[A-1]=C.value}}function updateSkuFromImage(B){var A=document.getElementById("skuvalue1");for(var C=0;C<A.options.length;C++){if(A.options[C].text==B){document.getElementById("skuvalue1").selectedIndex=C}}updateskucontrols(document.getElementById("skuvalue1"),"")}