(function() { var domainGroups = {}; var positions = {}; try { positions['-440257216'] = ['div#aUHaMsnHLbfkRv9LZh86EZn > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1)', 'div#hwgzsHt33S > div:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1)', 'div#rightlights-banners > a:nth-of-type(4) > img', 'div.ooHMk2']; positions['90123872'] = positions['-440257216'];} catch(err) {}; (function(a){window.blueConicPreListeners=[];(function(){var b=false,c=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.BCClass=function(){};BCClass.extend=function(h){var g=this.prototype;b=true;var f=new this();b=false;for(var e in h){f[e]=typeof h[e]=="function"&&typeof g[e]=="function"&&c.test(h[e])?(function(i,j){return function(){var l=this._super;this._super=g[i];var k=j.apply(this,arguments);this._super=l;return k}})(e,h[e]):h[e]}function d(){if(!b&&this.init){this.init.apply(this,arguments)}}d.prototype=f;d.constructor=d;d.extend=arguments.callee;return d}})(); // Base for all InteractionTypeImpl var InteractionType = BCClass.extend( { init : function(pageTracker) { this.pageTracker = pageTracker; }, getPreloadProperties : function() { return []; }, getContent : function() { }, onEvent : function() { }, importLibraries : function(urls) { blueConic.fn.importLibraries.call(this, urls); } }); // // listenerinteractiontype // (function(){ var InteractionTypeImpl=InteractionType.extend({init:function(a,b){this.blueConicClient=a;this.context=b;this.profile=a.profile.getProfile();this.referrer=document.referrer;this.currentUrl=window.location.href},onPrepare:function(){var a=this.profile,b;if(b=window.navigator.userLanguage||navigator.systemLanguage||window.navigator.language){var d=-1!==b.indexOf("-")?b.indexOf("-"):b.indexOf("_");-1!==d&&(b=b.substring(0,d));b=b.toLowerCase()}else b=null;b&&a.setValue("language",b);b=screen.width;var d= screen.height,c=b+"x"+d;a.setValue("currentresolution",c);a.setValue("currentscreenwidth",b);a.setValue("currentscreenheight",d);a.addValue("resolution",c);b=this.referrer;d=this.HELPER.decodeReferrer(b);c=[];if(d&&0m.getTime()){m=e[c].enddate-e[c].startdate;if(0d||0===c?(a.setValue("visitclicks",1),a.setValue("visits",c+1),this.blueConicClient.getRequestInfo()||a.addValue("resolution",screen.width+ "x"+screen.height)):(d=this._getNumberProperty("visitclicks"),a.setValue("visitclicks",d+1));a.setValue("lastvisitdate",b.getTime());blueConicClient.profile.updateProfile()},HELPER:{search_engines:[["google\\.","q"],["bing\\.","q"],["search\\.yahoo\\.","p"],["search\\.msn\\.","q"],["search\\.live\\.","query"],["search\\.aol\\.","userQuery"],["ask\\.com","q"],["altavista\\.","q"],["feedster\\.","q"],["search\\.lycos\\.","q"],["alltheweb\\.","q"],["technorati\\.com/search/([^\\?/]+)",1],["dogpile\\.com/info\\.dogpl/search/web/([^\\?/]+)", 1,!0]],substringToHash:function(a){if(a){var b=a.indexOf("#");if(-1!==b)return a.substring(0,b)}return a},decodeReferrer:function(a){for(var b=RegExp(""),d=0;d=d?c.substring(a+1):c.substring(a+1,d-1);if(0>=d)break;if(1E3-1)?"https://":"http://";BC_MGT=true;try{if(top.location.host==document.location.host&&!window.opener){BC_MGT=false}}catch(e){BC_MGT=true}}}if(bcHostname&&bcHostname.indexOf("localhost")==0){PROTOCOL=(bcHostname.indexOf(":")==-1||bcHostname.indexOf(":9090")!=-1)?"https://":"http://"}var COOKIE_BCSESSION="BCSessionID";var COOKIE_BCTEMPSESSION="BCTempID";var COOKIE_BCZONEID="BCZoneID";var TEMP_COOKIE_TTL=600000;var COOKIE_REVISION="BCRevision";if(window.blueConicClient&&BC_URL.indexOf(bcHostname)!=-1){return}var getBCServer=function(){if(BC_MGT){return BC_URL}var bcServer=(typeof bcHostname!="undefined")?PROTOCOL+bcHostname:null;if(!bcServer||BC_URL.indexOf(bcHostname.split(":")[0].replace("http://",""))==-1){bcServer=BC_URL}if(!bcServer){bcServer=(function(){var scriptElement,scriptSrc,tmpA,scriptElements=document.getElementsByTagName("script");for(var i=0,l=scriptElements.length;i-1;var isFixedEvent=UTIL.indexOfArray(EVENT.types,eventType)>-1;var isAsyncPageViewEvent=interaction===true;if(isAsyncPageViewEvent){PREVENT_UPDATEPROFILE=true}if(!isFixedEvent&&!isDynamicEvent){return}if(isFixedEvent&&eventType!="PAGEVIEW"&&!interaction){UTIL.logWarning("An interaction is required for event type ["+eventType+"]");return}if(eventType==="PAGEVIEW"&&!isAsyncPageViewEvent){PROFILE.getProfile()}if(eventType==="PAGEVIEW"&&(!IS_ONEVENT||isAsyncPageViewEvent)){if(myPreListeners&&myPreListeners.length>0){PROFILE.updateProfile()}if(!isAsyncPageViewEvent){RPC.handleRevisions()}}var ctx={type:eventType,interaction:interaction,referrer:document.referrer,profile:UTIL.getCookie(COOKIE_BCSESSION)};EVENT.create(ctx,this,function(result){if(isDynamicEvent){handleInteractions(result,false)}UTIL.doCallback(caller,onSuccess,result);EVENT.publish(eventType,interaction)});if("VIEW"===eventType){RPC.submitBatchTimeout(200)}else{RPC.submitBatch()}};BlueConic.prototype.setEditableNode=function(node,options){this.functions.setEditableNode(node,options)};BlueConic.prototype.getHostname=function(){return bcHostname};BlueConic.prototype.getIPAddress=function(){return myRemoteIp};BlueConic.prototype.getInteractions=function(){return myInteractionNames};BlueConic.prototype.getSegments=function(){return mySegments};BlueConic.prototype.getTemplate=function(templateId,onSuccess){if(!templateId){UTIL.logWarning("A templateID is required for loading a template");return}if(!BlueConic.prototype._templateCallbacks){BlueConic.prototype._templateCallbacks={}}var id=(new Date()).getTime()+Math.random();if(BlueConic.prototype._templateCallbacks[id]){id=(new Date()).getTime()+Math.random()}BlueConic.prototype._templateCallbacks[id]={onSuccess:onSuccess,templateId:templateId};var doCallbacks=function(){var callbackIds=UTIL.getPropertiesFromObject(BlueConic.prototype._templateCallbacks);for(var i=0;i-1};BlueConic.prototype.getCurrentDate=function(){if(BlueConic.prototype.isInSimulatorMode()&&SIMULATOR_DATE){return SIMULATOR_DATE}return new Date()};BlueConic.prototype.getProfileProperties=function(caller,onSuccess){var id=new Date().getTime()+(++RPC.requestId);RPC.addBatchRequest(RPC.GET_PROFILE_PROPERTIES,null,id,this,function(responseData){var items={};if(responseData&&responseData.result){var itemData=responseData.result;if(itemData.properties){items=itemData.properties;for(var item in items){if(items[item].permissionLevel){items[item].permissionLevel=PERMISSION[items[item].permissionLevel]}}}UTIL.doCallback(caller,onSuccess,items)}});RPC.submitBatch()};BlueConic.prototype.handlePageView=function(options){if(asyncHandleTO){clearTimeout(asyncHandleTO)}asyncHandleTO=setTimeout(function(){IS_VERBOSE&&UTIL.logInfo("handling asynchronous navigation for new url ["+document.location.href+"], creating new PAGEVIEW event to retrieve interactions for this url.");if(options){if(options.hidePositions===true){INTERNAL.hideAllPositions()}}var styleElement=document.getElementById(myAsyncHideCSSId);if(styleElement){styleElement.parentNode.removeChild(styleElement)}blueConicAPI._pendingInteractions=[];INTERNAL.checkPreListeners();blueConicAPI.createEvent("PAGEVIEW",true,this,function(interactions){EVENT.publish(EVENT.ON_URL_CHANGE,{url:document.location.href});handleInteractions(interactions,false)})},10)};BlueConic.prototype.mail={sendEmail:function(interactionId,onlyOnce,caller,callback){if(!myInteractions){return}var interaction=null;for(var i=0,l=myInteractions.length;icalled method: [onPrepare]
error: "+error.message);if(IS_VERBOSE&&console.error){console.error(error)}}}}}},updateParams:function(id,locale,parameters){var handledInteractions=blueConicAPI._handledInteractions;for(var i=0,l=handledInteractions.length;i-1&&interactionId===myInt.id;var isEditModePlugin=false;if(!ignorePluginType){isEditModePlugin=interactionId&&interactionId.indexOf("editmode_")>-1}if(ignorePluginType||isEditModePlugin){return false}}return true};var preparedInteractions=[];for(var i=0,l=interactions.length;icalled method: [getContent]
error: "+error.message);if(IS_VERBOSE&&console.error){console.error(error)}}position=preparedInteraction.ctx.getPosition();if(BlueConic.prototype.isInSimulatorMode()&&!content&&position){preparedInteraction.ctx.getDOMElement()}if(content&&position){IS_VERBOSE&&UTIL.logInfo("start set content mechanism for interaction ["+interactionHandle+"] with position ["+position+"]");(function(content,position,preparedInteraction){var domElement=null;var recusionCounter=0;function setContent(){recusionCounter++;domElement=preparedInteraction.ctx.getDOMElement();if(!domElement){if(recusionCounter>=SET_CONTENT_MAX_RECURSION){IS_VERBOSE&&UTIL.logInfo("failed to set content on position ["+position+"] max recursion reached");return}if(IS_ONEVENT){IS_VERBOSE&&UTIL.logInfo("failed to set content on position ["+position+"] onEvent started");return}window.setTimeout(setContent,SET_CONTENT_TIMEOUT);return}if(preparedInteraction.ctx.isOnLoadExecuted()){IS_VERBOSE&&UTIL.logInfo('"onLoad" already executed for interaction ['+interactionHandle+'], skipping "getContent"');return}preparedInteraction.ctx.setGetContentExecuted(true);UTIL.setContent(domElement,content);IS_VERBOSE&&UTIL.logInfo("[+] set content on position ["+position+"] was successful, recursion ["+recusionCounter+"]")}setContent.call(this)})(content,position,preparedInteraction)}}push.call(preparedInteractions,preparedInteraction)}}else{IS_VERBOSE&&UTIL.logInfo("InteractionType with id ["+interactionTypeId+"] not found")}IS_VERBOSE&&UTIL.logInfo("finished initializing interaction ["+interactionHandle+"], interaction type ["+interactionTypeId+"]")}var styleElement=document.getElementById(myPostHideCSSId);if(styleElement){styleElement.parentNode.removeChild(styleElement)}var preloadProperties=[];for(var i=0,l=preparedInteractions.length;icalled method: [getPreloadProperties]
error: "+error.message);if(IS_VERBOSE&&console.error){console.error(error)}}}}if(myProfile&&preloadProperties.length>0){IS_PRELOAD_PROPERTIES_READY=false;IS_VERBOSE&&UTIL.logInfo("start preloading "+preloadProperties.length+" profile properties");myProfile.loadValues(preloadProperties,this,function(){IS_PRELOAD_PROPERTIES_READY=true;handleOnEvent()})}else{IS_VERBOSE&&UTIL.logInfo("skip preloading "+preloadProperties.length+" profile properties");IS_PRELOAD_PROPERTIES_READY=true;handleOnEvent()}var injectLibraries=function(){for(var i=0,l=preparedInteractions.length;icalled method: [onEvent]
error: "+error.message);if(IS_VERBOSE&&console.error){console.error(error)}}var myInteraction={id:ctx.getInteractionId(),name:ctx.getName(),position:ctx.getPosition(),type:ctx.getInteractionTypeId(),isPositionFound:ctx.isPositionFound()};if(firstLoad){handledInteractions.push(myInteraction)}else{handled.push(myInteraction)}blueConicAPI._handledInteractions.push({id:ctx.getInteractionId(),interaction:preparedInteraction,context:ctx});IS_VERBOSE&&UTIL.logInfo("finished onEvent for interaction ["+interactionHandle+"]")}else{if(firstLoad&&ctx.getPosition()){blueConicAPI._pendingInteractions.push(preparedInteraction)}}}if(handled.length>0&&!firstLoad){EVENT.publish("onHandledInteractions",{handledInteractions:handled})}return handled.length};if(!blueConicAPI._pendingInteractions){blueConicAPI._pendingInteractions=[]}if(!blueConicAPI._handledInteractions){blueConicAPI._handledInteractions=[]}executeInteractions(preparedInteractions,initialLoad);IS_VERBOSE&&UTIL.logInfo("finished running interactions");EVENT.publish(EVENT.ON_EVENT_READY,{blueConicClient:blueConicAPI,handledInteractions:handledInteractions,isFirstLoad:initialLoad});if(initialLoad){if(blueConicAPI._pendingInteractions.length>0){BlueConic.prototype.fn.hidePendingPositions()}INTERNAL.observeDOMChanges(executeInteractions)}PREVENT_UPDATEPROFILE=false;blueConicAPI.profile.updateProfile()}},hidePendingPositions:function(){if(blueConicAPI._pendingInteractions.length>0){var hostName=(OVERRULLED_HOSTNAME)?OVERRULLED_HOSTNAME:document.location.hostname;var positions=myPositions[UTIL.hash(hostName)];var positionsToHide=[];for(var y=0;y-1){positionsToHide.push(pendingInteraction.ctx.getPosition())}}if(positionsToHide.length>0){IS_VERBOSE&&UTIL.logInfo("hiding interactions: ["+positionsToHide+"]");var styleElement=document.getElementById(myAsyncHideCSSId);if(styleElement){styleElement.parentNode.removeChild(styleElement)}UTIL.addCSSToDOM(positionsToHide,myAsyncHideCSSId)}}},registerInteractionType:function(id,InteractionTypeImpl,arrExternalLibs,baseUrls){var arrLibs=[];if(!InteractionTypeImpl){UTIL.logInfo("did not register interactionype with id : ["+id+"]. InteractionTypeImpl is undefined.");return null}else{for(var i=0;arrExternalLibs&&i"+arrLibs.join("
"))}var contructor;(function(){function createInstance(api,ctx){try{var instance=new InteractionTypeImpl(api,ctx);return instance}catch(error){UTIL.logError("an error occured in interactiontype: ["+id+"]
called method: [init]
error: "+error.message);if(IS_VERBOSE&&console.error){console.error(error)}}}contructor=createInstance})();if(baseUrls){for(var i=0;i0){UTIL.addCSSToDOM(positions,myPreHideCSSId,1250)}IS_VERBOSE&&UTIL.logInfo("finished hide all positions for hostname ["+hostName+"]")},checkPreListeners:function(){var preListeners=[];if(myPreListeners.length&&myPreListeners.length>0){for(var i=0,l=myPreListeners.length;i0){var handled=handleInteractionsFn(blueConicAPI._pendingInteractions.slice(),false);IS_VERBOSE&&UTIL.logInfo("dom mutation detected, #handled: ["+handled+"]");if(handled>0){var styleElement=document.getElementById(myAsyncHideCSSId);if(styleElement){styleElement.parentNode.removeChild(styleElement)}BlueConic.prototype.fn.hidePendingPositions()}}var selectors=POSITION.getSelectors().concat();if(selectors&&selectors.length>0){IS_VERBOSE&&UTIL.logInfo("listener subscribers found for the following selectors: ["+selectors+"]. Callbacks will be called now.");for(var i=0;iUsing the default locale ["+this._defaultLocale+"] instead.");this._usedLocale=this._defaultLocale;return this._parameters[this._defaultLocale]};this.getDefaultLocale=function(){return this._defaultLocale};this.getLocale=function(){return LOCALE};this.getUrlPrefix=function(){UTIL.logDeprecated("context.getUrlPrefix","profile.getBaseURL");return UTIL.getBaseURL(this._interactionTypeId)};this.getBaseURL=function(){return UTIL.getBaseURL(this._interactionTypeId)};this.getInteractionTypeId=function(){return this._interactionTypeId};this.getProfile=function(){return myProfile};this.getConnection=function(id){if(!id||!myConnections||!UTIL.isArray(myConnections)||myConnections.length===0){return null}for(var i=0,length=myConnections.length;i0)?value[0]:null}else{if(UTIL.isDate(value)){value=value.getTime()}}PROFILE.unsavedLog(property,value);this._properties[property]=UTIL.ensureArray(value)};this.setValues=function(property,values){if(!property){IS_VERBOSE&&UTIL.logInfo("could not set values for undefined property");return}if(UTIL.isArray(property)){IS_VERBOSE&&UTIL.logInfo("property cannot be an array");return}PROFILE.unsavedLog(property,null);values=UTIL.ensureArray(values);for(var i=0;i0)?recommendations[0].recommendationId[0]:null;this._items=(recommendations)?recommendations:[];this.getId=function(){return this._id};this.getItems=function(){return this._items}}var PERMISSION={DO_NOT_TRACK:"DO_NOT_TRACK",ANONYMOUS:"ANONYMOUS",PERSONAL:"PERSONAL",propertyOptOutHandler:null,propertyOptInHandler:null,pluginOptInHandler:null,pluginOptOutHandler:null,permissionLevel:null,previousPermissionLevel:null,isPermissionLevelChanged:false,PermissionHandler:function(){this.itemList=[];this.removeList=[];this.addList=[];this.getAll=function(){return this.itemList};this.add=function(permissionItem){if(UTIL.indexOfArray(this.itemList,permissionItem)!==-1){return}push.call(this.itemList,permissionItem);push.call(this.addList,permissionItem);UTIL.removeItemFromArray(this.removeList,permissionItem)};this.remove=function(permissionItem){UTIL.removeItemFromArray(this.itemList,permissionItem);push.call(this.removeList,permissionItem);UTIL.removeItemFromArray(this.addList,permissionItem)};this.getRemoveList=function(){return this.removeList};this.getAddList=function(){return this.addList};this.set=function(arrItems){this.itemList=arrItems};this.clear=function(){this.addList=[];this.removeList=[]}},setLevel:function(level,message){if(level!==PERMISSION.DO_NOT_TRACK&&level!==PERMISSION.ANONYMOUS&&level!==PERMISSION.PERSONAL){UTIL.logInfo("invalid permission level ["+level+"]. Use one of
blueConicClient.permission.level.DO_NOT_TRACK
blueConicClient.permission.level.ANONYMOUS
blueConicClient.permission.level.PERSONAL");return false}PERMISSION.previousPermissionLevel=PERMISSION.permissionLevel;PERMISSION.isPermissionLevelChanged=true;PERMISSION.message=message;PERMISSION.permissionLevel=level;IS_VERBOSE&&UTIL.logInfo("setPermissionLevel from ["+PERMISSION.previousPermissionLevel+"] to ["+PERMISSION.permissionLevel+"]");return true},getLevel:function(){return PERMISSION.permissionLevel},createAPI:function(){PERMISSION.propertyOptOutHandler=addProfilePropertyHandler(Profile.prototype.permission.optout);PERMISSION.propertyOptInHandler=addProfilePropertyHandler(Profile.prototype.permission.optin);PERMISSION.pluginOptInHandler=addPluginHandler(Profile.prototype.permission.optin);PERMISSION.pluginOptOutHandler=addPluginHandler(Profile.prototype.permission.optout);BlueConic.prototype.permission={};BlueConic.prototype.permission.level={DO_NOT_TRACK:PERMISSION.DO_NOT_TRACK,ANONYMOUS:PERMISSION.ANONYMOUS,PERSONAL:PERMISSION.PERSONAL};function addProfilePropertyHandler(api){var ph=new PERMISSION.PermissionHandler();api.getProfileProperties=function(){return ph.getAll()};api.addProfileProperty=function(arg){return ph.add(arg)};api.removeProfileProperty=function(arg){return ph.remove(arg)};return ph}function addPluginHandler(api){var ph=new PERMISSION.PermissionHandler();api.getPlugins=function(){return ph.getAll()};api.addPlugin=function(arg){return ph.add(arg)};api.removePlugin=function(arg){return ph.remove(arg)};return ph}}};PERMISSION.createAPI();var PROFILE={addQueue:{},setQueue:{},callbackQueue:[],getProfile:function(caller,onSuccess){var id=new Date().getTime()+(++RPC.requestId);RPC.addBatchRequest(RPC.GET_PROFILE,null,id,this,function(responseData){this._handleProfileResponse(responseData,true);UTIL.doCallback(caller,onSuccess,myProfile)})},_handleProfileResponse:function(responseData,notifyReady){if(responseData&&responseData.result){var setPermissionLevel=function(responseData,profileId){var permissionLevel=PERMISSION[responseData.result.permissionlevel];PERMISSION.permissionLevel=permissionLevel;var optinProperties=UTIL.ensureArray(responseData.result.optinproperties);PERMISSION.propertyOptInHandler.set(optinProperties);var optoutProperties=UTIL.ensureArray(responseData.result.optoutproperties);PERMISSION.propertyOptOutHandler.set(optoutProperties);var optinPlugins=UTIL.ensureArray(responseData.result.optinplugins);PERMISSION.pluginOptInHandler.set(optinPlugins);var optoutPlugins=UTIL.ensureArray(responseData.result.optoutplugins);PERMISSION.pluginOptOutHandler.set(optoutPlugins);if(IS_VERBOSE){var str="Profile object initialized";str+="
-id : ["+profileId+"]";str+="
-permission level : ["+permissionLevel+"]";str+="
-optin properties : ["+optinProperties+"]";str+="
-optout properties : ["+optoutProperties+"]";str+="
-optin plugins : ["+optinPlugins+"]";str+="
-optout plugins : ["+optoutPlugins+"]";UTIL.logInfo(str)}if(notifyReady){EVENT.publish(EVENT.ON_READY,{blueConicClient:blueConicAPI})}};var profileId=(responseData.profileId)?responseData.profileId:(responseData.tempId)?responseData.tempId:responseData.result.id;if(!myProfile){myProfile=new Profile(profileId);setPermissionLevel.call(this,responseData,profileId)}else{var setProfileId=function(id){this._id=id};setProfileId.call(myProfile,profileId);if(!myProfile.getId()||!PERMISSION.getLevel()){setPermissionLevel.call(this,responseData,profileId)}}}},deleteProfile:function(caller,onSuccess){var id=new Date().getTime()+(++RPC.requestId);RPC.addBatchRequest(RPC.DELETE_PROFILE,null,id,this,function(){UTIL.setBcSessionIdCookie(null);myProfile=null;IS_VERBOSE&&UTIL.logInfo("profile is deleted");UTIL.doCallback(caller,onSuccess)})},createProfile:function(caller,onSuccess){var id=new Date().getTime()+(++RPC.requestId);RPC.addBatchRequest(RPC.CREATE_PROFILE,null,id,this,function(responseData){myProfile=null;PROFILE.addQueue={};PROFILE.setQueue={};this._handleProfileResponse(responseData,false);IS_VERBOSE&&UTIL.logInfo("new profile is created");UTIL.doCallback(caller,onSuccess,myProfile)})},updateProfile:function(caller,onSuccess){if(PREVENT_UPDATEPROFILE){if(onSuccess){PROFILE.callbackQueue.push({caller:caller,onSuccessCallback:onSuccess})}return}if(PERMISSION.isPermissionLevelChanged&&PERMISSION.previousPermissionLevel===PERMISSION.DO_NOT_TRACK){(function(){PERMISSION.isPermissionLevelChanged=false;var id=new Date().getTime()+(++RPC.requestId);var parameter={};parameter.level=UTIL.ensureArray(PERMISSION.permissionLevel);parameter.message=UTIL.ensureArray(PERMISSION.message);UTIL.setBcSessionIdCookie(null);RPC.addBatchRequest(RPC.SET_PERMISSION_LEVEL,parameter,id,this,function(){PROFILE.getProfile(this,function(){if(myProfile){var propertyNames=myProfile.getPropertyNames();for(var nameCount=0;nameCount0||propertyOptin.length>0){successCountDown++;parameter.properties=propertyOptin;parameter.plugins=pluginOptin;var id=new Date().getTime()+(++RPC.requestId);RPC.addBatchRequest(RPC.ADD_OPTIN,parameter,id,this,handleCallBack)}})();(function(){var pluginOptin=PERMISSION.pluginOptInHandler&&PERMISSION.pluginOptInHandler.getRemoveList();var propertyOptin=PERMISSION.propertyOptInHandler&&PERMISSION.propertyOptInHandler.getRemoveList();var parameter={};if(pluginOptin.length>0||propertyOptin.length>0){successCountDown++;parameter.properties=propertyOptin;parameter.plugins=pluginOptin;var id=new Date().getTime()+(++RPC.requestId);RPC.addBatchRequest(RPC.REMOVE_OPTIN,parameter,id,this,handleCallBack)}})();(function(){var pluginOptout=PERMISSION.pluginOptOutHandler&&PERMISSION.pluginOptOutHandler.getAddList();var propertyOptout=PERMISSION.propertyOptOutHandler&&PERMISSION.propertyOptOutHandler.getAddList();var parameter={};if(pluginOptout.length>0||propertyOptout.length>0){successCountDown++;parameter.properties=propertyOptout;parameter.plugins=pluginOptout;var id=new Date().getTime()+(++RPC.requestId);RPC.addBatchRequest(RPC.ADD_OPTOUT,parameter,id,this,handleCallBack)}})();(function(){var pluginOptout=PERMISSION.pluginOptOutHandler&&PERMISSION.pluginOptOutHandler.getRemoveList();var propertyOptout=PERMISSION.propertyOptOutHandler&&PERMISSION.propertyOptOutHandler.getRemoveList();var parameter={};if(pluginOptout.length>0||propertyOptout.length>0){successCountDown++;parameter.properties=propertyOptout;parameter.plugins=pluginOptout;var id=new Date().getTime()+(++RPC.requestId);RPC.addBatchRequest(RPC.REMOVE_OPTOUT,parameter,id,this,handleCallBack)}})();(function(){if(setProperties.length>0){var setPropertiesParam={};setPropertiesParam.properties=setQueue;successCountDown++;var id=new Date().getTime()+(++RPC.requestId);RPC.addBatchRequest(RPC.SET_PROPERTIES,setPropertiesParam,id,this,handleCallBack)}})();(function(){if(addProperties.length>0){var addPropertiesParam={};addPropertiesParam.properties=addQueue;successCountDown++;var id=new Date().getTime()+(++RPC.requestId);RPC.addBatchRequest(RPC.ADD_PROPERTIES,addPropertiesParam,id,this,handleCallBack)}})();handleCallBack();function handleCallBack(){successCountDown--;if(successCountDown===0){if(PROFILE.callbackQueue&&PROFILE.callbackQueue.length>0){for(var i=0;i]*)\/>/ig,hash:function(){var value=arguments[0];var hash=0;for(var i=0;i=0;i--){var character=value.charCodeAt(i);hash=31*hash+character;hash=hash&hash}return hash},doCallback:function(){var caller=arguments[0];var callback=arguments[1];var callBackArgs=[];for(var i=2,l=arguments.length;i");var voidElements=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];var elementNodeName=(element.nodeName)?element.nodeName.toLowerCase():element.nodeName;if(UTIL.indexOfArray(voidElements,elementNodeName)!==-1){var containerHTML=(element.parentNode)?element.parentNode.innerHTML:null;if(!containerHTML){IS_VERBOSE&&UTIL.logInfo("could not set inner html for void element ["+elementNodeName+"] because container was not ready");return}var wrap=document.createElement("div");wrap.appendChild(element.cloneNode(true));var elementHTML=wrap.innerHTML;var replacedHTML=containerHTML.replace(elementHTML,content);if(element.parentNode.innerHTML!==replacedHTML){try{element.parentNode.innerHTML=replacedHTML;IS_VERBOSE&&UTIL.logInfo("setContent replaced void element ["+elementNodeName+"] with given html")}catch(error){IS_VERBOSE&&UTIL.logInfo("setContent failed to replace void element ["+elementNodeName+"] with given html")}}return}while(element.firstChild){element.removeChild(element.firstChild)}try{element.innerHTML=content}catch(error){var el=document.createElement();el.innerHTML=content;element.appendChild(el)}},setBcSessionIdCookie:function(profileId){if(!window.isBcServer){UTIL.setCookie(COOKIE_BCSESSION,profileId)}},setCookie:function(name,value,ttl){if(!IS_DOCUMENT_COOKIE_ALLOWED){return}if(!name){return}if(value===null||value===undefined){document.cookie=name+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";return}var expirationDate=new Date();if(ttl===null||ttl===undefined||isNaN(ttl)){expirationDate.setDate(expirationDate.getDate()+365)}else{if(ttl>0){expirationDate=new Date(expirationDate.getTime()+parseInt(ttl))}else{expirationDate=null}}if(value&&typeof value=="string"){value=value.replace(/[\n\r]/g,"")}var strCookie=name+"="+encodeURIComponent(value);if(expirationDate){strCookie+=";expires="+expirationDate.toUTCString()}strCookie+=";path=/";var totalCookieSize=document.cookie+strCookie;if(name.indexOf(COOKIE_REVISION)>-1&&totalCookieSize.length>3000){IS_VERBOSE&&UTIL.logInfo("could not set cookie ["+name+"] with size ["+strCookie.length+"] because it would exceed the total cookie length of 3kb");return}document.cookie=strCookie},getCookies:function(){var c=null,v=0,cookies={};if(!IS_DOCUMENT_COOKIE_ALLOWED){return cookies}c=document.cookie;if(document.cookie.match(/^\s*\$Version=(?:"1"|1);\s*(.*)/)){c=RegExp.$1;v=1}if(v===0){UTIL.map(c.split(/[,;]/),function(cookie){var parts=cookie.split(/=/),name=decodeURIComponent(UTIL.trimLeft(parts[0])),value=null;try{if(parts.length>1){for(var i=1;i0){return element[0]}if(element instanceof HTMLCollection&&element.length===0){return null}return element}var r=Sizzle(position);if(r&&r.length>0){return r[0]}return null},isCSSSelector:function(position){if(!position){return false}var isAttributeSelection=false;if(position.indexOf("[")!==-1&&position.indexOf("]")!==-1&&position.indexOf("=")!==-1){isAttributeSelection=true}var isCSSSelector=false;if(position.indexOf("#")!==-1||position.indexOf(".")!==-1||position.indexOf(" ")!==-1||position.indexOf(":")!==-1||isAttributeSelection){isCSSSelector=true}return isCSSSelector},normalizePosition:function(position){if(!position){return null}if(!UTIL.isCSSSelector(position)){position="#"+position}return position},addCSSToDOM:function(arrSelector,identifier,duration){if(!arrSelector||arrSelector.length===0){return}IS_VERBOSE&&UTIL.logInfo("hide positions ["+arrSelector+"]");var css="";for(var i=0,l=arrSelector.length;i0){window.setTimeout(function(){var styleElement=document.getElementById(identifier);if(styleElement){styleElement.parentNode.removeChild(styleElement);IS_VERBOSE&&UTIL.logInfo("timeout ["+duration+"] expired; CSS ["+identifier+"] removed")}},duration)}},getBaseURL:function(interactionTypeId){var staticUrl=null;if(myStaticUrls&&myStaticUrls[interactionTypeId]){staticUrl=myStaticUrls[interactionTypeId]}if(!staticUrl){return null}if(staticUrl.indexOf("/blueconic/static/plugins/")==0){return BC_URL+staticUrl}if(!IS_HTTPS&&staticUrl.indexOf("https://localhost/")==-1&&staticUrl.indexOf("https://localhost:9090/")==-1){staticUrl=staticUrl.replace("https:","http:")}else{if(staticUrl&&staticUrl.indexOf("http:")!==-1){IS_VERBOSE&&UTIL.logInfo("base url ["+staticUrl+"] for interaction type ["+interactionTypeId+']
does not have "https" support')}}return staticUrl},parseJSON:function(json){if(!json){return null}return blueConicAPI.json.parse(json)},stringifyObject:function(obj,replacer,space){return blueConicAPI.json.stringify(obj,replacer,space)},checkNativeJsonLib:function(){if(HAS_JSON_SUPPORT&&(!lastNativeJsonCheckTime||(new Date).getTime()-100)>lastNativeJsonCheckTime){HAS_JSON_SUPPORT=INTERNAL.isNative(window.JSON.parse,"window.JSON.parse")&&INTERNAL.isNative(window.JSON.stringify,"window.JSON.stringify");lastNativeJsonCheckTime=(new Date()).getTime()}if(!HAS_JSON_SUPPORT&&JSON===null){loadJSON2Library()}},handleProfileId:function(profileId){if(PERMISSION.getLevel()===PERMISSION.DO_NOT_TRACK){return}var currentProfileId=UTIL.getCookie(COOKIE_BCSESSION);if(currentProfileId!==profileId){IS_VERBOSE&&UTIL.logInfo("update cookie ["+COOKIE_BCSESSION+"] with profile id ["+profileId+"]");UTIL.setBcSessionIdCookie(profileId)}if(profileId&&UTIL.getCookie(COOKIE_BCTEMPSESSION)){UTIL.setCookie(COOKIE_BCTEMPSESSION,null);if(myProfile&&!myProfile.getId()){var setProfileId=function(id){this._id=id};setProfileId.call(myProfile,profileId)}}},handleTempProfileId:function(tempId){if(tempId&&UTIL.getCookie(COOKIE_BCTEMPSESSION)!==tempId){UTIL.setCookie(COOKIE_BCTEMPSESSION,tempId,TEMP_COOKIE_TTL)}},log:function(message){if(HAS_CONSOLE){console.log("[BC]"+message)}},logError:function(message){while(message.indexOf("
")!==-1){message=message.replace("
","\n ")}UTIL.log("[ERROR] "+message);if(HAS_CONSOLE&&console.trace){UTIL.log("[ERROR] --stacktrace--");console.trace();UTIL.log("[ERROR] --end stacktrace--")}},logWarning:function(message){if(IS_VERBOSE){UTIL.log("[WARNING] "+message)}},logInfo:function(message){if(IS_VERBOSE){var runningTime=new Date().getTime()-START_TIME;while(message.indexOf("
")!==-1){message=message.replace("
","\n ")}UTIL.log("[INFO] "+message+" +"+runningTime+" ms")}},logDeprecated:function(functionName,alt){if(IS_VERBOSE){UTIL.log("[DEPRECATED] function ["+functionName+"] is deprecated. \n Please use : "+alt)}},formatLocalDate:function(){var now=new Date();var tzo=-now.getTimezoneOffset();var dif=tzo>=0?"+":"-",pad=function(num){var norm=Math.abs(Math.floor(num));return(norm<10?"0":"")+norm};return now.getFullYear()+"-"+pad(now.getMonth()+1)+"-"+pad(now.getDate())+"T"+pad(now.getHours())+":"+pad(now.getMinutes())+":"+pad(now.getSeconds())+dif+pad(tzo/60)+":"+pad(tzo%60)},getCurrentTime:function(){var now=new Date();return("0"+now.getHours()).slice(-2)+":"+("0"+now.getMinutes()).slice(-2)},objectToUrl:function(obj){var str="";for(var key in obj){var value=obj[key];if(UTIL.isArray(value)){for(var i=0;i-1){qsParams+="referer="+encodeURIComponent(window.location)+"&"}}}}if(window.name&&window.name.indexOf("bc_")>-1){var mode=window.name;if(mode){var found=false;var newMode=mode;for(var i=0;i-1){newMode=checkMode;found=true}}if(!found){mode=mode.substring(mode.indexOf("bc_"))}else{mode=newMode}qsParams+="mode="+mode+"&"}}else{if(BC_MGT||window.opener){qsParams+="checkCookie=true&isopener="+(typeof window.opener!="undefined"&&window.opener!=null)+"&"}}qsParams+="bcsessionid="+bcSessionId+"&bctempid="+bcTempSessionId+"&overruleReferrer="+overruleReferrer+"&time="+encode(UTIL.formatLocalDate());return qsParams}function jsonp(url,params,callback,callbackName,errorCallback){var query=(url||"").indexOf("?")===-1?"?":"&";params=params||{};for(var key in params){if(hasOwn.call(params,key)){query+=key+"="+params[key]+"&"}}query+=getRPCParameters(url);var jsonp="bc_json"+(++counter);window[jsonp]=function(data){callback(data);try{delete window[jsonp]}catch(e){}window[jsonp]=null};load(url+query+"&"+(callbackName||config.callbackName||"callback")+"="+jsonp,errorCallback);return jsonp}function corsPostRequest(url,params,successCallback,errorCallback,isRedirect){var createCORSRequest=function(method,url){var xhr1=new XMLHttpRequest();if("withCredentials" in xhr1){xhr1.open(method,url,true);xhr1.setRequestHeader("Content-Type","text/plain");xhr1.withCredentials=true;xhr1.timeout=10000}else{xhr1=null}return xhr1};var qsParams=((url.indexOf("?")===-1)?"?":"")+getRPCParameters(url);var xhr=createCORSRequest("POST",url+qsParams+"&ts="+(new Date()).getTime());if(!xhr){UTIL.logWarning("CORS POST request failed, is XMLHttpRequest overruled? Fallback to GET.");errorCallback();return false}xhr.onload=function(){if(xhr.responseText){var response=blueConicAPI.json.parse(xhr.responseText);if(!isRedirect&&response.location){if(PROTOCOL==="http://"&&response.location.indexOf("https://")>-1){response.location=response.location.replace("https://","http://")}corsPostRequest(response.location,params,successCallback,errorCallback,true)}else{successCallback(response)}}};xhr.onerror=function(){var statusCode=xhr.status;if(statusCode>0){UTIL.logWarning("CORS POST request failed.");if(usePostMethod()){UTIL.handleZoneId()}}if(errorCallback){errorCallback()}};xhr.onabort=function(e){HAS_CONSOLE&&console.log("CORS request is aborted.",e)};xhr.ontimeout=function(event){HAS_CONSOLE&&console.log("CORS request has timed-out, 10s exceeded.")};xhr.send(params);return true}function setDefaults(obj){config=obj}return{get:jsonp,post:corsPostRequest,init:setDefaults}}()),handleRevisions:function(){var allCookies=null;var cookieNames=null;if(IS_LOCAL_STORAGE_SUPPORTED){cookieNames=[];for(var i=0;iMAX_RPC_REQUEST_LENGTH){return}if(this._method!==RPC.SET_PROPERTIES&&this._method!==RPC.ADD_PROPERTIES&&this._method!==RPC.SEND_MAIL&&this._method!==RPC.CREATE_EVENT){return}if(this._method===RPC.CREATE_EVENT&&this._param&&this._param.type&&this._param.type[0]==="PAGEVIEW"){return}var revisionRequestId="rev_"+this._id;var value=UTIL.stringifyObject({method:this._method,param:this._param,requestId:revisionRequestId});var cookieName=COOKIE_REVISION+"_"+this._id;var setCookie=function(){UTIL.setCookie(cookieName,value,0);var cookie=UTIL.getCookie(cookieName);if(!cookie){var allCookies=UTIL.getCookies();var cookieNames=UTIL.getPropertiesFromObject(allCookies);for(var i=0,l=cookieNames.length;iTask ["+task.getId()+"] - Content length : ["+contentLength+"]. Is finished ["+task.isFinished()+"].";var parameter=task.getParameter();if(!parameter){return str}var objectProperties=(parameter.properties)?parameter.properties:parameter;for(property in objectProperties){if(hasOwn.call(objectProperties,property)){str+="
-"+property;var values=objectProperties[property];if(!values||values.length===0){str+="
(null or undefined)"}else{if(UTIL.isArray(values)){for(var j=0,jl=values.length;j The size of the RPC is ["+contentLength+"] while the max size is ["+MAX_RPC_REQUEST_LENGTH+"]");submitTasks.call(this,scheduledTasks,function(){scheduleTasks.call(this,requests)});return}else{submitTasks.call(this,scheduledTasks,function(){scheduleTasks.call(this,requests)});return}}}}if(scheduledTasks.length>0){submitTasks.call(this,scheduledTasks,null)}};var handleResponse=function(responseData,tasks,fnOnReady){if(responseData){var items=UTIL.ensureArray(responseData);for(var i=0;i0){submitTasks.call(this,tasks)}}else{scheduleTasks.call(this,batchRequests)}RPC.batchRequests=[]}};(function(){if(typeof bcSubscriptions==="undefined"){return}if(!UTIL.isArray(bcSubscriptions)){return}for(var i=0,l=bcSubscriptions.length;i+~]|"+whitespace+")"+whitespace+"*"),rattributeQuotes=new RegExp("="+whitespace+"*([^\\]'\"]*?)"+whitespace+"*\\]","g"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={ID:new RegExp("^#("+identifier+")"),CLASS:new RegExp("^\\.("+identifier+")"),TAG:new RegExp("^("+identifier+"|[*])"),ATTR:new RegExp("^"+attributes),PSEUDO:new RegExp("^"+pseudos),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),bool:new RegExp("^(?:"+booleans+")$","i"),needsContext:new RegExp("^"+whitespace+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")},rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rnative=/^[^{]+\{\s*\[native \w/,rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rsibling=/[+~]/,runescape=new RegExp("\\\\([\\da-f]{1,6}"+whitespace+"?|("+whitespace+")|.)","ig"),funescape=function(_,escaped,escapedWhitespace){var high="0x"+escaped-65536;return high!==high||escapedWhitespace?escaped:high<0?String.fromCharCode(high+65536):String.fromCharCode(high>>10|55296,high&1023|56320)},rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,fcssescape=function(ch,asCodePoint){if(asCodePoint){if(ch==="\0"){return"\uFFFD"}return ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" "}return"\\"+ch},unloadHandler=function(){setDocument()},inDisabledFieldset=addCombinator(function(elem){return elem.disabled===true&&elem.nodeName.toLowerCase()==="fieldset"},{dir:"parentNode",next:"legend"});try{push.apply((arr=slice.call(preferredDoc.childNodes)),preferredDoc.childNodes);arr[preferredDoc.childNodes.length].nodeType}catch(e){push={apply:arr.length?function(target,els){push_native.apply(target,slice.call(els))}:function(target,els){var j=target.length,i=0;while((target[j++]=els[i++])){}target.length=j-1}}}function Sizzle(selector,context,results,seed){var m,i,elem,nid,match,groups,newSelector,newContext=context&&context.ownerDocument,nodeType=context?context.nodeType:9;results=results||[];if(typeof selector!=="string"||!selector||nodeType!==1&&nodeType!==9&&nodeType!==11){return results}if(!seed){if((context?context.ownerDocument||context:preferredDoc)!==document){setDocument(context)}context=context||document;if(documentIsHTML){if(nodeType!==11&&(match=rquickExpr.exec(selector))){if((m=match[1])){if(nodeType===9){if((elem=context.getElementById(m))){if(elem.id===m){results.push(elem);return results}}else{return results}}else{if(newContext&&(elem=newContext.getElementById(m))&&contains(context,elem)&&elem.id===m){results.push(elem);return results}}}else{if(match[2]){push.apply(results,context.getElementsByTagName(selector));return results}else{if((m=match[3])&&support.getElementsByClassName&&context.getElementsByClassName){push.apply(results,context.getElementsByClassName(m));return results}}}}if(support.qsa&&!nonnativeSelectorCache[selector+" "]&&(!rbuggyQSA||!rbuggyQSA.test(selector))){if(nodeType!==1){newContext=context;newSelector=selector}else{if(context.nodeName.toLowerCase()!=="object"){if((nid=context.getAttribute("id"))){nid=nid.replace(rcssescape,fcssescape)}else{context.setAttribute("id",(nid=expando))}groups=tokenize(selector);i=groups.length;while(i--){groups[i]="#"+nid+" "+toSelector(groups[i])}newSelector=groups.join(",");newContext=rsibling.test(selector)&&testContext(context.parentNode)||context}}if(newSelector){try{push.apply(results,newContext.querySelectorAll(newSelector));return results}catch(qsaError){nonnativeSelectorCache(selector)}finally{if(nid===expando){context.removeAttribute("id")}}}}}}return select(selector.replace(rtrim,"$1"),context,results,seed)}function createCache(){var keys=[];function cache(key,value){if(keys.push(key+" ")>Expr.cacheLength){delete cache[keys.shift()]}return(cache[key+" "]=value)}return cache}function markFunction(fn){fn[expando]=true;return fn}function assert(fn){var el=document.createElement("fieldset");try{return !!fn(el)}catch(e){return false}finally{if(el.parentNode){el.parentNode.removeChild(el)}el=null}}function addHandle(attrs,handler){var arr=attrs.split("|"),i=arr.length;while(i--){Expr.attrHandle[arr[i]]=handler}}function siblingCheck(a,b){var cur=b&&a,diff=cur&&a.nodeType===1&&b.nodeType===1&&a.sourceIndex-b.sourceIndex;if(diff){return diff}if(cur){while((cur=cur.nextSibling)){if(cur===b){return -1}}}return a?1:-1}function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type===type}}function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&elem.type===type}}function createDisabledPseudo(disabled){return function(elem){if("form" in elem){if(elem.parentNode&&elem.disabled===false){if("label" in elem){if("label" in elem.parentNode){return elem.parentNode.disabled===disabled}else{return elem.disabled===disabled}}return elem.isDisabled===disabled||elem.isDisabled!==!disabled&&inDisabledFieldset(elem)===disabled}return elem.disabled===disabled}else{if("label" in elem){return elem.disabled===disabled}}return false}}function createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;while(i--){if(seed[(j=matchIndexes[i])]){seed[j]=!(matches[j]=seed[j])}}})})}function testContext(context){return context&&typeof context.getElementsByTagName!=="undefined"&&context}support=Sizzle.support={};isXML=Sizzle.isXML=function(elem){var documentElement=elem&&(elem.ownerDocument||elem).documentElement;return documentElement?documentElement.nodeName!=="HTML":false};setDocument=Sizzle.setDocument=function(node){var hasCompare,subWindow,doc=node?node.ownerDocument||node:preferredDoc;if(doc===document||doc.nodeType!==9||!doc.documentElement){return document}document=doc;docElem=document.documentElement;documentIsHTML=!isXML(document);if(preferredDoc!==document&&(subWindow=document.defaultView)&&subWindow.top!==subWindow){if(subWindow.addEventListener){subWindow.addEventListener("unload",unloadHandler,false)}else{if(subWindow.attachEvent){subWindow.attachEvent("onunload",unloadHandler)}}}support.attributes=assert(function(el){el.className="i";return !el.getAttribute("className")});support.getElementsByTagName=assert(function(el){el.appendChild(document.createComment(""));return !el.getElementsByTagName("*").length});support.getElementsByClassName=rnative.test(document.getElementsByClassName);support.getById=assert(function(el){docElem.appendChild(el).id=expando;return !document.getElementsByName||!document.getElementsByName(expando).length});if(support.getById){Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId}};Expr.find.ID=function(id,context){if(typeof context.getElementById!=="undefined"&&documentIsHTML){var elem=context.getElementById(id);return elem?[elem]:[]}}}else{Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return node&&node.value===attrId}};Expr.find.ID=function(id,context){if(typeof context.getElementById!=="undefined"&&documentIsHTML){var node,i,elems,elem=context.getElementById(id);if(elem){node=elem.getAttributeNode("id");if(node&&node.value===id){return[elem]}elems=context.getElementsByName(id);i=0;while((elem=elems[i++])){node=elem.getAttributeNode("id");if(node&&node.value===id){return[elem]}}}return[]}}}Expr.find.TAG=support.getElementsByTagName?function(tag,context){if(typeof context.getElementsByTagName!=="undefined"){return context.getElementsByTagName(tag)}else{if(support.qsa){return context.querySelectorAll(tag)}}}:function(tag,context){var elem,tmp=[],i=0,results=context.getElementsByTagName(tag);if(tag==="*"){while((elem=results[i++])){if(elem.nodeType===1){tmp.push(elem)}}return tmp}return results};Expr.find.CLASS=support.getElementsByClassName&&function(className,context){if(typeof context.getElementsByClassName!=="undefined"&&documentIsHTML){return context.getElementsByClassName(className)}};rbuggyMatches=[];rbuggyQSA=[];if((support.qsa=rnative.test(document.querySelectorAll))){assert(function(el){docElem.appendChild(el).innerHTML="";if(el.querySelectorAll("[msallowcapture^='']").length){rbuggyQSA.push("[*^$]="+whitespace+"*(?:''|\"\")")}if(!el.querySelectorAll("[selected]").length){rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")")}if(!el.querySelectorAll("[id~="+expando+"-]").length){rbuggyQSA.push("~=")}if(!el.querySelectorAll(":checked").length){rbuggyQSA.push(":checked")}if(!el.querySelectorAll("a#"+expando+"+*").length){rbuggyQSA.push(".#.+[+~]")}});assert(function(el){el.innerHTML="";var input=document.createElement("input");input.setAttribute("type","hidden");el.appendChild(input).setAttribute("name","D");if(el.querySelectorAll("[name=d]").length){rbuggyQSA.push("name"+whitespace+"*[*^$|!~]?=")}if(el.querySelectorAll(":enabled").length!==2){rbuggyQSA.push(":enabled",":disabled")}docElem.appendChild(el).disabled=true;if(el.querySelectorAll(":disabled").length!==2){rbuggyQSA.push(":enabled",":disabled")}el.querySelectorAll("*,:x");rbuggyQSA.push(",.*:")})}if((support.matchesSelector=rnative.test((matches=docElem.matches||docElem.webkitMatchesSelector||docElem.mozMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector)))){assert(function(el){support.disconnectedMatch=matches.call(el,"*");matches.call(el,"[s!='']:x");rbuggyMatches.push("!=",pseudos)})}rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|"));rbuggyMatches=rbuggyMatches.length&&new RegExp(rbuggyMatches.join("|"));hasCompare=rnative.test(docElem.compareDocumentPosition);contains=hasCompare||rnative.test(docElem.contains)?function(a,b){var adown=a.nodeType===9?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&(adown.contains?adown.contains(bup):a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16))}:function(a,b){if(b){while((b=b.parentNode)){if(b===a){return true}}}return false};sortOrder=hasCompare?function(a,b){if(a===b){hasDuplicate=true;return 0}var compare=!a.compareDocumentPosition-!b.compareDocumentPosition;if(compare){return compare}compare=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;if(compare&1||(!support.sortDetached&&b.compareDocumentPosition(a)===compare)){if(a===document||a.ownerDocument===preferredDoc&&contains(preferredDoc,a)){return -1}if(b===document||b.ownerDocument===preferredDoc&&contains(preferredDoc,b)){return 1}return sortInput?(indexOf(sortInput,a)-indexOf(sortInput,b)):0}return compare&4?-1:1}:function(a,b){if(a===b){hasDuplicate=true;return 0}var cur,i=0,aup=a.parentNode,bup=b.parentNode,ap=[a],bp=[b];if(!aup||!bup){return a===document?-1:b===document?1:aup?-1:bup?1:sortInput?(indexOf(sortInput,a)-indexOf(sortInput,b)):0}else{if(aup===bup){return siblingCheck(a,b)}}cur=a;while((cur=cur.parentNode)){ap.unshift(cur)}cur=b;while((cur=cur.parentNode)){bp.unshift(cur)}while(ap[i]===bp[i]){i++}return i?siblingCheck(ap[i],bp[i]):ap[i]===preferredDoc?-1:bp[i]===preferredDoc?1:0};return document};Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements)};Sizzle.matchesSelector=function(elem,expr){if((elem.ownerDocument||elem)!==document){setDocument(elem)}expr=expr.replace(rattributeQuotes,"='$1']");if(support.matchesSelector&&documentIsHTML&&!nonnativeSelectorCache[expr+" "]&&(!rbuggyMatches||!rbuggyMatches.test(expr))&&(!rbuggyQSA||!rbuggyQSA.test(expr))){try{var ret=matches.call(elem,expr);if(ret||support.disconnectedMatch||elem.document&&elem.document.nodeType!==11){return ret}}catch(e){nonnativeSelectorCache(expr)}}return Sizzle(expr,document,null,[elem]).length>0};Sizzle.contains=function(context,elem){if((context.ownerDocument||context)!==document){setDocument(context)}return contains(context,elem)};Sizzle.attr=function(elem,name){if((elem.ownerDocument||elem)!==document){setDocument(elem)}var fn=Expr.attrHandle[name.toLowerCase()],val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):undefined;return val!==undefined?val:support.attributes||!documentIsHTML?elem.getAttribute(name):(val=elem.getAttributeNode(name))&&val.specified?val.value:null};Sizzle.escape=function(sel){return(sel+"").replace(rcssescape,fcssescape)};Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg)};Sizzle.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;hasDuplicate=!support.detectDuplicates;sortInput=!support.sortStable&&results.slice(0);results.sort(sortOrder);if(hasDuplicate){while((elem=results[i++])){if(elem===results[i]){j=duplicates.push(i)}}while(j--){results.splice(duplicates[j],1)}}sortInput=null;return results};getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(!nodeType){while((node=elem[i++])){ret+=getText(node)}}else{if(nodeType===1||nodeType===9||nodeType===11){if(typeof elem.textContent==="string"){return elem.textContent}else{for(elem=elem.firstChild;elem;elem=elem.nextSibling){ret+=getText(elem)}}}else{if(nodeType===3||nodeType===4){return elem.nodeValue}}}return ret};Expr=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(match){match[1]=match[1].replace(runescape,funescape);match[3]=(match[3]||match[4]||match[5]||"").replace(runescape,funescape);if(match[2]==="~="){match[3]=" "+match[3]+" "}return match.slice(0,4)},CHILD:function(match){match[1]=match[1].toLowerCase();if(match[1].slice(0,3)==="nth"){if(!match[3]){Sizzle.error(match[0])}match[4]=+(match[4]?match[5]+(match[6]||1):2*(match[3]==="even"||match[3]==="odd"));match[5]=+((match[7]+match[8])||match[3]==="odd")}else{if(match[3]){Sizzle.error(match[0])}}return match},PSEUDO:function(match){var excess,unquoted=!match[6]&&match[2];if(matchExpr.CHILD.test(match[0])){return null}if(match[3]){match[2]=match[4]||match[5]||""}else{if(unquoted&&rpseudo.test(unquoted)&&(excess=tokenize(unquoted,true))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){match[0]=match[0].slice(0,excess);match[2]=unquoted.slice(0,excess)}}return match.slice(0,3)}},filter:{TAG:function(nodeNameSelector){var nodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();return nodeNameSelector==="*"?function(){return true}:function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName}},CLASS:function(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test(typeof elem.className==="string"&&elem.className||typeof elem.getAttribute!=="undefined"&&elem.getAttribute("class")||"")})},ATTR:function(name,operator,check){return function(elem){var result=Sizzle.attr(elem,name);if(result==null){return operator==="!="}if(!operator){return true}result+="";return operator==="="?result===check:operator==="!="?result!==check:operator==="^="?check&&result.indexOf(check)===0:operator==="*="?check&&result.indexOf(check)>-1:operator==="$="?check&&result.slice(-check.length)===check:operator==="~="?(" "+result.replace(rwhitespace," ")+" ").indexOf(check)>-1:operator==="|="?result===check||result.slice(0,check.length+1)===check+"-":false}},CHILD:function(type,what,argument,first,last){var simple=type.slice(0,3)!=="nth",forward=type.slice(-4)!=="last",ofType=what==="of-type";return first===1&&last===0?function(elem){return !!elem.parentNode}:function(elem,context,xml){var cache,uniqueCache,outerCache,node,nodeIndex,start,dir=simple!==forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType,diff=false;if(parent){if(simple){while(dir){node=elem;while((node=node[dir])){if(ofType?node.nodeName.toLowerCase()===name:node.nodeType===1){return false}}start=dir=type==="only"&&!start&&"nextSibling"}return true}start=[forward?parent.firstChild:parent.lastChild];if(forward&&useCache){node=parent;outerCache=node[expando]||(node[expando]={});uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});cache=uniqueCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex&&cache[2];node=nodeIndex&&parent.childNodes[nodeIndex];while((node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop())){if(node.nodeType===1&&++diff&&node===elem){uniqueCache[type]=[dirruns,nodeIndex,diff];break}}}else{if(useCache){node=elem;outerCache=node[expando]||(node[expando]={});uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});cache=uniqueCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex}if(diff===false){while((node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop())){if((ofType?node.nodeName.toLowerCase()===name:node.nodeType===1)&&++diff){if(useCache){outerCache=node[expando]||(node[expando]={});uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});uniqueCache[type]=[dirruns,diff]}if(node===elem){break}}}}}diff-=last;return diff===first||(diff%first===0&&diff/first>=0)}}},PSEUDO:function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error("unsupported pseudo: "+pseudo);if(fn[expando]){return fn(argument)}if(fn.length>1){args=[pseudo,pseudo,"",argument];return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;while(i--){idx=indexOf(seed,matched[i]);seed[idx]=!(matches[idx]=matched[i])}}):function(elem){return fn(elem,0,args)}}return fn}},pseudos:{not:markFunction(function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction(function(seed,matches,context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;while(i--){if((elem=unmatched[i])){seed[i]=!(matches[i]=elem)}}}):function(elem,context,xml){input[0]=elem;matcher(input,null,xml,results);input[0]=null;return !results.pop()}}),has:markFunction(function(selector){return function(elem){return Sizzle(selector,elem).length>0}}),contains:markFunction(function(text){text=text.replace(runescape,funescape);return function(elem){return(elem.textContent||elem.innerText||getText(elem)).indexOf(text)>-1}}),lang:markFunction(function(lang){if(!ridentifier.test(lang||"")){Sizzle.error("unsupported lang: "+lang)}lang=lang.replace(runescape,funescape).toLowerCase();return function(elem){var elemLang;do{if((elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang"))){elemLang=elemLang.toLowerCase();return elemLang===lang||elemLang.indexOf(lang+"-")===0}}while((elem=elem.parentNode)&&elem.nodeType===1);return false}}),target:function(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id},root:function(elem){return elem===docElem},focus:function(elem){return elem===document.activeElement&&(!document.hasFocus||document.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex)},enabled:createDisabledPseudo(false),disabled:createDisabledPseudo(true),checked:function(elem){var nodeName=elem.nodeName.toLowerCase();return(nodeName==="input"&&!!elem.checked)||(nodeName==="option"&&!!elem.selected)},selected:function(elem){if(elem.parentNode){elem.parentNode.selectedIndex}return elem.selected===true},empty:function(elem){for(elem=elem.firstChild;elem;elem=elem.nextSibling){if(elem.nodeType<6){return false}}return true},parent:function(elem){return !Expr.pseudos.empty(elem)},header:function(elem){return rheader.test(elem.nodeName)},input:function(elem){return rinputs.test(elem.nodeName)},button:function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type==="button"||name==="button"},text:function(elem){var attr;return elem.nodeName.toLowerCase()==="input"&&elem.type==="text"&&((attr=elem.getAttribute("type"))==null||attr.toLowerCase()==="text")},first:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(matchIndexes,length){return[length-1]}),eq:createPositionalPseudo(function(matchIndexes,length,argument){return[argument<0?argument+length:argument]}),even:createPositionalPseudo(function(matchIndexes,length){var i=0;for(;i=0;){matchIndexes.push(i)}return matchIndexes}),gt:createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument;for(;++i1?function(elem,context,xml){var i=matchers.length;while(i--){if(!matchers[i](elem,context,xml)){return false}}return true}:matchers[0]}function multipleContexts(selector,contexts,results){var i=0,len=contexts.length;for(;i-1){seed[temp]=!(results[temp]=elem)}}}}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut);if(postFinder){postFinder(null,results,matcherOut,xml)}else{push.apply(results,matcherOut)}}})}function matcherFromTokens(tokens){var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext},implicitRelative,true),matchAnyContext=addCombinator(function(elem){return indexOf(checkContext,elem)>-1},implicitRelative,true),matchers=[function(elem,context,xml){var ret=(!leadingRelative&&(xml||context!==outermostContext))||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));checkContext=null;return ret}];for(;i1&&elementMatcher(matchers),i>1&&toSelector(tokens.slice(0,i-1).concat({value:tokens[i-2].type===" "?"*":""})).replace(rtrim,"$1"),matcher,i0,byElement=elementMatchers.length>0,superMatcher=function(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,elems=seed||byElement&&Expr.find.TAG("*",outermost),dirrunsUnique=(dirruns+=contextBackup==null?1:Math.random()||0.1),len=elems.length;if(outermost){outermostContext=context===document||context||outermost}for(;i!==len&&(elem=elems[i])!=null;i++){if(byElement&&elem){j=0;if(!context&&elem.ownerDocument!==document){setDocument(elem);xml=!documentIsHTML}while((matcher=elementMatchers[j++])){if(matcher(elem,context||document,xml)){results.push(elem);break}}if(outermost){dirruns=dirrunsUnique}}if(bySet){if((elem=!matcher&&elem)){matchedCount--}if(seed){unmatched.push(elem)}}}matchedCount+=i;if(bySet&&i!==matchedCount){j=0;while((matcher=setMatchers[j++])){matcher(unmatched,setMatched,context,xml)}if(seed){if(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched[i])){setMatched[i]=pop.call(results)}}}setMatched=condense(setMatched)}push.apply(results,setMatched);if(outermost&&!seed&&setMatched.length>0&&(matchedCount+setMatchers.length)>1){Sizzle.uniqueSort(results)}}if(outermost){dirruns=dirrunsUnique;outermostContext=contextBackup}return unmatched};return bySet?markFunction(superMatcher):superMatcher}compile=Sizzle.compile=function(selector,match){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){if(!match){match=tokenize(selector)}i=match.length;while(i--){cached=matcherFromTokens(match[i]);if(cached[expando]){setMatchers.push(cached)}else{elementMatchers.push(cached)}}cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers));cached.selector=selector}return cached};select=Sizzle.select=function(selector,context,results,seed){var i,tokens,token,type,find,compiled=typeof selector==="function"&&selector,match=!seed&&tokenize((selector=compiled.selector||selector));results=results||[];if(match.length===1){tokens=match[0]=match[0].slice(0);if(tokens.length>2&&(token=tokens[0]).type==="ID"&&context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){context=(Expr.find.ID(token.matches[0].replace(runescape,funescape),context)||[])[0];if(!context){return results}else{if(compiled){context=context.parentNode}}selector=selector.slice(tokens.shift().value.length)}i=matchExpr.needsContext.test(selector)?0:tokens.length;while(i--){token=tokens[i];if(Expr.relative[(type=token.type)]){break}if((find=Expr.find[type])){if((seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context))){tokens.splice(i,1);selector=seed.length&&toSelector(tokens);if(!selector){push.apply(results,seed);return results}break}}}}(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,!context||rsibling.test(selector)&&testContext(context.parentNode)||context);return results};support.sortStable=expando.split("").sort(sortOrder).join("")===expando;support.detectDuplicates=!!hasDuplicate;setDocument();support.sortDetached=assert(function(el){return el.compareDocumentPosition(document.createElement("fieldset"))&1});if(!assert(function(el){el.innerHTML="";return el.firstChild.getAttribute("href")==="#"})){addHandle("type|href|height|width",function(elem,name,isXML){if(!isXML){return elem.getAttribute(name,name.toLowerCase()==="type"?1:2)}})}if(!support.attributes||!assert(function(el){el.innerHTML="";el.firstChild.setAttribute("value","");return el.firstChild.getAttribute("value")===""})){addHandle("value",function(elem,name,isXML){if(!isXML&&elem.nodeName.toLowerCase()==="input"){return elem.defaultValue}})}if(!assert(function(el){return el.getAttribute("disabled")==null})){addHandle(booleans,function(elem,name,isXML){var val;if(!isXML){return elem[name]===true?name.toLowerCase():(val=elem.getAttributeNode(name))&&val.specified?val.value:null}})}var _sizzle=window.Sizzle;Sizzle.noConflict=function(){if(window.Sizzle===Sizzle){window.Sizzle=_sizzle}return Sizzle};window.Sizzle=Sizzle})(window);var Sizzle=window.Sizzle;try{if(window.bcTempSizzle){window.Sizzle=window.bcTempSizzle;delete window.bcTempSizzle}else{delete window.Sizzle}}catch(err){}var blueConicAPI=window.blueConicClient=new BlueConic();blueConicAPI.fn.setRequestInfo({});(function(){var handleMain=function(){INTERNAL.checkPreListeners();var interactionsLoaded=false,interactionTypesLoaded=false;IS_VERBOSE&&UTIL.logInfo("start pageview event");blueConicAPI.createEvent("PAGEVIEW",null,this,function(interactions){if(!interactions||interactions.length==0){IS_VERBOSE&&UTIL.logInfo("the pageview event did not return any interacion, check if the channel is configured");var styleElement=document.getElementById(myPreHideCSSId);if(styleElement){styleElement.parentNode.removeChild(styleElement);IS_VERBOSE&&UTIL.logInfo("removed css for phase 1")}}IS_VERBOSE&&UTIL.logInfo("[+] finished pageview event ["+interactions.length+" interactions to run]");myInteractions=interactions;interactionsLoaded=true;IS_VERBOSE&&UTIL.logInfo("start hide positions mechanism for positions claimed by the configured interactions");var arrSelectors=[];for(var i=0,l=myInteractions.length;i-1){UTIL.loadScript(BC_SERVER+"/simulatordevice",null,function(){handleMain()})}else{handleMain()}})}else{handleMain()}})()})(window,this.bcVerbose,this.bcChannelIdentifier,this.bcRpcMode,((window.blueconicProxy)?window.blueconicProxyHost:this.bcHostname),(typeof domainGroups==="undefined"?{}:domainGroups),(typeof positions==="undefined"?{}:positions),window.blueConicPreListeners);function Template(e,c,b,a,d){this._id=e;this._html=c;this._css=b;this._javascript=a;this._precompiledTemplate=d;this.getId=function(){return this._id};this.getHtml=function(){return this._html};this.getCss=function(){return this._css};this.getJavaScript=function(){return this._javascript};this.getPrecompiled=function(){return this._precompiledTemplate}}; })();