 
 function com_netscript_shopperAPI_Order(){if(!COM_NetScript$vshop_api$w(false,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_Order()'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 COM_NetScript$vshop_api$Y.wwt.shop.order()
 return
 }
 function com_netscript_shopperAPI_OnChangeIdent(_$B){if(!COM_NetScript$vshop_api$w(false,false))
 return(true)
 return(COM_NetScript$vshop_api$Y.wwt.shop.onChangeIdent(_$B))
 }
 /*
 @(#) ***********************************************************************
 @(#) ***********************************************************************
 @(#) This is a COMMERCIAL software COPYRIGHT 1999-2003 NetScript Technologies Inc
 @(#) It *MAY NOT* be copied, distributed, used or modified
 @(#) without the expressed written permission of Com_Netscript_ Technologies.
 @(#) --------
 @(#) ***********************************************************************
 @(#)  Project:     Word Wide Traveller Components Family
 @(#)  Company:     NetScript Technologies Inc.
 @(#)  URLs:        http://netscript.com/  mailto:info@netscript.com
 @(#)  ID:          js/vshop-api.js
 @(#)  Language:    JavaScript1.4+
 @(#)  Browsers:    MZ1.x+ NN7.01+ IE4.0+
 @(#)  Author:      Marc Bonnier
 @(#)  QA:          MB
 @(#)  Legalese:    http://netscript.com/legal/eula-gen.htm
 @(#)  $Revision: 0.4 20030510 $
 */
 
 function com_netscript_shopperAPI_Print(){if(!COM_NetScript$vshop_api$w(false,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_Print()'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 COM_NetScript$vshop_api$Y.wwt.shop.print()
 return
 }
 function com_netscript_shopperAPI_Add(_$T,_$v,_$j,_$M,_$b,_$u){var _$k=typeof _$T=="undefined"
 if(!COM_NetScript$vshop_api$w(_$k,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_Add('
 + '"' + _$T + '",'
 + '"' + _$v + '",'
 +_$j+','
 +_$M+','
 + '"' + _$b + '",'
 + '"' + _$u + '"'
 +')'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 if(!_$k){COM_NetScript$vshop_api$Y.wwt.shop.add(_$T,_$v,_$j,_$M,_$b,_$u
 )
 }
 else{var _$q=COM_NetScript$vshop_api$M.document.forms[_$r] 
 if(typeof _$q!="undefined"){COM_NetScript$vshop_api$Y.wwt.shop.add(_$q.elements.pnumber.value,_$q.elements.pdesc.value,parseFloat(_$q.elements.pprice.value),parseInt(_$q.elements.pqty.value)
 )
 }
 }
 return(false)
 }
 function com_netscript_shopperAPI_AddFromDOM(_$G){if(!COM_NetScript$vshop_api$w(false,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_AddFromDOM(window)'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 if(typeof _$G!="object")
 return(false)
 var _$W=new Array("com_netscript_shopperAPI_ItemProdNum","com_netscript_shopperAPI_ItemDesc","com_netscript_shopperAPI_ItemName","com_netscript_shopperAPI_ItemPrice"
 )
 for(var _$S=0;_$S<_$W.length;_$S++){var _$O=_$W[_$S]
 if(typeof _$G[_$O]!="string"){alert("??")
 return(false)
 }
 }
 var _$l=_$G.location.href
 _$l = _$l.substring(0,_$l.lastIndexOf("/")+1)
 if(typeof _$G.document.images[0]!="undefined"){var _$b=_$G.document.images[0].src
 _$b=_$b.substring(_$b.lastIndexOf("."))
 }
 else
 var _$b=""
 _$b=_$l+"s0"+_$b
 com_netscript_shopperAPI_Add(_$G[_$W[0]],_$G[_$W[1]],_$G[_$W[3]],1,_$b,_$G.location.href
 )
 }
 function com_netscript_shopperAPI_Undo(){if(!COM_NetScript$vshop_api$w(false,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_Undo()'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 COM_NetScript$vshop_api$Y.wwt.shop.undo()
 return
 }
 function com_netscript_shopperAPI_Show(_$I,_$o){if(window.parent==window.top){window.top.close()
 }
 if(!COM_NetScript$vshop_api$w(false,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_Show('
 +_$I+','
 + '"' + _$o + '"'
 +')'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 return(COM_NetScript$vshop_api$Y.wwt.shop.showItem(_$I,_$o))
 }
 function com_netscript_shopperAPI_GenShopList(_$J,_$K,_$E){if(!COM_NetScript$vshop_api$w(false,false))
 return("")
 return(COM_NetScript$vshop_api$Y.wwt.shop.genShopList(_$J,_$K,_$E))
 }
 function com_netscript_shopperAPI_LstPanOnLoad(){if(!COM_NetScript$vshop_api$w(false,false)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_LstPanOnLoad()'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 COM_NetScript$vshop_api$Y.wwt.shop.lstPanOnLoad()
 return
 }
 function com_netscript_shopperAPI_IsReady(){if(!COM_NetScript$vshop_api$w(false,false)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){return(false)
 }
 return(COM_NetScript$vshop_api$Y.wwt.shop.isReady())
 }
 function com_netscript_shopperAPI_GenInvoice(_$J,_$K,_$E){if(!COM_NetScript$vshop_api$w(false,false))
 return("")
 return(COM_NetScript$vshop_api$Y.wwt.shop.genInvoice(_$J,_$K,_$E))
 }
 function com_netscript_shopperAPI_Del(_$p){var _$k=typeof _$T=="undefined"
 if(!COM_NetScript$vshop_api$w(false,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_Del("' + _$p + '")'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 COM_NetScript$vshop_api$Y.wwt.shop.del(null,0
 )
 return
 return
 }
 function com_netscript_shopperAPI_GenTransInfo(_$P){if(!COM_NetScript$vshop_api$w(false,false))
 return("")
 return(COM_NetScript$vshop_api$Y.wwt.shop.genTransInfo(_$P))
 }
 function com_netscript_shopperAPI_LstPanOnScroll(){if(!COM_NetScript$vshop_api$w(false,false))
 return
 COM_NetScript$vshop_api$Y.wwt.shop.lstPanOnScroll()
 return
 }
 function com_netscript_shopperAPI_GenCustomerInfo(_$P,_$E){if(!COM_NetScript$vshop_api$w(false,false))
 return("")
 return(COM_NetScript$vshop_api$Y.wwt.shop.genCustomerInfo(_$P,_$E))
 }
 function com_netscript_shopperAPI_View(){if(!COM_NetScript$vshop_api$w(false,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_View()'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 COM_NetScript$vshop_api$Y.wwt.shop.view()
 return
 }
 function com_netscript_shopperAPI_attachCart(){window.com_netscript_shopperAPI_cartWindow=window.open((window.com_netscript_shopperAPI_cartLayoutURL+"#"),window.com_netscript_shopperAPI_cartTargetName,window.com_netscript_shopperAPI_cartWindowOptions
 )
 window.com_netscript_shopperAPI_cartWindow.focus()
 return(true)
 }
 function com_netscript_shopperAPI_OnTopLayoutUnload(_$G){if(!COM_NetScript$vshop_api$w(false,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){_$G.setTimeout('com_netscript_shopperAPI_OnTopLayoutUnload(window)'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 COM_NetScript$vshop_api$Y.wwt.shop.onTopLayoutUnload(_$G)
 return
 }
 function com_netscript_shopperAPI_ResetCart(_$D){if(!COM_NetScript$vshop_api$w(false,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_ResetCart(' + _$D + ')'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 return(COM_NetScript$vshop_api$Y.wwt.shop.resetCart(_$D))
 }
 function com_netscript_shopperAPI_GetTransStates(){if(!COM_NetScript$vshop_api$w(false,false))
 return("null")
 return(COM_NetScript$vshop_api$Y.wwt.shop.getTransStates())
 }
 function COM_NetScript$vshop_api$w(_$H,_$f){var _$Q=(COM_NetScript$vshop_api$O(_$f)!=null)&&
 (typeof top["netscript"] == "object")		&&
 (!_$H||(typeof COM_NetScript$vshop_api$M=="object")&&
 (COM_NetScript$vshop_api$M!=null)&&
 !COM_NetScript$vshop_api$M.closed
 )
 return(_$Q)
 }
 function com_netscript_shopperAPI_OpenCart(_$L,_$R){if(!COM_NetScript$vshop_api$w(false,false)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")
 ){return(false)
 }
 COM_NetScript$vshop_api$Y.wwt.shop.openCart(_$L,_$R
 )
 return(false)
 }
 function com_netscript_shopperAPI_OnChangeItem(_$Y){if(!COM_NetScript$vshop_api$w(true,true))
 return(true)
 return(COM_NetScript$vshop_api$Y.wwt.shop.onChangeItem(_$Y))
 }
 function com_netscript_shopperAPI_GenTransOrder(){if(!COM_NetScript$vshop_api$w(false,false))
 return("")
 return(COM_NetScript$vshop_api$Y.wwt.shop.genTransOrder())
 }
 function com_netscript_shopperAPI_Close(){if(top.opener.com_netscript_shopperAPI_cartAutoOpenRemote){if(!confirm(window.COM_NetScript$vshop_api$D))
 return(false)
 }
 top.close()
 return
 }
 function com_netscript_shopperAPI_LstPanOnResize(){if(!COM_NetScript$vshop_api$w(false,false)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_LstPanOnResize()'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 COM_NetScript$vshop_api$Y.wwt.shop.lstPanOnResize()
 return
 }
 function com_netscript_shopperAPI_ShowDetails(_$I,_$c){if(!COM_NetScript$vshop_api$w(false,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_ShowDetails('
 +_$I+','
 + '"' + _$c + '"'
 +')'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 COM_NetScript$vshop_api$Y.wwt.shop.showItemDetails(_$I,_$c)
 return(false)
 }
 function com_netscript_shopperAPI_OnTopLayoutLoad(_$G,_$N){if(!COM_NetScript$vshop_api$w(false,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")
 ){_$G.setTimeout('com_netscript_shopperAPI_OnTopLayoutLoad(window)'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 if(!_$N){_$G.setTimeout('com_netscript_shopperAPI_OnTopLayoutLoad(window, true)'
 ,400
 )
 }
 else{COM_NetScript$vshop_api$Y.wwt.shop.onTopLayoutLoad(_$G)
 }
 return
 }
 function COM_NetScript$vshop_api$O(_$f,_$w){if((window.com_netscript_shopperAPI_cartWindow==null)||window.com_netscript_shopperAPI_cartWindow.closed
 ){if(_$f&&window.com_netscript_shopperAPI_cartAutoOpenRemote){com_netscript_shopperAPI_attachCart()
 return(null)
 }
 else{var _$n=top
 }
 }
 else{var _$n=window.com_netscript_shopperAPI_cartWindow
 }
 COM_NetScript$vshop_api$Y=((typeof _$n["netscript"] == "undefined")
 ? ((_$n.opener != null) && (typeof _$n.opener.top["netscript"] != "undefined")
 ?_$n.opener.top.netscript
 :null
 )
 :_$n.netscript
 )
 COM_NetScript$vshop_api$M=(typeof _$n.frames[com_netscript_shopperAPI_itemTargetName]!="undefined")
 ?_$n.frames[com_netscript_shopperAPI_itemTargetName]
 :null
 return(window.COM_NetScript$vshop_api$Y)
 }
 function com_netscript_shopperAPI_ShowHelp(_$I,_$c){if(!COM_NetScript$vshop_api$w(false,true)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_ShowHelp('
 +_$I+','
 + '"' + _$c + '"'
 +')'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 return(COM_NetScript$vshop_api$Y.wwt.shop.showHelp(_$I,_$c))
 }
 function com_netscript_shopperAPI_ItemPanOnLoad(){if(!COM_NetScript$vshop_api$w(false,false)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_ItemPanOnLoad()'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 COM_NetScript$vshop_api$Y.wwt.shop.itemPanOnLoad()
 return
 }
 function com_netscript_shopperAPI_ItemPanOnResize(){if(!COM_NetScript$vshop_api$w(false,false)||(typeof COM_NetScript$vshop_api$Y.wwt.shop=="undefined")||!COM_NetScript$vshop_api$Y.wwt.shop.isReady()
 ){setTimeout('com_netscript_shopperAPI_ItemPanOnResize()'
 ,window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 )
 return(false)
 }
 COM_NetScript$vshop_api$Y.wwt.shop.itemPanOnResize()
 return
 }
 function com_netscript_shopperAPI_ItemGetImgURL(){if(!COM_NetScript$vshop_api$w(false,false))
 return
 return(COM_NetScript$vshop_api$Y.wwt.shop.itemGetImgURL())
 }
 window._$r=
 typeof window._$r=="string"
 ?window._$r
 :"sitem"
 window.com_netscript_shopperAPI_cartAutoOpenRemote=
 typeof window.com_netscript_shopperAPI_cartAutoOpenRemote=="boolean"
 ?window.com_netscript_shopperAPI_cartAutoOpenRemote
 :false
 window.com_netscript_shopperAPI_itemTargetName=
 typeof window.com_netscript_shopperAPI_itemTargetName=="string"
 ?window.com_netscript_shopperAPI_itemTargetName
 :"com_netscript_vshop_target_item"
 window.com_netscript_shopperAPI_cartLayoutURL=
 typeof window.com_netscript_shopperAPI_cartLayoutURL=="string"
 ?window.com_netscript_shopperAPI_cartLayoutURL
 : "../ui/layouts/simple-wcode.htm"
 window.com_netscript_shopperAPI_cartTargetName=
 typeof window.com_netscript_shopperAPI_cartTargetName=="string"
 ?window.com_netscript_shopperAPI_cartTargetName
 :""
 window.com_netscript_shopperAPI_cartWindowOptions=
 typeof window.com_netscript_shopperAPI_cartWindowOptions=="string"
 ?window.com_netscript_shopperAPI_cartWindowOptions
 :""
 window.com_netscript_shopperAPI_cartAttachDelayRetryMs=
 typeof window.com_netscript_shopperAPI_cartAttachDelayRetryMs=="number"
 ?window.com_netscript_shopperAPI_cartAttachDelayRetryMs
 :250
 window.com_netscript_shopperAPI_cartAttachMaxRetry=
 typeof window.com_netscript_shopperAPI_cartAttachMaxRetry=="number"
 ?window.com_netscript_shopperAPI_cartAttachMaxRetry
 :90
 window.COM_NetScript$vshop_api$y=top.location.href
 window.COM_NetScript$vshop_api$y = window.COM_NetScript$vshop_api$y.substring(0, window.COM_NetScript$vshop_api$y.lastIndexOf('/')+1)
 window.COM_NetScript$vshop_api$L=null
 window.COM_NetScript$vshop_api$M=null
 window.COM_NetScript$vshop_api$Y=null
 window.com_netscript_shopperAPI_cartWindow=null
 window.COM_NetScript$vshop_api$D = "Are you sure to close ?\n You may loose pending data !"
 window.netscript=COM_NetScript$vshop_api$O()