1// <script> 2// Begin: init.js 3function escapeUTF8(fld) { 4if(fld=='')return''; 5var s=fld,encodedField=(typeof encodeURIComponent=='function'?encodeURIComponent(s):escape(s)); 6return encodedField; 7} 8function unescapeUTF8(fld){ 9if(fld=='')return''; 10var s=fld,encodedField=''; 11if(typeof decodeURIComponent=='function'){ 12try {encodedField=decodeURIComponent(s);} 13catch(e){encodedField=unescape(s);} 14} 15else encodedField=unescape(s); 16return encodedField; 17} 18var XML_CHAR_MAP = { '<': '<', '>': '>', '&': '&', '"': '"', "'": ''' }; 19function escapeForXML(s) { return s.replace(/[<>&"']/g, function(ch){ return XML_CHAR_MAP[ch]; }); } 20function isInSFClassic(){try{if(window.external&&typeof(window.external.isInSF)=='number')return window.external.isInSF();else return false;}catch(e){return false;}} 21function isInSFull(){try{if(window.external&&typeof(window.external.isFullViewEdit)=='number')return window.external.isFullViewEdit();else return false;}catch(e){return false;}} 22function isInSF(){return isInSFClassic()||isInSFull();} 23function isInDesigner(){try{return typeof(tf.parent.applyColorScheme)!='undefined';}catch(e){return false;}} 24function dw(s){document.write(s);} 25var d=document,loc=d.location,nav=navigator,wnd=window; 26var tf=t=LD=this,content=this,tfc=content,s; 27var av=navigator.appVersion,ua=navigator.userAgent,isOpera=window.opera,isIE5=(av.indexOf('MSIE 5')!=-1),isIE6=window.ActiveXObject&&!window.XMLHttpRequest,isIE8=(av.indexOf('MSIE 8')!=-1),isIE9=(av.indexOf('MSIE 9')!=-1),isIE10=(av.indexOf('Trident/6.0')!=-1),isIE11=(av.indexOf('Trident/7.0')!=-1),isIE7=window.ActiveXObject&&window.XMLHttpRequest&&!isIE8&&!isIE9&&!isIE10&&!isIE11,isIE=isIE5||isIE6||isIE7||isIE8||isIE9||isIE10||isIE11,isIEBefore10=isIE5||isIE6||isIE7||isIE8||isIE9,isiPhone=ua.match(/(?:iPhone|iPod)/i),isTabletDevice=!!ua.match(/(?:tablet)/i),isMobileDevice=!!ua.match(/(?:mobile)/i),isSafari=(d.childNodes&&!d.all&&!navigator.taintEnabled),isChrome=(ua.toLowerCase().indexOf('chrome')>-1),isMobile_LargePortrait=false,isMobile_SmallLandscape=false,isMobile_SmallPortrait=false,isMobile=isMobile_LargePortrait||isMobile_SmallLandscape||isMobile_SmallPortrait; 28var mobileDetectorHandlers={}; 29function mobileDetector(){ 30var wWin=Math.min(window.screen.width,window.innerWidth),hWin=Math.min(window.screen.height,window.innerHeight); 31isMobile_LargeLandscape=((wWin>=768&&wWin<=1240)&&(wWin>hWin)); 32isMobile_LargePortrait=((wWin>=768&&wWin<=978)&&(wWin<hWin)); 33isMobile_SmallLandscape=((wWin<=767)&&(wWin>hWin)); 34isMobile_SmallPortrait=((wWin<=395)&&(wWin<hWin)); 35isMobile_Small=(wWin<=767); 36isMobile=isMobile_LargeLandscape||isMobile_LargePortrait||isMobile_SmallLandscape||isMobile_SmallPortrait||isMobile_Small; 37var hl=mobileDetectorHandlers;for(var n in hl)hl[n](); 38} 39mobileDetector(); 40var core,utils,ship_obj,shipping,conf,price,minicart,resellerForm,resell='',lang=d.documentElement.lang=='en-GB'?'en-uk':d.documentElement.lang,baseLang='en-us',currRates=[],lastpage='',lastdeptpage='',testShop=0,isSFXTheme=true; 41var enterFilename='index.html'; 42var xLoaded=false,coreLoaded=false,greyLoaded=false,LD_loaded=false,xCalled=false,cntyListLoaded=false,langEnterLoaded=false,bskLoaded=false; 43var LMD_this='46231.472164',lmd=[],wssig=loc.href.replace(/\\/g,'/').replace(new RegExp('(\/'+tf.lang+')?\/contents\/.*?$|(\/'+tf.lang+')?\/([^/]*){1}$'),'/'); 44var sfFilters={listStyle:'sfx-372_1',gridStyle:'sfx-102_1',defStyleType:'L',dispFilterTypes:'searchterm;pricerange;specials'.replace(/;/g,','),sub:1,fold:parseInt('1'),pv:'http://localhost:50084/',sortBy:parseInt('0')}; 45var scr={ 46load:function(id,url,onload,o,d){ 47this.rmv(id); 48var doc=d||document,scr=doc.createElement('script'); 49scr.type='text/javascript'; 50if(onload)scr.onload=onload; 51scr.id=id; 52scr.src=url; 53if(o){ 54if(o.charset)scr.charset=o.charset; 55} 56doc.getElementsByTagName("head")[0].appendChild(scr); 57}, 58rmv:function(id,d){var doc=d||document,el=doc.getElementById(id);if(el)doc.getElementsByTagName("head")[0].removeChild(el);} 59}; 60var cssLink = { 61load:function(id, url, d){ 62var doc = d || document; 63this.rmv(id); 64var s = doc.createElement('link'); 65s.rel = 'stylesheet'; 66s.type = 'text/css'; 67s.id = id; 68s.href = url; 69doc.getElementsByTagName("head")[0].appendChild(s); 70}, 71rmv:function(id, d){ 72var doc = d || document; 73var el = doc.getElementById(id); 74if (el) doc.getElementsByTagName("head")[0].removeChild(el); 75} 76}; 77var sfNameStorage = { 78storageType:'nameStorage', 79getItem : function (t) { 80if (t != 'sig' && t != 'wssig' && !this.valid()) 81return ''; 82var tt = '<' + t + '>', 83p = tf.name.indexOf(tt); 84if (p == -1) 85return ''; 86else 87return tf.name.substring(p + tt.length, tf.name.indexOf('</' + t + '>')); 88}, 89setItem : function (t, v) { 90if (this.valid()) 91this.removeItem(t); 92tf.name = tf.name + '<' + t + '>' + v + '</' + t + '>'; 93}, 94removeItem : function (t) { 95tf.name = tf.name.replace(new RegExp('<' + t + '>(?:.|[\n\r])*?</' + t + '>'), ''); 96}, 97valid : function () { 98var ss = '<sig>' + tf.wssig + '</sig>'; 99if (typeof(tf.wssig) != 'undefined' && this.getItem('sig') == '') 100tf.name += ss; 101else if (this.getItem('sig') != tf.wssig) { 102this.removeItem('sig'); 103tf.name += (tf.wssig ? ss : ''); 104return false; 105} 106return true; 107} 108}; 109function sfStore(t) { 110try { 111this.oStore = window[t + 'Storage'] || null; 112if (typeof this.oStore === 'object') { 113try { 114this.oStore.setItem('localStorage', 1); 115this.oStore.removeItem('localStorage'); 116} catch (e) { 117// We have to revert to using window.name here 118this.oStore = sfNameStorage; 119} 120} 121} 122catch (e) { 123this.oStore = sfNameStorage; 124} 125this.id = '46231.472164'; 126this.idName = wssig;
127this.idGrace = (parseInt(this.id)-2)+'.'+this.id.split('.')[1]; 128this.del = function (name) { 129var idName=(this.oStore.storageType=='nameStorage'?name:name+'|'+this.idName); 130if (this.oStore) { 131this.oStore.removeItem(idName + '_test'); 132this.oStore.removeItem(idName); 133this.oStore.removeItem(idName + '_expires'); 134} 135} 136this.get = function (name) { 137var me = this,sCookie = '',idName=(me.oStore.storageType=='nameStorage'?name:name+'|'+me.idName); 138if (me.oStore) { 139var sTest = me.oStore.getItem(idName + '_test'); 140if (sTest >= me.idGrace) { 141var sDate = me.oStore.getItem(idName + '_expires'), 142date = new Date(sDate), 143now = new Date(); 144if (date > now) { 145sCookie = unescape(me.oStore.getItem(idName)) || ''; 146} 147} 148if (!sCookie) { 149me.del(idName); 150} 151} else { 152sCookie = document.cookie; 153var aCookie = sCookie.split('; '), 154sTest = aCookie['test']; 155for (var n = 0, nn = aCookie.length; n < nn; n++) { 156var ss = aCookie[n].split('='); 157if (ss[0] == 'test') 158sTest = ss[1]; 159else if (ss[0] == idName) 160sCookie = unescape(ss[1]); 161} 162sCookie = (sTest >= me.idGrace ? sCookie : ''); 163if (!sCookie) { 164var sGMT = '=0000; expires=Fri, 31 Dec 1990 23:59:59 GMT'; 165document.cookie = 'test' + sGMT; 166document.cookie = idName + sGMT; 167} 168} 169return sCookie; 170} 171this.set = function (name, val, days) { 172var me = this,exp = new Date(),idName=(me.oStore.storageType=='nameStorage'?name:name+'|'+me.idName); 173if (typeof(days) == 'undefined') 174days = -1; 175if (days != '') { 176if (days == -1) { 177exp.setYear(2030); 178exp.setMonth(1); 179exp.setDate(1); 180} else 181exp.setTime(exp.getTime() + (24 * 60 * 60 * 1000 * days)); 182} 183var sTest = me.id, 184sCookie = (days == 0 ? '' : escape(val)); 185if (me.oStore) { 186try { 187if (days == 0) { 188me.del(name); 189} else { 190me.oStore.setItem(idName + '_test', sTest); 191me.oStore.setItem(idName, sCookie); 192me.oStore.setItem(idName + '_expires', exp.toGMTString()); 193} 194} catch (e) { 195if (e.name == 'QUOTA_EXCEEDED_ERR') { 196return sCookie; 197} 198} 199} else { 200document.cookie = 'test=' + sTest + '; expires=' + exp.toGMTString(); 201document.cookie = idName + '=' + sCookie + '; expires=' + exp.toGMTString(); 202} 203return sCookie; 204} 205}; 206var sfSession=new sfStore('session'); 207var sfPersist=new sfStore('local'); 208//add refcount for multiple browser session. Increment for each new window. Decrement each onclose. When count is 0 onclose, clear the storage. 209var nametag={ 210get:function(t){if(t!='sig'&&t!='wssig'&&!this.valid())return'';var val=sfSession.get(t);return(val?val:'');}, 211add:function(t,v){if(this.valid())this.del(t);sfSession.set(t,v);}, 212del:function(t){sfSession.set(t,null,0);}, 213valid:function(){if(typeof(tf.wssig)!='undefined'&&this.get('sig')=='')sfSession.set('sig',tf.wssig);else if(this.get('sig')!=tf.wssig){this.del('sig');sfSession.set('sig',tf.wssig?tf.wssig:'');return false;}return true;} 214}; 215var sfqs=nametag.get('sfqs'),q=loc.search+'&'+sfqs,parm=[]; 216nametag.del('sfqs'); 217if(q!=""){ 218var pairs=q.substring(1,q.length).split('&'),len=pairs.length; 219for(var i=0;i<len;i++){ 220temp=pairs[i].split('='); 221parm[unescapeUTF8(temp[0])]=unescapeUTF8(temp[1]).replace(/\+/g,' '); 222} 223} 224if(nametag.get('lang'))parm['lang']=nametag.get('lang'); 225if(parm['product']){tf.location.hash='#'+parm['product'];} 226if(!isInSF()){ 227function buildURL(qtarget,qlang){ 228var hrefpart='',target=tf.location.pathname.replace(/([^\?]*[\/\\])?(.*?)/,'$2'),isRoot=((target==enterFilename||!target)&&!tf.location.pathname.match(/\/contents\//)); 229var h=(loc.protocol.indexOf('file:')==-1?'':'file://')+loc.pathname.replace(/\\/g,'/'),re=new RegExp((tf.lang==tf.baseLang?'':'(?:\/'+tf.lang+')?')+'(?:\/contents\/.*?$|\/([^/]*){1}$)'); 230hrefpart=h.replace(re,'/');if(!qlang)qlang=tf.lang; 231if((target&&!isRoot)||qtarget)hrefpart+='contents/'; 232if((qlang&&qlang!=baseLang)||(target&&!isRoot)||qtarget){hrefpart+=qlang+'/';} 233if(qtarget.indexOf('://')==-1){ 234if(qtarget&&target!=qtarget){hrefpart+=qtarget;} 235if(!qtarget&&target){hrefpart+=target;} 236if(!qtarget&&!target){hrefpart+=enterFilename;} 237} 238else hrefpart+='otherurl.html?url='+escape(qtarget); 239var q=[];for(var n in tf.parm){if(n!=''&&n!='target'&&n!='lang')q.push(n+'='+tf.parm[n]);} 240return hrefpart+(q.length>0?'?':'')+q.join('&'); 241} 242var qtarget=parm['target'],qlang=parm['lang']; 243if(qtarget||qlang){ 244var hrefpart=buildURL(qtarget?qtarget:'',qlang); 245s=hrefpart+location.hash; 246if(hrefpart.indexOf(location.pathname) != 0) location.replace(s); 247else if(location.pathname!=hrefpart)location.replace(s); 248} 249} 250// End: init.js
251var clickThrough=getARMID('mid'),rid=getARMID('rid'); 252var sfqsLinkTo=''; 253function linkTo(pr,pg){ 254if(!tf.utils){setTimeout(function(){linkTo(pr,pg);},100);return;} 255function linkToCallback(f,prid,pgid){ 256if(tf.pgid.toLowerCase()!=prid&&(tf.content.location.href.indexOf('/'+f)==-1||tf.content.location.hash!='#'+prid)){ 257f=unescapeUTF8(f); 258tf.content.location=tf.wm.url(f,'-',true)+sfqsLinkTo+(prid?'#'+prid.toLowerCase():''); 259} 260} 261if(tf.isIE){ 262function descroll() { 263var el=gl('WebSite'),tfcdb=tf.content.document.body; 264if(!el||(el.scrollWidth>el.offsetWidth&&el.scrollLeft==0&&tfcdb.scrollLeft==0)){setTimeout(descroll,50);return;} 265el.scrollLeft=0; 266if(tfcdb)tfcdb.scrollLeft=0; 267} 268setTimeout(descroll,100); 269} 270if(typeof(pg)=='undefined')pg=''; 271tf.utils.prpgmap.getParentPage(pr,pg,linkToCallback); 272} 273if(location.hash){ 274if(location.hash.substr(1))linkTo(location.hash.substr(1),location.pathname.replace(/.*\/(d\d*)(_.*)?\.html/,'$1')); 275} 276else if(tf.parm['targetid']){ 277var q=[];for(var n in tf.parm){if(n!=''&&n!='targetid'&&n!='target'&&n!='lang')q.push(n+'='+tf.parm[n]);} 278if(q.length>0)sfqsLinkTo='?'+q.join('&'); 279linkTo('',tf.parm['targetid']); 280} 281var splitNum=25; 282if(parm['lang']){lang=langNav=parm['lang'];} 283function debounce(fn, wait) { 284var timeout=null; 285var c=function(){ clearTimeout(timeout); timeout=null; }; 286var t=function(fn){ timeout=setTimeout(fn,wait); }; 287return function() { 288var context=this; 289var args=arguments; 290var f=function(){ fn.apply(context,args); }; 291timeout ? c()||t(f) : t(f); 292} 293} 294var debounce2=debounce; 295function winMgr(){this._a=[];this._rnd=Math.random();this.online=(loc.protocol.indexOf('file:')==-1);var h=(this.online?'':'file://')+loc.pathname.replace(/\\/g,'/');var re=new RegExp((tf.lang==tf.baseLang?'':'(?:\/'+tf.lang+')?')+'(?:\/contents\/.*?$|\/([^/]*){1}$)');this.baseurl=(isInDesigner()?unescape(this.path(tf.location)).replace(/\/contents\/.*/,'').replace(/\/$/,'')+'/contents/':h.replace(re,'/')+'contents/');var hostRaw=this.path(tf.location);this.host=escape(hostRaw);this.hostbaseurl=hostRaw.replace(/\/contents\/.*/,'') + '/';} 296winMgr.prototype.url=function(f,a,l){ 297var ff=unescapeUTF8(f),unescaped=(ff!=f); 298if(ff.indexOf(':\\')!=-1||ff.indexOf('://')!=-1)return f; 299if(ff.substr(0,3)=='../'){f=ff.substr(3);if(unescaped) { f=escapeUTF8(f); f = f.replace(/\%2F/g, '/');}} 300if(!a&&a!='-'){ 301// Reload loader every minute 302var d = new Date(); var exp = 60000; 303var loaderDate=tf.nametag.get('winMgr_loaderDate'); 304if (!loaderDate) { 305loaderDate = Math.round(d.getTime() / exp); 306tf.nametag.add('winMgr_loaderDate', loaderDate); 307} 308var n = Math.round(d.getTime() / exp); 309if(n != loaderDate) 310{ 311loaderDate = n; 312tf.nametag.add('winMgr_loaderDate', loaderDate); 313} 314a = loaderDate; 315} 316if(a=='f' && tf.lmd && lmd['index']) 317a = lmd['index']; 318if(typeof(l)!='undefined'&&l==true)f=tf.lang+'/'+f; 319return (a=='-')?this.baseurl+f:this.add2Q(this.baseurl+f,'lmd',a); 320} 321winMgr.prototype.add2Q=function(h,p,v){ 322if(h.indexOf('?')==-1)return h+'?'+p+'='+v; 323if(h.indexOf(p)==-1)return h+'&'+p+'='+v; 324var t=h.replace('?','&').split('&'); 325for(var i=0;i<t.length;i++)if(t[i].indexOf(p+'=')==0)t[i]=p+'='+v; 326if(t.length>1) t[1]='?'+t[1];return t.join('&').replace('&?','?'); 327} 328winMgr.prototype.jfile=function(f,q){ 329var ff=unescape(f),unescaped=(ff!=f); 330if(ff.indexOf('?')>-1){ff=ff.substr(0,ff.indexOf('?'));if(unescaped)f=escape(ff);} 331var m=Math.max(f.lastIndexOf('/'),f.lastIndexOf('\\')); 332return (m>-1)?f.substring(m+1):f; 333} 334winMgr.prototype.path=function(p){ 335p=p.toString(); 336var pp=unescape(p.toString()),unescaped=(pp!=p); 337var i=pp.indexOf('?');if(i!=-1)pp=pp.substring(0,i); 338if(unescaped)p=escape(pp); 339return (p.charAt(p.length-1)=='/')?p:p.substring(0,p.lastIndexOf('/')+1); 340} 341var wm=new winMgr(); 342scr.load('_datejs_',wm.url('date.js')); 343function showalerts(){ 344if(!langEnterLoaded){setTimeout('showalerts()',100);return;} 345} 346if(typeof(lmd['index'])=='string'&&LMD_this!=lmd['index']&&location.href.indexOf('lmd=')==-1) 347loc.replace(tf.enterFilename+location.search+(location.search?'&':'?')+'lmd='+lmd['index']+location.hash); 348else{ 349showalerts(); 350tf.sfPersist.set('storebasket',1,-1);
351var currencies={}; 352function currency(i,a,m,d,s){ 353this.iso=i; 354this.abbrev=a; 355this.multiplier=m; 356this.decimal_places=d; 357this.sign=s; 358this.getSignedID=function(){return this.iso+'/'+this.sign;} 359} 360var shopCurrency=new currency("USD","US$",1.0,2,'A5B24DFEE957BAAD76067ECBD561E8DF'); 361var currentCurrency=new currency("USD","US$",1.0,2,'A5B24DFEE957BAAD76067ECBD561E8DF'); 362var secondCurrency=null; 363var mfhObj=null; 364function mfh(id,idx1H,idx2H,forFullWidth){ 365var tfc=content; 366this.forFullWidth=forFullWidth; 367this.gl=function(s){return tfc.document?tfc.document.getElementById(s):null;} 368this.initialised=false; 369this.isDescendantOf=function(idParent,idChild){ 370var ret=false,el=gl(idChild),elParent=null; 371if(el)elParent=el.parentNode; 372while(elParent){ 373if(elParent.id==idParent){ret=true;break;} 374elParent=elParent.parentNode; 375} 376return ret; 377} 378this.applyms=function(){ 379if(utils&&typeof(utils.ms)=='function'&&gl('idx1Navigation')&&gl('idx2Navigation')){ 380var h=Math.max(mfhObj.height, 0),idxMinHeightApplyMS=100; 381for(var i=1;i<=2;i++){ 382var idNav='idx'+i+'Navigation',idxH=(i==1?idx1H:idx2H),elNav=gl(idNav),elId=gl(id); 383if(mfhObj.isDescendantOf(id,idNav)){ 384var hh=h; 385if(elNav){ 386var el=elNav,elParent=el.offsetParent; 387while(elParent&&elParent.id!=id){ 388el=elParent; 389elParent=elParent.offsetParent; 390} 391var rectOuter=el.getBoundingClientRect(),rect=elNav.getBoundingClientRect(); 392var offh=0; 393for(var j=0,jj=el.childNodes.length;j<jj;j++){ 394if(el.childNodes[j].nodeType==1&&!mfhObj.isDescendantOf(el.childNodes[j].id,idNav)){ 395offh+=(el.childNodes[j].innerHTML.length>0?el.childNodes[j].offsetHeight:0); 396} 397} 398hh=el.offsetHeight-offh-16; 399if(hh<idxMinHeightApplyMS)hh=idxMinHeightApplyMS; 400if(hh>rectOuter.bottom-rect.top){ 401hh=rectOuter.bottom-rect.top; 402} 403} 404if(idxH>0&&idxH<hh)hh=idxH;else if(idxH<0)hh+=idxH; 405for(var n=0,num=tfc.aMS.length;n<num;n++){if(tfc.aMS[n][0]==idNav){tfc.aMS[n]=[idNav,0,hh,true];break;}} 406} 407else{ 408var elPar=elNav.offsetParent; 409if(elPar){ 410if(elPar&&elPar.currentStyle)var pos=elPar.currentStyle.position; 411else var pos=d.defaultView.getComputedStyle(elPar, '').position; 412var hh=(pos=='absolute'?elNav.offsetTop:elPar.offsetTop); 413for(var n=0,num=tfc.aMS.length;n<num;n++){if(tfc.aMS[n][0]==idNav&&tfc.aMS[n][2]){tfc.aMS[n]=[idNav,0,tfc.aMS[n][2]-hh,true];break;}} 414} 415} 416if(elNav){ 417var w=elNav.parentNode.parentNode.offsetWidth-4; 418for(var n=0,num=tfc.aMS.length;n<num;n++){if(tfc.aMS[n][0]==idNav&&tfc.aMS[n][1]){tfc.aMS[n]=[idNav,w,tfc.aMS[n][2],true];break;}} 419} 420} 421var cnt=tfc.aMS.length,a; 422for(var n=0;n<cnt;n++){a=tfc.aMS[n];utils.ms(a[0],a[1],a[2],a[3]);if(tf.isIE6)mfhObj.redraw(tf.content.document.getElementById(a[0]));} 423} 424else setTimeout('mfhObj.applyms()',100); 425} 426this.redraw=function(el){if(!el)return;el.style.zoom='0.99';el.style.zoom='1';} 427this.resize=function(evt,notOnResize){ 428if(tfc.specialLoading||content.document&&content.document.readyState&&content.document.readyState!='complete'){setTimeout('mfhObj.resize(null,'+notOnResize+')',25);return;} 429var tfcd=tfc.document,tfcdb=tfcd.body,el=gl(id),ws=gl('WebSite'); 430if(!el){setTimeout('mfhObj.resize(null,'+notOnResize+')',25);return;} 431if(!this.forFullWidth){ 432function getOffsetTop(el){ 433var y=0; 434while(el){y+=el.offsetTop;el=el.offsetParent;} 435return y; 436} 437if(!mfhObj.initialised){ 438var tfcdbS=tfcdb.style,tfcddeS=tfcd.documentElement.style; 439tfcdbS.width='auto'; 440tfcddeS.height='100%'; 441tfcdbS.overflowY='hidden'; 442tfcddeS.overflowY='hidden'; 443ws.style.minHeight=''; 444ws.style.height='auto'; 445mfhObj.initialised=true; 446} 447var actualDocHeight=0; 448for(var n=0,num=tfcdb.childNodes.length;n<num;n++){ 449var tfcdb_cn=tfcdb.childNodes[n]; 450if(!tfcdb_cn||tfcdb_cn.nodeType!=1||!tfcdb_cn.id||tfcdb_cn.offsetHeight==0||tfcdb_cn.style.visibility=='hidden'||tfcdb_cn.style.display=='none')continue; 451if(tf.isIE7&&tfcdb_cn.currentStyle.position=='static'&&tfcdb_cn.offsetHeight>0&&tfcdb_cn.clientHeight==0)continue; 452actualDocHeight+=tfcdb_cn.offsetHeight; 453} 454var cyTop=getOffsetTop(el),cyBottom=actualDocHeight-ws.offsetTop-ws.offsetHeight+(ws.offsetHeight-el.offsetTop-el.offsetHeight); 455el.style.minHeight='';
456var h=tfcd.documentElement.offsetHeight-cyTop-cyBottom-parseFloat($('html').css('margin-top'))-parseFloat($('html').css('margin-bottom')); 457if(h>0){el.style.height=h+'px';mfhObj.height=h;} 458el.style.overflow='hidden'; 459for(var n=0,num=el.childNodes.length;n<num;++n){ 460var nd=el.childNodes[n],ndS=nd.style; 461if(nd.nodeType==1&&nd.className.indexOf('LayoutObject')==-1){ 462ndS.minHeight=''; 463if(nd.className&&nd.className.indexOf('EqualHeight')!=-1&&(h-nd.offsetTop)>=0)ndS.height=(h-nd.offsetTop)+'px'; 464if(nd.id=='Content'){if(window.opera||isSafari)ndS.overflow='auto';else{ndS.overflowY='auto';if(typeof(ndS.zoom)!='undefined'){ndS.zoom='0.99';ndS.zoom='1';}}} 465else{ndS.overflow='hidden';} 466} 467} 468mfhObj.redraw(gl('WebSiteHeader')); 469mfhObj.redraw(gl('WebSiteFooter')); 470helpBrowserJumpToAnchor(); 471} 472if(notOnResize)setTimeout(mfhObj.applyms,20); 473} 474if(!mfhObj){ 475mfhObj=this; 476addEvent('onresize',mfhObj.resize); 477} 478mfhObj.resize(null,true); 479} 480var arrObj=[],bgstyleadded=false; 481function load(url,id,isLang,force,replaceInnerHTML){ 482if(content){ 483try{ 484var cfe=content.frameElement; 485if(!bgstyleadded&&cfe&&cfe.style.cssText){ 486cfe.style.cssText=cfe.style.cssText.replace(/url\(\.\./,'url(contents'); 487bgstyleadded=true; 488} 489}catch(e){} 490if(replaceInnerHTML)arrObj[id]=content.document.getElementById(id); 491if(xLoaded&&tf.extra.loadExecute&&(LD_loaded||id=='lang')){tf.extra.loadExecute(url,id,isLang,force);} 492else{setTimeout('load("'+url+'","'+id+'",'+isLang+','+force+')',100);} 493} 494} 495var sfJSON=function(){function k(a){return 10>a?"0"+a:a}function h(a,e,b){var c,f,d,l;c=/["\\\x00-\x1f\x7f-\x9f]/g;var g;switch(typeof a){case "string":return c.test(a)?'"'+a.replace(c,function(a){var b=m[a];if(b)return b;b=a.charCodeAt();return"\\u00"+Math.floor(b/16).toString(16)+(b%16).toString(16)})+'"':'"'+a+'"';case "number":return isFinite(a)?String(a):"null";case "boolean":case "null":return String(a);case "object":if(!a)return"null";if("function"===typeof a.toJSON)return h(a.toJSON());c= 496[];if("number"===typeof a.length&&!a.propertyIsEnumerable("length")&&!b){l=a.length;for(f=0;f<l;f+=1)c.push(h(a[f],e,b)||"null");return"["+c.join(",")+"]"}if(e)for(l=e.length,f=0;f<l;f+=1)d=e[f],"string"===typeof d&&(g=h(a[d],e,b))&&c.push(h(d,e,b)+":"+g);else for(d in a)"string"===typeof d&&(g=h(a[d],e,b))&&c.push(h(d,e,b)+":"+g);return"{"+c.join(",")+"}"}}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+k(this.getUTCMonth()+1)+"-"+k(this.getUTCDate())+"T"+k(this.getUTCHours())+ 497":"+k(this.getUTCMinutes())+":"+k(this.getUTCSeconds())+"Z"};var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return{stringify:h,parse:function(a,e){function b(a,d){var c,g;if(d&&"object"===typeof d)for(c in d)Object.prototype.hasOwnProperty.apply(d,[c])&&(g=b(c,d[c]),void 0!==g&&(d[c]=g));return e(a,d)}if(!a)return{};var c;cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;cx.lastIndex=0;cx.test(a)&&(a=
498a.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?::?[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return c=eval("("+a+")"),"function"===typeof e?b("",c):c;throw new SyntaxError("parseJSON");},parseClone:function(a){a=this.parse(a);return this.clone(a)},clone:function(a){var e=[],b;for(b in a)e[b]="object"==typeof a[b]&&"undefined"==typeof a[b].tagName? 499this.clone(a[b]):a[b];return e}}}(); 500function saveBskToName(){ 501var toJSON=tf.sfJSON.stringify,bsks=[tf.core.Basket,tf.core.Favorite]; 502for(var n=0;n<bsks.length;n++){ 503var bt=bsks[n]; 504if(bt.items.cnt()>0||tf.core.ResellerID!=''){ 505bt.fbsk.bsk=''; 506var i=bt.items.start(); 507while(i){i.parent='';i=bt.items.next()} 508i=bt.fbsk.items.start(); 509while(i){i.parent='';i=bt.fbsk.items.next()} 510bt.wssig=tf.wssig; 511nametag.add(n==0?'bsk':'fav',toJSON(bt)); 512i=bt.items.start(); 513while(i){i.parent=bt;i=bt.items.next()} 514i=bt.fbsk.items.start(); 515while(i){i.parent=bt;i=bt.fbsk.items.next()} 516bt.fbsk.bsk=bt; 517} 518else nametag.del(n==0?'bsk':'fav'); 519} 520if(tf.wm._pArr){ 521tf.wm._pArr['wssig']=tf.wssig; 522nametag.add('_pArr',toJSON(tf.wm._pArr,null,true)); 523} 524tf.shopCurrency['wssig']=tf.wssig; 525tf.nametag.add('currShop',tf.sfJSON.stringify(tf.shopCurrency)); 526if(tf.secondCurrency){ 527tf.secondCurrency['wssig']=tf.wssig; 528tf.nametag.add('currSec',tf.sfJSON.stringify(tf.secondCurrency)); 529} 530tf.currentCurrency['wssig']=tf.wssig; 531tf.nametag.add('currCurr',tf.sfJSON.stringify(tf.currentCurrency)); 532nametag.add('coreProperties',toJSON(tf.core.getCoreProperties())); 533} 534function loadBskFromName(){ 535var tf=this,fromJSON=tf.sfJSON.parse; 536if(!tf.conf){setTimeout('loadBskFromName()',100);return;} 537var bskStr=nametag.get('bsk'); 538if(bskStr){ 539tf.conf.coreSettings(); 540var obskStr=fromJSON(bskStr); 541if(obskStr&&obskStr.wssig==tf.wssig){ 542tf.core.Basket.merge(obskStr); 543} 544} 545var favStr=nametag.get('fav'); 546if(favStr){ 547var ofavStr=fromJSON(favStr); 548if(ofavStr){ 549tf.core.Favorite.merge(ofavStr); 550} 551} 552var _pArrStr=nametag.get('_pArr'); 553if(_pArrStr){ 554if(typeof(tf.wm._pArr)=='undefined')tf.wm._pArr={}; 555var oldArr=tf.sfJSON.parseClone(_pArrStr); 556if(oldArr&&oldArr['wssig']==tf.wssig){ 557merge(oldArr,tf.wm._pArr); // Part of SF-1098 also fixes SF-2244 558tf.wm._pArr=oldArr; // Part of SF-1098 also fixes SF-2244 559} 560} 561var currStr=tf.nametag.get('currShop'); 562if(currStr){
563var oCurr=tf.sfJSON.parse(currStr); 564if(oCurr&&oCurr['wssig']==tf.wssig)merge(tf.shopCurrency,oCurr); 565} 566currStr=tf.nametag.get('currSec'); 567if(currStr){ 568var oCurr=tf.sfJSON.parse(currStr); 569if(oCurr&&oCurr['wssig']==tf.wssig)merge(tf.secondCurrency,oCurr); 570} 571currStr=tf.nametag.get('currCurr'); 572if(currStr){ 573var oCurr=tf.sfJSON.parse(currStr); 574if(oCurr&&oCurr['wssig']==tf.wssig)merge(tf.currentCurrency,oCurr); 575} 576tf.core.setCoreProperties(fromJSON(nametag.get('coreProperties'))); 577bskLoaded=true; 578tf.lastpage=nametag.get('lastpage'); 579tf.lastdeptpage=nametag.get('lastdeptpage'); 580} 581function merge(lhs,rhs){if(!lhs)lhs=[];for(var n in rhs)lhs[n]=rhs[n];} 582if(lang=='en-us'){ 583} 584var langEnterLoaded=true; 585function gl(s){return d.getElementById(s);} 586function ldjs(f){tf.scr['load'](f.replace(/[^a-zA-Z0-9]/g,''),tf.wm.url(f.replace('contents/'+tf.lang+'/',''),'f',1));} 587function addOnload(f){addEvent('onload',f);} 588function addEvent(e,f,t){if(!t)var t=window;if (t.addEventListener)t.addEventListener(e.replace(/^on/,''),f,false);else if (t.attachEvent)t.attachEvent(e,f);} 589function delEvent(e,f,t){if(!t)var t=window;if (t.removeEventListener)t.removeEventListener(e.replace(/^on/,''),f,false);else if (t.detachEvent)t.detachEvent(e,f);} 590function addEventOnClass(e,f,c,del) { 591var tfcd=tf.content.document,maxh=0,coll=[],re = new RegExp(' ?'+c+'( |$)'); 592var atag=['DIV','SPAN','H1','H2','H3','TD']; 593for(var ntag=0,nntag=atag.length;ntag<nntag;ntag++){ 594var t=tfcd.getElementsByTagName(atag[ntag]); 595for (var x = 0, cnt=t.length; x<cnt; x++) { 596var tx=t[x],cls=tx.getAttribute('class') || tx.getAttribute('className'); 597if (cls && cls.match(re)) { 598if(!del)addEvent(e,f,tx);else delEvent(e,f,tx); 599} 600} 601} 602} 603function delEventOnClass(e,f,c) { addEventOnClass(e,f,c,true); } 604function ld(name,sf,args){var s;if(LD&&name)s=LD[name];if(!LD||!s)s=sf||'';if(args){var sa=s.split('%%');s='';for(var i=0;i<sa.length;i++)if(args[i])s+=sa[i]+args[i];else s+=sa[i];}return s.replace('%%','');} 605var specialLoading=false,nameStr=''; 606var aMS=[],aMM=[]; 607function imgs2(){var tfu=tf.utils;if(tfu&&tfu.imgs)tfu.imgs();else setTimeout('imgs2()',50)}; 608addOnload(imgs2); 609if(mobileDetector)addEvent('onresize',mobileDetector); 610var ldwriteArr=[]; 611function ldwrite(){if(!tf.LD_loaded||tf.extra&&tf.extra.loadInProgress>0){setTimeout(ldwrite,100);return;}for(var n=0,l=tf.ldwriteArr.length;n<l;n++){var o=tf.ldwriteArr[n],name=o[0],uniq=o[1],args=o[3],s=ld(name,o[2],args);if(s){var el=gl(name+uniq);if(el)el.innerHTML=s;}}}addOnload(ldwrite); 612function ldwriteadd(name,def,args){if(LD[name])return ld(name,def,args);var uniq=Math.random();tf.ldwriteArr.push([name,uniq,def,args]);return'<span id="'+name+uniq+'"></span>';} 613function helpBrowserJumpToAnchor(){ 614if(location.hash.substr(1)){ 615var el=tf.content.document.getElementById('Product-'+location.hash.substr(1).toUpperCase()); 616if(el&&el.scrollIntoView) el.scrollIntoView(); 617} 618} 619if(!tf.isInLL)addOnload(helpBrowserJumpToAnchor); 620var sfMakeSpace = { 621subscribers:'', 622go: function(bool,styleid,displayid){ 623var dispid=displayid||'none'; 624this.subscribers.replace(dispid+'|',''); 625if(bool)this.subscribers+=dispid+'|'; 626else if(this.subscribers!=''&&this.subscribers!='none|')return; 627if(styleid){ 628var ss=d.styleSheets; 629for(var n=0,num=ss.length;n<num;n++){ 630if(ss[n].title==styleid)ss[n].disabled=!bool; 631} 632} 633if(displayid!=''){ 634el=gl(displayid); 635if(el){ 636el.style.display=(bool?'block':'none'); 637} 638} 639}, 640isDisabled:function(styleid){ 641var disabled=false; 642if(styleid){ 643var ss=d.styleSheets; 644for(var n=0,num=ss.length;n<num;n++){ 645if(ss[n].title==styleid)disabled=ss[n].disabled; 646} 647} 648return disabled; 649} 650}; 651var themeColors=['#d46900','#ffbf00','#5f7f00','#aa0000','#2a2a2a','#ffffff','#222222','#ffbf00','#d46900','#e3e3e3','#6F6F6F','#6F6F6F','#']; 652var autoText = { 653GCUsesAutoText:{}, 654lightText:'', 655darkText:'', 656classes:"", 657colorCache: [], 658localApplyOptimised:false, 659rgbToHsl: function (rgb) {}, 660hslToRgb: function (hsl) {}, 661isColorDark:function(doc, el){}, 662parser:function(doc, node, ancestorGC) {}, 663apply:function(ancestorGC) {}, 664localApply:function(el, ancestorGC) {} 665}; 666autoText.GCUsesAutoText={GC1:0,GC2:0,GC3:0,GC4:1,GC5:1,GC6:1,GC9:1,GC10:1,GC11:0,GC12:0,GC13:1,GC14:1,GC15:1,GC16:0,GC17:0,GC18:0,GC19:0,GC20:0,GC21:0,GC22:0,GC23:0,GC24:0,GC26:0,GC27:0,GC30:1,GC31:1,GC32:1,GC33:1,GC34:1,GC36:0,GC37:0,GC38:0,GC39:0,GC40:0,GC41:0,GC42:0,GC45:1,GC47:0,GC48:1,GC49:1,GC50:0,GC51:0,GC53:0,GC54:0,GC55:0,GC57:0,GC58:0,GC59:0,GC60:0,GC61:0,GC63:1,GC64:1,GC65:0,GC66:0,GC69:0,GC70:0,GC71:0,GC72:0,GC75:0,GC79:0,GC91:1,GC92:1}; 667autoText.lightText='#f7f7f7'; 668autoText.darkText='#1c1c1c'; 669autoText.specialText='#FF0303'; 670autoText.rgbToHsl=function(rgb) { 671var r = rgb.r / 255, g = rgb.g / 255, b = rgb.b / 255; 672var max = Math.max(r, g, b), min = Math.min(r, g, b); 673var h, s, l = (max + min) / 2; 674if(max == min){ 675h = s = 0; // achromatic 676}else{ 677var d = max - min; 678s = l > 0.5 ? d / (2 - max - min) : d / (max + min); 679switch(max){ 680case r: h = (g - b) / d + (g < b ? 6 : 0); break; 681case g: h = (b - r) / d + 2; break; 682case b: h = (r - g) / d + 4; break; 683} 684h /= 6;
685} 686return {h:h, s:s, l:l}; 687} 688autoText.hslToRgb=function(hsl) { 689var h = hsl.h, s = hsl.s, v = hsl.v; 690var r, g, b; 691if(s == 0){ 692r = g = b = l; // achromatic 693}else{ 694function hue2rgb(p, q, t){ 695if(t < 0) t += 1; 696if(t > 1) t -= 1; 697if(t < 1/6) return p + (q - p) * 6 * t; 698if(t < 1/2) return q; 699if(t < 2/3) return p + (q - p) * (2/3 - t) * 6; 700return p; 701} 702var q = l < 0.5 ? l * (1 + s) : l + s - l * s; 703var p = 2 * l - q; 704r = hue2rgb(p, q, h + 1/3); 705g = hue2rgb(p, q, h); 706b = hue2rgb(p, q, h - 1/3); 707} 708return {r:r * 255, g:g * 255, b:b * 255}; 709} 710autoText.isColorDark=function(doc, el) { 711var cc = '', node = el; 712if (typeof(node.currentStyle) != 'undefined') { 713while (node && node.nodeName != 'HTML' && (!node.currentStyle.backgroundColor || node.currentStyle.backgroundColor == 'transparent')) { 714node = node.parentNode; 715} 716if (node) cc = node.currentStyle.backgroundColor; 717} 718else 719{ 720while (node && node.nodeName != 'HTML' && (doc.defaultView.getComputedStyle(node, '').backgroundColor.indexOf('rgb') == -1 || doc.defaultView.getComputedStyle(node, '').backgroundColor.indexOf('rgba') != -1)) { 721node = node.parentNode; 722} 723if (node) cc = doc.defaultView.getComputedStyle(node, '').backgroundColor; 724} 725if (node) { 726return autoText._isColorDark(cc); 727} 728return cc <= 0.6; 729}; 730autoText._isColorDark=function(cc) { 731var ccc = ''; 732if(autoText.colorCache[cc]) return autoText.colorCache[cc] <= 0.6; 733ccc = cc; 734var hsl = null; 735if (cc.substring(0, 1) == '#') { 736cc = cc.substring(1); 737if(cc.length==3)cc=cc.replace(/(\d)(\d)(\d)/,function($0,$1,$2,$3){return $1+$1+$2+$2+$3+$3;}); 738var rgb = {r:parseInt(cc.substr(0, 2), 16), g:parseInt(cc.substr(2, 2), 16), b:parseInt(cc.substr(4, 2), 16)}; 739hsl = autoText.rgbToHsl(rgb); 740cc = hsl.l; 741} 742else { 743cc = cc.replace(/rgba?\((\d+), (\d+), (\d+)[^)]*?\)/, function($0, $1, $2, $3) { 744var rgb = {r:parseInt($1), g:parseInt($2), b:parseInt($3)}; 745hsl = autoText.rgbToHsl(rgb); 746return hsl.l; 747}); 748} 749autoText.colorCache[ccc] = cc; 750return cc <= 0.6; 751}; 752autoText.getAutoColor=function(ccc) { 753return (autoText._isColorDark(ccc) ? autoText.lightText : autoText.darkText); 754}; 755autoText.parser=function(doc, node, ancestorGC) { 756if(!(node instanceof jQuery) && (!node || !node.childNodes)) 757return; 758if(autoText.classes.length == 0) { 759var classes = ""; 760$.each(autoText.GCUsesAutoText, function(index, value) { 761if(classes.length == 0) 762classes += '.' + index; 763else 764classes += ',.' + index; 765}); 766autoText.classes = classes; 767} 768if (autoText.localApplyOptimised) { 769$(node).find('[class^=GC]').each(function() { 770var el = this, GC = el.className.match(/^GC\d+/), GCNum=GC?parseInt(GC[0].replace('GC','')):-1; 771if (GCNum >= 28 && GCNum <= 35) { 772jQuery(el).find('a').css('color',''); 773} 774el.style.color=''; 775}); 776} 777$(node).find(autoText.classes).each(function() { 778var el = this; 779var GC = el.className.match(/^GC\d+/),GCNum=GC?parseInt(GC[0].replace('GC','')):-1; 780if (GC && typeof(autoText.GCUsesAutoText[GC[0]]) != 'undefined' || el.nodeName == 'A' && autoText.GCUsesAutoText[ancestorGC] == 1) { 781var cc = (autoText.isColorDark(doc, el.nodeName == 'A' && el.parentNode && !GC ? el.parentNode : el) ? autoText.lightText : autoText.darkText); 782el.style.color = cc; 783if (GCNum >= 28 && GCNum <= 35 && autoText.GCUsesAutoText[GC[0]] == 1) { 784jQuery(el).find('a').each(function() { 785this.style.color = cc; 786}); 787} 788} 789else if (GC) { 790el.style.color = ''; 791if (GCNum >= 28 && GCNum <= 35) { 792jQuery(el).find('a').each(function() { 793this.style.color = ''; 794}); 795} 796} 797else if (el.nodeName == 'A' && ancestorGC && typeof(autoText.GCUsesAutoText[ancestorGC]) == 'undefined') { 798el.style.color = ''; 799} 800if (GC && GC[0] && ancestorGC)ancestorGC = GC[0]; 801}); 802}; 803autoText.apply=function(ancestorGC) { 804autoText.localApplyOptimised = false; 805if (d.frames) { 806for (var i=0,num=d.frames.length;i<num;i++){ 807try{if(typeof(d.frames[i].document)=='object')autoText.parser(d.frames[i].document, d.frames[i].document.body);}catch(e){/* catch access denied errors.*/} 808} 809} 810autoText.parser(document, document.body, ancestorGC=='ancestorGC'?ancestorGC:null); 811} 812autoText.localApply = function (el, ancestorGC) {
813autoText.localApplyOptimised = true; 814autoText.parser(document, el, ancestorGC == 'ancestorGC' ? ancestorGC : null); 815} 816if(!tf.isInLL&&typeof(autoText)!='undefined')addOnload(autoText.apply); 817function navRO(ovr,o,id,gc){ 818function rmGC(s){var ss=s.split(' ');return(ss[1] && ss[0].substr(0,2)=='GC')?ss[1]:s;} 819function addOvr(o){ 820o.className=gc+rmGC(o.className); 821o.className=o.className.replace(/(idx[12](Sub)?)(Mouseover)?/, '$1Mouseover'); 822if(gc == ' ') { 823var tfc=tf.content; 824if(typeof(tfc.autoText)!='undefined') { 825function isDarker(cc) { 826if (cc.substring(0, 1) == '#') { 827cc = cc.substring(1); 828var rgb = {r:parseInt(cc.substr(0, 2), 16), g:parseInt(cc.substr(2, 2), 16), b:parseInt(cc.substr(4, 2), 16)}; 829hsl = autoText.rgbToHsl(rgb); 830cc = hsl.l; 831} 832else { 833cc = cc.replace(/rgba?\((\d+), (\d+), (\d+)[^)]*?\)/, function($0, $1, $2, $3) { 834var rgb = {r:parseInt($1), g:parseInt($2), b:parseInt($3)}; 835hsl = autoText.rgbToHsl(rgb); 836cc = hsl.l; 837}); 838} 839return cc <= 0.5; 840} 841function getBackgroundColor($dom) { 842var bgColor = ""; 843while($dom[0].tagName.toLowerCase() != "html") { 844bgColor = $dom.css("background-color"); 845if(bgColor != "rgba(0, 0, 0, 0)" && bgColor != "transparent") { 846break; 847} 848$dom = $dom.parent(); 849} 850return bgColor; 851} 852if($(o).children('a').css('color')){ 853var darker = isDarker(getBackgroundColor($(o))); 854if(darker == isDarker($(o).children('a').css('color'))) { 855$(o).children('a').css('color', darker ? '#ffffff' : '#000000'); 856} 857} 858} 859} 860} 861function rmOvr(o){o.className=gc+rmGC(o.className).replace(/Mouseover( |$)/g,'$1');} 862if(gc.length>0)gc+=' '; 863var className=rmGC(o.className),s=className.replace(/(?:Left|Right)?(?:Mouseover)?$/,''),movr='Mouseover'; 864var ell=gl(s+'Left'+id),elc=gl(s+id),elr=gl(s+'Right'+id); 865if(ell&&elc&&elr){ 866if(ovr){addOvr(ell);addOvr(elc);addOvr(elr);} 867else{rmOvr(ell);rmOvr(elc);rmOvr(elr);} 868} else{ 869if(ovr) addOvr(o); 870else rmOvr(o); 871} 872var tfc=tf.content; 873if(typeof(tfc.autoText)!='undefined')tfc.autoText.parser(tfc.document, o, o.className.split(' ')[0]); 874} 875function navOvr(o,id,gc){navRO(true,o,id,gc);}function navOut(o,id,gc){navRO(false,o,id,gc);} 876var aOtherURL={}; 877function navClk(o,h,id){var url=unescape(tf.wm.url(h,'-',1));
878if(typeof(aOtherURL[id])=='undefined'){tf.content.location.href=url;} 879else{ 880if(aOtherURL[id]==0){tf.content.location=tf.wm.url('otherurl.html?ourl='+id,'-',1);} 881else{window.open(url);} 882}} 883function cancelBuble(evt){try{var e=(typeof(evt)!='undefined')?evt:event;e.cancelBubble=true;}catch(e){}} 884var qandi={ 885coreProp:tf.sfJSON.parse(tf.nametag.get('coreProperties')), 886qtyFldValueDelayed:function(id,qty){ 887var me=this; 888if(!tf.core||!tf.core.nfmt){setTimeout(function(){me.qtyFldValueDelayed(id,qty);},100);return;} 889var el=gl(id); 890if(el)el.value=tf.core.nfmt.toLoc(qty); 891}, 892qtyFld:function(Id,MinQty,FractQty,QtyUnit){ 893if(!this.show)return''; 894if(!parseInt(FractQty))MinQty=parseInt(MinQty); 895var def_qty=1,n='ProductQuantity'; 896if(MinQty>0){ 897if(tf.core&&tf.core.nfmt)def_qty=core.nfmt.toLoc(MinQty); 898else{def_qty='';this.qtyFldValueDelayed(Id+'_Quantity',MinQty);} 899} 900else if(FractQty>0){if(tf.core&&tf.core.nfmt)def_qty=core.nfmt.toLoc('1.00');} 901var ret='<div class="'+n+' QntyBox"><input type="numeric" onclick="cancelBuble(event)" id="'+Id+'_Quantity" name="'+Id+'_Quantity" value="'+def_qty+'" size="2" maxlength="6">'; 902if(QtyUnit!='')ret+='<span class="'+n+'Unit">'+QtyUnit+'</span>'; 903ret+='</div>'; 904return ret; 905}, 906progressbar:function(prid,show,idPrefix){ 907var elATB=idPrefix?tf.content.gl(idPrefix+'-'+prid):(tf.content.gl('AddToBasketButton-'+prid)||tf.content.gl('AddtobasketButton-'+prid)),elPB=tf.content.gl('AddToBasketProgress'); 908if (elATB){ 909if (show) { 910var elATBStyle=elATB.parentNode.style; 911elATBStyle.position='relative'; 912elPB=elATB.cloneNode(false); 913elPB.id='AddToBasketProgress'; 914elPB.className='icon-spinner2 icon-fa-spin'; 915elPB.style.color='currentColor'; 916elPB.style.fontSize='2em'; 917elPB.style.position='absolute'; 918elPB.style.left=elATB.offsetLeft+'px'; 919elPB.style.top=0; 920elPB.style.width=elATB.offsetHeight+'px'; 921elPB.style.height=elATB.offsetHeight+'px'; 922elPB.style.lineHeight=elPB.style.height; 923elPB.style.textAlign='center'; 924elPB.style.margin=0; 925elPB.style.padding=0; 926elPB.style.border='none'; 927elPB.style.zIndex=1; 928elATB.parentNode.insertBefore(elPB,elATB); 929elPB.style.display='block'; 930elATB.style.visibility='hidden'; 931} 932else{ 933if(elPB)elPB.parentNode.removeChild(elPB); 934if ($(elATB.parentNode).css('display').indexOf('inline')==0||$(elATB.parentNode).css('display').indexOf('block')==0){ 935$(elATB.parentNode).css('display','table'); 936setTimeout(function(){$(elATB.parentNode).css('display','');},50); 937} 938elATB.style.visibility='visible'; 939} 940} 941}, 942ph:0 943} 944qandi['show']=true; 945if(!qandi['show']){ 946(function qandiLoad() { 947if(window.jQuery) jQuery(document).ready(function(){ jQuery('.ProductIcons, .ProductPurchaseContainer').remove(); }); 948else setTimeout(qandiLoad,50); 949})(); 950} 951function dynLoadPrice(id,p,pd,fnEnd){ 952core=tf.core 953if(core&&tf.utils){ 954if(p.length==0) return; 955if(core.regPrc)core.regPrc(p); 956if(fnEnd){fnEnd(id);} 957if(pd)tf.utils.populatedata(); 958} 959else setTimeout(function(){dynLoadPrice(id,p,pd,fnEnd);},100); 960} 961var equalHeightClass=[]; 962function equalHeightOnClass(ignoreWithPrefix,onlyWithPrefix){ 963for(var n=0,nn=equalHeightClass.length;n<nn;n++){ 964var ok=(!onlyWithPrefix&&!ignoreWithPrefix); 965if(!ok)ok=ignoreWithPrefix&&equalHeightClass[n].indexOf(ignoreWithPrefix)!=0; 966if(!ok)ok=onlyWithPrefix&&equalHeightClass[n].indexOf(onlyWithPrefix)==0; 967if(ok)tf.utils.equaldiv(equalHeightClass[n]); 968} 969} 970function equalWidth(containerSelector, itemSelector, itemMaxWidth, maxColumns, itemsOnly) { 971var mw = itemMaxWidth || 260, mcol = maxColumns || 5; 972var $container = $(containerSelector), $items = $(itemSelector, $container); 973var outerSpace = $items.outerWidth(true) - $items.outerWidth(); 974var w = 0, maxAvailableWidth = $container.css('width','auto').width(); 975for (var n = 1; n <= mcol; n++) { 976w = parseInt((maxAvailableWidth / n) - outerSpace); 977if (w <= mw) break; 978} 979if (itemsOnly) { 980$(itemSelector, $container).width(w); 981} 982else { 983$(itemSelector, $container).outerWidth(w); 984$container.width((w + outerSpace) * Math.min(n, $items.length)); 985} 986} 987var moreHistory = { 988push:function(from_pgidx,to_pgidx,append_prid){ 989if (tf.isInSF()) return; 990this._load(); 991this._stack.push({from:(from_pgidx?from_pgidx:tf.pgidx)+(append_prid?'#'+to_pgidx.replace(/(?:_.*|)\.html?/,''):''),to:to_pgidx}); 992this._save(); 993}, 994pop:function(pgidx){ 995if (tf.isInSF()) return ''; 996this._load(); 997var o=this._stack[this._stack.length-1],fromURL=''; 998if(o&&o['to']==pgidx)fromURL=o['from']; 999if(fromURL){ 1000if((sfFilters&&sfFilters['deptEnabled']==tf.pgid)||fromURL.indexOf('search.php')==0)fromURL='';else{this._stack.pop();this._save();} 1001} 1002return fromURL; 1003}, 1004_load:function(){ 1005var s=tf.nametag.get('moreHistory'); 1006if(s){this._stack=tf.sfJSON.parse(s);} 1007}, 1008_save:function(){ 1009tf.nametag.add('moreHistory',tf.sfJSON.stringify(this._stack)); 1010}, 1011_stack:[] 1012}; 1013if(!tf.isInLL){ 1014addOnload(function(){ 1015addEvent('onclick', function(evt){ 1016var el = evt.srcElement || evt.target; 1017while (el && el != d.body && el.nodeName != 'A') { el = el.parentNode; } 1018if (el && el.nodeName == 'A' && el.getAttribute('href')) { 1019if (el.href.match(/p\d+_?.*?\.html/) && !el.onclick || (el.onclick && !el.onclick.toString().match('tf.moreHistory.push'))) tf.moreHistory.push((tf.sfFilters['deptEnabled']?'search.php':tf.pgidx),tf.wm.jfile(el.href),false);return true; 1020} 1021}, d.body); 1022}); 1023} 1024// Try to reload the frame if the F5 refresh fails to load it properly. (For FF4.) 1025if(!tf.isInLL){ 1026tf.addEvent('onload',function(){ 1027var ids=['index1','index2']; 1028for(var i=0,ii=ids.length;i<ii;i++){ 1029if(gl(ids[i]+'holder')&&gl(ids[i]+'holder').innerHTML==''){ 1030if(gl(ids[i]+'frame'))gl(ids[i]+'frame').src=gl(ids[i]+'frame').src+'?'+Math.random(); 1031} 1032} 1033window.hasFlash=false; 1034try { 1035var fo=new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); 1036if(fo){ 1037window.hasFlash=true; 1038} 1039}catch(e){ 1040if (navigator.mimeTypes 1041&& navigator.mimeTypes['application/x-shockwave-flash']!=undefined 1042&& navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin){ 1043window.hasFlash=true; 1044} 1045} 1046if(!window.hasFlash){ 1047$('object[id^=DSObject_], embed[name^=DSObject_]').hide(); 1048} 1049},tf); 1050} 1051var pageID=(window.external&&window.external['getPageID']?window.external['getPageID']():''); 1052if(pageID!='D-42')tf.load('lang.html','lang'); 1053} 1054function productIconsLocker(prid) { 1055if(typeof(_sfEvt_htmlLocker)=='undefined') return; 1056if($('#ProductOptions-'+prid).length==0||$('#ProductOptions-'+prid).text().trim()=='')return; 1057if($('.ProductOptions').data('initialised'))return; 1058$('#ProductIcons-'+prid).filter(':not(.locker)').css('position','relative')
1059.append(_sfEvt_htmlLocker.replace(/title=""/g,'title="'+((LD&&LD.LD_LOADING)||'').replace(/"/g,'"')+'"')) 1060; 1061} 1062// </script> 1063// $Revision: 47176 $ 1064// $HeadURL: svn://localhost/ShopFactory/branches/V15_00/bin/Common%20Files/parse/loader.js $
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.