/* AD code version: 2010-07-26 */
if(typeof ste=='undefined'){var ste={}}ste.code_version='AD/2010-07-26';function ClearDebug(){var o=document.getElementById('debuglist');if(o){o.options.length=0}}function AddDebug(a){var o=document.getElementById('debuglist');if(o){var e=document.createElement("option");e.text=a;try{o.add(e,null)}catch(ex){o.add(e)}}}function convertToAbsoluteURL(a,b){a=a.substr(0,a.lastIndexOf('/')+1);b=b.replace(/^\.\//,'');while(b.substr(0,3)=='../'){a=a.substr(0,a.substr(0,a.length-1).lastIndexOf('/')+1);b=b.substr(3)}return a+b}ste._protogeneral=function(){this._currentid='';this._deeplink=0;this.checkDefaultParams=function(o){if(typeof o.type=='undefined'){o.type=""}if(typeof o.id=='undefined'){o.id=""}if(typeof o.path=='undefined'){o.path=""}if(typeof o.lang=='undefined'){o.lang=""}return true};this.getTempSObject=function(o){var a={};a.linkLeaveQueryString=false;a.linkTrackVars="server,channel,prop1,prop2,prop3,prop11,prop12,prop14,prop15,prop19,prop20,prop28,prop29,prop30,eVar7,eVar8,eVar11,eVar13,eVar19,eVar20";a.linkTrackEvents="None";a.events='';a.prop11=s.prop11;a.prop14=o.lang?o.lang:s.prop14;a.prop15=o.type;a.prop19=s.prop19?s.prop19:o.id;a.eVar19=a.prop19;a.prop20=s.prop20;return a};this.checkForInternal=function(a){var b=false;atmpURLs=s.linkInternalFilters.toLowerCase().split(",");for(var i=0;i<atmpURLs.length;i++){if(a.toLowerCase().indexOf(atmpURLs[i])!=-1){b=true}}return b};this.addLinkEvent=function(a,b){AddDebug('Adding manual event: '+a);AddLinkEvent(a,b)};this.download=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.url=='undefined'||o.url===''){return false}if(!o.url.match(/^[A-Za-z]+:\/\//)){o.url=convertToAbsoluteURL(location.href,o.url)}AddDebug('.download:: '+o.url);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var a={};a.href=o.url;s.tl(a,'','',this.getTempSObject(o))};this.exit=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.url=='undefined'||o.url===''){return false}AddDebug('.exit:: '+o.url);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var a={};a.href=o.url;s.tl(a,'','',this.getTempSObject(o))};this.mailto=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}var a='mailto:'+o.name;AddDebug('.mailto:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b={};b.href=a;s.tl(b,'','',this.getTempSObject(o))};this.optin=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}var a='opt-in:';if(o.type){a+=o.type+'|'}if(o.id){a+=o.id+'|'}if(o.path){a+=o.path+'|'}if(o.name.length>0){if(a.substr(a.length-1)!="|"){a+="|"}a+=o.name}AddDebug('.optin:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b=this.getTempSObject(o);if(o.url){var c={};c.href=o.url;s.tl(c,'','',this.getTempSObject(o))}else{this.addLinkEvent('event5',b);s.tl(true,'o',a,b)}};this.listento=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}var a='listento:';if(o.type){a+=o.type+'|'}if(o.id){a+=o.id+'|'}if(o.path){a+=o.path+'|'}if(o.name.length>0){if(a.substr(a.length-1)!="|"){a+="|"}a+=o.name}AddDebug('.listento:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b=this.getTempSObject(o);this.addLinkEvent('event20',b);s.tl(true,'o',a,b)};this.contactform=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}var a='contactform:';if(o.type){a+=o.type+'|'}if(o.id){a+=o.id+'|'}if(o.path){a+=o.path+'|'}if(o.name.length>0){if(a.substr(a.length-1)!="|"){a+="|"}a+=o.name}AddDebug('.contactform:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b=this.getTempSObject(o);this.addLinkEvent('event33',b);s.tl(true,'o',a,b)};this.contactform_h=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}var a='contactform-h:';if(o.type){a+=o.type+'|'}if(o.id){a+=o.id+'|'}if(o.path){a+=o.path+'|'}if(o.name.length>0){if(a.substr(a.length-1)!="|"){a+="|"}a+=o.name}AddDebug('.contactform_h:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b=this.getTempSObject(o);this.addLinkEvent('event18',b);s.tl(true,'o',a,b)};this.searchterm=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}AddDebug('Default::Searchterm: '+o.name);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var a=this.getTempSObject(o);a.linkTrackVars=(typeof s.linkTrackVars=="undefined"||s.linkTrackVars=="None"||s.linkTrackVars==="")?"prop21,eVar2,prop15":a.linkTrackVars+",prop21,eVar2,prop15";a.prop15="sitesearch";a.prop21=a.eVar2=CleanText(o.name);s.tl(true,'o','sitesearch',a)}};if(typeof ste.general=='undefined'){ste.general=new ste._protogeneral()}if(typeof ste.flash=='undefined'){ste.flash=new ste._protogeneral()}ste.flash.checkDefaultParams=function(o){if(typeof o.type=='undefined'){o.type=""}if(typeof o.id=='undefined'){o.id=""}if(typeof o.path=='undefined'){o.path=""}if(typeof o.lang=='undefined'){o.lang=""}if(o.type.length===0||o.id.length===0){AddDebug('ste.flash.checkDefaultParams failed');return false}return true};ste.flash.getTempSObject=function(o){var a={};a.linkLeaveQueryString=false;a.linkTrackVars="server,channel,prop1,prop2,prop3,prop11,prop12,prop14,prop15,prop19,prop20,prop28,prop29,prop30,eVar7,eVar8,eVar11,eVar13,eVar19,eVar20";a.linkTrackEvents="None";a.events='';a.prop11=s.prop11;a.prop14=o.lang?o.lang:s.prop14;a.prop15=o.type;a.prop19=s.prop19?s.prop19:o.id;a.eVar19=a.prop19;a.prop20=s.prop20;if(!this._currentid){if(GetQParam(location.href,'section')&&this._deeplink===0){this._deeplink=1;AddDebug('Deeplink found, defer e32 to next click')}else{this._currentid=o.id;if(o.type!='content'){this.addLinkEvent('event32',a)}}}return a};ste.flash.page=function(o){if(!this.checkDefaultParams(o)){return false}if(o.path.length===0&&o.name.length===0){AddDebug('name or path must be set');return false}if(typeof o.name=='undefined'){o.name=""}var a='';a=o.type=='content'?s.hier1:o.type;a+='|'+o.id;a+=o.path?'|'+o.path:'';a+=o.name?'|'+o.name:'';var b=this.getTempSObject(o);if(!this._currentid&&this._deeplink===1){a+='|deeplink'}AddDebug('.page:: '+a);AddDebug('>>> cid: '+this._currentid);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);b.linkTrackVars+=",hier1";b.hier1=a;s.tl(true,'o',o.type+'|'+o.id,b)};ste.flash.link=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.url=='undefined'){o.url=""}if(typeof o.name=='undefined'){o.name=""}if(o.url===''&&o.name===''){return false}var a='link:';if(o.name.length>0){if(o.type){a+=o.type+'|'}if(o.id){a+=o.id+'|'}if(o.path){a+=o.path+'|'}if(a.substr(a.length-1)!="|"){a+="|"}a+=o.name}else{var b=o.url;if(!b.match(/^[A-Za-z]+:\/\//)){b=convertToAbsoluteURL(location.href,b)}if(!this.checkForInternal(b)){AddDebug('.link->.exit');return this.exit(o)}else{a+=o.url}}AddDebug('.link:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var c=this.getTempSObject(o);if(o.type!='content'){this.addLinkEvent('event6',c)}s.tl(true,'o',a,c)};ste.flash.rss=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.url=='undefined'){o.url=""}if(typeof o.name=='undefined'){o.name=""}if(o.url===''&&o.name===''){return false}var a='rss:';if(o.name.length>0){if(o.type){a+=o.type+'|'}if(o.id){a+=o.id+'|'}if(o.path){a+=o.path+'|'}if(a.substr(a.length-1)!="|"){a+="|"}a+=o.name}else{a+=o.url}AddDebug('.rss:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b=this.getTempSObject(o);this.addLinkEvent('event34',b);s.tl(true,'o',a,b)};ste.flash.share=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.url=='undefined'){o.url=""}if(typeof o.name=='undefined'){o.name=""}if(o.url===''&&o.name===''){return false}var a='share:';if(o.name.length>0){if(o.type){a+=o.type+'|'}if(o.id){a+=o.id+'|'}if(o.path){a+=o.path+'|'}if(a.substr(a.length-1)!="|"){a+="|"}a+=o.name}else{a+=o.url}AddDebug('.share:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b=this.getTempSObject(o);this.addLinkEvent('event35',b);s.tl(true,'o',a,b)};if(typeof ste.video=='undefined'){ste.video={}}if(typeof ste.flash.video=='undefined'){ste.flash.video=ste.video}ste.video._getVideoName=function(o){var a='';if(o.type){a+=o.type+'|'}if(o.id){a+=o.id+'|'}if(o.path){a+=o.path+'|'}if(o.name.length>0){if(a.substr(a.length-1)!="|"){a+="|"}a+=o.name}return a};ste.video.open=function(o){if(typeof o.name=='undefined'){o.name=""}if(typeof o.length=='undefined'){o.length=0}if(o.name.length===0||o.length===0){return false}if(typeof o.playername=='undefined'){o.playername="n/a"}var a=this._getVideoName(o);this._currentVideo=a;this._currentVideoLength=o.length;AddDebug('.video.open:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // length: '+o.length)};ste.video.play=function(o){if(typeof o.name=='undefined'){o.name=""}if(typeof o.offset=='undefined'){o.offset=-1}if(o.name.length===0||o.offset==-1){return false}var a=this._getVideoName(o);AddDebug('.video.play:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // offset: '+o.offset);AddDebug('>>> disabled');if(o.offset<=1){AddDebug('>>> redirecting to .page');o.name+=".videostart";ste.flash.page(o)}};ste.video.stop=function(o){if(typeof o.name=='undefined'){o.name=""}if(typeof o.offset=='undefined'){o.offset=-1}if(o.name.length===0||o.offset==-1){return false}var a=this._getVideoName(o);AddDebug('.video.stop:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // offset: '+o.offset);AddDebug('>>> _currentVideoLength '+this._currentVideoLength);AddDebug('>>> disabled');if((parseInt(o.offset,10)+1)>=parseInt(this._currentVideoLength,10)){AddDebug('>>> redirecting to .page');o.name+=".videocomplete";ste.flash.page(o)}};ste.video.close=function(o){if(typeof o.name=='undefined'){o.name=""}if(o.name.length===0){return false}var a=this._getVideoName(o);this._currentVideo="";this._currentVideoLength=-1;AddDebug('.video.close:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // offset: '+o.offset);AddDebug('>>> disabled')};if(typeof ste.PF=='undefined'){ste.PF={}}ste.PF._currenttab="";ste.PF._nrofclicks=0;ste.PF._nrofexits=0;ste.PF._getTabName=function(a){var b="";if(a.indexOf('|')!=-1){b=a.substring(0,a.indexOf('|'))}else{b=a}return b};ste.PF.getTempSObject=function(o){var a={};a.linkLeaveQueryString=false;a.linkTrackVars="server,channel,prop1,prop2,prop3,prop11,prop12,prop14,prop15,prop19,prop20,prop28,prop29,prop30,eVar7,eVar8,eVar11,eVar13,eVar19,eVar20";a.linkTrackEvents="None";a.events='';a.prop11=s.prop11;a.prop14=o.lang?o.lang:s.prop14;a.prop15=o.type;a.prop19=a.eVar19=s.prop8.toLowerCase()+'|'+o.type.toLowerCase();a.prop20=s.prop20;return a};ste.PF.checkDefaultParams=function(o){o.type="PF";if(typeof o.id=='undefined'){o.id=""}if(typeof o.path=='undefined'){o.path=""}if(typeof o.lang=='undefined'){o.lang=""}if(o.type.length===0||o.path.length===0){return false}return true};ste.PF.tabclick=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}var a=o.type+'|'+o.path;if(o.name.length>0){a+='|'+o.name}AddDebug('.PF.tabclick:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b=this.getTempSObject(o);b.linkTrackVars+=",hier1,prop24";b.hier1=a;b.prop24=o.path;if(this._nrofclicks===0){ste.general.addLinkEvent('event22',b)}this._nrofclicks++;this._currenttab=o.path;s.tl(true,'o',"ProductFinder",b)};ste.PF.nodeclick=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}var a=o.type+'|'+o.path;if(o.name.length>0){a+='|'+o.name}AddDebug('.PF.nodeclick:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b=this.getTempSObject(o);b.linkTrackVars+=",hier1,prop24";b.hier1=o.type+'|'+o.path+'|'+o.name;b.prop24=o.path+'|'+o.name;if(this._nrofclicks===0){ste.general.addLinkEvent('event22',b)}this._nrofclicks++;this._currenttab=this._getTabName(o.path);s.tl(true,'o',"ProductFinder",b)};ste.PF.deeplink=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}if(o.name===""&&o.path.indexOf('|')==-1){return false}var a=o.type+'|'+o.path;if(o.name.length>0){a+='|'+o.name}AddDebug('.PF.deeplink:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);o.path=unescape(o.path);o.name=unescape(o.name);this._currenttab=this._getTabName(o.path);var b=this.getTempSObject(o);b.linkTrackVars+=",hier1,prop24";b.hier1=o.type+'|'+o.path;if(o.name.length>0){b.hier1+='|'+o.name}b.hier1+=' (Deeplink)';b.prop24=o.path;if(o.name.length>0){b.prop24+='|'+o.name}b.prop24+=' (Deeplink)';s.tl(true,'o',"ProductFinder",b)};ste.PF.exit=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}if(typeof o.url=='undefined'||o.url===''){return false}var a=o.type+'|'+o.path;if(o.name.length>0){a+='|'+o.name}AddDebug('.PF.exit:: '+a+' -> '+o.url);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b=this.getTempSObject(o);b.linkTrackVars+=",hier1,prop24,events";b.events=b.linkTrackEvents="event6";b.hier1=o.type+'|'+o.path+'|'+o.name+' (Exit)';b.prop24=o.path+'|'+o.name+' (Exit)';if(this._nrofclicks===0){ste.general.addLinkEvent('event22',b)}this._nrofclicks++;if(this._nrofexits===0){ste.general.addLinkEvent('event23',b)}this._nrofexits++;s.tl(true,'e',o.url,b)};ste.PF.download=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}if(typeof o.url=='undefined'||o.url===''){return false}var a=o.type+'|'+o.path;if(o.name.length>0){a+='|'+o.name}AddDebug('.PF.download:: '+a+' -> '+o.url);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b=this.getTempSObject(o);b.linkTrackVars+=",hier1,prop24,events";b.events=b.linkTrackEvents="event26";b.hier1=o.type+'|'+o.path+'|'+o.name+' (DL)';b.prop24=o.path+'|'+o.name+' (DL)';if(this._nrofclicks===0){ste.general.addLinkEvent('event22',b)}this._nrofclicks++;s.tl(true,'d',o.url,b)};ste.PF.contactform=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}var a='contactform:';if(o.type){a+=o.type+'|'}a+=o.path;if(o.name.length>0){a+='|'+o.name}AddDebug('.PF.contactform:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b=this.getTempSObject(o);b.linkTrackVars+=",hier1,prop24,events";b.hier1=o.type+'|'+o.path+'|'+o.name+' (Contact)';b.prop24=o.path+'|'+o.name+' (Contact)';if(o.url){b.events=b.linkTrackEvents="event6";if(this._nrofclicks===0){ste.general.addLinkEvent('event22',b)}this._nrofclicks++;s.tl(true,'e',o.url,b)}else{b.events=b.linkTrackEvents="event18";if(this._nrofclicks===0){ste.general.addLinkEvent('event22',b)}this._nrofclicks++;s.tl(true,'o','contacform:'+o.type+'|'+o.path+'|'+o.name,b)}};ste.PF.mailto=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}var a='mailto:'+o.name;AddDebug('.PF.mailto:: '+a);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var b=this.getTempSObject(o);b.linkTrackVars+=",hier1,prop24,events";b.hier1=o.type+'|'+o.path+'|'+o.name+' (Mailto)';b.prop24=o.path+'|'+o.name+' (Mailto)';b.events=b.linkTrackEvents="event13";if(this._nrofclicks===0){ste.general.addLinkEvent('event22',b)}this._nrofclicks++;s.tl(true,'o','mailto:'+o.type+'|'+o.path+'|'+o.name,b)};ste.PF.searchterm=function(o){if(!this.checkDefaultParams(o)){return false}if(typeof o.name=='undefined'){o.name=""}AddDebug('.PF.searchterm:: '+o.name);AddDebug('>>> id: '+o.id+' // type: '+o.type+' // lang: '+o.lang);AddDebug('>>> path: '+o.path+' // name: '+o.name+' // url: '+o.url);var a=this.getTempSObject(o);a.linkTrackVars=(typeof s.linkTrackVars=="undefined"||s.linkTrackVars=="None"||s.linkTrackVars==="")?"prop21,eVar2,prop15":a.linkTrackVars+",prop21,eVar2,prop15";a.prop15="PFsearch";a.prop21=a.eVar2=CleanText(o.name.toLowerCase());if(this._nrofclicks===0){ste.general.addLinkEvent('event22',a)}this._nrofclicks++;s.tl(true,'o','PFsearch',a)};
