var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opens = _____WB$wombat$assign$function_____("opens"); function axUnFlattenBasket(str) { // [in] str: String basket "x,y,z" in 'cookie array fmt' // [in,out] ids: Array of Numbers ids[0]=x, ids[1]=y .... // return: count of array elements var ret = new Array(); if (str != null && str.length) { ret = str.split(","); } return ret; } function axFlattenBasket(arr) { // [in] arr: Array of Numbers ids[0]=x, ids[1]=y .... // return: string in cookie fmt .. "x,y,z" var ret = ""; if (arr != null && arr.length) ret = arr.join(","); return ret; } function axIsInBasket(aID) { // NOTE: does NOT return a boolean !! // returns -1 if NOT in basket // otherwise the zero-based index of the element var a = axUnFlattenBasket(GetCookie("MRQBASKET")); for (var i = 0; i"; if ( document.all ) // IE document.all.bskt_ie.innerHTML = htm; else { // NS lyrd = document.bskt_ns1.document.bskt_ns2.document; lyrd.open(); lyrd.write(htm); lyrd.close(); } } function axSetButton( aID, which, layerSuffix, curpage ) { var htm = ""; htm += ""; htm += ""; if ( document.all ) // IE eval("document.all."+layerSuffix+"_ie.innerHTML = htm"); else { // NS eval ("var lyrd = document."+layerSuffix+"_ns1.document."+layerSuffix+"_ns2.document"); lyrd.open(); lyrd.write(htm); lyrd.close(); } } function axSetText( aID, which, text, classStr, layerSuffix, curpage, action ) { var isMac = (navigator.userAgent.indexOf("Mac") > -1) ? 1 : 0; var img = action; var htm = ""; htm += ''; htm += text; htm += ""; if ( document.all ){ // IE if (!isMac) htm += ''; else htm += ''; eval("document.all."+layerSuffix+"_ie.innerHTML = htm"); } else { // NS if (!isMac) htm += '
'; eval ("var lyrd = document."+layerSuffix+"_ns1.document."+layerSuffix+"_ns2.document"); lyrd.open(); lyrd.write(htm); lyrd.close(); } } function OnAddToBasket(aID,layerSuffix,curpage) { if ( axAddToBasket(aID) ) { // set img tag to remove from basket // set global nav count axSetNavCount( axCountBasket() ); axSetButton( aID, "RemoveFrom", layerSuffix, curpage ); } } function OnRemoveFromBasket(aID,layerSuffix,curpage) { if ( axRemoveFromBasket(aID) ) { // set img tag to add to basket // set global nav count axSetNavCount( axCountBasket() ); axSetButton( aID, "AddTo", layerSuffix, curpage ); } } function OnAddToBasketText(aID,layerSuffix,curpage) { if ( axAddToBasket(aID) ) { // set img tag to remove from basket // set global nav count axSetNavCount( axCountBasket() ); axSetText( aID, "RemoveFrom", "", "baskettext", layerSuffix, curpage, "subtract"); } } function OnRemoveFromBasketText(aID,layerSuffix,curpage) { if ( axRemoveFromBasket(aID) ) { // set img tag to add to basket // set global nav count axSetNavCount( axCountBasket() ); axSetText( aID, "AddTo", "", "baskettext", layerSuffix, curpage, "add" ); //if ( document.all ){ // window.location.href = unescape(curpage); //} } } }