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='nl',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='46296.471782',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:';'.replace(/;/g,','),sub:1,fold:parseInt('1'),pv:'http://localhost:49282/',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 = '46296.471782'; 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("EUR","â¬",1.0,2,'2531282BAA49C72C5C3E7CE13835BC70'); 361var currentCurrency=new currency("EUR","â¬",1.0,2,'2531282BAA49C72C5C3E7CE13835BC70'); 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()} 510i=bt.itemsTemporary.start(); 511while(i){i.parent='';i=bt.itemsTemporary.next()} 512bt.wssig=tf.wssig; 513nametag.add(n==0?'bsk':'fav',toJSON(bt)); 514i=bt.items.start(); 515while(i){i.parent=bt;i=bt.items.next()} 516i=bt.fbsk.items.start(); 517while(i){i.parent=bt;i=bt.fbsk.items.next()} 518i=bt.itemsTemporary.start(); 519while(i){i.parent=bt;i=bt.itemsTemporary.next()} 520bt.fbsk.bsk=bt; 521} 522else nametag.del(n==0?'bsk':'fav'); 523} 524if(tf.wm._pArr){ 525tf.wm._pArr['wssig']=tf.wssig; 526nametag.add('_pArr',toJSON(tf.wm._pArr,null,true)); 527} 528tf.shopCurrency['wssig']=tf.wssig; 529tf.nametag.add('currShop',tf.sfJSON.stringify(tf.shopCurrency)); 530if(tf.secondCurrency){ 531tf.secondCurrency['wssig']=tf.wssig; 532tf.nametag.add('currSec',tf.sfJSON.stringify(tf.secondCurrency)); 533} 534tf.currentCurrency['wssig']=tf.wssig; 535tf.nametag.add('currCurr',tf.sfJSON.stringify(tf.currentCurrency)); 536nametag.add('coreProperties',toJSON(tf.core.getCoreProperties())); 537} 538function loadBskFromName(){ 539var tf=this,fromJSON=tf.sfJSON.parse; 540if(!tf.conf){setTimeout('loadBskFromName()',100);return;} 541var bskStr=nametag.get('bsk'); 542if(bskStr){ 543tf.conf.coreSettings(); 544var obskStr=fromJSON(bskStr); 545if(obskStr&&obskStr.wssig==tf.wssig){ 546tf.core.Basket.merge(obskStr); 547} 548} 549var favStr=nametag.get('fav'); 550if(favStr){ 551var ofavStr=fromJSON(favStr); 552if(ofavStr){ 553tf.core.Favorite.merge(ofavStr); 554} 555} 556var _pArrStr=nametag.get('_pArr'); 557if(_pArrStr){ 558if(typeof(tf.wm._pArr)=='undefined')tf.wm._pArr={}; 559var oldArr=tf.sfJSON.parseClone(_pArrStr); 560if(oldArr&&oldArr['wssig']==tf.wssig){ 561merge(oldArr,tf.wm._pArr); // Part of SF-1098 also fixes SF-2244 562tf.wm._pArr=oldArr; // Part of SF-1098 also fixes SF-2244 563} 564} 565var currStr=tf.nametag.get('currShop'); 566if(currStr){
567var oCurr=tf.sfJSON.parse(currStr); 568if(oCurr&&oCurr['wssig']==tf.wssig)merge(tf.shopCurrency,oCurr); 569} 570currStr=tf.nametag.get('currSec'); 571if(currStr){ 572var oCurr=tf.sfJSON.parse(currStr); 573if(oCurr&&oCurr['wssig']==tf.wssig)merge(tf.secondCurrency,oCurr); 574} 575currStr=tf.nametag.get('currCurr'); 576if(currStr){ 577var oCurr=tf.sfJSON.parse(currStr); 578if(oCurr&&oCurr['wssig']==tf.wssig)merge(tf.currentCurrency,oCurr); 579} 580tf.core.setCoreProperties(fromJSON(nametag.get('coreProperties'))); 581bskLoaded=true; 582tf.lastpage=nametag.get('lastpage'); 583tf.lastdeptpage=nametag.get('lastdeptpage'); 584} 585function merge(lhs,rhs){if(!lhs)lhs=[];for(var n in rhs)lhs[n]=rhs[n];} 586if(lang=='nl'){ 587} 588var langEnterLoaded=true; 589function gl(s){return d.getElementById(s);} 590function ldjs(f){tf.scr['load'](f.replace(/[^a-zA-Z0-9]/g,''),tf.wm.url(f.replace('contents/'+tf.lang+'/',''),'f',1));} 591function addOnload(f){addEvent('onload',f);} 592function 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);} 593function 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);} 594function addEventOnClass(e,f,c,del) { 595var tfcd=tf.content.document,maxh=0,coll=[],re = new RegExp(' ?'+c+'( |$)'); 596var atag=['DIV','SPAN','H1','H2','H3','TD']; 597for(var ntag=0,nntag=atag.length;ntag<nntag;ntag++){ 598var t=tfcd.getElementsByTagName(atag[ntag]); 599for (var x = 0, cnt=t.length; x<cnt; x++) { 600var tx=t[x],cls=tx.getAttribute('class') || tx.getAttribute('className'); 601if (cls && cls.match(re)) { 602if(!del)addEvent(e,f,tx);else delEvent(e,f,tx); 603} 604} 605} 606} 607function delEventOnClass(e,f,c) { addEventOnClass(e,f,c,true); } 608function 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('%%','');} 609var specialLoading=false,nameStr=''; 610var aMS=[],aMM=[]; 611function imgs2(){var tfu=tf.utils;if(tfu&&tfu.imgs)tfu.imgs();else setTimeout('imgs2()',50)}; 612addOnload(imgs2); 613if(mobileDetector)addEvent('onresize',mobileDetector); 614var ldwriteArr=[]; 615function 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); 616function 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>';} 617function helpBrowserJumpToAnchor(){ 618if(location.hash.substr(1)){ 619var el=tf.content.document.getElementById('Product-'+location.hash.substr(1).toUpperCase()); 620if(el&&el.scrollIntoView) el.scrollIntoView(); 621} 622} 623if(!tf.isInLL)addOnload(helpBrowserJumpToAnchor); 624var sfMakeSpace = { 625subscribers:'', 626go: function(bool,styleid,displayid){ 627var dispid=displayid||'none'; 628this.subscribers.replace(dispid+'|',''); 629if(bool)this.subscribers+=dispid+'|'; 630else if(this.subscribers!=''&&this.subscribers!='none|')return; 631if(styleid){ 632var ss=d.styleSheets; 633for(var n=0,num=ss.length;n<num;n++){ 634if(ss[n].title==styleid)ss[n].disabled=!bool; 635} 636} 637if(displayid!=''){ 638el=gl(displayid); 639if(el){ 640el.style.display=(bool?'block':'none'); 641} 642} 643}, 644isDisabled:function(styleid){ 645var disabled=false; 646if(styleid){ 647var ss=d.styleSheets; 648for(var n=0,num=ss.length;n<num;n++){ 649if(ss[n].title==styleid)disabled=ss[n].disabled; 650} 651} 652return disabled; 653} 654}; 655var themeColors=['#FFFFFF','#FFFFFF','#FFFFFF','#FFFFFF','#FFFFFF','#ffffff','#000000','#ff5f00','##dedede','#f2f2f2','#dedede','#6F6F6F','#']; 656var autoText = { 657GCUsesAutoText:{}, 658lightText:'', 659darkText:'', 660classes:"", 661colorCache: [], 662localApplyOptimised:false, 663rgbToHsl: function (rgb) {}, 664hslToRgb: function (hsl) {}, 665isColorDark:function(doc, el){}, 666parser:function(doc, node, ancestorGC) {}, 667apply:function(ancestorGC) {}, 668localApply:function(el, ancestorGC) {} 669}; 670autoText.GCUsesAutoText={GC1:0,GC2:0,GC3:0,GC4:1,GC5:1,GC6:1,GC8: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,GC28:1,GC30:1,GC31:1,GC32:1,GC33:1,GC34:1,GC35:1,GC36:0,GC37:0,GC38:0,GC40:0,GC41:0,GC42:0,GC44:1,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,GC64:1,GC65:0,GC66:0,GC69:0,GC70:0,GC71:0,GC72:0,GC79:0,GC85:1,GC86:0,GC91:1,GC92:1}; 671autoText.lightText='#FFFFFF';
672autoText.darkText='#000000'; 673autoText.specialText='#FF0303'; 674autoText.rgbToHsl=function(rgb) { 675var r = rgb.r / 255, g = rgb.g / 255, b = rgb.b / 255; 676var max = Math.max(r, g, b), min = Math.min(r, g, b); 677var h, s, l = (max + min) / 2; 678if(max == min){ 679h = s = 0; // achromatic 680}else{ 681var d = max - min; 682s = l > 0.5 ? d / (2 - max - min) : d / (max + min); 683switch(max){ 684case r: h = (g - b) / d + (g < b ? 6 : 0); break; 685case g: h = (b - r) / d + 2; break; 686case b: h = (r - g) / d + 4; break; 687} 688h /= 6; 689} 690return {h:h, s:s, l:l}; 691} 692autoText.hslToRgb=function(hsl) { 693var h = hsl.h, s = hsl.s, v = hsl.v; 694var r, g, b; 695if(s == 0){ 696r = g = b = l; // achromatic 697}else{ 698function hue2rgb(p, q, t){ 699if(t < 0) t += 1; 700if(t > 1) t -= 1; 701if(t < 1/6) return p + (q - p) * 6 * t; 702if(t < 1/2) return q; 703if(t < 2/3) return p + (q - p) * (2/3 - t) * 6; 704return p; 705} 706var q = l < 0.5 ? l * (1 + s) : l + s - l * s; 707var p = 2 * l - q; 708r = hue2rgb(p, q, h + 1/3); 709g = hue2rgb(p, q, h); 710b = hue2rgb(p, q, h - 1/3); 711} 712return {r:r * 255, g:g * 255, b:b * 255}; 713} 714autoText.isColorDark=function(doc, el) { 715var cc = '', node = el; 716if (typeof(node.currentStyle) != 'undefined') { 717while (node && node.nodeName != 'HTML' && (!node.currentStyle.backgroundColor || node.currentStyle.backgroundColor == 'transparent')) { 718node = node.parentNode; 719} 720if (node) cc = node.currentStyle.backgroundColor; 721} 722else 723{ 724while (node && node.nodeName != 'HTML' && (doc.defaultView.getComputedStyle(node, '').backgroundColor.indexOf('rgb') == -1 || doc.defaultView.getComputedStyle(node, '').backgroundColor.indexOf('rgba') != -1)) { 725node = node.parentNode; 726} 727if (node) cc = doc.defaultView.getComputedStyle(node, '').backgroundColor; 728} 729if (node) { 730return autoText._isColorDark(cc); 731} 732return cc <= 0.6; 733}; 734autoText._isColorDark=function(cc) { 735var ccc = ''; 736if(autoText.colorCache[cc]) return autoText.colorCache[cc] <= 0.6; 737ccc = cc; 738var hsl = null; 739if (cc.substring(0, 1) == '#') { 740cc = cc.substring(1); 741if(cc.length==3)cc=cc.replace(/(\d)(\d)(\d)/,function($0,$1,$2,$3){return $1+$1+$2+$2+$3+$3;}); 742var rgb = {r:parseInt(cc.substr(0, 2), 16), g:parseInt(cc.substr(2, 2), 16), b:parseInt(cc.substr(4, 2), 16)}; 743hsl = autoText.rgbToHsl(rgb); 744cc = hsl.l; 745} 746else { 747cc = cc.replace(/rgba?\((\d+), (\d+), (\d+)[^)]*?\)/, function($0, $1, $2, $3) { 748var rgb = {r:parseInt($1), g:parseInt($2), b:parseInt($3)}; 749hsl = autoText.rgbToHsl(rgb); 750return hsl.l; 751}); 752} 753autoText.colorCache[ccc] = cc; 754return cc <= 0.6; 755}; 756autoText.getAutoColor=function(ccc) { 757return (autoText._isColorDark(ccc) ? autoText.lightText : autoText.darkText); 758}; 759autoText.parser=function(doc, node, ancestorGC) { 760if(!(node instanceof jQuery) && (!node || !node.childNodes)) 761return; 762if(autoText.classes.length == 0) { 763var classes = ""; 764$.each(autoText.GCUsesAutoText, function(index, value) { 765if(classes.length == 0) 766classes += '.' + index; 767else 768classes += ',.' + index; 769}); 770autoText.classes = classes; 771} 772if (autoText.localApplyOptimised) { 773$(node).find('[class^=GC]').each(function() { 774var el = this, GC = el.className.match(/^GC\d+/), GCNum=GC?parseInt(GC[0].replace('GC','')):-1; 775if (GCNum >= 28 && GCNum <= 35) { 776jQuery(el).find('a').css('color',''); 777} 778el.style.color=''; 779}); 780} 781$(node).find(autoText.classes).each(function() { 782var el = this; 783var GC = el.className.match(/^GC\d+/),GCNum=GC?parseInt(GC[0].replace('GC','')):-1; 784if (GC && typeof(autoText.GCUsesAutoText[GC[0]]) != 'undefined' || el.nodeName == 'A' && autoText.GCUsesAutoText[ancestorGC] == 1) { 785var cc = (autoText.isColorDark(doc, el.nodeName == 'A' && el.parentNode && !GC ? el.parentNode : el) ? autoText.lightText : autoText.darkText); 786el.style.color = cc; 787if (GCNum >= 28 && GCNum <= 35 && autoText.GCUsesAutoText[GC[0]] == 1) { 788jQuery(el).find('a').each(function() { 789this.style.color = cc; 790}); 791} 792} 793else if (GC) { 794el.style.color = ''; 795if (GCNum >= 28 && GCNum <= 35) { 796jQuery(el).find('a').each(function() { 797this.style.color = ''; 798}); 799} 800} 801else if (el.nodeName == 'A' && ancestorGC && typeof(autoText.GCUsesAutoText[ancestorGC]) == 'undefined') { 802el.style.color = ''; 803} 804if (GC && GC[0] && ancestorGC)ancestorGC = GC[0]; 805}); 806}; 807autoText.apply=function(ancestorGC) {
808autoText.localApplyOptimised = false; 809if (d.frames) { 810for (var i=0,num=d.frames.length;i<num;i++){ 811try{if(typeof(d.frames[i].document)=='object')autoText.parser(d.frames[i].document, d.frames[i].document.body);}catch(e){/* catch access denied errors.*/} 812} 813} 814autoText.parser(document, document.body, ancestorGC=='ancestorGC'?ancestorGC:null); 815} 816autoText.localApply = function (el, ancestorGC) { 817autoText.localApplyOptimised = true; 818autoText.parser(document, el, ancestorGC == 'ancestorGC' ? ancestorGC : null); 819} 820if(!tf.isInLL&&typeof(autoText)!='undefined')addOnload(autoText.apply); 821function navRO(ovr,o,id,gc){ 822function rmGC(s){var ss=s.split(' ');return(ss[1] && ss[0].substr(0,2)=='GC')?ss[1]:s;} 823function addOvr(o){ 824o.className=gc+rmGC(o.className); 825o.className=o.className.replace(/(idx[12](Sub)?)(Mouseover)?/, '$1Mouseover'); 826if(gc == ' ') { 827var tfc=tf.content; 828if(typeof(tfc.autoText)!='undefined') { 829function isDarker(cc) { 830if (cc.substring(0, 1) == '#') { 831cc = cc.substring(1); 832var rgb = {r:parseInt(cc.substr(0, 2), 16), g:parseInt(cc.substr(2, 2), 16), b:parseInt(cc.substr(4, 2), 16)}; 833hsl = autoText.rgbToHsl(rgb); 834cc = hsl.l; 835} 836else { 837cc = cc.replace(/rgba?\((\d+), (\d+), (\d+)[^)]*?\)/, function($0, $1, $2, $3) { 838var rgb = {r:parseInt($1), g:parseInt($2), b:parseInt($3)}; 839hsl = autoText.rgbToHsl(rgb); 840cc = hsl.l; 841}); 842} 843return cc <= 0.5; 844} 845function getBackgroundColor($dom) { 846var bgColor = ""; 847while($dom[0].tagName.toLowerCase() != "html") { 848bgColor = $dom.css("background-color"); 849if(bgColor != "rgba(0, 0, 0, 0)" && bgColor != "transparent") { 850break; 851} 852$dom = $dom.parent(); 853} 854return bgColor; 855} 856if($(o).children('a').css('color')){ 857var darker = isDarker(getBackgroundColor($(o))); 858if(darker == isDarker($(o).children('a').css('color'))) { 859$(o).children('a').css('color', darker ? '#ffffff' : '#000000'); 860} 861} 862} 863} 864} 865function rmOvr(o){o.className=gc+rmGC(o.className).replace(/Mouseover( |$)/g,'$1');} 866if(gc.length>0)gc+=' '; 867var className=rmGC(o.className),s=className.replace(/(?:Left|Right)?(?:Mouseover)?$/,''),movr='Mouseover'; 868var ell=gl(s+'Left'+id),elc=gl(s+id),elr=gl(s+'Right'+id); 869if(ell&&elc&&elr){ 870if(ovr){addOvr(ell);addOvr(elc);addOvr(elr);} 871else{rmOvr(ell);rmOvr(elc);rmOvr(elr);} 872} else{ 873if(ovr) addOvr(o); 874else rmOvr(o); 875} 876var tfc=tf.content; 877if(typeof(tfc.autoText)!='undefined')tfc.autoText.parser(tfc.document, o, o.className.split(' ')[0]); 878} 879function navOvr(o,id,gc){navRO(true,o,id,gc);}function navOut(o,id,gc){navRO(false,o,id,gc);} 880var aOtherURL={}; 881function navClk(o,h,id){var url=unescape(tf.wm.url(h,'-',1));
882if(typeof(aOtherURL[id])=='undefined'){tf.content.location.href=url;} 883else{ 884if(aOtherURL[id]==0){tf.content.location=tf.wm.url('otherurl.html?ourl='+id,'-',1);} 885else{window.open(url);} 886}} 887function cancelBuble(evt){try{var e=(typeof(evt)!='undefined')?evt:event;e.cancelBubble=true;}catch(e){}} 888var qandi={ 889coreProp:tf.sfJSON.parse(tf.nametag.get('coreProperties')), 890qtyFldValueDelayed:function(id,qty){ 891var me=this; 892if(!tf.core||!tf.core.nfmt){setTimeout(function(){me.qtyFldValueDelayed(id,qty);},100);return;} 893var el=gl(id); 894if(el)el.value=tf.core.nfmt.toLoc(qty); 895}, 896qtyFld:function(Id,MinQty,FractQty,QtyUnit){ 897if(!this.show)return''; 898if(!parseInt(FractQty))MinQty=parseInt(MinQty); 899var def_qty=1,n='ProductQuantity'; 900if(MinQty>0){ 901if(tf.core&&tf.core.nfmt)def_qty=core.nfmt.toLoc(MinQty); 902else{def_qty='';this.qtyFldValueDelayed(Id+'_Quantity',MinQty);} 903} 904else if(FractQty>0){if(tf.core&&tf.core.nfmt)def_qty=core.nfmt.toLoc('1.00');} 905var ret='<div class="'+n+' QntyBox"><input type="numeric" onclick="cancelBuble(event)" id="'+Id+'_Quantity" name="'+Id+'_Quantity" value="'+def_qty+'" size="2" maxlength="6">'; 906if(QtyUnit!='')ret+='<span class="'+n+'Unit">'+QtyUnit+'</span>'; 907ret+='</div>'; 908return ret; 909}, 910progressbar:function(prid,show,idPrefix){ 911var elATB=idPrefix?tf.content.gl(idPrefix+'-'+prid):(tf.content.gl('AddToBasketButton-'+prid)||tf.content.gl('AddtobasketButton-'+prid)),elPB=tf.content.gl('AddToBasketProgress'); 912if (elATB){ 913if (show) { 914var elATBStyle=elATB.parentNode.style; 915elATBStyle.position='relative'; 916elPB=elATB.cloneNode(false); 917elPB.id='AddToBasketProgress'; 918elPB.className='icon-spinner2 icon-fa-spin'; 919elPB.style.color='currentColor'; 920elPB.style.fontSize='2em'; 921elPB.style.position='absolute'; 922elPB.style.left=elATB.offsetLeft+'px'; 923elPB.style.top=0; 924elPB.style.width=elATB.offsetHeight+'px'; 925elPB.style.height=elATB.offsetHeight+'px'; 926elPB.style.lineHeight=elPB.style.height; 927elPB.style.textAlign='center'; 928elPB.style.margin=0; 929elPB.style.padding=0; 930elPB.style.border='none'; 931elPB.style.zIndex=1; 932elATB.parentNode.insertBefore(elPB,elATB); 933elPB.style.display='block'; 934elATB.style.visibility='hidden'; 935} 936else{ 937if(elPB)elPB.parentNode.removeChild(elPB); 938if ($(elATB.parentNode).css('display').indexOf('inline')==0||$(elATB.parentNode).css('display').indexOf('block')==0){ 939$(elATB.parentNode).css('display','table'); 940setTimeout(function(){$(elATB.parentNode).css('display','');},50); 941} 942elATB.style.visibility='visible'; 943} 944} 945}, 946ph:0 947} 948qandi['show']=true; 949if(!qandi['show']){ 950(function qandiLoad() { 951if(window.jQuery) jQuery(document).ready(function(){ jQuery('.ProductIcons, .ProductPurchaseContainer').remove(); }); 952else setTimeout(qandiLoad,50); 953})(); 954} 955function dynLoadPrice(id,p,pd,fnEnd,jsf,qsStk){ 956core=tf.core 957if(core&&tf.utils){ 958if(p.length==0) return; 959var stkQryState=tf.nametag.get('stkQryState'); 960if(stkQryState)tf.core.stkQryState=tf.sfJSON.parse(stkQryState); 961if(!tf.core.stkQryState)tf.core.stkQryState={arrQS:[]}; 962if(!tf.core.stkQryState['arrQS'])tf.core.stkQryState['arrQS']={}; 963tf.core.stkQryState['arrQS'][jsf]=qsStk; 964if(core.regPrc)core.regPrc(p); 965if(fnEnd){fnEnd(id);} 966if(pd)tf.utils.populatedata(); 967} 968else setTimeout(function(){dynLoadPrice(id,p,pd,fnEnd,jsf,qsStk);},100); 969} 970var equalHeightClass=[]; 971function equalHeightOnClass(ignoreWithPrefix,onlyWithPrefix){ 972for(var n=0,nn=equalHeightClass.length;n<nn;n++){ 973var ok=(!onlyWithPrefix&&!ignoreWithPrefix); 974if(!ok)ok=ignoreWithPrefix&&equalHeightClass[n].indexOf(ignoreWithPrefix)!=0; 975if(!ok)ok=onlyWithPrefix&&equalHeightClass[n].indexOf(onlyWithPrefix)==0; 976if(ok)tf.utils.equaldiv(equalHeightClass[n]); 977} 978} 979function equalWidth(containerSelector, itemSelector, itemMaxWidth, maxColumns, itemsOnly) { 980var mw = itemMaxWidth || 260, mcol = maxColumns || 5; 981var $container = $(containerSelector), $items = $(itemSelector, $container); 982var outerSpace = $items.outerWidth(true) - $items.outerWidth(); 983var w = 0, maxAvailableWidth = $container.css('width','auto').width(); 984for (var n = 1; n <= mcol; n++) {
985w = parseInt((maxAvailableWidth / n) - outerSpace); 986if (w <= mw) break; 987} 988if (itemsOnly) { 989$(itemSelector, $container).width(w); 990} 991else { 992$(itemSelector, $container).outerWidth(w); 993$container.width((w + outerSpace) * Math.min(n, $items.length)); 994} 995} 996var moreHistory = { 997push:function(from_pgidx,to_pgidx,append_prid){ 998if (tf.isInSF()) return; 999this._load(); 1000this._stack.push({from:(from_pgidx?from_pgidx:tf.pgidx)+(append_prid?'#'+to_pgidx.replace(/(?:_.*|)\.html?/,''):''),to:to_pgidx}); 1001this._save(); 1002}, 1003pop:function(pgidx){ 1004if (tf.isInSF()) return ''; 1005this._load(); 1006var o=this._stack[this._stack.length-1],fromURL=''; 1007if(o&&o['to']==pgidx)fromURL=o['from']; 1008if(fromURL){ 1009if((sfFilters&&sfFilters['deptEnabled']==tf.pgid)||fromURL.indexOf('search.php')==0)fromURL='';else{this._stack.pop();this._save();} 1010} 1011return fromURL; 1012}, 1013_load:function(){ 1014var s=tf.nametag.get('moreHistory'); 1015if(s){this._stack=tf.sfJSON.parse(s);} 1016}, 1017_save:function(){ 1018tf.nametag.add('moreHistory',tf.sfJSON.stringify(this._stack)); 1019}, 1020_stack:[] 1021}; 1022if(!tf.isInLL){ 1023addOnload(function(){ 1024addEvent('onclick', function(evt){ 1025var el = evt.srcElement || evt.target; 1026while (el && el != d.body && el.nodeName != 'A') { el = el.parentNode; } 1027if (el && el.nodeName == 'A' && el.getAttribute('href')) { 1028if (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; 1029} 1030}, d.body); 1031}); 1032} 1033// Try to reload the frame if the F5 refresh fails to load it properly. (For FF4.) 1034if(!tf.isInLL){ 1035tf.addEvent('onload',function(){ 1036var ids=['index1','index2']; 1037for(var i=0,ii=ids.length;i<ii;i++){ 1038if(gl(ids[i]+'holder')&&gl(ids[i]+'holder').innerHTML==''){ 1039if(gl(ids[i]+'frame'))gl(ids[i]+'frame').src=gl(ids[i]+'frame').src+'?'+Math.random(); 1040} 1041} 1042window.hasFlash=false; 1043try { 1044var fo=new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); 1045if(fo){ 1046window.hasFlash=true; 1047} 1048}catch(e){ 1049if (navigator.mimeTypes 1050&& navigator.mimeTypes['application/x-shockwave-flash']!=undefined 1051&& navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin){ 1052window.hasFlash=true; 1053} 1054} 1055if(!window.hasFlash){ 1056$('object[id^=DSObject_], embed[name^=DSObject_]').hide(); 1057} 1058},tf); 1059} 1060var pageID=(window.external&&window.external['getPageID']?window.external['getPageID']():''); 1061if(pageID!='D-42')tf.load('lang.html','lang'); 1062} 1063function productIconsLocker(prid) { 1064if(typeof(_sfEvt_htmlLocker)=='undefined') return; 1065if($('#ProductOptions-'+prid).length==0||$('#ProductOptions-'+prid).text().trim()=='')return; 1066if($('.ProductOptions').data('initialised'))return; 1067$('#ProductIcons-'+prid).filter(':not(.locker)').css('position','relative') 1068.append(_sfEvt_htmlLocker.replace(/title=""/g,'title="'+((LD&&LD.LD_LOADING)||'').replace(/"/g,'"')+'"')) 1069; 1070} 1071// </script> 1072// $Revision: 47611 $ 1073// $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.