tag.imonomy.com Open in urlscan Pro
2606:4700:10::6816:19cf  Public Scan

URL: https://tag.imonomy.com/script/14567609857/preload.js
Submission: On April 11 via manual from JP — Scanned from JP

Form analysis 0 forms found in the DOM

Text Content

(function(){if(window.imonomy&&window.imonomy.preload&&window.imonomy.preload.direct){var encoded_partner='14567609857';if(encoded_partner!=imonomy.preload.encoded_partner){try{var sub_id='';if(encoded_partner=="14567725798"||encoded_partner=="14567725764"||encoded_partner=="14567725690"){if(typeof(vadims_sub_id)!='undefined'){sub_id=vadims_sub_id;}}
var unit_code_url='//srv.imonomy.com/internal/blocked?v=2&subid='+sub_id+'&format=1&ai=992&ctxu='+escape(imonomy.preload.encoded_partner)+'&sid='+encoded_partner;imonomy.preload.injectScript(unit_code_url);}catch(e){}}
return;}
window.imonomy={};(function(){String.prototype.startsWith=function(str)
{return(this.match("^"+str)==str)}
if(!("classList"in document.documentElement)&&Object.defineProperty&&typeof HTMLElement!=='undefined'){Object.defineProperty(Object.prototype,'classList',{get:function(){var self=this;function update(fn){return function(value){var classes=self.className.split(/\s+/),index=classes.indexOf(value);fn(classes,index,value);self.className=classes.join(" ");}}
var ret={add:update(function(classes,index,value){~index||classes.push(value);}),remove:update(function(classes,index){~index&&classes.splice(index,1);}),toggle:update(function(classes,index,value){~index?classes.splice(index,1):classes.push(value);}),contains:function(value){return!!~self.className.split(/\s+/).indexOf(value);},item:function(i){return self.className.split(/\s+/)[i]||null;}};Object.defineProperty(ret,'length',{get:function(){return self.className.split(/\s+/).length;}});return ret;}});}
if(!("getBoundingClientRectRigth"in document.documentElement)&&Object.defineProperty&&typeof HTMLElement!=='undefined'){Object.defineProperty(Object.prototype,'getBoundingClientRectRigth',{get:function(){return function(){if(this.getBoundingClientRect){var rect=this.getBoundingClientRect();if(this.x&&this.y){var scroll_top=imonomy.utils.getScrollTop();rect.top=scroll_top-this.y;}
return rect;}else{return undefined;}}}});}
if(!("watchatt"in document.documentElement)&&Object.defineProperty&&typeof HTMLElement!=='undefined'){Object.defineProperty(Object.prototype,"watchatt",{enumerable:false,configurable:true,writable:false,value:function(prop,handler){var
oldval=this[prop],newval=oldval,getter=function(){return newval;},setter=function(val){oldval=newval;return newval=handler.call(this,prop,oldval,val);};if(delete this[prop]){Object.defineProperty(this,prop,{get:getter,set:setter,enumerable:true,configurable:true});}}});}
function imonomy_prevent_change(prop,oldval,val){if(this&&(this.allow_change||val=="about:blank")){this.allow_change=false;return val;}else{return oldval;}}
if(!window.getZIndex){window.getZIndex=function(elem){var highestZIndex=null;while(elem!=document.documentElement&&elem){var zIndex=parseInt(getComputedStyle(elem,null).getPropertyValue('z-index'));if(highestZIndex===null&&typeof zIndex==='number'&&!isNaN(zIndex)){highestZIndex=zIndex;}else if(!isNaN(zIndex)&&zIndex>highestZIndex){highestZIndex=zIndex;}
elem=elem.parentElement;}
return highestZIndex;};}
if(!window.getElementPosition){function internalgetElementPosition(elem){var element_position=window.getComputedStylePropertyValue(elem,'position');if(element_position!='fixed'&&(elem!=document.documentElement)&&elem.parentNode&&typeof(elem.parentNode.tagName)!="undefined")return internalgetElementPosition(elem.parentNode);return element_position;}
window.getElementPosition=function(elem){return internalgetElementPosition(elem);};}
if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,fromIndex){if(fromIndex==null){fromIndex=0;}else if(fromIndex<0){fromIndex=Math.max(0,this.length+fromIndex);}
for(var i=fromIndex,j=this.length;i<j;i++){if(this[i]===obj)
return i;}
return-1;};}
if(!window.getComputedStyle){window.getComputedStyle=function(el,pseudo){this.el=el;this.getPropertyValue=function(prop){var re=/(\-([a-z]){1})/g;if(prop=='float')prop='styleFloat';if(re.test(prop)){prop=prop.replace(re,function(){return arguments[2].toUpperCase();});}
return el.currentStyle[prop]?el.currentStyle[prop]:null;}
return this;}}
if(!window.getComputedStylePropertyValue){function getCamelCasedCssProperty(cssProperty){var camelcase=cssProperty.replace(/\-([a-z]){1}/g,function(g){return g.toUpperCase()});return camelcase;}
window.getComputedStylePropertyValue=function(el,cssProperty){if(!window.getComputedStyle){if(document.defaultView&&document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle.getPropertyValue(cssProperty);}
else{var camelCasedCssProperty=getCamelCasedCssProperty(cssProperty);var style_ie8=window.getComputedStyle(el);if(style_ie8.getPropertyValue(camelCasedCssProperty)){return html_style.getPropertyValue(camelCasedCssProperty);}
else{if(el.currentStyle){return el.currentStyle(camelCasedCssProperty);}
else{if(el.style[camelCasedCssProperty].length>0){return el.style[camelCasedCssProperty];}
else return 0;}}}}
else{if(el.nodeType==1){var comp_style=window.getComputedStyle(el);if(comp_style){return comp_style.getPropertyValue(cssProperty);}}
return null;}}}
String.prototype.trim=function(){return this.replace(/^\s*|\s*$/g,'');},String.prototype.truncate=function(limit){var bits,i;bits=this.split('');if(bits.length>limit){for(var i=bits.length-1;i>-1;--i){if(i>limit){bits.length=i;}
else if(' '===bits[i]){bits.length=i;break;}}
bits.push('...');}
return bits.join('');};String.prototype.title=function(){return this[0].toUpperCase()+this.substr(1);}
if(window.imonomy){}else{window.imonomy={};}
window.brand_name_for_internal=window.imonomy;imonomy.utils={addClassname:function(arr,className){arr.forEach(function(item){item.classList.add(className);});},removeClassname:function(arr,className){arr.forEach(function(item){item.classList.remove(className);});},calcTimeDuration:function(){if(imonomy.preload){var fromTime=imonomy.preload.trackServe_time;}else{return 'null';}
var toTime=new Date();var resultInms=toTime-fromTime;if(resultInms!==undefined){return resultInms;}else{return 'null';}},getFullScreenElement:function(st,full_screen_element){if(typeof(st.fullScreenElement)!='undefined'){return st.fullScreenElement;}
if(full_screen_element==st||full_screen_element==st.img||(st.img.outerHTML&&full_screen_element.innerHTML.indexOf(st.img.outerHTML)>-1)||(st.outerHTML&&full_screen_element.innerHTML.indexOf(st.outerHTML)>-1)){st.fullScreenElement=full_screen_element;return st.fullScreenElement;}
return null;},get_client_ad:function(product,format,tier,cid){if(!imonomy.settings.is_client||!product||!format||!imonomy.utils.is_client_valid(product)){return null;}
if(!tier){tier=0;}
try{tier=parseInt(tier);var chain=imonomy.settings.client_chain;var chain_format=imonomy.utils.getUnitFormatLayout(format);var ad_unit=chain[chain_format][product][tier];var unit_data=JSON.parse(JSON.stringify(imonomy.settings.client_ad_units_data[chain_format][ad_unit]));unit_data.cid=cid;unit_data.html=unit_data.html.replace("'$$va_next_tier$$'",tier+1);unit_data.html=unit_data.html.replace("'$$current_tier$$'",tier);unit_data.html=unit_data.html.replace("$$cachebuster$$",Math.random().toString());unit_data.html=unit_data.html.replace("$$host_domain$$",'srv.imonomy.com');unit_data.html=unit_data.html.replace("%24%24cid%24%24",cid);unit_data.html=unit_data.html.replace("%24%24location%24%24",escape(window.location));return unit_data;}catch(e){return null;}},is_client_valid:function(){return imonomy.settings.is_client&&imonomy.settings.client_chain&&imonomy.settings.client_ad_units_data},isElementTrackable:function(element){var is_trackable=true;try{(function(checked,element){if(element.tagName=='IFRAME'&&element.className.indexOf('imonomy')<0){if(element.src&&element.src.length>0&&element.src!==window.location.href&&element.src!='about:blank'){is_trackable=false;return}}
else if(element.tagName=='IFRAME'){element=element.contentDocument.body||element.contentWindow.document.body;var inner_elems=element.childNodes;for(var i=0;i<inner_elems.length;i++){arguments.callee(checked,inner_elems[i]);}}
else{inner_elems=element.childNodes;for(var i=0;i<inner_elems.length;i++){arguments.callee(checked,inner_elems[i]);}}})(is_trackable,element);}
catch(e){return is_trackable}
return is_trackable;},supports_css3:function(){if(typeof(imonomy.layer.supports_css3)!='undefined'){return imonomy.layer.supports_css3;}
if(imonomy.utils.supportCSSprop('transition')){imonomy.layer.supports_css3=true;return true;}
imonomy.layer.supports_css3=false;return false;},supportCSSprop:function(prop){var ifSupports=false,bodyStyles=document.body.style,propCapitalized=prop.title();if('Moz'+propCapitalized in bodyStyles){ifSupports=true;}
if('webkit'+propCapitalized in bodyStyles){ifSupports=true;}
if('ms'+propCapitalized in bodyStyles){ifSupports=true;}
if(prop in bodyStyles){ifSupports=true;}
return ifSupports;},getVideoByObjectData:function(optional_els,tagName){var videos=[];var words=imonomy.settings.invideo_players_keywords;if(tagName=='IFRAME'){for(var i=0;i<optional_els.length;i++){var url=optional_els[i].src;if(typeof(url)!='undefined'&&url!=null&&url.length>0){for(var j=0;j<imonomy.settings.allowed_iframe_players.length;j++){if(url.indexOf(imonomy.settings.allowed_iframe_players[j])!=-1){videos[videos.length]=optional_els[i];}}}}}else if(tagName=='EMBED'){for(var i=0;i<optional_els.length;i++){optional_el=optional_els[i];if(optional_el){var data=null;if(optional_el.data){data=optional_el.data;}else{if(optional_el.attributes["flashvars"]){data=optional_el.attributes["flashvars"].value;}}
if(data!=null){for(var j=0;j<words.length;j++){var word=words[j];if(data.indexOf(word)>-1){videos[videos.length]=optional_el;continue;}}}}}}else{videos=optional_els;}
for(var i=0;i<videos.length;i++){var playerName='';try{playerName=imonomy.utils.getVideoPlayerName(videos[i]);}catch(e){}
videos[i].playerName=playerName;if(imonomy.settings.invideo_settings.hasOwnProperty(playerName)){if(playerName=='flash'){videos[i]=videos[i].parentNode;videos[i].skip_src_check=true;videos[i].playerName=playerName;}
videos[i].player_offset=imonomy.settings.invideo_settings[playerName]['offset'];videos[i].player_custom_code=imonomy.settings.invideo_settings[playerName]['custom_code'];}}
var recognizedPlayers=[];for(var i=0;i<videos.length;i++){if(videos[i].playerName){recognizedPlayers.push(videos[i]);}}
return recognizedPlayers;},getVideoPlayers:function(){optional_el=document.getElementsByTagName("object");var video_el=imonomy.utils.getVideoByObjectData(optional_el,'OBJECT');optional_el=document.getElementsByTagName("embed");video_el=video_el.concat(imonomy.utils.getVideoByObjectData(optional_el,'EMBED'));var html5_video=document.getElementsByTagName("video");video_el=video_el.concat(imonomy.utils.getVideoByObjectData(html5_video,'VIDEO'));var iframe_video=document.getElementsByTagName("iframe");video_el=video_el.concat(imonomy.utils.getVideoByObjectData(iframe_video,'IFRAME'));return video_el;},getVideoPlayerName:function(playerObject){var isPlayerFound=undefined,players=Object.keys(imonomy.settings.invideo_settings);for(var i=0;i<players.length;i++){var playerObj=imonomy.settings.invideo_settings[players[i]];try{isPlayerFound=playerObj.js_identifier(playerObject);}catch(e){}
if(isPlayerFound){return players[i];}}
if(!isPlayerFound){var playerObj=imonomy.settings.invideo_flash_settings;try{isPlayerFound=playerObj.js_identifier(playerObject);if(isPlayerFound){return playerObj.player_name}}catch(e){}
return undefined;}
if(!isPlayerFound&&playerObject.tagName=="VIDEO"){var playerObj=imonomy.settings.invideo_flash_settings;return playerObj.player_name}
return isPlayerFound;},getCoords:function(elem){var box=elem.getBoundingClientRect();var body=document.body;var docEl=document.documentElement;var scrollTop=window.pageYOffset||docEl.scrollTop||body.scrollTop;var scrollLeft=window.pageXOffset||docEl.scrollLeft||body.scrollLeft;var clientTop=docEl.clientTop||body.clientTop||0;var clientLeft=docEl.clientLeft||body.clientLeft||0;var top=box.top+scrollTop-clientTop;var left=box.left+scrollLeft-clientLeft;return{top:top,left:left};},get_use_img:function(img){var use_img=img;if(img.tagName!="IMG"){if(img.use_img){use_img=img.use_img}else{var internal_images=img.getElementsByTagName("img");if(internal_images.length==1){var internal_size=imonomy.image._getImgSize(internal_images[0]);if(internal_size[0]>40&&internal_size[1]>40){use_img=internal_images[0];}}else if(internal_images.length>1){var max_size_img=1;var index_img=-1;for(var i=0;i<internal_images.length;i++){var internal_size=imonomy.image._getImgSize(internal_images[i]);var size_img=internal_size[0]*internal_size[1];if(size_img>max_size_img){max_size_img=size_img;index_img=i;}}
if(index_img>-1){use_img=internal_images[index_img];}}
img.use_img=use_img;}}
return use_img;},isHomePage:function(){return document.location!=null&&(document.location.pathname=="/"||document.location.pathname=="/index.php")&&document.location.search=="";},getElementTopLeft:function(id){var size=imonomy.image._getImgSize(id);imgWidth=size[0];imgHeight=size[1];imgTop=size[2];imgLeft=size[3];imgPos=size[4];return{top:imgTop,left:imgLeft};},keywords_words:null,keywords_words_usemeta:true,protocol:function(){var protocol="http:";if(window.location!=null){protocol=window.location.protocol;if(protocol.indexOf("http")<0){protocol="http:"}}
return protocol;},isAdultContent:function(){return false;},injectStyle:function(data){if(imonomy.utils.isIE()&&document.styleSheets&&document.styleSheets.length>30){function getStyleSheet(){var styleSheets=document.styleSheets;for(var j=0;j<styleSheets.length;j++){var styleSheet=styleSheets[j];if(styleSheet.cssText.length<1000){return styleSheet;}}
return null;};var styleSheet=getStyleSheet();if(styleSheet!=null){styleSheet.cssText=styleSheet.cssText+" "+data;}}else{var s=document.createElement('style');s.setAttribute('type','text/css');if(s.styleSheet){s.styleSheet.cssText=data;}
else{var st=document.createTextNode(data);s.appendChild(st);}
if(s){var e_s=document.getElementsByTagName('head');if(e_s&&e_s.length>0){if(typeof(document)!='undefined'&&typeof(document.location)!='undefined'&&document.location.host=='happilyblended.com'){e_s=document.getElementsByTagName('style');e_s[0].innerHTML=e_s[0].innerHTML+data;}else{e_s[0].appendChild(s);}}}}},getUnitFormatLayout:function(unit_format){var unit_format_layout="300x250";if(unit_format&&unit_format!=""){if(unit_format=="1")unit_format_layout="300x250";else if(unit_format=="2")unit_format_layout="468x60";else if(unit_format=="3")unit_format_layout="234x60";else if(unit_format=="4")unit_format_layout="600x95";else if(unit_format=="5")unit_format_layout="240x150";else if(unit_format=="6")unit_format_layout="728x90";else if(unit_format=="7")unit_format_layout="video";else if(unit_format=="8")unit_format_layout="320x50";else unit_format_layout=unit_format;}
return unit_format_layout;},setFrameCode:function(unit_code,unit_data,frame_container,frame,append_container,wrap_code,force_frame){var unit_format=unit_data.format;var curr_test=unit_data.curr_test;var cid=unit_data.cid;var curr_tier=unit_data.curr_tier;var curr_unit_id=unit_data.unit_id;var origin_unit_code=unit_code;try{unit_code=unit_code.replace("$$cachebuster$$",Math.random().toString());origin_unit_code=origin_unit_code.replace("$$cachebuster$$",Math.random().toString());}catch(e){}
var unit_format_layout=imonomy.utils.getUnitFormatLayout(unit_format);if(imonomy.settings.unit_macros&&imonomy.settings.unit_macros!=""&&origin_unit_code&&origin_unit_code!=""){for(var prop in imonomy.settings.unit_macros){if((frame&&(frame.className.indexOf(prop)>=0||(frame.product&&frame.product.indexOf(prop)>=0))||(frame_container&&frame_container.className.indexOf(prop)>=0)||unit_format_layout==prop)&&typeof(imonomy.settings.unit_macros[prop])=='object'){var macros_arr=Object.getOwnPropertyNames(imonomy.settings.unit_macros[prop]);for(var prop_t in macros_arr){var code_to_replace=((imonomy.settings.unit_macros[prop])[macros_arr[prop_t]]);if(typeof(macros_arr[prop_t])=='string'&&typeof(code_to_replace)=='string'){if(code_to_replace.indexOf("%")>=0)code_to_replace=decodeURIComponent(code_to_replace);origin_unit_code=origin_unit_code.replace(new RegExp(macros_arr[prop_t].replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&'),'g'),code_to_replace);}}}}}
var width=301;var height=250;if(unit_data.width){width=unit_data.width;if(width<3&&unit_data.unit_filler&&unit_data.unit_filler.width){width=unit_data.unit_filler.width;}}
if(unit_data.height){height=unit_data.height;if(height<3&&unit_data.unit_filler&&unit_data.unit_filler.height){height=unit_data.unit_filler.height;}}
if(unit_format=="600x95"){width=600;height=95;}
else if(unit_format=="240x75"){width=240;height=75;}
else if(unit_format=="240x150"){width=240;height=150;}
else if(unit_format=="468x60"){width="100%";height=126;}
if(imonomy.layer.test_iframe_mode()){if(origin_unit_code!=null){if(origin_unit_code.length>0&&origin_unit_code.startsWith(":eval:")){origin_unit_code=origin_unit_code.replace(":eval:","")
eval(origin_unit_code);}
else if(origin_unit_code.indexOf("<sc"+"ript")>-1||force_frame){var location_encoded=document.location+"";location_encoded=location_encoded.replace(/'/g," ");var next_tier="1";if(curr_tier){next_tier=(curr_tier+1).toString()}
data_obj={}
data_obj.va_keywords=imonomy.page.keywords();data_obj.va_sid=imonomy.layer.get_sid();data_obj.va_isps=imonomy.layer.shopping_site();data_obj.va_time_preload=imonomy.preload.trackServe_time;data_obj.va_allow_ttkaen=imonomy.settings.time_taken;data_obj.va_sum_ttkan_fromX=0;data_obj.va_x_taken=new Date();data_obj.va_format=unit_format;data_obj.va_use_frame=true;data_obj.va_cid=cid;data_obj.va_next_tier=next_tier;data_obj.va_curr_test=curr_test;data_obj.va_url=location_encoded;data_obj.va_domain=imonomy.page.domain();data_obj.va_title=document.title;data_obj.va_ref=document.referrer;var unit_code="<sc"+"rip"+"t type='text/javascr"+"ipt'>"+
"var w = window; w.va_terms = '';"+
"w.va_keywords = '"+imonomy.page.keywords().replace(/'/g," ")+"';"+
"w.va_sid = '"+imonomy.layer.get_sid()+"';"+
"w.va_isps = "+imonomy.layer.shopping_site()+";"+
"w.va_time_preload = '"+imonomy.preload.trackServe_time+"';"+
"w.va_allow_ttkaen = '"+imonomy.settings.time_taken+"';"+
"w.va_sum_ttkan_fromX = 0;"+
"w.va_x_taken = new Date();"+
"w.va_format = '"+unit_format+"';"+
"w.va_use_frame = true;"+
"w.va_cid = '"+cid+"';"+
"w.va_next_tier = "+next_tier+";"+
"w.va_curr_test = "+curr_test+";"+
"w.va_url = '"+location_encoded+"';"+
"w.va_domain = '"+imonomy.page.domain()+"';"+
"w.va_title = '"+document.title.replace(/'/g," ")+"';"+
"w.va_ref = '"+document.referrer.replace(/'/g," ")+"';";if(imonomy.settings&&imonomy.settings.quality_type){unit_code=unit_code+"w.va_quality_type = '"+imonomy.settings.quality_type+"';";data_obj.va_quality_type=imonomy.settings.quality_type;}
if(imonomy.settings&&imonomy.settings.unit_macros){var code_to_propagate=imonomy.settings.unit_macros;for(var prop in code_to_propagate){if(typeof(code_to_propagate[prop])=='object'){var macros_arr=Object.getOwnPropertyNames(code_to_propagate[prop]);for(var prop_t in macros_arr){code_to_replace=((code_to_propagate[prop])[macros_arr[prop_t]]);if(typeof(macros_arr[prop_t])=='string'&&typeof(code_to_replace)=='string'){if(code_to_replace.indexOf("'")>=0||code_to_replace.indexOf('"')>=0){((code_to_propagate[prop])[macros_arr[prop_t]])=encodeURIComponent(code_to_replace);}}}}}
unit_code=unit_code+"w.va_unit_macros = '"+JSON.stringify(code_to_propagate)+"';";data_obj.va_unit_macros=JSON.stringify(code_to_propagate);var product_str="";if(frame&&frame.className)product_str=frame.className;if(frame&&frame.product)product_str+="-"+frame.product;if(frame_container&&frame_container.className)product_str+="-"+frame_container.className;unit_code=unit_code+"w.va_frame_class = '"+product_str+"';";data_obj.va_frame_class=product_str;}
if(imonomy.ab_label){unit_code=unit_code+"w.va_ab = '"+imonomy.ab_label+"';";data_obj.va_ab=imonomy.ab_label;}
if(imonomy.settings&&imonomy.settings.unit_wait_for_onload){unit_code=unit_code+"w.va_waitforload = "+imonomy.settings.unit_wait_for_onload+";";data_obj.va_waitforload=imonomy.settings.unit_wait_for_onload;}
if(imonomy.preload){if(imonomy.preload.over_cap){unit_code=unit_code+"w.va_over_cap = true;";}else{unit_code=unit_code+"w.va_over_cap = false;";}
data_obj.va_over_cap=imonomy.preload.over_cap;}
var sub_id=imonomy.layer.get_sub_id();if(sub_id!=''){unit_code=unit_code+"w.va_subid = '"+sub_id+"';";data_obj.va_subid=sub_id;}
var unit_marker=imonomy.layer.unit_marker();if(unit_marker!=''){unit_code=unit_code+"w.va_unit_marker = '"+unit_marker+"';";data_obj.va_unit_marker=unit_marker;}
if(imonomy.settings.shopping_agresive&&imonomy.layer.shopping_site()){unit_code=unit_code+"w.va_xtra_info = '12';";data_obj.va_xtra_info='12';}
if(imonomy.preload&&imonomy.preload.search_term_to_use!=null){unit_code=unit_code+"w.va_serach_terms = '"+imonomy.preload.search_term_to_use+"';"}
if(curr_unit_id&&curr_unit_id!=null){unit_code=unit_code+"w.va_curr_unit_id = '"+curr_unit_id+"';"
data_obj.va_curr_unit_id=curr_unit_id;}
unit_code=unit_code+"w.va_image = true;"+
"</sc"+"ript>"+origin_unit_code
unit_code=unit_code.replace(/\$\$va_format\$\$/g,unit_format);unit_code=unit_code.replace(/\$\$va_terms\$\$/g,imonomy.page.keywords().replace(/'/g," "));if(imonomy.preload&&imonomy.preload.search_term_to_use!=null){unit_code=unit_code.replace(/\$\$va_search_terms\$\$/g,imonomy.preload.search_term_to_use);unit_code=unit_code.replace(/%24%24va_search_terms%24%24/g,imonomy.preload.search_term_to_use);}else{unit_code=unit_code.replace(/\$\$va_search_terms\$\$/g,imonomy.page.keywords().replace(/'/g," "));unit_code=unit_code.replace(/%24%24va_search_terms%24%24/g,imonomy.page.keywords().replace(/'/g," "));}
unit_code=unit_code.replace(/\$\$va_keywords\$\$/g,imonomy.page.keywords().replace(/'/g," "));unit_code=unit_code.replace(/\$\$va_sid\$\$/g,imonomy.layer.get_sid());unit_code=unit_code.replace(/\$\$va_url\$\$/g,escape(document.location));unit_code=unit_code.replace(/\$\$va_domain\$\$/g,escape(imonomy.page.domain()));unit_code=unit_code.replace(/\$\$va_title\$\$/g,document.title.replace(/'/g," "));unit_code=unit_code.replace(/\$\$va_cid\$\$/g,cid);unit_code=unit_code.replace(/\$\$va_image\$\$/g,"true");var next_tier="1";if(imonomy.settings.curr_tier){next_tier=(imonomy.settings.curr_tier+1).toString()}
unit_code=unit_code.replace(/\$\va_next_tier\$\$/g,next_tier);unit_code=unit_code.replace(/\$\va_curr_test\$\$/g,curr_test);if(curr_unit_id&&curr_unit_id!=null){unit_code=unit_code.replace(/\$\$va_curr_unit_id\$\$/g,curr_unit_id);}else{unit_code=unit_code.replace(/\$\$va_curr_unit_id\$\$/g,"");}
if(wrap_code){unit_code="<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body style='overflow: hidden;margin: 0px;'>"+unit_code+"</body></html>"}
if(frame==null){frame=document.createElement('iframe');if(frame.watchatt){frame.watchatt('src',imonomy_prevent_change);}
if(frame_container.className=="imonomy_footer"){frame.className='footer_frame';}else{frame.className='flip_frame';}
if((imonomy.settings.use_sandbox_iframes&&!imonomy.utils.isMobile())||(imonomy.utils.isMobile()&&imonomy.settings.use_sandbox_iframes_mobile)){if(unit_data.prevent_sandbox){frame.setAttribute('use_sandbox','true');}else{frame.setAttribute('sandbox','allow-pointer-lock allow-same-origin allow-scripts allow-popups');}}
frame_container.appendChild(frame);}
frame.data_obj=data_obj;imonomy.layer.set_iframe(frame,unit_code,width,height);}else{if(origin_unit_code!=null&&origin_unit_code.length>0){if(append_container){var container_div=document.createElement('div');container_div.className="fyva_container";container_div.innerHTML=origin_unit_code;frame_container.appendChild(container_div);}else{frame_container.innerHTML=origin_unit_code;}}}}}else{var curr_unit_id=null;if(window.va_curr_unit_id){curr_unit_id=window.va_curr_unit_id;}
if(curr_unit_id!=993&&curr_unit_id!=999&&curr_unit_id!=998&&curr_unit_id!=997&&curr_unit_id!=994){var params='';var tr="0";if(origin_unit_code!=null&&origin_unit_code.length>0){if(origin_unit_code.startsWith(":eval:")){origin_unit_code=origin_unit_code.replace(":eval:","")
eval(origin_unit_code);return;}}
var sub_id=imonomy.layer.get_sub_id();var sub_id_str="";if(sub_id!=''){sub_id_str="&subid="+sub_id;}
var unit_marker=imonomy.layer.unit_marker();if(unit_marker!=''){sub_id_str=sub_id_str+"&um="+unit_marker;}
var macros_prms="";var product_frame="";if(imonomy.settings&&imonomy.settings.unit_macros){macros_prms="&macros="+encodeURIComponent(JSON.stringify(imonomy.settings.unit_macros));product_frame="&product_frame=";if(frame&&frame.className)product_frame+=frame.className;if(frame&&frame.product)product_frame+="-"+frame.product;if(frame_container&&frame_container.className)product_frame+="-"+frame_container.className;}
var ab_label="&ab=";if(imonomy.ab_label)ab_label+=imonomy.ab_label;var unit_code_url=imonomy.utils.protocol()+'//srv.imonomy.com/internal/serve?rf=framede&format='+unit_format+'&img=true&tr='+tr+'&sid='+imonomy.layer.get_sid()+'&cid='+cid+'&isps='+imonomy.layer.shopping_site()+'&terms='+escape(imonomy.page.keywords().replace(/'/g," "))+'&keywords='+escape(imonomy.page.keywords())+'&dm='+escape(imonomy.page.domain())+'&ttl='+document.title.replace(/'/g," ")+sub_id_str+macros_prms+product_frame+ab_label;if(curr_unit_id!=null){unit_code_url=unit_code_url+'&uid='+curr_unit_id;}
if(frame==null){frame=document.createElement('iframe');frame.className='flip_frame';if((imonomy.settings.use_sandbox_iframes&&!imonomy.utils.isMobile())||(imonomy.utils.isMobile()&&imonomy.settings.use_sandbox_iframes_mobile)){if(unit_data.prevent_sandbox){frame.setAttribute('use_sandbox','true');}else{frame.setAttribute('sandbox','allow-pointer-lock allow-same-origin allow-scripts allow-popups');}}
frame_container.appendChild(frame);}
imonomy.layer.set_iframe(frame,null,width,height);frame.setAttribute("src",unit_code_url);if(frame.watchatt){frame.watchatt('src',imonomy_prevent_change);}}}},setCookie:function(c_name,value,exmilisec,path,cross_domain)
{var exdate=null;if(exmilisec!=null){exdate=new Date();exdate.setTime(exdate.getTime()+exmilisec);}
var c_value=escape(value)+((exmilisec==null)?"":"; expires="+exdate.toUTCString())+((path==null||typeof(path)=='undefined')?"":"; path="+path);document.cookie=c_name+"="+c_value;if(cross_domain){var exmin=exmilisec/1000/60;var params="exp="+exmin+"&ap=false&nm="+c_name+"&vl="+escape(value);imonomy.preload.injectScript(imonomy.utils.protocol()+'//srv.imonomy.com/cookies/create.js?'+params);}},getCookie:function(c_name){if(document.cookie.length>0){var c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return "";},browser:{browser_type:"",version_id:"",type:function(){if(this.browser_type=="")
this.browser_type=this.searchString(this.dataBrowser)||"Unknown-Browser";return this.browser_type;},version:function(){if(this.version_id=="")
this.version_id=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion);return this.version_id;},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(dataString){if(dataString.indexOf(data[i].subString)!=-1)
return data[i].identity;}
else if(dataProp)
return data[i].identity;}},searchVersion:function(dataString){var index=dataString.indexOf(this.versionSearchString);if(index==-1){index=dataString.indexOf("rv");if(index==-1)return;return parseFloat(dataString.substring(index+3));}
return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},dataBrowser:[{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Trident",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"}]},isRTL:function()
{styleProp='direction';el='imonomy_layer';var x=document.getElementById(el)||document.body;if(x.currentStyle)
var y=x.currentStyle[styleProp];else if(window.getComputedStyle)
var y=document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp);return y=='rtl';},isIE:function(){return imonomy.utils.browser.type()=="Explorer";},isAndroid:function(){return navigator.userAgent.match(/Android/i);},isBlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i);},isiOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i);},isOperaMobile:function(){return navigator.userAgent.match(/Opera Mini/i);},isWindowsMobile:function(){return navigator.userAgent.match(/IEMobile/i);},isMobile:function(){return(imonomy.utils.isAndroid()||imonomy.utils.isBlackBerry()||imonomy.utils.isiOS()||imonomy.utils.isOperaMobile()||imonomy.utils.isWindowsMobile());},hasClass:function(el,cssClass,check_parent){var has_class=el.className&&new RegExp("(^|\\s)"+cssClass+"(\\s|$)").test(el.className);if(!has_class&&check_parent&&el.parentNode){has_class=imonomy.utils.hasClass(el.parentNode,cssClass,check_parent);}
return has_class;},isDescendantFromId:function(el,id){var has_id=el.id==id;if(!has_id&&el.parentNode){has_id=imonomy.utils.isDescendantFromId(el.parentNode,id);}
return has_id;},unbind:function(event,action,element){if(element==null){return;}
if(element.removeEventListener){element.removeEventListener(event,action,false);}else if(element.detachEvent){element.detachEvent('on'+event,action);}else{if(event=='mousedown'){element.onmousedown=null;}else if(event=='mouseenter'){element.onmouseenter=null;}else if(event=='mouseleave'){element.onmouseleave=null;}else if(event=='mouseout'){element.onmouseout=null;}else if(event=='mouseover'){element.omouseover=null;}}},bind:function(event,action,element){if(element==null){return;}
var action_func=null;if(event=='mouseenter'||event=='mouseover'){action_func=function(){action(element)};}else if(event=='mouseleave'||event=='mouseout'){action_func=function(e){action(e,element)};}else{action_func=action}
if(element.addEventListener){element.addEventListener(event,action_func,false);}else if(element.attachEvent){element.attachEvent('on'+event,action_func);}else{if(event=='mousedown'){element.onmousedown=action_func;}else if(event=='mouseenter'){element.onmouseenter=action_func;}else if(event=='mouseleave'){element.onmouseleave=action_func;}else if(event=='mouseout'){element.onmouseout=action_func;}else if(event=='mouseover'){element.omouseover=action_func;}}},easing:{linear:function(progress){return progress;},quadratic:function(progress){return Math.pow(progress,2);},swing:function(progress){return 0.5-Math.cos(progress*Math.PI)/2;},circ:function(progress){return 1-Math.sin(Math.acos(progress));},back:function(progress,x){return Math.pow(progress,2)*((x+1)*progress-x);},bounce:function(progress){for(var a=0,b=1,result;1;a+=b,b/=2){if(progress>=(7-4*a)/11){return-Math.pow((11-6*a-11*progress)/4,2)+Math.pow(b,2);}}},elastic:function(progress,x){return Math.pow(2,10*(progress-1))*Math.cos(20*Math.PI*x/3*progress);}},animate_interval:function(options,start){var timePassed=new Date-start;if(typeof(options.duration)=='undefined'){return;}
var progress=timePassed/options.duration;if(progress>1||progress==Number.NaN||typeof(progress)=='undefined'){progress=1;}else if(progress<1){}else{progress=1;}
options.progress=progress;options.counter=options.counter+1;var delta=options.delta(progress);if(delta==-999999){return;}
options.step(delta);if(progress==1){options.complete();}else{if(options.counter<2000){setTimeout(function(){imonomy.utils.animate_interval(options,start)},options.delay||10);}else{}}},animate_internal:function(options){var start=new Date;options.counter=1;setTimeout(function(){imonomy.utils.animate_interval(options,start)},options.delay||10);},animate_left:function(element,from_location,to_location,time){options={duration:time,complete:function(){}};var to=(to_location-from_location)>0?1:0
imonomy.utils.animate_internal({duration:options.duration,delta:function(progress){return imonomy.utils.easing.swing(progress);},complete:options.complete,step:function(delta){if(from_location<0){delta=delta*-1;}
element.style.left=(from_location+(delta*(from_location-to_location)))+'px';}});},animate_right:function(element,from_location,to_location,time){options={duration:time,complete:function(){}};var to=(to_location-from_location)>0?1:0
imonomy.utils.animate_internal({duration:options.duration,delta:function(progress){return imonomy.utils.easing.swing(progress);},complete:options.complete,step:function(delta){element.style.right=(from_location+(delta*(to_location-from_location)))+'px';}});},elements_action:{},fadeOut:function(element,options){imonomy.utils.elements_action[element]="fadeOut";if(options=="fast")
options={duration:300,complete:function(){}};if(options=="normal")
options={duration:800,complete:function(){}};var to=1;imonomy.utils.animate_internal({duration:options.duration,delta:function(progress){if(imonomy.utils.elements_action[element]!="fadeOut"){return-999999;}
return imonomy.utils.easing.swing(progress);},complete:options.complete,step:function(delta){element.style.opacity=to-delta;if(element.style.opacity==0){element.style.display="none";}}});},fadeIn:function(element,options,complete){imonomy.utils.elements_action[element]="fadeIn";element.style.opacity=0;if(element.style.display=="none"){element.style.display="block";}
var to=0;if(options=="fast")
options={duration:300,complete:function(){if(complete){complete();}}};if(options=="normal")
options={duration:800,complete:function(){if(complete){complete();}}};imonomy.utils.animate_internal({duration:options.duration,delta:function(progress){if(imonomy.utils.elements_action[element]!="fadeIn"){return-999999;}
return imonomy.utils.easing.swing(progress);},complete:options.complete,step:function(delta){element.style.opacity=to+delta;}});},fadeInCss3:function(element,options,callback){var speed,speedDefault='.6s',zero='0s',speedFast='.3s',speedNormal='.5s',speedSlow='.8s';if(options==='fast'){speed=speedFast;}else if(options==='normal'){speed=speedNormal;}else if(options==='slow'){speed=speedSlow;}else if(options==='zero'){speed=zero;}else{speed=speedDefault;}
element.style.transition="opacity "+speed;element.style.setProperty("-webkit-transition","opacity "+speed);element.style.setProperty("-moz-transition","opacity "+speed);element.style.setProperty("-ms-transition","opacity "+speed);setTimeout(function(){element.style.opacity='1';},0);if(callback){callback();}},fadeOutCss3:function(element,options,callback){var speed,speedDefault='.6s',zero='0s',speedFast='.3s',speedNormal='.5s',speedSlow='.8s';if(options==='fast'){speed=speedFast;}else if(options==='normal'){speed=speedNormal;}else if(options==='slow'){speed=speedSlow;}else if(options==='zero'){speed=zero;}else{speed=speedDefault;}
element.style.transition="opacity "+speed;element.style.setProperty("-webkit-transition","opacity "+speed);element.style.setProperty("-moz-transition","opacity "+speed);element.style.setProperty("-ms-transition","opacity "+speed);setTimeout(function(){element.style.opacity='0';},0);if(callback){callback();}},getDocHeight:function(){var D=document;return Math.max(D.body.scrollHeight,D.documentElement.scrollHeight,D.body.offsetHeight,D.documentElement.offsetHeight,D.body.clientHeight,D.documentElement.clientHeight);},getHeight:function(){if(window.innerHeight){return window.innerHeight}else{return document.body.clientHeight;}},getWidth:function(){var d=document,m="clientWidth";return Math.max(d.documentElement[m],d.body[m])||0},getScrollTop:function(){var d=document,m="scrollTop";return window.pageYOffset||d.documentElement[m]||d.body[m]||0},getScrollLeft:function(){var d=document,m="scrollLeft";return window.pageXOffset||d.documentElement[m]||d.body[m]||0},issue_unit_request:function(base_url,unit_cap,use_image,ttaken,sum_ttaken){if(document.location.search.indexOf("noserve")>-1){return;}
var params=(document.charset?'&charset='+document.charset:(document.characterSet?'&charset='+document.characterSet:''));if(document.context){params=params+"&context="+escape(document.context);}
if(imonomy.settings&&imonomy.settings.time_taken){var timetaken=imonomy.utils.calcTimeDuration();if(timetaken){if(!sum_ttaken){sum_ttaken=0;}
if(!ttaken){ttaken=0;}
var preload_base=parseInt(imonomy.preload.trackServe_time);var request_base=new Date().getTime();var base_result=request_base-preload_base;params=params+"&timepreload="+preload_base+"&ptaken="+base_result+"&ttaken="+timetaken+"&ttkan_x="+ttaken+"&sum_ttkan_x="+sum_ttaken;}}
if(base_url.indexOf("987")>-1){params=params+"&or=true";}
if(imonomy.preload){params=params+"&ttl="+escape(imonomy.preload.title());}
if(document.referrer){params=params+"&referer="+escape(document.referrer);}
if(imonomy.settings&&imonomy.settings.quality_type){params=params+"&cqt="+imonomy.settings.quality_type;}
var sub_id=imonomy.layer.get_sub_id();var sub_id_str="";if(sub_id!=''){sub_id_str="&subid="+sub_id;}
params=params+"&ln="+imonomy.layer.language();params=params+"&ct="+imonomy.layer.connectionType();params=params+"&w="+imonomy.layer.w;params=params+"&h="+imonomy.layer.h;params=params+"&pxr="+imonomy.layer.pxr;params=params+"&ppi="+imonomy.layer.ppi();if(!imonomy.settings||!imonomy.settings.whitelist_site){var is_adult=imonomy.page.isContainsBlackListWord();if(is_adult){params=params+"&adl=true";}}
var unit_marker=imonomy.layer.unit_marker();if(unit_marker!=''){sub_id_str=sub_id_str+"&um="+unit_marker;}
params=params+"&loc="+escape(window.location)+"&dm="+escape(window.location.host)+sub_id_str;var product=base_url.replace(/.*&cid=([a-zA-Z_]+).*/gi,"$1");var rtb_highest_price=imonomy.utils.getCookie("rtb_highest_price_"+product);params=params+"&rtb_highest_price="+rtb_highest_price;var search_term=""
if(imonomy.preload&&imonomy.preload.search_term_to_use&&imonomy.preload.search_term_to_use!=null){search_term="&st="+imonomy.preload.search_term_to_use;}
var over_cap="";if(imonomy.preload){if(imonomy.preload.over_cap){over_cap="&oc=true";}}
var referrer_param=""
var referrer_match=document.referrer.match('http[s]?://([a-zA-Z0-9-_\.]+)(:[0-9]+)?');var referrer_host=null;if(referrer_match&&referrer_match!=null){referrer_host=referrer_match[1];referrer_host=referrer_host.replace("www.","")}
if(referrer_host!=null){referrer_param="&dr="+referrer_host;}
var httpsite="false";if(location.protocol=="https:"){httpsite="true";}
unit_code_url=base_url+'&sid='+imonomy.layer.get_sid()+'&terms='+escape(imonomy.page.keywords().replace(/'/g," "))+'&httpsite='+httpsite+'&keywords='+escape(imonomy.page.keywords())+'&dm='+escape(imonomy.page.domain())+search_term+over_cap+referrer_param+params;if(use_image){unit_code_url=unit_code_url+"&rim=true"
imonomy.utils.injectImage(unit_code_url);}else{imonomy.utils.injectScript(unit_code_url);}},injectScript:function(url,onload){function inject(){var script=document.createElement('sc'+'ript');script.async=false;script.setAttribute('type','text/jav'+'ascri'+'pt');script.type='text/jav'+'ascri'+'pt';script.src=url;var hs=document.getElementsByTagName('head');if(hs&&hs.length>0){var h=hs[0]
h.appendChild(script);}else{document.body.appendChild(script);}}
if(document.location.search.indexOf("$dontusesettimeout")>-1){inject();}else{setTimeout(inject,10);}},injectImage:function(url){var img=document.createElement("img");img.setAttribute('src',url);img.setAttribute('width','0px');img.setAttribute('height','0px');img.setAttribute('style','position:absolute;');img.className='imonomy_trk_img';document.body.appendChild(img);},getParentElement:function(st){if(typeof(st.foundParentElement)!='undefined'){return st.foundParentElement;}
var node=st,size=node.getBoundingClientRect(),notSameSize=false,parent=node.parentElement,isContinue=true,found=null,size_params=['clientHeight','clientWidth','clientTop','clientWidth'];if(node){while(isContinue){var parentSize=parent.getBoundingClientRectRigth?parent.getBoundingClientRectRigth():0;for(var i in size){if(Math.floor(Math.abs(size[i]-parentSize[i]))>5){notSameSize=true;break;}}
for(var i=0;i<size_params.length;i++){if(Math.floor(Math.abs(node[size_params[i]]-parent[size_params[i]]))>5){notSameSize=true;break;}}
if(notSameSize){st.foundParentElement=found?found:node;return st.foundParentElement;}
var style=window.getComputedStyle(node,null),parentStyle=window.getComputedStyle(parent,null);if((style.position!='absolute'&&parentStyle.position!='absolute')&&(style.position!='fixed'&&parentStyle.position!='fixed')&&(!style.float&&!parentStyle.float)&&(style.overflow!='visible'&&parentStyle.overflow!='visible')){found=parent;}
node=parent;parent=parent.parentElement;if(parent.tagName=="BODY"){isContinue=false;}}
st.foundParentElement=node;return st.foundParentElement;}
return null;}};imonomy.strips={set_location_interval:500,imageHandled:0,request_hook:[],on_hover_object:{},strip_animation_speed:5,max_Width:imonomy.utils.isMobile()?270:310,max_Height:imonomy.utils.isMobile()?80:130,strip_wait_animate:2000,dynamic_strip_counter:0,style_injected:false,unit_fillers:[],request_refresh:function(st,suffix){var img=st;var use_on_hover=false;if(imonomy.settings.strip_on_mouseover){use_on_hover=true;}
if(st.refresh_requested){return;}
st.refresh_requested=true;imonomy.layer.generic_refresh_counter+=1;if((imonomy.layer.generic_refresh_counter<imonomy.settings.generic_refresh_count)||st.requested_on_noshow){st.requested_on_noshow=false;imonomy.strips.request_hook_strip_action(st,use_on_hover,true,suffix);}},refresh_replace_on_content_ready:function(st,use_on_hover){if(!st.img&&use_on_hover){imonomy.strips.on_hover_object.img=st;st=imonomy.strips.on_hover_object;}
var is_loaded=imonomy.layer.checkIframeContent(st.refresh_frame);if(is_loaded[0]){st.refresh_requested=false;st.replaced_frame=st.strip_frame;st.refresh_frame.style.top="0px";st.refresh_frame.style.left='auto';st.strip_frame=st.refresh_frame;st.is_content_loaded=undefined;if(imonomy.strips.is_current_unit_filler(st)){var shown=false;if(st.img){var size=imonomy.image._getImgSize(st.img);shown=size[4];}
if(shown){imonomy.page.trackServ(971,"shown",st.cid,undefined,st.loaded_ad_id);if(!st.show_reported){st.show_reported=true;imonomy.page.trackServ(985,"shown",st.cid,undefined,st.loaded_ad_id,undefined,st.format,undefined,undefined,undefined,imonomy.utils.isElementTrackable(st.strip_frame));}}else{imonomy.page.trackServ(972,"shown",st.cid,undefined,st.loaded_ad_id);st.replaced_frame.style.display='none';st.strip_animation_container.style.left="-4500px";st.actions_container.style.display='block';st.refresh_frame.style.display='block';st.unit_filler_replaced=true;st.strip_animation_container.style.top="6px";st.replaced_frame.style.display='none';if(st.img){imonomy.strips.set_locations(st);}}
imonomy.utils.fadeOutCss3(st.replaced_frame,null,function(){st.unit_filler_replaced=true;st.strip_animation_container.style.top="6px";st.replaced_frame.style.display='none';st.strip_animation_container.style.left="-4500px";st.actions_container.style.display='block';if(st.img){imonomy.strips.set_locations(st);}});}else{if(st.use_unit_filler){st.unit_filler_replaced=true;}
st.strip_animation_container.style.left="-4500px";st.actions_container.style.display='block';imonomy.strips.set_locations(st);imonomy.utils.fadeInCss3(st.actions_container);imonomy.utils.fadeInCss3(st.refresh_frame);}
st.refresh_requested=false;}else{setTimeout(function(){imonomy.layer.productCounter[st.product][st.index]=parseInt(imonomy.layer.productCounter[st.product][st.index])+1;imonomy.strips.refresh_replace_on_content_ready(st,use_on_hover);},400);}
return is_loaded[0];},on_hover_hooked:false,request_hook_strip_action:function(image_element,use_on_hover,is_refresh,suffix){var img_index=imonomy.strips.request_hook.length,st_index=-1,dynamic_strip=imonomy.settings.dynamic_strip;if(dynamic_strip&&imonomy.settings.strip_max_images!=-1&&imonomy.strips.dynamic_strip_counter>=imonomy.settings.strip_max_images&&!is_refresh){return;}
imonomy.strips.dynamic_strip_counter++;imonomy.strips.request_hook[img_index]=image_element;if(!imonomy.layer.stripsAutopass_inited){imonomy.layer.elementsCounter["strip"]=[];imonomy.layer.productCounter["strip"]=[];imonomy.layer.stripsAutopass_inited=true;}
imonomy.layer.elementsCounter["strip"][img_index]=0;imonomy.layer.productCounter["strip"][img_index]=0;if(!image_element.trackedView){image_element.track_hover=false;}
var cid="imonomy_strip";if(image_element.channel_cid){cid=cid+image_element.channel_cid}
if(!use_on_hover){cid=cid+"_auto";}
if(is_refresh){st_index=imonomy.layer.units_array.indexOf(image_element.st_object);}
var unit_format=null;if(is_refresh){unit_format=image_element.format;}else{var image_size=imonomy.image._getImgSize(dynamic_strip&&is_refresh?image_element.img:image_element);if(imonomy.utils.isMobile()){unit_format='8';}
else if(image_size[0]>350){unit_format='6';}
else if(image_size[0]>300){unit_format='2';}}
if(unit_format==null){return;}
image_element.format=imonomy.utils.getUnitFormatLayout(unit_format);if(is_refresh){cid=cid+"_rf";}
if(suffix){cid=cid+suffix;}
image_element.cid=cid;image_element.use_on_hover=use_on_hover;if(!is_refresh&&use_on_hover&&!dynamic_strip){image_element.index=img_index;image_element.product="strip";imonomy.strips.bind(image_element);}
if(!is_refresh){imonomy.layer.inView_array.push({unit_type:'strip',allow_auto_show:true});}
var ab_label="&ab=";if(imonomy.ab_label)ab_label+=imonomy.ab_label;if(img_index==0&&unit_format=='6'&&imonomy.header_bidder&&imonomy.header_bidder.inited){imonomy.header_bidder.triggerHBAuction('strip',unit_format,['9999']);imonomy.strips.request_hook[img_index].header_bidder_used=true;}
var unit_code_url=imonomy.utils.protocol()+'//srv.imonomy.com/internal/serve?v=2&format='+unit_format+
'&img=true&cid='+cid+ab_label+'&isps='+imonomy.layer.shopping_site()+'&rdn=imonomy_image_$$fid$$&fid='+
img_index+'&cb=imonomy.strips.hook_strip_action($$fid$$, imonomy_image_$$fid$$, '+use_on_hover+
' ,'+is_refresh+' , '+img_index+' , '+st_index+')';var one_request_obj={"unit_format":unit_format,"cid":cid,"fid":img_index};if(imonomy.settings.one_request&&!is_refresh){return one_request_obj;}
var client_unit=null;if(imonomy.settings.is_client&&imonomy.utils.is_client_valid()){client_unit=imonomy.utils.get_client_ad('strip',unit_format,0,cid);}
if(client_unit!=null){client_unit.fid=img_index;imonomy.page.trackServ(client_unit.unit_id,undefined,cid,undefined,undefined,undefined,unit_format,0,true);imonomy.strips.hook_strip_action(img_index,client_unit,use_on_hover,is_refresh,img_index,st_index);}else{imonomy.utils.issue_unit_request(unit_code_url);}
imonomy.layer.incPassbackCounter("strip");if(!is_refresh&&!use_on_hover){if(!imonomy.settings.dynamic_strip){imonomy.strips.check_stripInview(image_element);}}},hide:function(sender){if(this.st){var st=this.st;}else{var st=this;}
st.force_closed=true;imonomy.utils.setCookie("imonomy_strip_lock_time","strip",imonomy.settings.close_lock_time,'/');st.imonomy_hide_strip();imonomy.strips.removeMarginBottom(st);return false;},get_best_unit_data:function(unit_data1,unit_data2){var best=null;if(unit_data1&&unit_data1.bid){if(unit_data2&&unit_data2.bid){if(unit_data1.bid>unit_data2.bid){best=unit_data1;}else if(unit_data1.bid==unit_data2.bid){if(Math.random()<0.5){best=unit_data1;}else{best=unit_data2;}}else{best=unit_data2;}}else{best=unit_data1;}}else if(unit_data2&&unit_data2.bid){best=unit_data2;}else if(unit_data1){best=unit_data1;}
return best;},is_content_recommendation:function(st){return imonomy.strips.is_current_cpc(st)||st.is_content_recommendation;},is_current_cpc:function(st){return false;},is_current_unit_filler:function(st){return st.use_unit_filler&&!st.unit_filler_replaced;},setMarginBottom:function(st){if(getComputedStyle(st.img).position==='absolute'){st.img.offsetParent.style.transition='margin-bottom 1.5s';st.img.offsetParent.style.setProperty('-webkit-transition','margin-bottom 1.5s');st.img.offsetParent.style.setProperty('-moz-transition','margin-bottom 1.5s');st.img.offsetParent.style.setProperty('margin-bottom',parseInt(st.strip_frame_container.style.height)+imonomy.settings.offsetBottom+'px','important');}else{st.img.style.transition='margin-bottom 1.5s';st.img.style.setProperty('-webkit-transition','margin-bottom 1.5s');st.img.style.setProperty('-moz-transition','margin-bottom 1.5s');st.img.style.setProperty('margin-bottom',parseInt(st.strip_frame_container.style.height)+10+'px','important');}},removeMarginBottom:function(st){if(getComputedStyle(st.img).position==='absolute'){st.img.offsetParent.style.marginBottom=null;}else{st.img.style.marginBottom=null;}},hook_strip_action:function(index,unit_data,use_on_hover,is_refresh,img_index,st_index){if(imonomy.strips.request_hook[index].header_bidder_used)
{if(!imonomy.header_bidder.adSlotRequestHook[img_index].unit_data){if(!imonomy.header_bidder.adSlotRequestHook[img_index].timedOut){setTimeout(function(){imonomy.header_bidder.adSlotRequestHook[img_index].timedOut=true;imonomy.strips.hook_strip_action(index,unit_data,use_on_hover,is_refresh,img_index,st_index);},imonomy.header_bidder.responseTimeOut);return;}}else{best_unit_data=imonomy.strips.get_best_unit_data(unit_data,imonomy.header_bidder.adSlotRequestHook[img_index].unit_data);if(best_unit_data){unit_data=best_unit_data;}}}
if(unit_data.validate_blacklist&&!imonomy.settings.whitelist_site){if(imonomy.page.isContainsBlackListWord()){imonomy.tracker.reportBlackList("strip",unit_data.unit_id);return;}else{imonomy.tracker.reportNoneBlackList();}}
var dynamic_strip=imonomy.settings.dynamic_strip;var st={};if(st_index>-1){st=imonomy.layer.units_array[st_index].unit_container;}
var image_to_handle=null;var image_to_handle=imonomy.strips.request_hook[index];if(!dynamic_strip){st=image_to_handle;st.img=image_to_handle;}
st.index=img_index;st.product="strip";if((typeof index=='undefined'||index<-1)||(!dynamic_strip&&typeof st.img=='undefined')){return;}
st.format=unit_data.format;if(unit_data.unit_filler&&unit_data.unit_filler.pricing_model=='cpm_filler'){unit_data.unit_filler["format"]=unit_data.format;unit_data.unit_filler["cid"]=unit_data.cid;unit_data.unit_filler["unit_id"]=unit_data.unit_id;unit_data.unit_filler["curr_tier"]=-1;imonomy.strips.unit_fillers.push(unit_data.unit_filler);unit_data.unit_filler=undefined;}
if(unit_data.height&&unit_data.height>0){st.unit_height=unit_data.height;}else if(imonomy.utils.isMobile()&&unit_data.format=="8"){st.unit_height=60;}
if(unit_data.width){st.unit_width=unit_data.width;}
if((!unit_data.height||unit_data.height==0)||(!unit_data.width||unit_data.width==0)){if(unit_data.format=="728x90"||unit_data.format=="6"){st.unit_width=728;st.unit_height=90;}else if(unit_data.format=="2"){st.unit_width=468;st.unit_height=60;}}
st.speed=10;if(!st.strip_frame_container){st.strip_frame_container=document.createElement('div');st.strip_frame_container.className='imonomy_strip_container imonomy_no_layer imonomy_strip_'+unit_data.format;var body_direction=window.getComputedStyle(document.body,null);if(body_direction.direction=="rtl"){st.strip_frame_container.setAttribute('style','direction: ltr;');}
st.strip_animation_container=document.createElement('div');st.strip_animation_container.className='strip_animation_contanier';st.strip_animation_container.style.position='absolute';st.strip_animation_container.style.top=imonomy.settings.strip_from_top?'-120px':'120px';st.strip_animation_container.style.width='100%';st.strip_frame_container.appendChild(st.strip_animation_container);st.strip_wrapper=document.createElement('div');st.strip_wrapper.className='strip_wrapper';var element_position=dynamic_strip?window.getElementPosition(image_to_handle):window.getElementPosition(st.img);var z_index_force_image=dynamic_strip?((window.getZIndex(image_to_handle)!=0)?window.getZIndex(image_to_handle)+10:100):((window.getZIndex(st.img)!=0)?window.getZIndex(st.img)+10:100);if(element_position!='fixed'){element_position='absolute'}
st.strip_frame_container.style.zIndex=z_index_force_image;st.strip_frame_container.style.position=element_position;st.strip_frame=document.createElement('iframe');if(st.strip_frame.watchatt){st.strip_frame.watchatt('src',imonomy_prevent_change);}
st.strip_frame.className="imonomy_strip_frame";st.strip_frame.id="imonomy_strip_frame";st.strip_frame.st=st;st.strip_frame.border="0";st.strip_frame.frameBorder=0;st.strip_frame.marginWidth=0;st.strip_frame.marginHeight=0;st.strip_frame.product=st.product;st.strip_frame.index=st.index;if((imonomy.settings.use_sandbox_iframes&&!imonomy.utils.isMobile())||(imonomy.utils.isMobile()&&imonomy.settings.use_sandbox_iframes_mobile)){if(unit_data.prevent_sandbox){st.strip_frame.setAttribute('use_sandbox','true');}else{st.strip_frame.setAttribute('sandbox','allow-pointer-lock allow-same-origin allow-scripts allow-popups');}}
document.body.appendChild(st.strip_frame_container);st.actions_container=document.createElement('div');st.actions_container.className="strip_actions";st.close_x=document.createElement('span');st.close_x.className="close_x";st.close_x.id="close_x";st.close_x.innerHTML="&#10006;";st.close_x.st=st;st.close_x.onclick=imonomy.strips.hide;st.actions_container.appendChild(st.close_x);st.unit_marking=document.createElement('a');st.unit_marking.className="unit_marking";st.unit_marking.id="unit_marking";st.unit_marking.innerHTML=imonomy.layer.unit_marker();if(st.unit_marking.innerHTML==""){st.unit_marking.innerHTML=imonomy.settings.unit_marking?imonomy.settings.unit_marking:"Advertisement";}
st.unit_marking.st=st;st.unit_marking.target='_blank';st.unit_marking.href=imonomy.layer.unit_marker_url();st.actions_container.style.width="100%";st.actions_container.appendChild(st.unit_marking);st.strip_wrapper.appendChild(st.strip_frame);st.strip_animation_container.appendChild(st.actions_container);st.strip_animation_container.appendChild(st.strip_wrapper);var st_objects={type:"strip",unit_container:st,loaded:false,bindToimage:false};st.st_object=st_objects;imonomy.layer.units_array.push(st_objects);if(dynamic_strip){imonomy.layer.checkLoad_interval();}
if(imonomy.utils.isMobile()){window.addEventListener('resize',function(){st.resize=true;});}
st.show=function(internal){if(st.force_closed){return;}
if(imonomy.settings.units_force_edge.indexOf(st.loaded_ad_id)>-1&&!imonomy.strips.is_current_unit_filler(st)){if(st.img.parentElement.tagName=="FIGURE"){st.img=st.img.parentElement;}
st.img.force_imnproduct_type="myEdge";st.img.animation_strip_from_top=true;}
if(!imonomy.settings.dynamic_strip){if(!st.cpc_appeared&&imonomy.strips.is_current_unit_filler(st)){st.cpc_appeared=true;imonomy.page.trackServ(970,"shown",st.cid,undefined,st.loaded_ad_id);}else if(!st.show_reported){st.show_reported=true;var is_trackable=(imonomy.strips.is_current_unit_filler(st)&&imonomy.settings.allow_cpc_tracking)?true:imonomy.utils.isElementTrackable(st.strip_frame);imonomy.page.trackServ(985,"shown",st.cid,undefined,st.loaded_ad_id,undefined,st.format,undefined,undefined,undefined,is_trackable);}}
var nativeAd=st.strip_frame.contentWindow.document.getElementById('native-ad');var curr_obj,obj=this,st_el=this;if(imonomy.settings.dynamic_strip){obj=this.img;}
curr_obj=imonomy.settings.monitor_url_change&&obj.monitor_objects[location.href]&&obj.monitor_objects[location.href].st?obj.monitor_objects[location.href].st:this,curr_obj.strip_hidden=false;var time_for_animate=700;var wait_for_animate=10;var animation_strip_from_top=imonomy.settings.strip_from_top||st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge";var shown_now=imonomy.image._getImgSize(st.img)[4];if(animation_strip_from_top||(st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge")){st_el.strip_animation_container.style.opacity="0";st_el.strip_animation_container.style.top="6px";}
if(!internal||use_on_hover){time_for_animate=2000;wait_for_animate=400;imonomy.strips.set_locations(curr_obj);}else if(!shown_now){st.strip_animation_container.style.top=imonomy.settings.strip_from_top?'-72px':(animation_strip_from_top)?'6px':'120px';}
if(imonomy.strips.is_content_recommendation(st)&&!internal){imonomy.strips.set_locations(curr_obj);}
var el=st_el.strip_animation_container.currentStyle||window.getComputedStyle(st_el.strip_animation_container,null);var animate_css3=function(elem,p){if(!st_el.img.videoPlaying&&(animation_strip_from_top||(st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge"))){imonomy.strips.setMarginBottom(st_el);p.style.transition="opacity 1.5s";p.style.setProperty("-webkit-transition","opacity 1.5s");p.style.setProperty("-moz-transition","opacity 1.5s");p.style.transitionDelay="1.5s";p.style.opacity="1";return;}
if(curr_obj.strip_hidden||st.force_closed){return;}
var m=elem.top.replace(/[^-\d\.]/g,'');m=parseInt(m);if(imonomy.strips.is_content_recommendation(st)){if(!imonomy.utils.isMobile()){if(imonomy.settings.strip_from_top&&m>=-8){return;}
else if(!imonomy.settings.strip_from_top&&m<=-8){return;}}}
if((imonomy.settings.strip_from_top&&m>=6)||(!imonomy.settings.strip_from_top&&m<=6)){return;}
p.style.transition="top 1s";p.style.setProperty("-webkit-transition","top 1s");p.style.setProperty("-moz-transition","top 1s");p.style.top="6px";};var animate=function(time,elem,step,p){if(animation_strip_from_top&&(st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge")){imonomy.utils.fadeIn(st_el.strip_animation_container,{duration:500,complete:function(){}});var bottom=0;function frame(){bottom++;st_el.img.style.marginBottom=bottom+'px';if(bottom==parseInt(st_el.strip_frame_container.style.height)+2)
clearInterval(id);}
var id=setInterval(frame,0.5);}
if(curr_obj.strip_hidden||st.force_closed){return;}
var m=elem.top.replace(/[^-\d\.]/g,'');m=parseInt(m);if(imonomy.settings.strip_from_top&&m>=6){return;}else if(!imonomy.settings.strip_from_top&&m<=6){return;}
time=time-5;if(imonomy.settings.strip_from_top&&m==0)step=-1;var new_pos=parseInt(m-step);if(!imonomy.settings.strip_from_top&&new_pos<6)new_pos=6;p.style.top=new_pos+"px";setTimeout(function(){animate(time,elem,step,p)},imonomy.strips.strip_animation_speed);};var step=parseInt(el.top)/100;if(imonomy.strips.is_content_recommendation(st)||nativeAd){st_el.strip_animation_container.style.top='0';if(!nativeAd){st_el.actions_container.style.display='block';if((st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge")){imonomy.strips.setMarginBottom(st_el);}}
if((st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge")||(animation_strip_from_top&&imonomy.settings.use_edge)){imonomy.strips.setMarginBottom(st_el);st_el.strip_animation_container.style.transition="opacity 1.5s";st_el.strip_animation_container.style.setProperty("-webkit-transition","opacity 1.5s");st_el.strip_animation_container.style.setProperty("-moz-transition","opacity 1.5s");st_el.strip_animation_container.style.transitionDelay="1.5s";st_el.strip_animation_container.style.opacity="1";}else{imonomy.utils.fadeIn(st_el.strip_animation_container,{duration:500,complete:function(){}});}}
else if(imonomy.utils.supports_css3()){if(imonomy.settings.strip_appearance_effect=='fade_in'){st_el.strip_animation_container.style.opacity="0";st_el.strip_animation_container.style.top='6px';if(animation_strip_from_top||(st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge")){imonomy.strips.setMarginBottom(st_el);}
setTimeout(function(){imonomy.utils.fadeInCss3(st_el.strip_animation_container);},wait_for_animate);}
else if(imonomy.settings.strip_appearance_effect=='slide_bottom'){setTimeout(function(){animate_css3(el,st_el.strip_animation_container);},wait_for_animate);}
else if(imonomy.settings.strip_appearance_effect=='no_effect'){st_el.strip_animation_container.style.top='6px';if(animation_strip_from_top||(st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge")){imonomy.strips.setMarginBottom(st_el);}
imonomy.utils.fadeInCss3(st_el.strip_animation_container,'zero');}
else{st_el.strip_animation_container.style.opacity="0";st_el.strip_animation_container.style.top='6px';if(animation_strip_from_top||(st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge")){imonomy.strips.setMarginBottom(st_el);}
setTimeout(function(){imonomy.utils.fadeInCss3(st_el.strip_animation_container);},wait_for_animate);}}
else{setTimeout(function(){animate(time_for_animate,el,step,st_el.strip_animation_container);},wait_for_animate);}
if(imonomy.layer.generic_refresh_counter<imonomy.settings.generic_refresh_count&&!st.ad_refuse_refresh){st.refresh_timer=setTimeout(function(){imonomy.strips.request_refresh(st);},imonomy.settings.time_to_refresh);}
if(imonomy.settings.after_show_event){imonomy.settings.after_show_event(st_el);}
st_el.strip_animation_container.style.display="block";st_el.strip_animation_container.style.left="0";st_el.strip_frame_container.style.display="block";imonomy.layer.setLockCounter();};st.imonomy_hide_strip=function(){var st_el=this,obj=this;if(imonomy.settings.dynamic_strip){obj=this.img;}
var elem=imonomy.settings.monitor_url_change&&obj.monitor_objects[imonomy.layer.prev_url]&&obj.monitor_objects[imonomy.layer.prev_url].st?obj.monitor_objects[imonomy.layer.prev_url].st:st_el;if(elem.refresh_timer){clearTimeout(elem.refresh_timer);}
if(use_on_hover){var animate_time=100;}else{var animate_time=5;}
elem.strip_hidden=true;var el=elem.strip_animation_container.currentStyle||window.getComputedStyle(elem.strip_animation_container,null);imonomy.strips.hideWithAnim(st);if(imonomy.settings.strip_from_top||st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge"){imonomy.strips.removeMarginBottom(st);}
setTimeout(function(){st.strip_frame_container.style.setProperty('left','-4500px','important');},1300);};if(!imonomy.strips.style_injected){var unit_marking_float='left';if(imonomy.settings.strip_ad_position){unit_marking_float='right';}
imonomy.utils.injectStyle('.unit_marking:hover {opacity:1;}.unit_marking {opacity:0.6; float:'+unit_marking_float+';font-family:Helvetica, arial, sans-serif; color: #FFFFFF !important; cursor: pointer; font-size: 12px; font-weight: bold; text-shadow: 2px 2px 4px #000000; text-decoration: none !important;} .close_x img {color: #fff !important;background-color: #fff; opacity: 0.4; width: 10px !important;height: 10px !important;margin: 0px !important; }.strip_actions{line-height:10px !important; float: right; position: relative; z-index: 2147483647;margin-right:2px;} .close_x:hover{border-radius:50%} .close_x {line-height:10px;border:1px solid;color:#FFFFFF; font-family:Helvetica, arial, sans-serif; cursor: pointer; font-size: 12px; margin-left: 4px; text-shadow: 2px 2px 4px #000000; float:right; } .imonomy_strip_container{ text-align: initial !important; display:block !important; left: '+imonomy.layer.left_style+'; overflow: hidden; width: 100%; height: 126px; bottom: 0px; position: absolute; z-index:2147483647;} .imonomy_strip_frame{text-align:initial !important; height: 126px; width: 100%; position: absolute; overflow: hidden; max-width: none !important;}')
imonomy.strips.style_injected=true;}}
var unit_code="<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body style='overflow: hidden; margin: 0px; bottom: 0px; width: 100%;'>"+unit_data.html+"</body></html>"
var use_unit_filler=unit_data.unit_filler!=undefined&&unit_data.unit_filler.ad_code!=undefined;st.is_content_recommendation=unit_data.is_content_recommendation;if(is_refresh||(use_unit_filler&&!st.unit_filler_replaced)){st.refresh_frame=document.createElement('iframe');if(st.refresh_frame.watchatt){st.refresh_frame.watchatt('src',imonomy_prevent_change);}
if((imonomy.settings.use_sandbox_iframes&&!imonomy.utils.isMobile())||(imonomy.utils.isMobile()&&imonomy.settings.use_sandbox_iframes_mobile)){if(unit_data.prevent_sandbox){st.refresh_frame.setAttribute('use_sandbox','true');}else{st.refresh_frame.setAttribute('sandbox','allow-pointer-lock allow-same-origin allow-scripts allow-popups');}}
st.refresh_frame.className="imonomy_strip_frame";st.refresh_frame.style.position='absolute';st.refresh_frame.style.left='-4500px';st.refresh_frame.st=st;st.refresh_frame.product=st.product;st.refresh_frame.index=st.index;st.strip_wrapper.appendChild(st.refresh_frame);imonomy.utils.setFrameCode(unit_code,unit_data,st.strip_frame_container,st.refresh_frame,false,false,true);}
if(!dynamic_strip&&imonomy.settings.monitor_url_change){st.monitor_objects[location.href].st=st;}
if(is_refresh){imonomy.strips.refresh_replace_on_content_ready(st,use_on_hover);}else{var is_orig_loaded=false;if(use_unit_filler){is_orig_loaded=imonomy.strips.refresh_replace_on_content_ready(st,false);unit_data.html=unit_data.unit_filler.ad_code;var unit_code="<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body style='overflow: hidden; margin: 0px; bottom: 0px; width: 100%;'>"+unit_data.html+"</body></html>"
st.use_unit_filler;if(!is_orig_loaded){st.use_unit_filler=true;}else{st.use_unit_filler=false;}}
if(imonomy.strips.is_content_recommendation(st)){st.actions_container.style.display='none';}
if(!is_orig_loaded){if(unit_data.use_header_bidder){var hb_frame_doc=st.strip_frame.contentWindow.document;imonomy.header_bidder.pbjs.renderAd(hb_frame_doc,unit_data.hb_adid);imonomy.strips.hook_on_content_ready(st,use_on_hover);imonomy.utils.issue_unit_request(unit_data.html);}else{imonomy.utils.setFrameCode(unit_code,unit_data,st.strip_frame_container,st.strip_frame,false,false,true);}}
if(!imonomy.settings.dynamic_strip){imonomy.strips.hook_on_content_ready(st,use_on_hover);}
if(imonomy.settings.private_code){eval(imonomy.settings.private_code);}}
var requestHide=imonomy.strips.hide.bind(st);st.strip_frame.contentWindow.requestHide=requestHide;st.strip_frame.contentWindow.document.addEventListener('click',function(e){e.stopPropagation();if(e.target.classList.contains('close-ad')){requestHide();}});if(imonomy.strips.is_content_recommendation(st)&&st.strip_frame.contentDocument.querySelector('span.close-ad')){st.strip_frame.contentDocument.querySelector('span.close-ad').st=st;}
return this;},check_stripInview:function(st){clearTimeout(st.check_inview_timer);var size=imonomy.image._getImgSize(st);var shown=size[4];if(shown){imonomy.page.trackServ(983,"ImageOnView",st.cid,undefined,undefined,undefined,st.format,st.image_index);}else{st.check_inview_timer=setTimeout(function(){imonomy.strips.check_stripInview(st);},imonomy.strips.set_location_interval);}},set_locations:function(st){if(!st.img){imonomy.strips.on_hover_object.img=st;st=imonomy.strips.on_hover_object;}
var show_now=false;clearTimeout(st.set_strip_locations_timer);if(imonomy.settings.monitor_url_change&&st.monitor_objects&&st.monitor_objects[location.href]&&st.monitor_objects[location.href].st){show_now=imonomy.image._getImgSize(st.monitor_objects[location.href].st)[4]&&location.href!=imonomy.layer.prev_url;}
if(st.strip_hidden&&!show_now)return;if(document.documentElement&&document.documentElement.contains&&!document.documentElement.contains(st.img)&&st.img.id){var new_el=document.getElementById(st.img.id);if(new_el){st.img=new_el;}}
var element_position=window.getElementPosition(st.img);if(element_position!='fixed'){element_position='absolute'}
st.strip_frame_container.style.position=element_position;var size=imonomy.image._getImgSize(st.img);if(imonomy.settings.set_strip_width&&!imonomy.utils.isMobile()&&size[0]>=imonomy.settings.set_strip_width){size[3]=size[3]+(size[0]/2)-(imonomy.settings.set_strip_width/2);size[0]=imonomy.settings.set_strip_width;}
if(st.img.size_class_reflector){var size_elements=imonomy.page.getElementsByClassName(st.img.size_class_reflector,st.img);if(size_elements&&size_elements.length>0){size=imonomy.image._getImgSize(size_elements[0]);}}
st.strip_frame_container.style.left=size[3]+'px';if(st.img.height_offset){size[1]=size[1]-st.img.height_offset;}
st.strip_frame_container.style.width=size[0]+'px';if(st.unit_width){var scale=size[0]/st.unit_width;if(st.unit_height&&st.unit_height>size[1]){scale=(size[1]*0.9)/st.unit_height;}
if(scale>1&&st.unit_width=='728'){scale=1;st.strip_frame.style.marginLeft=(size[0]-(scale*st.unit_width))/2+"px";st.actions_container.style.top='-6px';}else if(scale>1.1){scale=1.1;if(imonomy.settings.strip_ad_position=='right'){st.strip_frame.style.marginLeft=(size[0]-(scale*st.unit_width))+"px";}else{st.strip_frame.style.marginLeft=(size[0]-(scale*st.unit_width))/2+"px";}}
else{if(imonomy.settings.strip_ad_position=='right'){st.strip_frame.style.marginLeft=(size[0]-(scale*st.unit_width))+"px";}else{st.strip_frame.style.marginLeft="0px";}}
if(imonomy.strips.is_content_recommendation(st)){if(st.unit_width=='728'&&parseInt(size[0])>440&&scale<1){scale=1;}}
if(st.resize){st.strip_frame.style.marginLeft=(size[0]-(scale*st.unit_width))/2+"px";}
st.strip_frame.style.width=st.unit_width+"px";if(imonomy.utils.isMobile()&&imonomy.strips.is_content_recommendation(st)){var width=Math.min(st.unit_width,size[0],306);if(width>306){width='306px';}
else{width=(width-scale*17)+"px";}
st.strip_frame.style.width=width;}
var height_correction=0;if(imonomy.strips.is_content_recommendation(st)&&imonomy.utils.isMobile()&&parseInt(st.unit_height)<66){height_correction=6;}
st.strip_frame.height=(st.unit_height+height_correction);st.strip_frame.style.height=(st.unit_height+height_correction)+"px";var actions_h=st.actions_container.clientHeight;st.strip_frame.style.left=imonomy.strips.is_content_recommendation(st)&&!imonomy.utils.isMobile()?'22px':"auto";if(imonomy.utils.isMobile()){st.strip_frame.style.left=imonomy.strips.is_content_recommendation(st)?'4px':"0px";}
st.strip_frame_container.style.height=imonomy.settings.strip_from_top?((st.unit_height+height_correction)*scale+actions_h+20)+"px":((st.unit_height+height_correction)*scale+actions_h+6)+"px";var additional_top=st.img.width>718?3:6;var nativeAd=st.strip_frame.contentWindow.document.getElementById('native-ad');if(nativeAd){var nativeAdHeight,correctedNativeAdHeight;st.strip_frame.style.width='100%';nativeAdHeight=nativeAd.clientHeight;correctedNativeAdHeight=nativeAdHeight+
parseInt(getComputedStyle(nativeAd).borderTopWidth)+
parseInt(getComputedStyle(nativeAd).borderBottomWidth);st.strip_frame_container.style.height=correctedNativeAdHeight+'px';st.strip_animation_container.style.height=correctedNativeAdHeight+'px';st.strip_frame.style.height=correctedNativeAdHeight+'px';st.strip_frame.style.marginLeft=null;st.strip_frame.style.left=null;st.actions_container.style.display='none';if(st.img.clientWidth<500){nativeAd.classList.add('sm');}else{nativeAd.classList.remove('sm');}}
if(imonomy.settings.units_force_edge.indexOf(st.loaded_ad_id)>-1){if(st.img.parentElement.tagName=="FIGURE"){st.img=st.img.parentElement;}
st.img.force_imnproduct_type="myEdge";st.img.animation_strip_from_top=true;}
if(imonomy.utils.isMobile()){actions_h=5;st.strip_frame_container.style.top=(-(imonomy.strips.is_content_recommendation(st)?12:0)*scale)+(imonomy.settings.strip_from_top?(size[2]-actions_h-additional_top-8):((st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge")||st.img.animation_strip_from_top)?(size[2]+size[1]):(imonomy.strips.is_content_recommendation(st)||nativeAd)?(size[2]+size[1]-(correctedNativeAdHeight+height_correction+actions_h+height_correction)):(size[2]+size[1]-((st.unit_height+height_correction)*scale+actions_h+height_correction)))+'px';}else{st.strip_frame_container.style.top=imonomy.settings.strip_from_top?(size[2]-actions_h-additional_top)+'px':((st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge")||st.img.animation_strip_from_top)?(size[2]+size[1])+'px':(imonomy.strips.is_content_recommendation(st)||nativeAd)?(size[2]+size[1]-(correctedNativeAdHeight+height_correction+actions_h+additional_top))+'px':(size[2]+size[1]-((st.unit_height+height_correction)*scale+actions_h+additional_top))+'px';}
if(nativeAd){var nativeAdposition=imonomy.utils.getCoords(st.img);var animation_strip_from_top=imonomy.settings.strip_from_top||st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge";var nativeAdTop;var offsetNativeTop=13;if((st.img.force_imnproduct_type=="myEdge"||st.img.force_imnproduct_type=="videoEdge")||(animation_strip_from_top&&imonomy.settings.use_edge)){nativeAdTop=nativeAdposition.top+st.img.clientHeight+offsetNativeTop+'px';nativeAd.style.marginLeft='0';}else{nativeAdTop=nativeAdposition.top+st.img.clientHeight-correctedNativeAdHeight-5+'px';}
st.strip_frame_container.style.top=nativeAdTop;}
if(scale>=1){if(!imonomy.strips.is_content_recommendation(st)){st.strip_frame.style.marginTop=(imonomy.strips.is_content_recommendation(st)||nativeAd)?"0":((st.unit_height+height_correction)*scale+(st.img.width>718?10:12)*scale-(st.unit_height+height_correction))+"px";}}else{if(!imonomy.strips.is_content_recommendation(st)){st.strip_frame.style.marginTop=(imonomy.strips.is_content_recommendation(st)||nativeAd)?"0":((st.unit_height+height_correction)*scale+13-(st.unit_height+height_correction))+"px";}
st.strip_frame.style.left="0px";}
if(!imonomy.strips.is_content_recommendation(st)){st.strip_frame.style.setProperty('margin-top',st.strip_frame.style.marginTop,'important');}
st.strip_frame.style.marginBottom="0px";st.strip_frame.style.marginRight="0px";if(imonomy.settings.strip_from_top){st.actions_container.style.marginTop=(st.unit_height*scale+actions_h+2)+"px";}
if(scale!=1){var new_scale="scale("+scale+")";if(new_scale!=st.strip_frame.style.webkitTransform&&!nativeAd){st.strip_frame.style.webkitTransform=new_scale;st.strip_frame.style.transform=new_scale;st.strip_frame.style.transformOrigin="0% 100% 0px";st.strip_frame.style.webkitTransformOrigin="0% 100% 0px";}}}else{st.strip_frame_container.style.top=imonomy.settings.strip_from_top?(size[2])+'px':(size[2]+size[1]-125)+'px';st.actions_container.style.marginTop="64px";}
var shown=size[4];var use_on_hover=imonomy.settings.strip_on_mouseover;var force_product_type=st.force_imnproduct_type?st.force_imnproduct_type:st.img.force_imnproduct_type?st.img.force_imnproduct_type:'';var isVideoProducts=imonomy.settings.use_invideo||imonomy.settings.use_video_edge;if(isVideoProducts){var full_screen_element=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.webkitIsFullScreen;if(full_screen_element&&full_screen_element==imonomy.utils.getFullScreenElement(st,full_screen_element)){st.strip_frame_container.style.zIndex=window.getZIndex(st.img);st.strip_frame_container.style.top=screen.height-st.unit_height-st.img.player_offset*scale*1.5+"px";}}
var is_allowed_to_show=!st.img.player_custom_code?true:st.img.player_custom_code(st);if(isVideoProducts&&shown&&typeof(force_product_type)!='undefined'&&imonomy.invideo.isContentLoaded(st)&&((force_product_type.indexOf('invideo')>-1&&is_allowed_to_show&&!use_on_hover&&st.strip_frame_container.style.display=='none')||(force_product_type.indexOf('videoEdge')>-1&&st.strip_frame_container.style.opacity=='0'))){imonomy.invideo.show(st,true);}else if(shown&&typeof(st.product)!="undefined"&&st.product.indexOf('strip')>-1&&imonomy.strips.isContentLoaded(st)){if(!use_on_hover&&st.strip_animation_container.style.left=="-4500px"){st.show(true);}}else{if(st.refresh_timer){clearTimeout(st.refresh_timer);}
if(!st.img.animation_strip_from_top&&!force_product_type&&imonomy.settings.strip_appearance_count=='in_view'||(!shown&&imonomy.settings.invideo_appearance_count=='in_view'&&force_product_type)){if(!imonomy.settings.keep_in_image_ads_visible_not_in_view){st.strip_animation_container.style.left="-4500px";}}else if(shown&&imonomy.settings.invideo_appearance_count==='in_view'&&(st.product==='invideo'||st.product==='videoEdge')){st.strip_frame_container.style.display="block";st.strip_animation_container.style.display="block";if(st.strip_animation_container.style.left=="-4500px"){imonomy.invideo.show(st,true);}}}
st.set_strip_locations_timer=setTimeout(function(){imonomy.strips.set_locations(st);},imonomy.strips.set_location_interval);},hideWithAnim:function(st){if(st.strip_animation_container.style.left=="-4500px"){return;}
if(imonomy.utils.supports_css3()){if(imonomy.settings.strip_appearance_effect=='fade_in'){st.strip_animation_container.style.opacity='0';}
else if(imonomy.settings.strip_appearance_effect=='slide_bottom'){st.strip_animation_container.style.top='120px';}
else if(imonomy.settings.strip_appearance_effect=='no_effect'){st.strip_animation_container.style.opacity='0';}
else{st.strip_animation_container.style.opacity='0';}}
if(!st.force_closed){st.strip_animation_container.style.left="-4500px";}},isContentLoaded:function(st,force){st.lastCheckContentTime=st.lastCheckContentTime||Date.now();var force_reload_ads=(st.is_content_loaded&&(Date.now()-st.lastCheckContentTime>=imonomy.settings.recheck_content_loaded_interval*1000))&&imonomy.settings.recheck_content_loaded_interval>-1
if(force){force_reload_ads=true;}
if(force_reload_ads||typeof(st.is_content_loaded)=='undefined'){if(st.strip_wrapper!=undefined){st.strip_wrapper.product=st.product;st.strip_wrapper.index=st.index;}
var is_loaded=imonomy.layer.checkContent(st.strip_frame);var check_load=st.is_content_loaded;var showed_origin_ad_id=st.loaded_ad_id;if(is_loaded[1]||is_loaded[0]){if(is_loaded[2]==998&&imonomy.strips.unit_fillers.length>0){var unit_filler=imonomy.strips.unit_fillers[imonomy.strips.unit_fillers.length-1]
imonomy.strips.unit_fillers.splice(imonomy.strips.unit_fillers.length-1,1);imonomy.utils.setFrameCode(unit_filler.ad_code,unit_filler,st.strip_frame_container,st.strip_frame,false,false,true);}
else{if(is_loaded[1]){st.is_content_loaded=is_loaded[0];}
if(is_loaded.length>2){st.loaded_ad_id=is_loaded[2];}
if((typeof(check_load)=='undefined'||!check_load)&&st.is_content_loaded){imonomy.page.trackServ(975,"content_loaded",st.cid,undefined,st.loaded_ad_id);}
if(is_loaded.length>3){st.ad_refuse_refresh=is_loaded[3];}
if(!is_loaded[0]){imonomy.layer.checkPassbackCode(st.product);}
if(typeof(st.loaded_ad_id)!="undefined"&&st.loaded_ad_id==998&&!st.is_content_loaded&&imonomy.settings.refresh_noshow_chain_interval>-1&&typeof(st.requested_on_noshow)=='undefined'){st.requested_on_noshow=true;setTimeout(function(){imonomy.strips.request_refresh(st,"_ns");},imonomy.settings.refresh_noshow_chain_interval);}}}else if(!is_loaded[0]){st.is_content_loaded=undefined;}
if(imonomy.settings.recheck_content_loaded_interval>-1){delete st.lastCheckContentTime;if(check_load&&!st.is_content_loaded){imonomy.page.trackServ(974,"revert_shown",st.cid,undefined,showed_origin_ad_id);imonomy.strips.hook_on_content_ready(st,imonomy.settings.strip_on_mouseover);st.is_content_loaded=undefined;}}
return is_loaded[0];}else{return st.is_content_loaded;}},hook_on_content_ready:function(st,use_on_hover){var showed=false;var image_hanlded=st;if(!st.img){imonomy.strips.on_hover_object.img=image_hanlded;st=imonomy.strips.on_hover_object;}
if(imonomy.strips.isContentLoaded(st)){if(use_on_hover){imonomy.strips.bind_loaded(st);}else{var shown=imonomy.image._getImgSize(st.img)[4];if(shown){if((imonomy.settings.use_video_edge||imonomy.settings.use_invideo)&&(st.force_imnproduct_type=="inVideo"||st.force_imnproduct_type=="videoEdge")){imonomy.settings.monitor_url_change&&st.monitor_objects[location.href].st?imonomy.invideo.show(st.monitor_objects[location.href].st):imonomy.invideo.show(st);}
else if(!st.img.videoPlaying){imonomy.settings.monitor_url_change&&st.monitor_objects[location.href].st?st.monitor_objects[location.href].st.show():st.show();}
showed=true;}}}
if(!showed){setTimeout(function(){if(!st.index&&st.img.index)st.index=st.img.index;if(!st.product&&st.img.product)st.product=st.img.product;imonomy.layer.productCounter[st.product][st.index]=parseInt(imonomy.layer.productCounter[st.product][st.index])+1;imonomy.strips.hook_on_content_ready(image_hanlded,use_on_hover);},400);}},strip_hover_tracked:false,imageMouseEnter:function(image_hanlded){if(image_hanlded.closed){return;}
if(!image_hanlded.track_hover){image_hanlded.track_hover=true;image_hanlded.trackedView=true;imonomy.page.trackServ(983,"ImageOnView",image_hanlded.cid,undefined,undefined,undefined,image_hanlded.format);}
if(imonomy.strips.isContentLoaded(image_hanlded)){if(image_hanlded.strip_hide_timer){clearTimeout(image_hanlded.strip_hide_timer);}
image_hanlded.show();}},strip_timer:false,imageMouseOut:function(e,image_hanlded){var st=image_hanlded;var rect_big_img=st.img.getBoundingClientRectRigth?st.img.getBoundingClientRectRigth():undefined;if(typeof(rect_big_img)!="undefined"){if(e.clientX<rect_big_img.left||e.clientX>rect_big_img.right||e.clientY<rect_big_img.top||e.clientY>rect_big_img.bottom){clearTimeout(image_hanlded.strip_hide_timer);image_hanlded.strip_hide_timer=setTimeout(function(){image_hanlded.imonomy_hide_strip();},imonomy.strips.strip_wait_animate);}}},stripsMouseEnter:function(e_m,st){st.img=imonomy.settings.dynamic_strip?st.img:st;if(!st.img){return;}
if(st.strip_frame_container.style.display=="none"||st.strip_frame_container.style.opacity==0){st.strip_frame_container.style.display="none";imonomy.settings.monitor_page_scope?st.img.monitor_objects[location.href].st.show():st.show();return;}},stripsMouseOut:function(e_m,st){var temp_st=st;st.img=imonomy.settings.dynamic_strip?st.img:st;if(!st.img){return;}
if((typeof(e_m)!='undefined')&&((typeof(e_m.toElement)!='undefined')||typeof(e_m.relatedTarget)!='undefined')){if(st&&st.strip_frame_container.getBoundingClientRectRigth){var rect=st.strip_frame_container.getBoundingClientRectRigth();if(typeof(rect)!="undefined"){if((e_m.clientX>rect.left&&e_m.clientX<rect.right&&e_m.clientY>rect.top&&e_m.clientY<rect.bottom)||(rect.left==0&&rect.right==0&&rect.top==0&&rect.bottom==0)){var image_element=e_m.toElement||e_m.relatedTarget;return;}}}}
st=imonomy.settings.dynamic_strip?st.img:st;if(st&&st.getBoundingClientRectRigth){var rect=st.getBoundingClientRectRigth();if(typeof(rect)!="undefined"){if((e_m.clientX>rect.left&&e_m.clientX<rect.right&&e_m.clientY>rect.top&&e_m.clientY<rect.bottom)||(rect.left==0&&rect.right==0&&rect.top==0&&rect.bottom==0)){return;}}}
temp_st.imonomy_hide_strip();},bind:function(img){imonomy.utils.bind('mouseover',imonomy.strips.imageMouseEnter,img);imonomy.utils.bind('mouseenter',imonomy.strips.imageMouseEnter,img);imonomy.utils.bind('mouseout',imonomy.strips.imageMouseOut,img);imonomy.utils.bind('mouseleave',imonomy.strips.imageMouseOut,img);},bind_loaded:function(st){imonomy.utils.bind('mouseout',function(e){imonomy.strips.stripsMouseOut(e,st);},st.strip_frame_container);imonomy.utils.bind('mouseleave',function(e){imonomy.strips.stripsMouseOut(e,st);},st.strip_frame_container);imonomy.utils.bind('mouseover',function(e){imonomy.strips.stripsMouseEnter(e,st);},st.strip_frame_container);imonomy.utils.bind('mouseenter',function(e){imonomy.strips.stripsMouseEnter(e,st);},st.strip_frame_container);}}
imonomy.slider={slider_width:301,slider_height:288,set_location_interval:500,scroll_timer:null,scroll_interval:100,slider_hide_delay:1000,scroll_element_selector:".MoreLink, .comments, #comments, #comment, .comment, #comment-list, #commentList, #disqus_thread, .yarpp-related",scroll_in_action_timer:null,set_gray_lock_counter:true,imageHandled:0,request_hook:[],elements_action:{},refresh_timer:false,sliderInview_Shown:false,cid:"imonomy_slider",animate_interval:function(options,start){var timePassed=new Date-start;if(typeof(options.duration)=='undefined'){return;}
var progress=timePassed/options.duration;if(progress>1||progress==Number.NaN||typeof(progress)=='undefined'){progress=1;}else if(progress<1){}else{progress=1;}
options.progress=progress;options.counter=options.counter+1;var delta=options.delta(progress);if(delta==-999999){return;}
options.step(delta);if(progress==1){options.complete();}else{if(options.counter<2000){setTimeout(function(){imonomy.slider.animate_interval(options,start)},options.delay||10);}else{}}},animate_internal:function(options){var start=new Date;options.counter=1;setTimeout(function(){imonomy.slider.animate_interval(options,start)},options.delay||10);},fadeOut:function(element,options){imonomy.slider.elements_action[element]="fadeOut";if(options=="fast")
options={duration:300,complete:function(){}};if(options=="normal")
options={duration:800,complete:function(){}};var to=1;imonomy.slider.animate_internal({duration:options.duration,delta:function(progress){if(imonomy.slider.elements_action[element]!="fadeOut"){return-999999;}
return imonomy.utils.easing.swing(progress);},complete:options.complete,step:function(delta){element.style.opacity=to-delta;if(element.style.opacity==0){element.style.display="none";}}});},fadeIn:function(element,options){imonomy.slider.elements_action[element]="fadeIn";element.style.opacity=0;if(element.style.display=="none"){element.style.display="block";}
var to=0;if(options=="fast")
options={duration:300,complete:function(){}};if(options=="normal")
options={duration:800,complete:function(){}};imonomy.slider.animate_internal({duration:options.duration,delta:function(progress){if(imonomy.slider.elements_action[element]!="fadeIn"){return-999999;}
return imonomy.utils.easing.swing(progress);},complete:options.complete,step:function(delta){element.style.opacity=to+delta;}});},refresh_requested:false,request_refresh:function(suffix){if(imonomy.slider.refresh_requested){return;}
imonomy.slider.refresh_requested=true;imonomy.layer.generic_refresh_counter+=1;if((imonomy.layer.generic_refresh_counter<imonomy.settings.generic_refresh_count)||imonomy.slider.requested_on_noshow){imonomy.slider.requested_on_noshow=false;imonomy.slider.request_hook_slider_action(true,suffix);}},refresh_replace_on_content_ready:function(){var is_loaded=imonomy.layer.checkIframeContent(imonomy.slider.refresh_frame);if(is_loaded[0]){imonomy.slider.slider_frame.className='';imonomy.slider.slider_frame.style.display='none';imonomy.slider.refresh_frame.left="auto";imonomy.slider.slider_frame=imonomy.slider.refresh_frame;imonomy.slider.slider_frame.style.display='block';imonomy.slider.refresh_requested=false;imonomy.slider.is_content_loaded=undefined;}else{var product=imonomy.slider.refresh_frame.product;var index=imonomy.slider.refresh_frame.index;setTimeout(function(){imonomy.layer.productCounter[product]=parseInt(imonomy.layer.productCounter[product])+1;imonomy.slider.refresh_replace_on_content_ready();},400);}},request_hook_slider_action:function(is_refresh,suffix){var cid="imonomy_slider";if(is_refresh){cid=cid+"_rf";}
if(suffix){cid=cid+suffix;}
if(!imonomy.layer.sliderAutopass_inited){imonomy.layer.elementsCounter["slider"]=[];imonomy.layer.productCounter["slider"]=[];imonomy.layer.sliderAutopass_inited=true;}
imonomy.layer.elementsCounter["slider"]=0;imonomy.layer.productCounter["slider"]=0;var unit_format='1';if(imonomy.utils.isMobile()){unit_format='8';imonomy.slider.slider_width=320;imonomy.slider.slider_height=70;}
imonomy.slider.format=imonomy.utils.getUnitFormatLayout(unit_format);var ab_label="&ab=";if(imonomy.ab_label)ab_label+=imonomy.ab_label;var unit_code_url=imonomy.utils.protocol()+'//srv.imonomy.com/internal/serve?v=2&format='+unit_format+
'&img=true&cid='+cid+ab_label+'&isps='+imonomy.layer.shopping_site()+'&rdn=imonomy_image_$$fid$$&fid=0&cb=imonomy.slider.hook_slider_action($$fid$$, imonomy_image_$$fid$$, '+is_refresh+')';var client_unit=null;if(imonomy.settings.is_client&&imonomy.utils.is_client_valid()){client_unit=imonomy.utils.get_client_ad('slider',unit_format,0,cid);}
if(client_unit!=null){imonomy.page.trackServ(client_unit.unit_id,undefined,cid,undefined,undefined,undefined,unit_format,0,true);imonomy.slider.hook_slider_action(0,client_unit,is_refresh);}else{imonomy.utils.issue_unit_request(unit_code_url);}
imonomy.slider.start=new Date().getTime();imonomy.layer.incPassbackCounter("slider");},hook_slider_action:function(index,unit_data,is_refresh){if(unit_data.validate_blacklist&&!imonomy.settings.whitelist_site){if(imonomy.page.isContainsBlackListWord()){imonomy.tracker.reportBlackList("slider",unit_data.unit_id);return;}else{imonomy.tracker.reportNoneBlackList();}}
if(is_refresh){imonomy.slider.refresh_frame=document.createElement('iframe');if(imonomy.slider.refresh_frame.watchatt){imonomy.slider.refresh_frame.watchatt('src',imonomy_prevent_change);}
if((imonomy.settings.use_sandbox_iframes&&!imonomy.utils.isMobile())||(imonomy.utils.isMobile()&&imonomy.settings.use_sandbox_iframes_mobile)){if(unit_data.prevent_sandbox){imonomy.slider.refresh_frame.setAttribute('use_sandbox','true');}else{imonomy.slider.refresh_frame.setAttribute('sandbox','allow-pointer-lock allow-same-origin allow-scripts allow-popups');}}
imonomy.slider.refresh_frame.className="imonomy_slider_frame";imonomy.slider.refresh_frame.style.position='absolute';imonomy.slider.refresh_frame.style.left='-4500px';imonomy.slider.refresh_frame.product="slider";var slider_container=document.getElementById("imonomy_slider_frame_c");slider_container.appendChild(imonomy.slider.refresh_frame);imonomy.utils.setFrameCode(unit_data.html,unit_data,slider_container,imonomy.slider.refresh_frame,false,false,true);}
if(is_refresh){imonomy.slider.refresh_replace_on_content_ready();}else{imonomy.utils.setFrameCode(unit_data.html,unit_data,document.getElementById("imonomy_slider_frame_c"),document.getElementById("imonomy_slider_frame"),false,true);}},hideInternal:function(check){if(check&&!imonomy.slider.should_hide)
return;imonomy.slider.mode="hidden";if(imonomy.slider.visible){imonomy.slider.visible=false;imonomy.slider.fadeOut(document.getElementById('imonomy_slider'),"normal");}},hide:function(force){if(imonomy.slider.refresh_timer){clearTimeout(imonomy.slider.refresh_timer);}
if(force){imonomy.slider.hideInternal();imonomy.slider.hide_permanent=true;imonomy.utils.setCookie("imonomy_slider_lock_time","slider",imonomy.settings.close_lock_time,'/');}else{var hide_delay=imonomy.slider.layer_hide_delay;if(imonomy.utils.isMobile())
hide_delay=imonomy.slider.layer_hide_delay/2.5;imonomy.slider.should_hide=true;setTimeout(function(){if(imonomy.slider.scroll_in_action){return;}imonomy.slider.hideInternal(true);},imonomy.slider.slider_hide_delay);}},loaded_ad_id:undefined,show:function(sender){imonomy.slider.should_hide=false;if(imonomy.utils.isAdultContent()){return;}
if(imonomy.slider.hide_permanent){return;}
if(imonomy.slider.visible){return;}
if(!imonomy.slider.sliderInview_Shown){imonomy.page.trackServ(983,"ImageOnView",imonomy.slider.cid,undefined,undefined,undefined,imonomy.slider.format);imonomy.slider.sliderInview_Shown=true;}
if(!imonomy.slider.isContentLoaded()){imonomy.layer.productCounter["slider"]=parseInt(imonomy.layer.productCounter["slider"])+1;return;}
imonomy.slider.visible=true;imonomy.slider.ever_shown=true;if(typeof(sender)=='undefined'&&typeof(imonomy.layer.track_show_scroll)=='undefined'){imonomy.page.trackServ(985,"shown",imonomy.slider.cid,undefined,imonomy.slider.loaded_ad_id,undefined,imonomy.slider.format,undefined,undefined,undefined,imonomy.utils.isElementTrackable(imonomy.slider.slider_frame));imonomy.layer.track_show_scroll=false;}
imonomy.slider.init();document.getElementById("imonomy_slider").style.display="none";if(imonomy.settings.cornner_side=="left"){imonomy.slider.slider_obj.style.right='auto';}else{imonomy.slider.slider_obj.style.left='auto';}
imonomy.slider.slider_obj.style.top='auto';if(imonomy.settings.use_sticky){imonomy.slider.slider_obj.style.bottom="120px"}else{imonomy.slider.slider_obj.style.bottom="16px";}
imonomy.slider.slider_obj.style.position='fixed';if(document.doctype==null&&imonomy.utils.isIE()){imonomy.slider.slider_obj.style.position='absolute';imonomy.slider.slider_obj.style.top=(document.body.scrollTop+30)+"px";}
imonomy.slider.slider_obj.style.display="block";var slider_body=document.getElementById('imonomy_slider_window_body');if(slider_body!=null){var tmp_slider_width=0;if(slider_body.style.width!=""){tmp_slider_width=parseInt(slider_body.style.width.replace("px",""))}
if(tmp_slider_width>imonomy.slider.slider_width){imonomy.slider.slider_width=tmp_slider_width;}}
var slider_element=document.getElementById('imonomy_slider');slider_element.style.width=imonomy.slider.slider_width+"px";slider_element.style.height=imonomy.slider.slider_height+"px";slider_element.style.display="block";imonomy.slider.fadeIn(slider_element,"fast");if(imonomy.settings.cornner_side=="left"){var left_pedding=30;if(imonomy.utils.isMobile()){left_pedding=9;}
var slider_left=left_pedding;if(imonomy.utils.isRTL()){slider_left=left_pedding;}
imonomy.slider.slider_obj.style.left="-"+imonomy.slider.slider_width+"px";imonomy.utils.animate_left(imonomy.slider.slider_obj,-imonomy.slider.slider_width,slider_left,800);;}else{imonomy.slider.slider_obj.style.right="-1px";var right_pedding=30;if(imonomy.utils.isMobile()){right_pedding=9;}
var slider_rigth=right_pedding;if(imonomy.utils.isRTL()){slider_rigth=right_pedding;}
imonomy.slider.slider_obj.style.right="-"+imonomy.slider.slider_width+"px";imonomy.utils.animate_right(imonomy.slider.slider_obj,-imonomy.slider.slider_width,slider_rigth,800);;}
if(document.getElementById('imonomy_slider').style.opacity==0){document.getElementById('imonomy_slider').style.opacity=1;}
imonomy.layer.setLockCounter();if(imonomy.settings.gray_list_behavior&&imonomy.slider.set_gray_lock_counter){imonomy.slider.set_gray_lock_counter=false;try{var gray_list_history=imonomy.settings.gray_list_history;if(gray_list_history&&gray_list_history.length>0){if(gray_list_history=="--"){gray_list_history="";}
var curr_date=new Date();if(!gray_list_history||gray_list_history.length==0){gray_list_history=curr_date.toUTCString()+"$$"+curr_date.toUTCString()+"$$1";}else{lock_counter_splited=gray_list_history.split("$$");var lock_date=new Date(lock_counter_splited[1]);view_counter=parseInt(lock_counter_splited[2]);if(curr_date.getTime()-lock_date.getTime()>24*40*60*1000){gray_list_history=curr_date.toUTCString()+"$$"+curr_date.toUTCString()+"$$1";}else{gray_list_history=curr_date.toUTCString()+"$$"+lock_counter_splited[1]+"$$"+(view_counter+1);}}
var params="exp=7200000&nm=imonomy_gry_lock_count&vl="+escape(gray_list_history);imonomy.preload.injectScript(imonomy.utils.protocol()+'//srv.imonomy.com/cookies/create.js?'+params);}}catch(e){}
if(imonomy.layer.generic_refresh_counter<imonomy.settings.generic_refresh_count&&!imonomy.slider.ad_refuse_refresh){imonomy.slider.refresh_timer=setTimeout(function(){imonomy.slider.request_refresh();},imonomy.settings.time_to_refresh);}}},scroll:function(){if(!imonomy.slider.inited)
return;clearTimeout(imonomy.slider.scroll_timer);var scropTop=document.documentElement.scrollTop||document.body.scrollTop;var nVScroll=scropTop;nVScroll=nVScroll+imonomy.utils.getHeight();var scroll_pos_to_show=imonomy.settings.scroll_pos_to_show*imonomy.utils.getDocHeight();scroll_pos_to_show=Math.min(scroll_pos_to_show,4000*imonomy.settings.scroll_pos_to_show);if(imonomy.slider.scroll_element_selector!=null){}
if((imonomy.settings.bind_on_show&&scropTop==0)||((scropTop>0||scroll_pos_to_show==0)&&nVScroll>scroll_pos_to_show)){clearTimeout(imonomy.slider.scroll_in_action_timer);imonomy.slider.scroll_in_action=true;imonomy.slider.scroll_in_action_timer=setTimeout(function(){imonomy.slider.scroll_in_action=false;},800);imonomy.slider.show();}else{if(!imonomy.settings.bind_on_show||(imonomy.settings.bind_on_show&&scropTop>0)){if(imonomy.slider.cornnerHovered){imonomy.slider.tryHide();}else{imonomy.slider.hide(false);}}}},bind_scroll_check_interval:10,bindScroll:function(){function check_loaded(){if(!imonomy.slider.isContentLoaded()){setTimeout(function(){imonomy.layer.productCounter["slider"]=parseInt(imonomy.layer.productCounter["slider"])+1;check_loaded();},400);}}
if((Math.random()*100)<5){imonomy.page.monitor_slider_time=true;check_loaded();}
if(imonomy.settings.bind_on_show){setTimeout(function(){imonomy.slider.show_on_show();},1800);}
function imonomy_on_scroll(oEvent){if((imonomy.settings.use_sticky||imonomy.settings.my_sticky_mobile)&&imonomy.sticky.inited){imonomy.sticky.bindScroll();}
clearTimeout(imonomy.slider.scroll_timer);imonomy.slider.scroll_timer=setTimeout(function(){imonomy.slider.scroll();},imonomy.slider.scroll_interval);}
if(window.addEventListener){window.addEventListener('scroll',imonomy_on_scroll,false);}else if(window.attachEvent){el.attachEvent('onscroll',imonomy_on_scroll)}else{window.onscroll=imonomy_on_scroll;}
window.onblur=function(){if((imonomy.slider.bind_scroll||imonomy.slider.bind_on_show)&&imonomy.slider.visible){imonomy.slider.show_onfocus=true;imonomy.slider.hideInternal();}};window.onfocus=function(){setTimeout(function(){if(imonomy.slider.show_onfocus){imonomy.slider.show();imonomy.slider.show_onfocus=false;}},200);};},init:function(){if(imonomy.settings.validate_blacklist){if(imonomy.page.isContainsBlackListWord()){imonomy.tracker.reportBlackList("init","");return;}else{imonomy.tracker.reportNoneBlackList();}}
if(imonomy.slider.inited==true)return;var style=imonomy.settings.layer_style;var html=imonomy.settings.layer_html;html=html.replace("$$unit_mark$$",imonomy.layer.unit_marker());html=html.replace("$$unit_marker_url$$",imonomy.layer.unit_marker_url());imonomy.utils.injectStyle(style);imonomy.utils.injectStyle(".imonomy_slider_frame_c{display: block !important}");var html_element=document.createElement("div");html_element.id="imonomy_slider";html_element.className="imonomy_layer";html_element.style.width=imonomy.slider.slider_width;html=html.replace('id="imonomy_layer_frame_c"','id="imonomy_slider_frame_c"');var slider_frame_id='id="imonomy_slider_frame"';if((imonomy.settings.use_sandbox_iframes&&!imonomy.utils.isMobile())||(imonomy.utils.isMobile()&&imonomy.settings.use_sandbox_iframes_mobile)){slider_frame_id=slider_frame_id+' sandbox="allow-pointer-lock allow-same-origin allow-scripts allow-popups" ';}
html=html.replace('id="imonomy_layer_frame"',slider_frame_id);html=html.replace('id="imonomy_layer_close"','id="imonomy_slider_close"');html=html.replace('id="imonomy_layer_header"','id="imonomy_slider_header"');html=html.replace('id="imonomy_layer_window_body"','id="imonomy_slider_window_body"');html=html.replace('id="imonomy_layer_window"','id="imonomy_slider_window"');html=html.replace('id="imonomy_arr_0"','id="imonomy_slider_arr_0"');html=html.replace('id="imonomy_arr_1"','id="imonomy_slider_arr_1"');html_element.innerHTML=html;document.body.appendChild(html_element);var layer_header=document.getElementById("imonomy_slider_header");layer_header.style.marginBottom="1px";imonomy.slider.slider_obj=document.getElementById("imonomy_slider");imonomy.slider.slider_obj.product="slider"
imonomy.slider.slider_frame=document.getElementById("imonomy_slider_frame");imonomy.slider.slider_frame.product="slider";if(imonomy.utils.getDocHeight()<=imonomy.utils.getHeight()){return;imonomy.settings.bind_on_show=true;setTimeout(function(){imonomy.slider.request_hook_slider_action();},9800);}else{imonomy.slider.request_hook_slider_action();}
var layer_window_body=document.getElementsByClassName("imonomy_layer_window_body")[0];if(imonomy.utils.isMobile()&&layer_window_body!=null){layer_window_body.setAttribute('style','width:322px !important; height:82px;');}else if(layer_window_body!=null){layer_window_body.setAttribute('style','width:302px !important; height:283px;');}
var close_element=document.getElementById('imonomy_slider_close');if(close_element.addEventListener){close_element.addEventListener('click',function(e){imonomy.slider.hide(true);},false);}else if(close_element.attachEvent){close_element.attachEvent('onclick',function(){imonomy.slider.hide(true);});}
var arrow_element=document.getElementById("imonomy_slider_arr_0");var arrow_element_back=document.getElementById("imonomy_slider_arr_1");arrow_element.style.display="none";arrow_element_back.style.display="none";imonomy.slider.inited=true;if(imonomy.settings.bind_on_show){setTimeout(function(){imonomy.slider.show_on_show();},1800);}
imonomy.slider.bindScroll();},show_on_show:function(){if(!imonomy.slider.ever_shown){imonomy.slider.show();setTimeout(function(){imonomy.slider.show_on_show();},1800);}},isContentLoaded:function(){var frame_c=document.getElementById("imonomy_slider_frame_c");if(!frame_c){return false;}
frame_c.product="slider";imonomy.layer.lastCheckSliderContentTime=imonomy.layer.lastCheckSliderContentTime||Date.now();var force_reload_ads=(imonomy.slider.is_content_loaded&&(Date.now()-imonomy.layer.lastCheckSliderContentTime>=imonomy.settings.recheck_content_loaded_interval*1000))&&imonomy.settings.recheck_content_loaded_interval>-1
if(force_reload_ads||typeof(imonomy.slider.is_content_loaded)=='undefined'){var is_loaded=imonomy.layer.checkElementContent(frame_c);var check_load=imonomy.slider.is_content_loaded;if(is_loaded[1]||is_loaded[0]){imonomy.slider.is_content_loaded=is_loaded[1]&&is_loaded[0];if(is_loaded.length>2){imonomy.slider.loaded_ad_id=is_loaded[2];}
if((typeof(check_load)=='undefined'||!check_load)&&imonomy.slider.is_content_loaded){imonomy.page.trackServ(975,"content_loaded",imonomy.slider.cid,undefined,imonomy.slider.loaded_ad_id);}
if(imonomy.page.monitor_slider_time){var now=new Date().getTime();var from_slider=now-imonomy.slider.start;var from_start=now-imonomy.page.start;imonomy.page.trackServ(984,"loaded",imonomy.slider.cid+is_loaded[0],from_start+"_"+from_slider);}
if(is_loaded.length>3){frame_c.ad_refuse_refresh=is_loaded[3];}
if(!is_loaded[0]){imonomy.layer.checkPassbackCode(frame_c.product);}
if(typeof(imonomy.slider.loaded_ad_id)!="undefined"&&imonomy.slider.loaded_ad_id==998&&!imonomy.slider.is_content_loaded&&imonomy.settings.refresh_noshow_chain_interval>-1&&typeof(imonomy.slider.requested_on_noshow=='undefined')){imonomy.slider.requested_on_noshow=true;setTimeout(function(){imonomy.slider.request_refresh("_ns");},imonomy.settings.refresh_noshow_chain_interval);}}else if(!is_loaded[0]){imonomy.slider.is_content_loaded=undefined;}
if(imonomy.settings.recheck_content_loaded_interval>-1){delete imonomy.layer.lastCheckSliderContentTime;if(check_load&&!imonomy.slider.is_content_loaded){imonomy.page.trackServ(974,"revert_shown",imonomy.slider.cid,undefined,imonomy.slider.loaded_ad_id);imonomy.slider.is_content_loaded=undefined;}}
return is_loaded[0];}else{return imonomy.slider.is_content_loaded;}}}
imonomy.sticky={refresh_requested:false,stickyInview_Shown:false,sticky_Shown:false,moved_up:false,refresh_timer:false,sticky_trackServed:false,allow_cap_inc:true,is_content_loaded:undefined,lastCheckContentTime:null,currentFrame:null,firstRotateInit:true,cid:"imonomy_sticky",cap_counter:0,unit_fillers:[],rotateFrames:[],isStickyFrameLoaded:function(frame){var hasLoadedClass=frame.classList.contains('im-loaded');if(hasLoadedClass){return true;}else if(imonomy.layer.checkIframeContent(frame)[0]){frame.classList.add('im-loaded');return true;}else{return false;}},request_rotate:function(){var count=imonomy.settings.rotate_settings_json.sticky_rotate_max_count,disappearance_speed=imonomy.settings.rotate_settings_json.sticky_rotate_disappearance_speed,appearance_speed=imonomy.settings.rotate_settings_json.sticky_rotate_appearance_speed;imonomy.utils.injectStyle('.imonomy_sticky_frame.rotate-frame {position: absolute; top: 15px; left: 0; right: 0; z-index: -1; opacity: 0; -webkit-transition: all '+disappearance_speed+' ease-in-out; -moz-transition: all '+disappearance_speed+' ease-in-out; -ms-transition: all '+disappearance_speed+' ease-in-out; transition: all '+disappearance_speed+' ease-in-out; } .imonomy_sticky_frame.rotate-frame.im-showed.im-current {opacity: 1; z-index: 1; -webkit-transition: all '+appearance_speed+' ease-in-out; -moz-transition: all '+appearance_speed+' ease-in-out; -ms-transition: all '+appearance_speed+' ease-in-out; transition: all '+appearance_speed+' ease-in-out;}');for(var i=count;i>0;i--){imonomy.sticky.request_hook_sticky_action(null,null,true);}
imonomy.sticky.findReadyAd();},isAllShowed:function(arr){for(var i=arr.length-1;i>=0;i--){var frame=arr[i];if(!frame.classList.contains('im-showed')){return false;}}
return true;},cutNoneDisplayIframes:function(frame){return getComputedStyle(frame).display!=='none';},getRotateFrames:function(){var rotateFrames=document.getElementsByClassName('rotate-frame');rotateFrames=Array.prototype.slice.apply(rotateFrames);rotateFrames=rotateFrames.filter(imonomy.sticky.cutNoneDisplayIframes.bind(null));return rotateFrames;},findReadyAd:function(){var rotateFrames=imonomy.sticky.getRotateFrames(),interval=imonomy.settings.rotate_settings_json.sticky_rotate_refresh_interval,nextFrame,isShowed,isLoaded;var sticky_showed=false;for(var i=0;i<rotateFrames.length;i++){nextFrame=rotateFrames[i];isLoaded=imonomy.sticky.isStickyFrameLoaded(nextFrame);if(!isLoaded){nextFrame.classList.add('im-showed');}
isShowed=nextFrame.classList.contains('im-showed');if(isShowed){if(!isLoaded){continue;}
if(imonomy.sticky.isAllShowed(rotateFrames)){imonomy.utils.removeClassname(rotateFrames,'im-showed');}else{continue;}}
sticky_showed=true;imonomy.sticky.rotate_action(nextFrame);break;}
if(!sticky_showed){interval=50;}
setTimeout(function(){imonomy.sticky.findReadyAd();},interval);},setCurrentClassname:function(frame,frameList){imonomy.utils.removeClassname(frameList,'im-current');frame.classList.add('im-showed','im-current');},rotate_action:function(nextFrame){var currentFrame=imonomy.sticky.currentFrame,rotateFrames=imonomy.sticky.getRotateFrames();imonomy.sticky.setCurrentClassname(nextFrame,rotateFrames);if(!imonomy.sticky.moved_up&&imonomy.settings.sticky_min_position_to_show<=0){if(nextFrame){imonomy.sticky.sticky_footer.style.height=(nextFrame.clientHeight+15)+"px"}
imonomy.sticky.moved_up=true;imonomy.sticky.move_up(imonomy.sticky.sticky_footer);}},request_refresh:function(suffix){if(imonomy.sticky.refresh_requested){return;}
imonomy.sticky.refresh_requested=true;imonomy.layer.generic_refresh_counter+=1;if((imonomy.layer.generic_refresh_counter<imonomy.settings.generic_refresh_count)||imonomy.sticky.requested_on_noshow){imonomy.sticky.requested_on_noshow=false;imonomy.sticky.request_hook_sticky_action(true,suffix);}},refresh_replace_on_content_ready:function(){var is_loaded=imonomy.layer.checkIframeContent(imonomy.sticky.refresh_frame);if(is_loaded[0]){imonomy.sticky.refresh_requested=false;imonomy.sticky.replaced_frame=imonomy.sticky.sticky_footer_frame;imonomy.sticky.sticky_footer_frame.style.display='none';imonomy.sticky.sticky_footer_frame=imonomy.sticky.refresh_frame;imonomy.sticky.sticky_footer_frame.style.display='block';imonomy.sticky.is_content_loaded=undefined;imonomy.sticky.sticky_footer.style.height=(imonomy.sticky.sticky_footer_frame.clientHeight+15)+"px"
if(imonomy.utils.isMobile()&&imonomy.sticky.is_current_unit_filler(imonomy.sticky)){imonomy.sticky.move_down(imonomy.sticky.sticky_footer);imonomy.sticky.unit_filler_replaced=true;}else{if(imonomy.sticky.use_unit_filler){imonomy.sticky.unit_filler_replaced=true;}
imonomy.sticky.move_up(imonomy.sticky.sticky_footer);}
imonomy.sticky.refresh_requested=false;}else{setTimeout(function(){imonomy.layer.productCounter["sticky"]=parseInt(imonomy.layer.productCounter["sticky"])+1;imonomy.sticky.refresh_replace_on_content_ready();},400);}
return is_loaded[0];},is_current_cpc:function(elem){return false;},is_current_unit_filler:function(elem){return elem.use_unit_filler&&!elem.unit_filler_replaced;},request_hook_sticky_action:function(is_refresh,suffix,is_rotate){var unit_code_url,cid="imonomy_sticky";if(is_refresh){cid=cid+"_rf";}
if(is_rotate){cid=cid+"_rt";}
if(suffix){cid=cid+suffix;}
imonomy.layer.elementsCounter["sticky"]=0;imonomy.layer.productCounter["sticky"]=0;if(!imonomy.layer.stickyAutopass_inited){imonomy.layer.elementsCounter["sticky"]=[];imonomy.layer.productCounter["sticky"]=[];imonomy.layer.stickyAutopass_inited=true;}
var unit_format='6';if(imonomy.utils.isMobile()){unit_format='8';}
imonomy.sticky.format=imonomy.utils.getUnitFormatLayout(unit_format);var ab_label="&ab=";if(imonomy.ab_label)ab_label+=imonomy.ab_label;if(is_rotate){unit_code_url=imonomy.utils.protocol()+
'//srv.imonomy.com/internal/serve?v=2&format='+
unit_format+'&img=true&cid='+cid+ab_label+
'&isps='+imonomy.layer.shopping_site()+
'&rdn=imonomy_image_$$fid$$&fid=0&cb=imonomy.sticky.rotate_sticky_action($$fid$$, imonomy_image_$$fid$$)';}else{unit_code_url=imonomy.utils.protocol()+
'//srv.imonomy.com/internal/serve?v=2&format='+
unit_format+'&img=true&cid='+cid+ab_label+
'&isps='+imonomy.layer.shopping_site()+
'&rdn=imonomy_image_$$fid$$&fid=0&cb=imonomy.sticky.hook_sticky_action($$fid$$, imonomy_image_$$fid$$, '+is_refresh+')';}
imonomy.layer.incPassbackCounter("sticky");var client_unit=null;if(imonomy.settings.is_client&&imonomy.utils.is_client_valid()){client_unit=imonomy.utils.get_client_ad('sticky',unit_format,0,cid);}
if(client_unit!=null){imonomy.page.trackServ(client_unit.unit_id,undefined,cid,undefined,undefined,undefined,unit_format,0,true);if(is_rotate){imonomy.sticky.rotate_sticky_action(0,client_unit);}else{imonomy.sticky.hook_sticky_action(0,client_unit,is_refresh);}}else{imonomy.utils.issue_unit_request(unit_code_url);}},trackForBlackList:function(unit_data){if(unit_data.validate_blacklist&&!imonomy.settings.whitelist_site){if(imonomy.page.isContainsBlackListWord()){imonomy.tracker.reportBlackList("sticky",unit_data.unit_id);return;}else{imonomy.tracker.reportNoneBlackList();}}},handleIfCpcPricingModel:function(unit_data){if(unit_data.unit_filler&&unit_data.unit_filler.pricing_model=='cpc'){unit_data.unit_filler["format"]=unit_data.format;unit_data.unit_filler["cid"]=unit_data.cid;unit_data.unit_filler["unit_id"]=unit_data.unit_id;unit_data.unit_filler["curr_tier"]=-1;if(imonomy.settings.rotate_settings_json){var unit_data_copy=JSON.parse(JSON.stringify(unit_data));unit_data_copy.html=unit_data.unit_filler.ad_code;imonomy.sticky.buildRotateIframe(unit_data_copy);}}},buildRotateIframe:function(unit_data){var rotateFrame=document.createElement('iframe');rotateFrame.className="imonomy_sticky_frame rotate-frame";rotateFrame.product="sticky";imonomy.sticky.sticky_footer.appendChild(rotateFrame);imonomy.utils.setFrameCode(unit_data.html,unit_data,imonomy.sticky.sticky_footer,rotateFrame,false,true,true);},rotate_sticky_action:function(index,unit_data){imonomy.sticky.trackForBlackList(unit_data);imonomy.sticky.handleIfCpcPricingModel(unit_data);imonomy.sticky.buildRotateIframe(unit_data);},hook_sticky_action:function(index,unit_data,is_refresh){var isRotateActive=imonomy.settings.rotate_settings_json;var unit_code="<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body style='overflow: hidden; margin: 0px; bottom: 0px; width: 100%;'>"+unit_data.html+"</body></html>";var use_unit_filler=unit_data.unit_filler!=undefined&&unit_data.unit_filler.ad_code!=undefined;imonomy.sticky.trackForBlackList(unit_data);if(is_refresh||(use_unit_filler&&!imonomy.sticky.unit_filler_replaced)){imonomy.sticky.refresh_frame=document.createElement('iframe');if(imonomy.sticky.refresh_frame.watchatt){imonomy.sticky.refresh_frame.watchatt('src',imonomy_prevent_change);}
imonomy.sticky.refresh_frame.className="imonomy_sticky_frame";imonomy.sticky.refresh_frame.style.display='none';if((imonomy.settings.use_sandbox_iframes&&!imonomy.utils.isMobile())||(imonomy.utils.isMobile()&&imonomy.settings.use_sandbox_iframes_mobile)){if(unit_data.prevent_sandbox){imonomy.sticky.refresh_frame.setAttribute('use_sandbox','true');imonomy.sticky.refresh_frame.removeAttribute("sandbox");}else{imonomy.sticky.refresh_frame.setAttribute('sandbox','allow-pointer-lock allow-same-origin allow-scripts allow-popups');}}
imonomy.sticky.refresh_frame.product="sticky";imonomy.sticky.sticky_footer.appendChild(imonomy.sticky.refresh_frame);imonomy.utils.setFrameCode(unit_data.html,unit_data,imonomy.sticky.refresh_frame,imonomy.sticky.refresh_frame,false,false,true);}else{if((imonomy.settings.use_sandbox_iframes&&!imonomy.utils.isMobile())||(imonomy.utils.isMobile()&&imonomy.settings.use_sandbox_iframes_mobile)){if(unit_data.prevent_sandbox){imonomy.sticky.sticky_footer_frame.setAttribute('use_sandbox','true');imonomy.sticky.sticky_footer_frame.removeAttribute("sandbox");}else{imonomy.sticky.sticky_footer_frame.setAttribute('sandbox','allow-pointer-lock allow-same-origin allow-scripts allow-popups');}}}
imonomy.sticky.handleIfCpcPricingModel(unit_data);if(is_refresh&&!isRotateActive){imonomy.sticky.refresh_replace_on_content_ready();}else if(use_unit_filler&&!isRotateActive){var is_orig_loaded=imonomy.sticky.refresh_replace_on_content_ready();unit_data.html=unit_data.unit_filler.ad_code;var unit_code="<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body style='overflow: hidden; margin: 0px; bottom: 0px; width: 100%;'>"+unit_data.html+"</body></html>";if(!is_orig_loaded){imonomy.sticky.use_unit_filler=true;imonomy.utils.setFrameCode(unit_data.html,unit_data,imonomy.sticky.sticky_footer,imonomy.sticky.sticky_footer_frame,false,true,true);}}else{imonomy.utils.setFrameCode(unit_data.html,unit_data,imonomy.sticky.sticky_footer,imonomy.sticky.sticky_footer_frame,false,true,true);}
var nativeAd=imonomy.sticky.sticky_footer_frame.contentWindow.document.getElementById('native-ad');if(nativeAd){var nativeAdHeight,nativeAdClosebtn=nativeAd.querySelector('.close-ad'),correctedNativeAdHeight,windowWidth=window.innerWidth||document.clientWidth;if(windowWidth<700){nativeAd.classList.add('sm');}else{nativeAd.classList.remove('sm');}
if(nativeAdClosebtn){nativeAdClosebtn.addEventListener('click',function(){imonomy.sticky.force_closed=true;imonomy.utils.setCookie("imonomy_sticky_lock_time","sticky",imonomy.settings.close_lock_time,'/');imonomy.sticky.move_down(imonomy.sticky.sticky_footer);});}
imonomy.sticky.sticky_footer_frame.style.width='100%';nativeAdHeight=nativeAd.clientHeight;imonomy.sticky.sticky_footer_frame.contentWindow.document.body.style.textAlign='center';nativeAd.style.display='inline-block';nativeAd.style.textAlign='left';nativeAd.style.margin='0';nativeAd.style.width='89%';correctedNativeAdHeight=nativeAdHeight+
parseInt(getComputedStyle(nativeAd).borderTopWidth)+
parseInt(getComputedStyle(nativeAd).borderBottomWidth);imonomy.sticky.sticky_footer_frame.style.height=correctedNativeAdHeight+'px';imonomy.sticky.sticky_footer.style.height=correctedNativeAdHeight+16+'px';}
return this;},init:function(){var isRotate=imonomy.settings.rotate_settings_json?imonomy.settings.rotate_settings_json.sticky_rotate_enable:null,rotateLength=isRotate?imonomy.settings.rotate_settings_json.sticky_rotate_max_count:null;if(imonomy.settings.validate_blacklist){if(imonomy.page.isContainsBlackListWord()){imonomy.tracker.reportBlackList("init","");return;}else{imonomy.tracker.reportNoneBlackList();}}
if(imonomy.sticky.inited==true)return;imonomy.sticky.inited=true;var footer_width='100%';if(imonomy.utils.isMobile()){footer_width=window.screen.width+'px';}
imonomy.utils.injectStyle('.sticky_actions{position: relative; top: 2px; right: 5px; cursor: pointer; font-size: 1em; margin-left: auto; margin-right: auto; z-index: 10000000000;display: block; } @media only screen and (min-width:600px){.sticky_actions{width:728px}}@media only screen and (max-width:600px){.sticky_actions{width:100%}} .imonomy_footer {z-index: 2147483647; position: fixed; width: '+footer_width+'; display:block !important; bottom:-250px; margin-left: auto; margin-right: auto; background: transparent; } .imonomy_powered_sticky{height: 16px; opacity:0.6; font-family:Helvetica, arial, sans-serif; color: #FFFFFF !important; cursor: pointer; font-size: 12px; font-weight: bold; text-shadow: 2px 2px 4px #000000; text-decoration: none !important; width: 728px; display:block; margin-left: auto; margin-right: auto;}.close_x:hover{border-radius:50%} .close_x {line-height:10px;border:1px solid;color:#FFFFFF; font-family:Helvetica, arial, sans-serif; cursor: pointer; font-size: 12px; margin-left: 4px; text-shadow: 2px 2px 4px #000000; float:right; } .sticky_actions .close_x {position: absolute; right: 0px; top: -14px;} .imonomy_sticky_frame{max-width:100% !important; display: block; margin-left: auto !important; margin-right: auto !important; } @media screen and (max-width: 700px) {.powered{font-size: 12px; } .imonomy_footer{height: auto;} } @media screen\0 {.powered{font-family: none; } }');imonomy.sticky.sticky_footer=document.createElement('div');imonomy.sticky.sticky_footer.className='imonomy_footer';document.body.appendChild(imonomy.sticky.sticky_footer);var unit_marking=document.createElement('a');unit_marking.className="imonomy_powered_sticky";unit_marking.id="imonomy_powered_sticky";unit_marking.innerHTML=imonomy.layer.unit_marker();if(unit_marking.innerHTML==""){unit_marking.innerHTML=imonomy.settings.unit_marking?imonomy.settings.unit_marking:"Advertisement";}
unit_marking.target='_blank';unit_marking.href=imonomy.layer.unit_marker_url();imonomy.sticky.sticky_footer.appendChild(unit_marking);var actions_container=document.createElement('div');actions_container.className="sticky_actions";var close_x=document.createElement('span');close_x.className="close_x";close_x.id="close_x";close_x.innerHTML="&#10006;";close_x.onclick=function(){imonomy.sticky.force_closed=true;imonomy.utils.setCookie("imonomy_sticky_lock_time","sticky",imonomy.settings.close_lock_time,'/');imonomy.sticky.move_down(imonomy.sticky.sticky_footer);}
actions_container.appendChild(close_x);imonomy.sticky.sticky_footer.appendChild(actions_container);imonomy.sticky.sticky_footer_frame=document.createElement('ifr'+'ame');if(imonomy.sticky.sticky_footer_frame.watchatt){imonomy.sticky.sticky_footer_frame.watchatt('src',imonomy_prevent_change);}
imonomy.sticky.sticky_footer_frame.className="imonomy_sticky_frame";if((imonomy.settings.use_sandbox_iframes&&!imonomy.utils.isMobile())||(imonomy.utils.isMobile()&&imonomy.settings.use_sandbox_iframes_mobile)){imonomy.sticky.sticky_footer_frame.setAttribute('use_sandbox','true');}
imonomy.sticky.sticky_footer_frame.product="sticky";if(!isRotate){imonomy.sticky.sticky_footer.appendChild(imonomy.sticky.sticky_footer_frame);}
if(isRotate&&rotateLength>1){if(imonomy.sticky.firstRotateInit){imonomy.sticky.firstRotateInit=false;imonomy.sticky.request_rotate();}}else{imonomy.sticky.request_hook_sticky_action();}
imonomy.sticky.bindScroll(imonomy.sticky.sticky_footer);imonomy.sticky.bindResize(imonomy.sticky);if(imonomy.utils.isMobile()){window.addEventListener('resize',function(){imonomy.sticky.sticky_footer.style.width=window.screen.width+'px';});}},bindResize:function(elem){window.addEventListener('resize',function(elem,e){var windowWidth=window.innerWidth||document.clientWidth;var nativeAd=elem.sticky_footer_frame.contentWindow.document.getElementById('native-ad');if(nativeAd){var nativeAdHeight,correctedNativeAdHeight;nativeAdHeight=nativeAd.clientHeight;correctedNativeAdHeight=nativeAdHeight+
parseInt(getComputedStyle(nativeAd).borderTopWidth)+
parseInt(getComputedStyle(nativeAd).borderBottomWidth);elem.sticky_footer_frame.style.height=correctedNativeAdHeight+'px';elem.sticky_footer.style.height=correctedNativeAdHeight+16+'px';if(windowWidth<700){nativeAd.classList.add('sm');}else{nativeAd.classList.remove('sm');}}}.bind(this,elem));},bindScroll:function(elem){var isRotate=imonomy.settings.rotate_settings_json;if(!imonomy.sticky.stickyInview_Shown){imonomy.page.trackServ(983,"ImageOnView",imonomy.sticky.cid,undefined,undefined,undefined,imonomy.sticky.format);imonomy.sticky.stickyInview_Shown=true;}
if(!imonomy.sticky.isContentLoaded()){setTimeout(function(){imonomy.layer.productCounter["sticky"]=parseInt(imonomy.layer.productCounter["sticky"])+1;imonomy.sticky.bindScroll(elem);},400);}else{if(!imonomy.sticky.sticky_footer.firstShown&&imonomy.settings.sticky_min_position_to_show<=0){imonomy.sticky.sticky_footer.firstShown=true;if(!isRotate){imonomy.sticky.move_up(imonomy.sticky.sticky_footer)}}
var viewportElement=document.documentElement;var position=(window.pageYOffset||viewportElement.scrollTop||0);window.onscroll=function(ev){if(imonomy.settings.hide_sticky_onscroll){imonomy.sticky.hideOnscroll();}
if(imonomy.settings.bind_scroll||imonomy.settings.my_slider_mobile){imonomy.slider.bindScroll();}
if(imonomy.sticky.force_closed){return;}
var scroll=(window.pageYOffset||viewportElement.scrollTop||0);var scrollHeight=document.body.scrollHeight;var winheight=window.innerHeight;var is_sticky_content_loaded=imonomy.sticky.isContentLoaded();winheight=winheight==undefined?document.documentElement.clientHeight:winheight;var scrollpoint=window.scrollY;scrollpoint=scrollpoint==undefined?window.document.documentElement.scrollTop:scrollpoint;elem=imonomy.sticky.sticky_footer;if(((scrollpoint+winheight)>=scrollHeight&&(scroll>position))&&imonomy.settings.sticky_appearance_count=='in_view'){imonomy.sticky.move_down(elem);}else if(((scrollpoint+winheight)<scrollHeight)&&elem.style.bottom=="-250px"&&imonomy.settings.sticky_min_position_to_show>scroll){if(is_sticky_content_loaded){imonomy.sticky.move_up(elem);}}
if(((scrollpoint+winheight)<scrollHeight)&&imonomy.settings.sticky_appearance_count=='in_view'){elem.style.bottom="0px";elem.style.opacity="1";}
position=scroll;};}},move_down:function(elem){if(elem.style.bottom=='-250px'){return;}
if(imonomy.sticky.refresh_timer){clearTimeout(imonomy.sticky.refresh_timer);}
if(imonomy.utils.supports_css3()){if(imonomy.settings.sticky_appearance_effect=='fade_in'){setTimeout(function(){imonomy.utils.fadeOutCss3(elem);},30);}
else if(imonomy.settings.sticky_appearance_effect=='slide_bottom'){elem.style.transition="bottom 1s";elem.style.setProperty("-webkit-transition","bottom 1s");elem.style.setProperty("-moz-transition","top 1s");setTimeout(function(){elem.style.bottom="-250px";},30);}
else if(imonomy.settings.sticky_appearance_effect=='no_effect'){imonomy.utils.fadeOutCss3(elem,'zero');}
else{setTimeout(function(){imonomy.utils.fadeOutCss3(elem);},30);}}else{var bottom=0;function frame(){bottom--;elem.style.bottom=bottom+'px';if(bottom==-120)
clearInterval(id);}
var id=setInterval(frame,0.5);}},move_up:function(elem){var bottom=-120,isRotate=imonomy.settings.rotate_settings_json;if(!imonomy.sticky.sticky_Shown&&!imonomy.sticky.is_current_unit_filler(imonomy.sticky)){imonomy.page.trackServ(985,"shown",imonomy.sticky.cid,undefined,imonomy.sticky.loaded_ad_id,undefined,imonomy.sticky.format,undefined,undefined,undefined,imonomy.utils.isElementTrackable(imonomy.sticky.sticky_footer_frame));if(imonomy.sticky.allow_cap_inc){imonomy.sticky.cap_counter++;imonomy.utils.setCookie("imonomy_sticky_lock_counter",imonomy.sticky.cap_counter,86400000,'/',true);}
imonomy.sticky.sticky_Shown=true;}else if(imonomy.sticky.is_current_unit_filler(imonomy.sticky)){imonomy.page.trackServ(970,"shown",imonomy.sticky.cid,undefined,imonomy.sticky.loaded_ad_id);}
if(imonomy.utils.supports_css3()){if(imonomy.settings.sticky_appearance_effect=='fade_in'){elem.style.bottom="0px";elem.style.opacity="0";setTimeout(function(){imonomy.utils.fadeInCss3(elem);},30);}
else if(imonomy.settings.sticky_appearance_effect=='slide_bottom'){elem.style.transition="bottom 1s";elem.style.setProperty("-webkit-transition","bottom 1s");elem.style.setProperty("-moz-transition","top 1s");elem.style.bottom="0px";}
else if(imonomy.settings.sticky_appearance_effect=='no_effect'){elem.style.bottom="0px";imonomy.utils.fadeInCss3(elem,'zero');}
else{elem.style.bottom="0px";elem.style.opacity="0";setTimeout(function(){imonomy.utils.fadeInCss3(elem);},30);}}else{function frame(){bottom++;elem.style.bottom=bottom+'px';imonomy.sticky.sticky_footer.style.display="block";if(bottom==0)
clearInterval(id);}
var id=setInterval(frame,0.5);}
if(!isRotate&&imonomy.layer.generic_refresh_counter<imonomy.settings.generic_refresh_count&&!imonomy.sticky.ad_refuse_refresh){imonomy.sticky.refresh_timer=setTimeout(function(){imonomy.sticky.request_refresh();},imonomy.settings.time_to_refresh);}
imonomy.layer.setLockCounter();},isContentLoaded:function(){imonomy.sticky.lastCheckContentTime=imonomy.sticky.lastCheckContentTime||Date.now();var force_reload_ads=(imonomy.sticky.is_content_loaded&&(Date.now()-imonomy.sticky.lastCheckContentTime>=imonomy.settings.recheck_content_loaded_interval*1000))&&imonomy.settings.recheck_content_loaded_interval>-1
if(force_reload_ads||typeof(imonomy.sticky.is_content_loaded)=='undefined'){var frame_c=imonomy.sticky.sticky_footer_frame;frame_c.product="sticky";var is_loaded=imonomy.layer.checkContent(frame_c);var check_load=imonomy.sticky.is_content_loaded;if(is_loaded[1]||is_loaded[0]){imonomy.sticky.is_content_loaded=is_loaded[1]&&is_loaded[0];if(is_loaded.length>2){imonomy.sticky.loaded_ad_id=is_loaded[2];}
if((typeof(check_load)=='undefined'||!check_load)&&imonomy.sticky.is_content_loaded){imonomy.page.trackServ(975,"content_loaded",imonomy.sticky.cid,undefined,imonomy.sticky.loaded_ad_id);}
if(is_loaded.length>3){imonomy.sticky.ad_refuse_refresh=is_loaded[3];}
if(typeof(imonomy.sticky.loaded_ad_id)!="undefined"&&imonomy.sticky.loaded_ad_id==998&&!imonomy.sticky.is_content_loaded&&imonomy.settings.refresh_noshow_chain_interval>-1&&typeof(imonomy.sticky.requested_on_noshow)=='undefined'){imonomy.sticky.requested_on_noshow=true;setTimeout(function(){imonomy.sticky.request_refresh("_ns");},imonomy.settings.refresh_noshow_chain_interval);}
if(!is_loaded[0]){imonomy.layer.checkPassbackCode(frame_c.product);}
if(is_loaded[0]&&!imonomy.sticky.showed_origin_ad_id){imonomy.sticky.showed_origin_ad_id=imonomy.sticky.loaded_ad_id;}}else if(!is_loaded[0]){imonomy.sticky.is_content_loaded=undefined;}
if(imonomy.settings.recheck_content_loaded_interval>-1){delete imonomy.sticky.lastCheckContentTime;if(check_load&&!imonomy.sticky.is_content_loaded){imonomy.page.trackServ(974,"revert_shown",imonomy.sticky.cid,undefined,imonomy.sticky.showed_origin_ad_id);imonomy.sticky.is_content_loaded=undefined;}}
return is_loaded[0];}else{return imonomy.sticky.is_content_loaded;}},hideOnscroll:function(elem){var ads_elem=document.getElementsByClassName(imonomy.settings.hide_sticky_onscroll)
var sticky_elem=document.getElementsByClassName('imonomy_footer')
divFromTop=window.scrollY+window.innerHeight;for(var index=0;index<ads_elem.length;index++){if(ads_elem[index].offsetTop<divFromTop&&ads_elem[index].offsetTop+ads_elem[index].offsetHeight+106>divFromTop){sticky_elem[0].style.visibility='hidden';break;}else if(ads_elem[index].offsetTop+106<divFromTop){sticky_elem[0].style.visibility='visible';}}}},imonomy.tracker={host:"",trackPrefix:'track_',trackPattern:new RegExp("track_[^\\s]+","g"),track_google:false,track_container_type:null,track_image_action:null,track_url:"//srv.imonomy.com/action",track_url_sid:"//srv.imonomy.com/action_sid",session_id:null,PartnerId:null,full:false,full_track_session:null,perform_session:null,reportBlackList:function(location,origin){if(!imonomy.tracker.blocked_reported){imonomy.tracker.blocked_reported=true;if((Math.random()*100)<5){var unit_id="988";var blacklist_word=imonomy.page.isContainsBlackListWord(true)
var unit_code_url=imonomy.utils.protocol()+'//srv.imonomy.com/internal/blocked?v=2&format=1&ai='+unit_id+"&subid=4"+blacklist_word+"&cid="+location+"&ctxu="+escape(window.location+'');imonomy.utils.issue_unit_request(unit_code_url);}}},reportNoneBlackList:function(){if(!imonomy.tracker.blocked_reported&&imonomy.page.WordChecker(imonomy.settings.blacklist_sus_porn,false,false,true)){imonomy.tracker.blocked_reported=true;if((Math.random()*100)<5){var blacklist_word=imonomy.page.WordChecker(imonomy.settings.blacklist_sus_porn,true,false,true)
var unit_code_url=imonomy.utils.protocol()+'//srv.imonomy.com/internal/reporter?v=2&format=1&ai=989&subid='+blacklist_word;imonomy.utils.issue_unit_request(unit_code_url,undefined,true);}}},reportCompPresent:function(){if(!imonomy.tracker.comp_reported&&imonomy.settings.comp_words&&imonomy.page.WordChecker(imonomy.settings.comp_words,false,false,true)){imonomy.tracker.comp_reported=true;if((Math.random()*100)<20){var blacklist_word=imonomy.page.WordChecker(imonomy.settings.comp_words,true,false,true)
var unit_code_url=imonomy.utils.protocol()+'//srv.imonomy.com/internal/reporter?v=2&format=1&ai=989&subid=comp_'+blacklist_word;imonomy.utils.issue_unit_request(unit_code_url,undefined,true);}}},sessionId:function(){if(imonomy.tracker.session_id==null){var session_id=imonomy.utils.getCookie("sessionId");if(typeof(session_id)!='undefined'&&session_id!=null&&session_id!=""){imonomy.tracker.session_id=session_id;}else{if(typeof(imonomy.tracker.session_id)=='undefined'||imonomy.tracker.session_id==null){var now=new Date()
imonomy.tracker.session_id=Math.random()+now.getTime();imonomy.utils.setCookie("sessionId",imonomy.tracker.session_id,null,'/');}}}
return imonomy.tracker.session_id;},isFullTrackSession:function(){if(imonomy.tracker.full_track_session==null){imonomy.tracker.full_track_session=imonomy.utils.getCookie("full")=="true";}
return imonomy.tracker.full_track_session;},getOrSetFullTrackSession:function(){return false;if(imonomy.tracker.full_track_session==null){var full=imonomy.utils.getCookie("full");if(full==""){var random_mode=Math.random();if(random_mode>0.96){full="true";}else{full="false";}
imonomy.utils.setCookie("full",full,null,'/');}
imonomy.tracker.full_track_session=full=="true";imonomy.tracker.full=imonomy.tracker.full_track_session;}
return imonomy.tracker.full_track_session;},getOrSetPerformSession:function(){return true;if(imonomy.tracker.perform_session==null){var perform_cookie=imonomy.utils.getCookie("perform");var perform=true;if(perform_cookie==""){if(typeof(imonomy_demo_mode)=='undefined'&&typeof(imonomy_no_ab_test_mode)=='undefined'&&imonomy.tracker.getOrSetFullTrackSession()){var random_mode=Math.random();if(random_mode>=0.5){perform=false;}}
imonomy.utils.setCookie("perform",perform,null,'/');}else{perform=perform_cookie=="true";}
imonomy.tracker.perform_session=perform;}
return imonomy.tracker.perform_session;},track:function(scenario,data,create_sid){if(typeof(data)=='undefined'){data='';}
if(typeof(create_sid)=='undefined'){create_sid=false;}
scenario=imonomy.tracker.trackPrefix+scenario;var fixed_data="&sid="+imonomy.tracker.sessionId()+"&bt="+imonomy.utils.browser.type()+"&ctxu="+escape(window.location+'');if(typeof(imonomy.global_settings)!='undefined'){fixed_data=fixed_data+"&pid="+imonomy.layer.get_sid()}else{if(imonomy.tracker.PartnerId!=null){fixed_data=fixed_data+"&pid="+imonomy.tracker.PartnerId}}
if(imonomy.tracker.full){fixed_data=fixed_data+"&full=true";}
if(imonomy.tracker.track_container_type!=null)
fixed_data=fixed_data+"&im_cnt="+imonomy.tracker.track_container_type;if(imonomy.tracker.track_image_action!=null)
fixed_data=fixed_data+"&im_cnt="+imonomy.tracker.track_image_action;if(imonomy.tracker.track_google&&typeof(_gaq)!='undefined'){if(data==''||data==null||typeof(data)=='undefined'){data='Click';}
_gaq.push(['_trackEvent',scenario,data]);}
var url=imonomy.tracker.track_url;if(create_sid){url=imonomy.tracker.track_url_sid;}
if(url&&url!=''){source=imonomy.tracker.host;url+="?source="+escape(source)+"&scenario="+escape(scenario)+fixed_data+data;var script=document.createElement("script");script.setAttribute("type","text/javascript");script.setAttribute("src",url);script.src=url;if(document.body){document.body.appendChild(script);}}},track_element_internal:function(element,matches,track_outgoing){var classesCombined="";if(matches!=null){classesCombined=matches.join("|").replace(imonomy.tracker.trackPrefix,"");}
try{var href=element.href;if(href==null||href==""){href=window.location.href;}
if(classesCombined!=""){if(classesCombined.indexOf('#')>0){var mySplitResult=classesCombined.split("#");classesCombined=mySplitResult[0];label=mySplitResult[1];}}else{classesCombined="link"}
var data='Click';if(track_outgoing){should_track=true;var dest_url=element.href;var linkClass=element.className;var linkHostname=element.hostname;var host=window.location.host;var is_outgoing=(linkHostname!=host)?"true":"false";data="&ogl="+is_outgoing+"&durl="+escape(dest_url);}
imonomy.tracker.track(classesCombined,data);}catch(e){}
return true;},trackElement:function(element,track_outgoing){var linkClass=element.className;var linkHostname=element.hostname;var host=window.location.host;var should_track=false;var matches=null;if(linkClass!=null&&typeof(linkClass)!='undefined'){matches=linkClass.match(imonomy.tracker.trackPattern);if(matches!=null||linkHostname!=host){should_track=true;}}
if(typeof(track_outgoing)!='undefined'&&track_outgoing){should_track=true;}
if(should_track){if(element.addEventListener){element.addEventListener('mousedown',function(e){imonomy.tracker.track_element_internal(element,matches,track_outgoing)},false);}else if(element.attachEvent){element.attachEvent('onmousedown',function(){imonomy.tracker.track_element_internal(element,matches,track_outgoing)});}else{element.onmousedown=function(){imonomy.tracker.track_element_internal(element,matches,track_outgoing)};}}},trackLinks:function(jqElement,track_outgoing){var selector=null;if(jqElement==null){var elements=document.getElementsByTagName("a");for(var i=elements.length-1;i>=0;i--)
{imonomy.tracker.trackElement(elements[i],track_outgoing);}}else{selector=jqElement;selector.each(function(){imonomy.tracker.trackElement(this,track_outgoing);});}}}
imonomy.page={stop_words:function(){return imonomy.stop_words;},servLogged:false,version:2,getParameterByName:function(name){name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var regex=new RegExp("[\\?&]"+name+"=([^&#]*)"),results=regex.exec(location.search);return results===null?"":decodeURIComponent(results[1].replace(/\+/g," "));},LogServ:function(){return;try{if(imonomy.page.servLogged){return;}
imonomy.page.servLogged=true;if((Math.random()*100)>20){return;}
var please_test=["googletagservices.com/tag/js/gpt.js","/doubleclick/dartiframe.html","google_unit_client","googletag.cmd","truste.com","visualrevenue.com","lingospot.com","itunes.apple.com","outbrain.com","linkedin.com","taboola.com","gravity.com","nrelate.com","zedo.com","wallstcheatsheet.com","disqus.com","addthis.com","nr_related_placeholder"]
network_word=imonomy.page.WordChecker(please_test,true,false,false);var unit_id="988";if(network_word==false){unit_id="989";network_word="";}
var unit_code_url=imonomy.utils.protocol()+'//srv.imonomy.com/internal/reporter?v=2&subid='+network_word+'&format=1&ai='+unit_id+"&ctxu="+escape(document.location);imonomy.utils.issue_unit_request(unit_code_url,undefined,true);}catch(e){}},should_track:null,trackServ_groups:{},trackServ:function(track_id,group,cid,sub_id,uid,is_locked,unit_format,tier,is_client,timetaken,is_trackable){if(imonomy.page.should_track==null){imonomy.page.should_track=true;}
if(!imonomy.page.should_track){return;}
try{not_first="false";if(group){if(group in imonomy.page.trackServ_groups&&!(imonomy.layer.monitor_url)){not_first="true";}else{imonomy.page.trackServ_groups[group]="1";}}
if(!cid){cid="";}
if(!sub_id){sub_id=imonomy.layer.get_sub_id();}
if(group=="shown"&&imonomy.settings.tracking_show_url&&imonomy.settings.tracking_show_url!=""){imonomy.utils.injectImage(imonomy.settings.tracking_show_url);}
if(!unit_format){unit_format='0';}
var unit_code_url=imonomy.utils.protocol()+'//srv.imonomy.com/internal/reporter?v=2&subid='+sub_id+'&format='+unit_format+'&ai='+track_id+"&ctxu="+escape(document.location)+'&fb='+not_first+"&cid="+cid+'&ab='+imonomy.ab_label+'&cbs='+Math.random();if(uid){unit_code_url=unit_code_url+"&uid="+uid;}
if(is_locked){unit_code_url=unit_code_url+"&is_locked="+is_locked;}
if(is_trackable){unit_code_url=unit_code_url+"&istrk="+is_trackable;}
if(is_client){unit_code_url=unit_code_url+"&is_client=true";}
if(tier!=undefined){unit_code_url=unit_code_url+"&tier="+tier}
imonomy.utils.issue_unit_request(unit_code_url,undefined,true,timetaken);}catch(e){}},WordChecker:function(check_list,return_word,return_count,should_split,check_top,doc){var doc_to_use=document;if(doc){doc_to_use=doc;}
try{if(typeof(check_list)=='undefined'||check_list==null){if(return_word){return "check_list-na";}else{return false;}}
var counter=0;var splited_blacklist=check_list;if(should_split){var splited_blacklist=check_list.split(",");}
var full_html=doc_to_use.documentElement.outerHTML||new XMLSerializer().serializeToString(doc_to_use.documentElement);for(var i=0;i<splited_blacklist.length;i++){var str=new RegExp("\\b"+splited_blacklist[i].replace("(","\\(").replace(")","\\)").replace(".","\\.").replace("+","\\+")+"\\b","i");if(str.test(full_html)){if(return_count){counter=counter+1;}else{if(return_word){return splited_blacklist[i];}else{return true;}}}}
if(return_count){return counter;}else{if(check_top&window.top!=window){return imonomy.page.WordChecker(check_list,return_word,return_count,should_split,false,window.top.document)}else{if(return_word){return "na";}else{return false;}}}}catch(e){if(return_count){return 1000;}else{if(return_word){return "exception-w-"+e.message;;}else{return true;}}}},host_blacklisted:null,blacklisted:null,isContainsBlackListWord:function(return_word){try{if(imonomy.settings.blacklist){if(imonomy.page.host_blacklisted==null||return_word){var location_black_words=["xxx","porn","fuck","xvideo","sex","shemale","gangbang","blowjob","femdom","cougar","lesbian","boner","tranny","nude","bitch","pussy","swingers","hentai","horny","playboy","gloryhole","cowgirl","gonzo","dogging","naked","teen"];var host=document.location+"";for(var i=0;i<location_black_words.length;i++){var str=new RegExp(location_black_words[i].replace("(","\\(").replace(".","\\.").replace("+","\\+"),"i");if(str.test(host)){imonomy.page.host_blacklisted=true;if(return_word){return location_black_words[i]+"(d)";}else{return true;}}}
var host_black_words=['xxx','porn','fuck','xvideo','sex','shemale','gangbang','blowjob','femdom','cougar','lesbian','boner','tranny','nude','bitch','pussy','swingers','hentai','horny','playboy','gloryhole','cowgirl','gonzo','dogging','naked','xx','69','teen','slut','gay','erotic','fetish','adult','escort','asain','erotik','spank','bbw','swing','erohtica','cock','busty','bdsm','babes','stripteas','naughty','seks','dominio','milf','stripper','putas','bang','cheating','hookup','amateur','nipple','panties','bondage','suck','hairy','boobs','whore','nudist'];var host=document.location.host;if(host&&host!=null){for(var i=0;i<host_black_words.length;i++){var str=new RegExp(host_black_words[i].replace("(","\\(").replace(".","\\.").replace("+","\\+"),"i");if(str.test(host)){imonomy.page.host_blacklisted=true;if(return_word){return host_black_words[i]+"(h)";}else{return true;}}}}}
if(imonomy.page.host_blacklisted&&!return_word)
return imonomy.page.host_blacklisted;if(document.readyState==="complete"&&!return_word){if(imonomy.page.blacklisted==null){imonomy.page.blacklisted=imonomy.page.WordChecker(imonomy.settings.blacklist,false,false,true,true);}
return imonomy.page.blacklisted;}
return imonomy.page.WordChecker(imonomy.settings.blacklist,return_word,false,true,true);}else{return true;}
if(return_word){return "blacklist-na";}else{return false;}}catch(e){if(return_word){return "exception-b-"+e.message;}else{return true;}}},getElementsByClassNameIEWay:function(className,checkdoc){if(checkdoc.all){var allElements=checkdoc.all;}else{var allElements=checkdoc.getElementsByTagName("*");}
var foundElements=[];for(var i=0;i<allElements.length;i++){if(allElements[i].className==className){foundElements[foundElements.length]=allElements[i];}}
return foundElements;},getElementsByClassName:function(className,checkdoc){if(typeof(checkdoc)=='undefined'){checkdoc=document;}
if(checkdoc.getElementsByClassName){try{return checkdoc.getElementsByClassName(className);}catch(e){return imonomy.page.getElementsByClassNameIEWay(className,checkdoc)}}else{return imonomy.page.getElementsByClassNameIEWay(className,checkdoc)}},title:function(){if(imonomy.site){var site_title=imonomy.site.title();if(site_title!=null){return site_title;}}
var title_element=imonomy.page.getElementsByClassName('firstHeading');if(title_element!=null&&typeof(title_element)!='undefined'&&title_element.length>0){title_element=title_element[0].getElementsByTagName("span");if(title_element!=null&&typeof(title_element)!='undefined'&&title_element.length>0){var title=title_element[0].innerHTML.toLowerCase();title=title.replace("file:","");return title;}}
return document.title;},domain:function(){var domain=document.location.host;domain=domain.replace("www.","")
return domain},checkValidContentToUse:function(content){wordscount=content.split(" ").length;if(wordscount>3){return true;}
else if(wordscount==1){return false;}
else{content=content.toLowerCase()
if(content.indexOf("comment")>-1){return false;}
if(content.indexOf("share")>-1){return false;}
if(content.indexOf("most ")>-1){return false;}
if(content.indexOf("popular ")>-1){return false;}
if(content.indexOf("more from")>-1){return false;}
if(content.indexOf("trending")>-1){return false;}
if(content.indexOf(" now")>-1){return false;}
if(content.indexOf("today")>-1){return false;}
return true;}},page_content:null,content:function(){if(imonomy.page.page_content==null){var content=""
var content_element=null;var elements=document.getElementsByTagName('h1');if(elements.length==1){for(var i=0;i<elements.length;++i){var new_contnet=imonomy.page.getText(elements[i]);wordscount=new_contnet.split(" ").length;if(wordscount>3){if(imonomy.page.checkValidContentToUse(new_contnet)){content=content+" "+new_contnet;}}}}
var elements=document.getElementsByTagName('h2');if(elements.length<5){for(var i=0;i<elements.length;++i){var new_contnet=imonomy.page.getText(elements[i]);if(imonomy.page.checkValidContentToUse(new_contnet)){content=content+" "+new_contnet;}}}
elements=document.getElementsByTagName('h3');if(elements.length<5){for(var i=0;i<elements.length;++i){var new_contnet=imonomy.page.getText(elements[i]);if(imonomy.page.checkValidContentToUse(new_contnet)){content=content+" "+new_contnet;}}}
if(content.length<10){elements=document.getElementsByTagName('b');if(elements.length<8){for(var i=0;i<elements.length;++i){var new_contnet=imonomy.page.getText(elements[i]);if(imonomy.page.checkValidContentToUse(new_contnet)){content=content+" "+new_contnet;}}}}
if(content.length<10){elements=document.getElementsByTagName('strong');if(elements.length<8){for(var i=0;i<elements.length;++i){var new_contnet=imonomy.page.getText(elements[i]);if(imonomy.page.checkValidContentToUse(new_contnet)){content=content+" "+new_contnet;}}}}
if(content.length<4){return content;}else{imonomy.page.page_content=content.truncate(200);}}
return imonomy.page.page_content;},metadata:function(name){var category=null;g_metadata=document.getElementsByTagName("meta");var len=g_metadata.length;for(var i=0;i<len;i++){if(g_metadata[i].name.toLowerCase()==name){category=g_metadata[i].content.toLowerCase();break;}}
return category},getText:function(element){var text=[];var self=arguments.callee;var el,els=element.childNodes;var excluded={'noscript':'noscript','script':'script','select':'select','option':'option','textarea':'textarea','style':'style'};var bytes=0;for(var i=0,iLen=els.length;i<iLen;i++){el=els[i];if(el.nodeType==1&&!(el.tagName.toLowerCase()in excluded)){if(el.nodeName in{'#text':'','A':'','P':'','SPAN':'','OL':'','UL':'','LI':'','EM':'','B':'','STRONG':'','FONT':'','H1':'','H2':'','H3':'','H4':'','H5':'','CENTER':'','BLOCKQUOTE':'','I':''}){text.push(self(el));}}else if(el.nodeType==3){text.push(el.data.replace(/\n/g," "));}else{}}
return text.join('');},search_term:function(){var host=imonomy.page.domain();if(host.indexOf("search.")>-1||(document.location+"").indexOf("/search")>-1||(document.location+"").indexOf("?q=")>-1||(document.location+"").indexOf("&q=")>-1){var q_val=imonomy.page.getParameterByName("q");if(q_val!=null){q_val=q_val.trim();if(q_val.length>0){return q_val;}}
var input_element=document.getElementsByTagName("input");if(input_element!=null&&typeof(input_element)!='undefined'&&input_element.length>0){for(var i=0;i<input_element.length;i++){if(typeof(input_element[i])!='undefined'){if((input_element[i].type=="text"||input_element[i].type=="search")){var search_term=input_element[i].value;if(search_term.length>0&&input_element[i].placeholder!=search_term&&input_element[i].defaultValue!=search_term){search_term=search_term.trim();if(search_term.length>0){return search_term;}}}}}}}
return null;},keywords:function(){if(imonomy.utils.keywords_words!=null){return imonomy.utils.keywords_words;}
var category=null;var start_i=0;var category_element=null;var auto_select=true;var keywords=new Array();var host=imonomy.page.domain();if(host.indexOf("youtube.com")>-1){imonomy.utils.keywords_words_usemeta=false;}
var search_term=imonomy.page.search_term();if(search_term!=null){if(search_term.split(" ").length<4){keywords[keywords.length]=search_term;}
search_term=search_term.replace(/\./g," ").replace(/\;/g," ").replace(/\:/g," ").replace(/\,/g," ").replace(/\?/g," ").replace(/\-/g," ").replace(/\(/g," ").replace(/\)/g," ").replace(/\"/g," ")
var search_term_words=search_term.split(" ");var stop_words=imonomy.stop_words;for(var j=0;j<search_term_words.length;j++){if(stop_words&&stop_words.indexOf(search_term_words[j])<0){keywords[keywords.length]=search_term;}}
return keywords.join(", ");}
else if(host.indexOf("wikipedia")>-1){category_element=imonomy.page.getElementsByClassName('firstHeading');if(category_element!=null&&typeof(category_element)!='undefined'&&category_element.length>0){category_element=category_element[0].getElementsByTagName("span");if(category_element!=null&&typeof(category_element)!='undefined'&&category_element.length>0){keywords[keywords.length]=imonomy.page.getText(category_element[0]).toLowerCase().replace("file:","").replace(":"," ");}}}
else if(host.indexOf("hotels.com")>-1){hotel_container=imonomy.page.getElementsByClassName('rd_hotel_header_container');if(hotel_container!=null&&typeof(hotel_container)!='undefined'&&hotel_container.length>0){category_element=hotel_container[0].getElementsByTagName("h1");if(category_element!=null&&typeof(category_element)!='undefined'&&category_element.length>0){keywords[keywords.length]=category_element[0].innerHTML.toLowerCase().replace(/(\r\n|\n|\r)/gm,"").replace(/\s+/g," ");}}}
else if(host.indexOf("pinterest.com")>-1){var h1_elements=document.getElementsByTagName("h1");if(h1_elements!=null&&typeof(h1_elements)!='undefined'&&h1_elements.length>0){for(var i=start_i;i<h1_elements.length;i++){if(typeof(h1_elements[i])!='undefined'){var curr_word=h1_elements[i].innerHTML.toLowerCase();if(keywords.indexOf(curr_word)<0){keywords[keywords.length]=curr_word;}}}}
var h3_elements=imonomy.page.getElementsByClassName('boardName');if(h3_elements!=null&&typeof(h3_elements)!='undefined'&&h3_elements.length>0){for(var i=start_i;i<h3_elements.length;i++){if(typeof(h3_elements[i])!='undefined'){var curr_word=h3_elements[i].innerHTML.toLowerCase();if(keywords.indexOf(curr_word)<0){keywords[keywords.length]=curr_word;}}}}}
else{var site_keywords=null;if(imonomy.site){site_keywords=imonomy.site.keywords();}
if(site_keywords!=null){for(var i=0;i<site_keywords.length;i++){var curr_word=site_keywords[i];keywords[keywords.length]=curr_word;}}else{if(category_element==null||typeof(category_element)=='undefined'||category_element.length==0){category_element=imonomy.page.getElementsByClassName('post-labels');if(category_element==null||typeof(category_element)=='undefined'||category_element.length==0){category_element=imonomy.page.getElementsByClassName('tags');if(category_element==null||typeof(category_element)=='undefined'||category_element.length==0){category_element=imonomy.page.getElementsByClassName('post-taglist');}}
if(category_element!=null&&typeof(category_element)!='undefined'&&category_element.length>0){category_element=category_element[0].getElementsByTagName("a");}}
if(category_element!=null&&typeof(category_element)!='undefined'&&category_element.length>0){for(var i=start_i;i<category_element.length;i++){if(typeof(category_element[i])!='undefined'){var curr_word=imonomy.page.getText(category_element[i]);if(keywords.indexOf(curr_word)<0){keywords[keywords.length]=curr_word;}}}}}}
var max_keywords=5;if(keywords.length<max_keywords){var text="";if(host.indexOf("wikipedia")>-1){var bodyContent=document.getElementById("bodyContent");if(bodyContent!=null&&typeof(bodyContent)!='undefined'){a_elements=bodyContent.getElementsByTagName("a");if(a_elements!=null&&typeof(a_elements)!='undefined'&&a_elements.length>0){for(var i=start_i;i<a_elements.length;i++){if(typeof(a_elements[i])!='undefined'){if(a_elements[i].href&&a_elements[i].href.indexOf("#")==-1&&a_elements[i].href.indexOf("?")==-1&&a_elements[i].href.replace("://","").indexOf(":")==-1&&a_elements[i].href.indexOf("index.php")==-1&&a_elements[i].href.indexOf(document.location)==-1){if(a_elements[i].innerHTML.indexOf("<")==-1){text=text+" "+a_elements[i].innerHTML.toLowerCase();}}}}}}}else if(host.indexOf("pinterest.com")>-1){a_elements=imonomy.page.getElementsByClassName("pinDescription");if(a_elements!=null&&typeof(a_elements)!='undefined'&&a_elements.length>0){for(var i=start_i;i<a_elements.length;i++){if(typeof(a_elements[i])!='undefined'){text=text+" "+a_elements[i].firstChild.nodeValue.toLowerCase();}}}}else{var meata_keywords="";if(imonomy.utils.keywords_words_usemeta){meata_keywords=imonomy.page.metadata("keywords");}
var title=imonomy.page.title();var content=imonomy.page.content();var text=title+" "+content
if(meata_keywords!=null){text=text+" "+meata_keywords;}
var meata_description=null;if(imonomy.utils.keywords_words_usemeta){meata_description=imonomy.page.metadata("description");}
if(meata_description!=null){text=text+" "+meata_description;}}
text=text.replace(/\./g," ").replace(/\;/g," ").replace(/\n/g," ").replace(/\:/g," ").replace(/\,/g," ").replace(/\?/g," ").replace(/\-/g," ").replace(/\(/g," ").replace(/\)/g," ").replace(/\"/g," ")
text=text.toLowerCase();var words=text.split(" ");var stop_words=imonomy.stop_words;var start_pair=null;match_dict={}
for(var i=0;i<words.length;i++){var word=words[i];word=word.trim();if(stop_words&&stop_words.indexOf(word)<0){if(start_pair!=null){var pair=start_pair+" "+word
if(pair in match_dict){match_dict[pair]+=1}
else{match_dict[pair]=1.1}}
if(word in match_dict){match_dict[word]+=1}
else{match_dict[word]=1}
start_pair=word}else{start_pair=null;}}
function sortObject(obj){var arr=[];for(var prop in obj){if(obj.hasOwnProperty(prop)){arr.push({'key':prop,'value':obj[prop]});}}
arr.sort(function(a,b){return b.value-a.value;});return arr;}
match_dict=sortObject(match_dict);var words_check_count=max_keywords-keywords.length;if(words_check_count>match_dict.length)
words_check_count=match_dict.length;for(var i=0;i<words_check_count;i++){var curr_word=match_dict[i].key;if(curr_word.length>1&&keywords.indexOf(curr_word)<0){keywords[keywords.length]=curr_word;}}}
imonomy.utils.keywords_words=keywords.join(", ")
return imonomy.utils.keywords_words;}}
imonomy.image={max_size:850,share_unit_sizes:["300_250","300_239"],mouse_enter_sender:null,mouse_enter_timeout:null,first_hover:true,current_sender:null,last_current_sender:null,monitor_objects_ts:[],share_unit_networks_domain:["googlesyndication.com","doubleclick.net","chitika.net","adbrite.com","advertising.com","247realmedia.com","commission-junction.com","kanoodle.com","openx.com","valueclick.com","content.yieldmanager.edgesuite.net","2mdn.net","mediaplex.com","serving-sys.com","BannerSource.asp","fmpub.net","adnxs.com","fastclick.net","buysellads.com","solvemedia.com","linkwi.se","atwola.com","shareasale.com","turn.com","2mdn.net","singlehop.com","tqlkg.com","glam.com","ads.yldmgrimg.net","twitter.com","cdn.contentclick","triplelift.com","content.ad","adblade.com",".fbcdn.net"],share_unit_networks_keywords:["\/linkshare\/","\/adserv\/","\/viewad\/","\/pagead\/","\/banners\/","bannerid=","utm_source="],share_unit_networks_ad_size:[[468,60],[728,90],[336,280],[300,250],[250,250],[728,210],[720,300],[500,350],[550,480],[300,600]],share_offers_networks:["mgid.com","outbrain.com","engageya","contentclick"],gallery:0.5,get_top:function(obj){var top=0,left=0;while(obj){top=top+parseInt(obj.offsetTop);left=left+parseInt(obj.offsetLeft)
obj=obj.offsetParent;}
return{top:top,left:left}},_findPos:function(obj){var curleft=curtop=0;var cur_height=cur_width=0;var chage_left=0;var rectObject=null;if(obj.getBoundingClientRectRigth){rectObject=obj.getBoundingClientRectRigth();}else{rectObject=obj.getBoundingClientRect();}
var viewportElement=document.documentElement;var docBody=document.body;var style_body=(docBody.currentStyle||window.getComputedStyle(docBody,null));curleft=rectObject.left+(window.pageXOffset||viewportElement.scrollLeft||docBody.scrollLeft||0);if(imonomy.settings.img_position_fixed){var current=obj;while(current.parentNode&&current.tagName!="HEADER"&&current.tagName!="BODY"){current=current.parentNode
if(window.getComputedStyle(current,"position").position=="fixed"){curtop=rectObject.top;break;}else{curtop=rectObject.top+(window.pageYOffset||viewportElement.scrollTop||docBody.scrollTop||0);}}}else{curtop=rectObject.top+(window.pageYOffset||viewportElement.scrollTop||docBody.scrollTop||0);}
if(style_body&&style_body.position=="relative"&&window.screen.height+10>docBody.clientHeight){if(!imonomy.utils.isIE()&&(imonomy.utils.browser.type()!="Firefox")){viewportElement=document.body;if(!viewportElement.scrollTop){viewportElement=document.documentElement;}
curtop=curtop-(docBody.getBoundingClientRectRigth().top+viewportElement.scrollTop);curleft=curleft-(docBody.getBoundingClientRectRigth().left+viewportElement.scrollLeft);}else{viewportElement=document.documentElement;curtop=curtop-(docBody.getBoundingClientRectRigth().top+viewportElement.scrollTop);curleft=curleft-(docBody.getBoundingClientRectRigth().left+viewportElement.scrollLeft);}}
if(imonomy.settings.use_alternative_top_left){if(!obj.curtop&&!obj.curleft){obj.curtop=curtop;obj.curleft=curleft;}if(obj.curtop!=curtop){curtop=imonomy.image.get_top(obj).top;}if(obj.curleft!=curleft){curleft=imonomy.image.get_top(obj).left;}}
cur_width=rectObject.width;cur_height=rectObject.height;return{top:curtop,left:curleft,width:cur_width,height:cur_height}},checkParentsFloat:function(img){var floating="null";while(img&&img!=img.parentElement&&img.tagName!="BODY"){floating=window.getComputedStyle(img,"float").float;if(floating!="null"){return false};img=img.parentElement;}
return true;},_getImgSize:function(img,ignore_visibility_forshow){var pos=imonomy.image._findPos(img),width=img.clientWidth,height=img.clientHeight,left=0,top=0,border_top=0,border_left=0,border_bottom=0,border_rigth=0,isOverflowSetToHidden=false,style=(img.currentStyle||window.getComputedStyle(img,null));if(!isNaN(parseInt(style.border))){border_top=parseInt(style.border);border_left=parseInt(style.border);}
if(!isNaN(parseInt(style.borderTop))){border_top=parseInt(style.borderTop);}else if(!isNaN(parseInt(style.borderTopWidth))){border_top=parseInt(style.borderTopWidth);}
if(!isNaN(parseInt(style.borderLeft))){border_left=parseInt(style.borderLeft);}else if(!isNaN(parseInt(style.borderLeftWidth))){border_left=parseInt(style.borderLeftWidth);}
if(!isNaN(parseInt(style.borderRigth))){border_rigth=parseInt(style.borderRigth);}else if(!isNaN(parseInt(style.borderRightWidth))){border_rigth=parseInt(style.borderRightWidth);}
if(!isNaN(parseInt(style.borderBottom))){border_bottom=parseInt(style.borderBottom);}else if(!isNaN(parseInt(style.borderBottomWidth))){border_bottom=parseInt(style.borderBottomWidth);}
var padding_left=0;if(!isNaN(parseInt(style.paddingLeft))){padding_left=parseInt(style.paddingLeft);border_left+=padding_left;}
var padding_right=0;if(!isNaN(parseInt(style.paddingRight))){padding_right=parseInt(style.paddingRight);}
var padding_top=0;if(!isNaN(parseInt(style.paddingTop))){padding_top=parseInt(style.paddingTop);border_top+=padding_top;}
var padding_bottom=0;if(!isNaN(parseInt(style.paddingBottom))){padding_bottom=parseInt(style.paddingBottom);}
if(img.style.left){left=img.style.left;}
if(img.style.top){top=img.style.top;}
var shown=true,parent=img,overflow_top=pos.top,overflow_left=pos.left,offset=0,img_rect=img.getBoundingClientRectRigth?img.getBoundingClientRectRigth():0,img_x=img_rect?img_rect.left:undefined,img_y=img_rect?img_rect.top:undefined,img_offsetWidth=img.offsetWidth,parent_rect=parent.getBoundingClientRectRigth?parent.getBoundingClientRectRigth():0,max_width_parent=parent.clientWidth,parent_x=parent_rect?parent_rect.left:0,parent_y=parent_rect?parent_rect.top:0,visible_width=parent.clientWidth,visible_height=parent.clientHeight,VISIBLE_PADDING=2,offset=parent.offsetLeft,gallery=imonomy.image.gallery;if(pos&&pos.height>0&&visible_height>pos.height){visible_height=pos.height;}
if(pos&&pos.width>0&&visible_width>pos.width){visible_width=pos.width;}
while(parent&&parent!=parent.parentElement){if(imonomy.settings.ignore_body&&parent.tagName!="BODY"){break;}
if(parent.style.opacity=="0"){shown=false;}
if(parent&&window.getComputedStyle){var alignText="";var overflow="";var computed_style=window.getComputedStyle(parent,null);if(computed_style!=null){if(parent.parentElement!=null){if(parent.parentElement.tagName=="BODY"&&parent.offsetTop<document.body.offsetTop&&parent.tagName!="FORM"){shown=false;}}
overflow=window.getComputedStyle(parent,null).getPropertyValue("overflow");if(overflow=="hidden"){var fix_height=false;var parent_computed_style=window.getComputedStyle(parent,null);alignText=parent_computed_style.getPropertyValue("text-align");float_parent=window.getComputedStyle(parent,"float").float;if(alignText=='center'){pos=imonomy.image._findPos(parent);}
parent_rect=parent.getBoundingClientRectRigth?parent.getBoundingClientRectRigth():0
parent_x=parent_rect.left;parent_y=parent_rect.top;isOverflowSetToHidden=true;if(parent.clientWidth>0&&parent.clientWidth>max_width_parent){max_width_parent=parent.clientWidth;}
if(parent.clientWidth>0&&parent.clientWidth<visible_width){visible_width=parent.clientWidth;pos=imonomy.image._findPos(parent);overflow_left=pos.left;if(!isNaN(parseInt(parent_computed_style.borderLeft))){border_left+=parseInt(parent_computed_style.borderLeft);}else if(!isNaN(parseInt(parent_computed_style.borderLeftWidth))){border_left+=parseInt(parent_computed_style.borderLeftWidth);}}
if(parent.clientHeight>0&&(parent.clientHeight+1)<visible_height){fix_height=visible_height-parent.clientHeight;visible_height=parent.clientHeight;pos=imonomy.image._findPos(parent);overflow_top=pos.top;if(!isNaN(parseInt(parent_computed_style.borderTop))){border_top+=parseInt(parent_computed_style.borderTop);}else if(!isNaN(parseInt(parent_computed_style.borderTopWidth))){border_top+=parseInt(parent_computed_style.borderTopWidth);}}
if(offset+visible_width<0||(offset>=parent.offsetWidth&&imonomy.image.checkParentsFloat(img))){shown=false;}
if((parent_y==img_y||parent_y+VISIBLE_PADDING>img_y||parent_y-VISIBLE_PADDING<img_y)&&(parent_x+(max_width_parent)<=img_x&&img_x>parent_x)){shown=false;}
if((parent_y==img_y||parent_y+VISIBLE_PADDING>img_y||parent_y-VISIBLE_PADDING<img_y)&&(img_x<=parent_x-(max_width_parent*gallery))){shown=false;}
if(offset+img_offsetWidth-VISIBLE_PADDING<parent.scrollLeft){shown=false;}}
if(parent.tagName.toLowerCase()!="html"&&shown&&parent.parentNode&&(window.getComputedStyle(parent.parentNode).visibility!="visible"||window.getComputedStyle(parent.parentNode).opacity!="1")){shown=false;}}}
if(parent.offsetParent===parent.parentElement&&parent.parentElement!=null){offset=offset+parent.parentElement.offsetLeft;}
parent=parent.parentElement;}
if(offset<0-(visible_width/2)){shown=false;}
if(visible_width>img.clientWidth){visible_width=img.clientWidth;}
if(visible_height>img.clientHeight){visible_height=img.clientHeight;}
if((padding_left>0||padding_right>0)&&visible_width>width-(padding_left+padding_right)&&img.tagName=='IMG'){visible_width=width-(padding_left+padding_right);}
if((padding_top>0||padding_bottom>0)&&visible_height>height-(padding_top+padding_bottom)){visible_height=height-(padding_top+padding_bottom);}
if(fix_height){if(fix_height<0){visible_height=visible_height+(fix_height);}else{visible_height=visible_height-fix_height;}}
var actual_left=overflow_left;var actual_top=overflow_top;if(padding_bottom>0){actual_top+=padding_bottom;}
if(!ignore_visibility_forshow&&window.getComputedStylePropertyValue(img,'visibility')=='hidden'){shown=false;}
if(!ignore_visibility_forshow&&visible_width==0&&visible_height==0){shown=false;}
if(left>visible_width){shown=false;}
if(top>visible_height){shown=false;}
var scroll_left=imonomy.utils.getScrollLeft();var scroll_top=imonomy.utils.getScrollTop();var image_portion=visible_height-150;if(image_portion<0)image_portion=visible_height*0.7
var element_position=window.getElementPosition(img)
if(element_position!='fixed'){if(actual_top<=(scroll_top+imonomy.utils.getHeight())&&(actual_top+image_portion)>=scroll_top){}else{shown=false;}}
if(visible_width>img.width||pos.width>img.width){if(border_left>0||border_rigth>0){actual_left=actual_left+border_left;}}
if(visible_height>img.height||pos.height>img.height){if(border_top>0&&border_top!=padding_bottom){actual_top=actual_top+border_top;}}
return[visible_width,visible_height,actual_top,actual_left,shown];},getImageSrc:function(image){var src=image.getAttribute('data-lazy-src');if(typeof(src)=='undefined'||src==null)
src=image.getAttribute('ImageHolder');if(typeof(src)=='undefined'||src==null)
src=image.getAttribute('src');if(typeof(src)=='undefined'||src==null)
src=image.src;return src},mouseEnter:function(sender){clearTimeout(imonomy.image.mouse_enter_timeout);if(imonomy.image.last_current_sender!=sender){if(imonomy.preload){var value=imonomy.preload.getCookie("imonomy_lpt");if(value!=null){try{var splited_value=value.split('$vi$')
if(splited_value.length>1){if(splited_value[1]==document.location){var d=new Date();var n=d.getTime();if((n-parseInt(splited_value[1]))<imonomy.settings.lock_show_between_time){return false;}}}}
catch(e){}}}}
if(imonomy.layer.current_mode=="hover"&&imonomy.layer.visible&&imonomy.image.mouse_enter_sender!=sender&&(imonomy.image.current_sender==null||imonomy.image.current_sender!=sender)){if(imonomy.layer.scroll_in_action){return;}
imonomy.image.mouse_enter_sender=sender;imonomy.layer.hideInternal();imonomy.image.mouse_enter_timeout=setTimeout(function(){if(imonomy.image.mouse_enter_sender!=null){imonomy.layer.show(imonomy.image.mouse_enter_sender);}},80)}else{imonomy.image.mouse_enter_sender=sender;if(imonomy.image.first_hover){imonomy.layer.show(sender);imonomy.image.first_hover=false;}else{imonomy.image.mouse_enter_timeout=setTimeout(function(){if(imonomy.image.mouse_enter_sender!=null){imonomy.layer.show(imonomy.image.mouse_enter_sender);}},40);}}},mouseLeave:function(e_m){if((typeof(e_m)!='undefined')&&((typeof(e_m.toElement)!='undefined')||typeof(e_m.relatedTarget)!='undefined')){if(this&&this.getBoundingClientRectRigth){var rect=this.getBoundingClientRectRigth();if(typeof(rect)!="undefined"){if(e_m.clientX>rect.left&&e_m.clientX<rect.right&&e_m.clientY>rect.top&&e_m.clientY<rect.bottom){var image_element=e_m.toElement||e_m.relatedTarget;imonomy.utils.unbind('mouseover',null,image_element);imonomy.utils.unbind('mouseout',null,image_element);imonomy.utils.unbind('mouseenter',null,image_element);imonomy.utils.unbind('mouseleave',null,image_element);imonomy.utils.bind('mouseover',imonomy.layer.mouseEnter,image_element);imonomy.utils.bind('mouseout',imonomy.layer.mouseLeave,image_element);imonomy.utils.bind('mouseenter',imonomy.layer.mouseEnter,image_element);imonomy.utils.bind('mouseleave',imonomy.layer.mouseLeave,image_element);return;}}}}
imonomy.image.mouse_enter_sender=null;clearTimeout(imonomy.image.mouse_enter_timeout);if(imonomy.layer.current_mode=="hover"){imonomy.layer.mouseLeave(e_m);}}}
imonomy.global_settings={sid:'14567609857'}
imonomy.static_settings={quality_words:{'g2.gumgum.com':10,'widgets.kiosked':10,'p.vibrant.co':10,'criteo_q.push':11,'static.criteo.net':11,'googletagservices.com/doubleclick/dartiframe.html':12,'google_unit_client':12,'googletag.cmd':12,'truste.com':13,'visualrevenue.com':13,'lingospot.com':13,'itunes.apple.com':14,'outbrain.com':15,'linkedin.com':13,'taboola.com':15,'gravity.com':15,'nrelate.com':15,'zedo.com':15,'wallstcheatsheet.com':15,'nr_related_placeholder':15,'cdn.adshexa.com/show_ads':21,'pagead2.googlesyndication.com':22,'smartadserver.com/call':23,'clkrev.com/adServe':25,'googleads.g.doubleclick.net':26,'google_ad_client':27,'vietnamnetad.vn':28,'pubads.g.doubleclick.net':29,'googlesyndication.com':30,'ads.rubiconproject.com':31,'cas.criteo.com/delivery':32,'webspectator.com':33,'/tag.contextweb.com':34,'ads.pubmatic.com':35,'show_ads_epmads.js':36,'s.atemda.com/Admeta.js':37,'ads.mediafem.com':38,'openx.net/w':39,'adfarm.mediaplex.com/ad':40,'jsc.mgid.com':41,'optimizedby.brealtime.com/':42,'ib.adnxs.com/ttj':43,'scripts.chitika.net/':44,'clkrev.com/adServe':45,'resources.infolinks.com/js':46,'kona.kontera.com':47,'astatic.virgul.com':48,'adspirit.de/adscript':49,'adspaces.ero-advertising.com':50,'ads.bumq.com':51,'static.iias.eu':52,'static.plista.com/pictureads':53,'scripts.kiosked.com':54,'config.seedtag.com':55,'cdn.insidepic.com':56,'prebid':57,'firstimpression.io':58},comp_words:'g2.gumgum.com,widgets.kiosked,p.vibrant.co,criteo_q.push,static.criteo.net',monitor_page_scope:false,force_image_selection:false,invideo_players_keywords:["acudeoplayer","videoPlayer","jwplayer","flowplayer","tremormedia.com","player.swf","video.swf"],layer_style:'	img.imonomy_indic{    height: 35px;    position: absolute;    left: 5px;    top: 5px;    width: auto;    z-index: 999;    background: none repeat scroll 0 0 transparent !important;    border: 0 none !important;    box-shadow: none !important; }\
	.indic_hover_only { display:none }\
	.indic_hover_only: hover { display:block }\
	.imonomy_layer { display: none;  position: absolute; z-index: 2147483647; }\
	.imonomy_image_container{    float: left;	margin: 0 10px 0px 0 !important;    height: auto;    overflow: hidden;} \
	.ab_imonomy_image_container{    float: right !important; 	margin: 0 !important;    } \
	.right_imonomy_image_container{    float: right !important; 	margin: 0 0 0 10px !important; } \
	.ab_imonomy_image_wrap{    float: left;	margin: 0 10px 2px 0 !important;    max-height: 200px;    height: auto;    overflow: hidden;    position: relative;}\
	.ab_imonomy_image_wrap img {	padding: 0 !important;	border: none !important; margin: 0 !important; }\
	.imonomy_image_credit { 	width: 100%;	z-index: 999;	margin-top: 3px;}\
	.imonomy_image_credit a:hover{    color: #ccc;    display: block;    font-size: 11px;    text-align: center;    text-decoration: none;    float:left;    padding-right: 10px;       text-shadow: 1px 1px 1px #e1e1e1;}\
	.imonomy_image_credit a{    color: #ccc;    display: block;    font-size: 10px;    text-align: center;    text-decoration: none;    float:left;    padding-right: 10px;      text-shadow: 1px 1px 1px #e1e1e1;    line-height: 10px;}\
	.imonomy_layer_frame{ margin-left: 5px; left: 0;float:left;}\
	.imonomy_layer_window{			position: absolute;			z-index: 1002;	} \
	.imonomy_layer_window_body{			border: 1px solid #CCCDCF !important;			border-radius: 5px 5px 5px 5px !important;	background: #fff !important; overflow: hidden !important;}\
	.imonomy_layer_header{			border-bottom: 1px solid #EEEEEE !important;			color: #777777 !important;			height: 26px !important;			padding: 0 6px 0px 13px !important;	font-weight: bold !important; font-size: 12px !important;}\
	.imonomy_layer_header_btn{	float: right;	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAfCAYAAAClDZ5ZAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41Ljg3O4BdAAAJW0lEQVRYR8VYe0xb5xVPmm3sUbWp1GnppG3aP9OkSV02tZsiZdn6xzLtn057RGrXJSEPWLKEqas0dQhtQAiPEZ6GUF4mNsY8rm2wjXnYGBsb8wghIYEAgZCyqc02FOxEmRSVrPjsd26/e3dt7Jh/piAd8fm87u+c75zvfufu2JHgLzc3d8+f8/N/wIT1lxPpPImXk5PzFdgdAO3Pzs7+4nbtDQZDmtFoPNLa2ro73oZ5LGOdlP4AfF/NxbqAZ8gbvTE7Szdm58g77CPwQgwslQPY/6TuvYYrPv8Izc7N0fUbszTo9mxW63Qe2H/3SfYAuBNg3zWZTJugawD9kqLPa+axjHVYN6mv3Pz8U339Ax+HIxF68OBBDEUi92VA0DmbzEHeufM5wz5f9P79+1vs19fDZHc4N/6Sl/dWMnsAfA1AH4EIa7der/+Mostr5rGMdVg3oR9k8ofOXtfHd//xT1JofmGRbs4vqL+Z7+rvj0L3x/FOcnPP/WpoeDhGV+tLWVtt3RuJdgbA9gDgvAhiFTvw9fhnMA96qyKYebbZEoyupm769sodWrmzKlN9fRMdO3ZSppqaOpW/cud9qq2rm9c6OHTo0K6Gxqa/K7bj45N09dqMajOm+b20vELllZVerX1LS8sugJJEEI+xfv0Ju/Y65I+FrsS2qm5RWdk3bD124h1gmrw8RcePZ9CtpSVaXr5NGRmnKDQ2ocp7HE4qLC19WXFQUFx8ACWpyq3WbsrIPEWjoTFifnr6CfKPBFR5R5cULa2tVbMJYGdBUa5/ZL0Y4J5JFgjLWEf0SpRtVd2SkpJfDHqGkMXrMl2ZvkZOp0teT0xOUWbmaQqOjqnyIa+PSsvK0hUHWL8zEgiqcj4gOjq66OTJ38pBeKF/beaGKu/t66fcggL54ACofQATERkOoIm/kOpAYR3YBIRNhH3INhXV1W+5kDkGraWODglBnKKqKh1dnppWZQNuD+lqa9VMlFdWZ3uH/TG23XYHHTlyTE4CJ0nr1+7oJe5JfjYAdYma5904mCoIzSl2UJxufDB0yXyDoe2AGRkMjIZiqFnfQrW1dXKpaWWdkoWamw3qQxsamt+wdveoOigdeSfc7iEymzvoxIlMcvUNqHKjyUx2u/07mh0Ji+yOI5jnUwXDOgA/LmzC6o4sLy+nNTQ2Pxj2jZCW+vsHiSmeX9/Y9O+1tbVnlQfOzs5+qaGpeUPRMwEojmryoS+4JK1WG1ltPbIfLwgHw10iUvsAoDJFdrnmdaD/NXBcVCxjHejLPcW2MSqdkpTfhuy5h4ZVcqGWcSTH8MwdndQuSaXxWTOZzY2dklXW9fkD5EFfKL647DgA/m1obSObzfYHrX19fT2DM4gMc4kdSbYr4q3PL0wuKQPbxugiQ2koiZAJwQygJBJRW3snmdrMk9D9XPyDIpHI85eMxjkuq2T2HITFZhuE/ZaMo4FfALApAXANgL8d/wzmQWdN6EyxTcKA8YBne/v6TCiTaGtbO1m77cTHssncTk3oF4fL1QmdpDX88OHDF+12Z29js57a2jtg64CPHuKeAG9zcHCwHvaffcI7Yi9AKv0yA+DPaZr7OQQxIw6GMNZ7U/XSDmT35ZFgsADvCwuTPxAoxLVDbs7t/K2vr39/2O//q93hsDocTikYCuUiyG9uxxYAj4I+Alm0GRc7ZhGyo9vx9VR1uJmxE/vx/9PxQJgnZEkPg6cK/v/2cFzqngG9wjdVXAZ/g5fXq8zb7gP57sXjAOwPw/7XsOV6Tn7t1jj2+/1poVDoyOjo6O745zGPZayTEgsA/LKsoup9Q6uJJJz/THzalFdW/Q3A3kzlADonKqt1d7nB2bbLYqMWQytdKK+4Bd8/fZK91+vdCbDvjo2NbQLwNazVeYTXzGMZ67BuUl+5+QV5HED/oCchtbaZCTNHcRIHOwsKC9/jIzqZfXOLIYp55p1kAAD0NQB9BCKs3T6fT51HeM08lrEO6yb0g2z9zGhqw73IqxIfwa2m9hgeH8UolzfinfBQxu8QrX2itf6SgeeZLSCQ5T0AOC+ArgLolnmEeZCvCp15ttkSTEWVbmkIb2CF8s+dpzNnfk9ZWW9TXn6Bymd5RXXNqrZnsrKy0nS1dfcUW05AZ5dVtTEYuUy75d/8xi+rqLysBYBs7wJISezEY6yTziMsAz0WuhLbqr54tuCSGAmMytSH+xXPIFemr9IUbr2nT5+hXlefKm/v7KLz50u+pzgoKio6yP2g2NvwEjx69Dh14crS2KSXZ5v+AbcqN6LnLtTWfk2xR2bPAlxU9EYx1kkPFpaBioVulG3VQEpLyw/1uvppbGJSpvGJy/jgMCyvPd5h3F4zyI95Q5EzqLKKipOKgwvl5X9kPUU+gdtyH+5pHAzbTgi/ipyv+PniGg8g+wAsIjIcwO+U8wjrwCYgbCLsQ8ZSqdO9OYAG54FKS2bs0uHD6WREaUxfnVFlHlz+dBcv/k4JBGX5J/9IMMbWhPLineArvLO3L0bmxO7mFxbK8wgAdYma3wwGg9ueR1iXd0UE0xUIBF7aIUnSPi6H2bn5GOIS0OsN+ACxGMPnURd3nh8pgTTq9T/nwUyxt6DMeDd4juHrvDwloj8UeSdfLAcGvsX2YkfCAtA4fqecR1gHCRgXNmH2IZcY30b1LZf+tYT5fPn2ikrQpWAwFMNjHZw8EZ5hlEBWV1d349h+pNi6MRFOYtrk3/xBI8BliZmff9+6tUzNLS13tM0OUJkiu1Gsdch20isIy1gH+kpPyfOIx+P55COiw9H7Ns8fH3zwoUrXr1+naZSblscZ7u7uzo4/9jDPlPBHOVn3w7sxNloe76bLNZCutXe73QzOIDLML8Ok8wjLQEpJGdg2BgtPbLhyd3M2+WNaOByJIebxdyvJanUkmifEPIOhMEjr4a329+6t8zcx6nE6jYleZMj0CwhkSgSzhlLZMo8wD0GsiZ6aYpuEL0WA+RTO5SLJYtng7M4vLMjkGxkhZHwDgZRBR33bxjuB7PMDbncddP8TCI7SwiJ/4JvHdOgjSbI8wmiQox1x4+0Bci9AKv0yA+DqPMJryGdEEGHWTRiElomH7Zm9eTPTPTRU5vF4y+fm5k6Dt+0P2dD96szMzFnYVriHvBcWFxePg/diygd/0vxHAfIjkAVrNeO8Zh7LWGc7vp6qDkDuAu0HbZlHmCdkCQ+D/wJ2aik9gKS2UwAAAABJRU5ErkJggg==);	width:15px;	height:15px;	margin: 4px 0 0 0;}\
	.imonomy_layer_poweredby{			background-position: 0px 0px;		}\
	.imonomy_layer_poweredby:hover{			background-position: 0px -17px;		}\
	.imonomy_layer_close{			background-position: -16px 0px;		}\
	.imonomy_layer_close:hover{			background-position: -16px -16px;		}\
	.imonomy_arr {		    border-style: solid;		    height: 0;		    position: absolute;		    width: 0;		    z-index: 1000001;		}\
	.imonomy_right-top {		    bottom: 234px;		}\
	.imonomy_layer_loader{ margin: 100px; display:none; }\
	.imonomy_report_message {	background-color: white; border: 2px solid #DDDDDD;	font-size: 12px;	font-family: arial,times New Roman;	height: 72px;	width: 220px;	padding: 2px;	display: none;	color: gray;	position: absolute; z-index: 2147483647}\
	.imonomy_report_container{  float:right; background: none repeat scroll 0 0 #999999;    border-radius: 6px 6px 6px 6px;    color: white;    font-family: arial;    font-size: 9px;    line-height: 10px;    padding: 0 3px;} \
	.imonomy_report_text{    float: left;    font-size: 12px;    line-height: 12px;    padding: 3px;}\
	.imonomy_layer_header .header_title {    float: left;    margin-top: 3px; line-height: 18px !important; font-family: arial;}\
	#imo_rotate_ad {    padding: 6px 3px;}\
	.imonomy_layer {width:302px; height:283px;}\
	{{domain_style}}\
',layer_html:'<div id="imonomy_layer_window" class="imonomy_layer_window"> \
			<div class="imonomy_arr imonomy_right-top" id="imonomy_arr_0"></div>\
			<div class="imonomy_arr imonomy_right-top" id="imonomy_arr_1"></div>\
			<div class="imonomy_layer_window_body">\
				<div id="imonomy_layer_header" class="imonomy_layer_header">'+
'<span class="header_title">Special Offers.</span>'+
'<div id="imonomy_layer_close" class="imonomy_layer_close imonomy_layer_header_btn"></div>\
					<a href="$$unit_marker_url$$" target=blank rel="nofollow"><div class="imonomy_layer_poweredby imonomy_layer_header_btn"></div></a><span id="imonomy_unit_marking" style="color: ##99999; float: right; font-family:Ariel,Times New Roman;font-size: 11px !important; padding: 7px 5px 4px 4px; line-height:10px; font-weight:bold" >$$unit_mark$$</span>\
				</div>'+
'<div id="imonomy_layer_frame_c" class="imonomy_layer_frame_c"><if'+'rame id="imonomy_layer_frame" scrolling="no" frameborder="0" ALLOWTRANSPARENCY="true" class="imonomy_layer_frame"></iframe><if'+'rame id="imonomy_layer_frame_test" scrolling="no" frameborder="0" ALLOWTRANSPARENCY="true" class="imonomy_layer_frame_test" style="display:none"></iframe></div> \
			</div>\
 </div>\
',unit_marker_url:'http://adyoulike.com',blacklist_sus_porn:'adult,sex,sexy,boobs,+18,nfsw,nude,dating,date,hardcore,muscle,cams,movie,live,black,anal,livechat,amateur',unit_marker:'<a href="$$unit_marker_url$$" target=blank rel="nofollow"><div class="imonomy_layer_poweredby imonomy_layer_header_btn"></div></a><span id="imonomy_unit_marking" style="color: ##99999; float: right; font-family:Ariel,Times New Roman;font-size: 11px !important; padding: 7px 5px 4px 4px; line-height:10px; font-weight:bold" >$$unit_mark$$</span>',xtraStyle:'',blacklist:'best sex,adult website,BBW,outdoors nude,nsfw +18,pawgs,flashing,muscle bears,free sex,adult dating,adults only,pornographic,femdom,youporn,anal,porno,naked,hardcore movies,sexy muscle,cartoon sex,exoclick,adult cams,live cams,pornstars,erotica,ahole,anus,ash0le,ash0les,asholes,Ass Monkey,Assface,assh0le,assh0lez,asshole,assholes,assholz,asswipe,azzhole,bassterds,bastard,bastards,bastardz,basterds,basterdz,Biatch,bitch,bitches,Blow Job,boffing,butthole,buttwipe,c0ck,c0cks,Carpet Muncher,cawks,Clit,cock,cockhead,cock-head,cocks,CockSucker,cock-sucker,dick,dild0,dild0s,dildo,dildos,dilld0,dilld0s,dominatricks,dominatrics,dominatrix,dyke,f u c k,f u c k e r,fag,fag1t,faget,fagg1t,faggit,faggot,fagit,fags,fagz,faig,faigs,fart,flipping the bird,fuck,fucker,fuckin,fucking,fucks,Fudge Packer,fuk,Fukah,Fuken,fuker,Fukin,Fukk,Fukkah,Fukken,Fukker,Fukkin,g00k,gayboy,gaygirl,gayz,God-damned,h00r,h0ar,h0re,hoor,hoore,jackoff,jerk-off,jisim,Lesbian,Lezzian,Lipshits,Lipshitz,masochist,masokist,massterbait,masstrbait,masstrbate,masterbaiter,masterbate,masterbates,Motha Fucker,Motha Fuker,Motha Fukkah,Motha Fukker,Mother Fucker,Mother Fukah,Mother Fuker,Mother Fukkah,Mother Fukker,mother-fucker,Mutha Fucker,Mutha Fukah,Mutha Fuker,Mutha Fukkah,Mutha Fukker,nastt,orafis,orgasim,orgasm,orgasum,oriface,orifice,peeenusss,peenus,peinus,pen1s,penis,penis-breath,penus,penuus,Phuker,Phukker,pr1c,pr1ck,pr1k,pussee,pussy,puuker,queer,queers,queerz,qweers,qweerz,qweir,recktum,rectum,sadist,scank,schlong,screwing,semen,Sh!t,sh1t,sh1ter,sh1ts,sh1tter,sh1tz,shits,shitter,skanck,skank,skankee,skankey,skanks,Skanky,slut,sluts,Slutty,slutz,son-of-a-bitch,va1jina,vag1na,vagiina,vagina,vaj1na,vajina,vullva,vulva,wh00r,wh0re,whore,xrated,b!+ch,blowjob,arschloch,b!tch,b17ch,b1tch,bi+ch,boiolas,buceta,cipa,clits,dirsa,ejakulate,fatass,fcuk,fux0r,hoer,hore,jism,kawk,l3itch,l3i+ch,masturbate,masterbat,masterbat3,motherfucker,s.o.b.,nigger,nutsack,pimpis,scrotum,shemale,boobs,b00bs,teez,testical,testicle,w00se,whoar,amcik,andskota,assrammer,bi7ch,bollock,breasts,butt-pirate,cabron,cazzo,chraa,chuj,d4mn,daygo,dego,dike,dupa,dziwka,ejackulate,Ekrem,Ekto,enculer,fanculo,Felcher,ficken,Flikker,foreskin,Fotze,futkretzn,guiena,h4x0r,helvete,honkey,Huevon,lesbo,mamhoon,masturbat,mibun,monkleigh,mouliewop,mulkku,muschi,nepesaurio,orospu,picka,pierdol,pillu,pimmel,pizda,poontsee,poop,porn,p0rn,pr0n,preteen,pula,pule,puta,puto,qahbeh,queef,rautenberg,schaffer,milf',allowed_iframe_players:["youtube.com/","playwire.com","smooto.com","vimeo.com","ustream.tv","dailymotion.com/"],blacklist_porn:'booty shake,best sex,adult website,BBW,outdoors nude,nsfw +18,pawgs,flashing,muscle bears,adults only,free sex,adult dating,pornographic,femdom,hardcore movies,exoclick,adult cams,live cams,pornstars,anus,Ass Monkey,Blow Job,CockSucker,cock-sucker,dominatricks,dominatrics,dominatrix,flipping the bird,gayboy,gaygirl,God-damned,jackoff,Lesbian,Lezzian,Lipshits,Lipshitz,masochist,masokist,massterbait,masstrbait,masstrbate,masterbaiter,masterbate,masterbates,mother-fucker,orgasim,orgasm,orgasum,pussy,schlong,vagiina,vagina,vaj1na,vajina,vullva,vulva,xrated,blowjob,ejakulate,masturbate,masterbat,masterbat3,motherfucker,w00se,whoar,amcik,andskota,assrammer,butt-pirate,ejackulate,lesbo,mamhoon,masturbat',tmt_blacklist:'WyJwb3BjYXNoLm5ldCJd',manipulate_settings:false,invideo_settings:{"uvp":{"custom_code":"return true;","js_identifier":" if (playerObject.parentNode.innerHTML.indexOf('uvp') != -1){return true;}else{return false;}","player_name":"uvp","offset":45},"playwire":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.parentNode.innerHTML.indexOf('playwire') != -1) {return true;} else {return false;}","player_name":"playwire","offset":45},"openload":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.innerHTML.indexOf('openload') > -1) {return true;} else {return false;}","player_name":"openload","offset":45},"iglives":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.innerHTML.indexOf('iglives') > -1) {return true;} else {return false;}","player_name":"iglives","offset":45},"orbitaonline":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.innerHTML.indexOf('orbitaonline') > -1) {return true;} else {return false;}","player_name":"orbitaonline","offset":45},"flash":{"custom_code":"return true;","js_identifier":"if (playerObject.tagName === 'OBJECT') {return true;} else {return false;}","player_name":"flash","offset":45},"jwplayer":{"custom_code":" var x = st.img; if (x) { while (!x.classList.contains('jwplayer')) { x = x.parentNode; if (!x) { return null; } } if (x.classList.contains('jw-flag-ads')) { return false; } else return true; } else { return true; }","js_identifier":"if ((playerObject.parentNode.parentNode.innerHTML.indexOf('jwplayer')>-1 || playerObject.parentNode.parentNode.innerHTML.indexOf('jwvideo') >-1) || playerObject.parentNode.parentNode.innerHTML.indexOf('jw-video') >-1){return true;} else {return false;}","player_name":"jwplayer","offset":45},"dubbcdn":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.innerHTML.indexOf('dubbcdn') > -1) {return true;} else {return false;}","player_name":"dubbcdn","offset":45},"dailymotion":{"custom_code":"var ad = st.img.strip_animation_container; if (ad) { if(ad.style.display == \"block\") return false; else return true;} else return true;","js_identifier":"if (playerObject.src.indexOf('dailymotion') > -1 ) {return true;} else {return false;}","player_name":"dailymotion","offset":45},"matchat":{"custom_code":"return true;","js_identifier":"if (playerObject.src.indexOf('matchat') > -1) {return true;} else {return false;}","player_name":"matchat","offset":45},"liveleak":{"custom_code":"return true;","js_identifier":"if (playerObject.src.indexOf('liveleak') != -1) {return true;} else {return false;}","player_name":"liveleak","offset":45},"rudo":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.innerHTML.indexOf('rudo') > -1) {return true;} else {return false;}","player_name":"rudo","offset":45},"ahcdn":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.innerHTML.indexOf('ahcdn') > -1) {return true;} else {return false;}","player_name":"ahcdn","offset":45},"brightcove":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.innerHTML.indexOf('brightcove') != -1) {return true;} else {return false;}","player_name":"brightcove","offset":45},"rumble":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.innerHTML.indexOf('rmbl') > -1 || playerObject.parentNode.innerHTML.indexOf('rumble') > -1) {return true;} else {return false;}","player_name":"rumble","offset":45},"ustream":{"custom_code":"return true;","js_identifier":"if (playerObject.src.indexOf('ustream.tv') != -1){return true;} else {return false;}","player_name":"ustream","offset":45},"radiantmediatechs":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.parentNode.innerHTML.indexOf('rmpPlayer') > -1 || playerObject.parentNode.parentNode.innerHTML.indexOf('rmp-video') > -1) {return true;} else {return false;}","player_name":"radiantmediatechs","offset":45},"vimeo":{"custom_code":"return true;","js_identifier":"if (playerObject.src.indexOf('vimeo') != -1) {return true;} else {return false;}","player_name":"vimeo","offset":45},"youtube":{"custom_code":"return true;","js_identifier":" if (playerObject.parentNode.innerHTML.indexOf('youtube') != -1){return true;}else{return false;}","player_name":"youtube","offset":45},"hola_player":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.innerHTML.indexOf('hola_player') > -1) {return true;} else {return false;}","player_name":"hola_player","offset":45},"manilatimes":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.innerHTML.indexOf('manilatimes') > -1) {return true;} else {return false;}","player_name":"manilatimes","offset":50},"webeyo":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.innerHTML.indexOf('webeyo') > -1) {return true;} else {return false;}","player_name":"webeyo","offset":45},"twitch":{"custom_code":"return true;","js_identifier":"if (playerObject.src.indexOf('twitch') > -1) {return true;} else {return false;} ","player_name":"twitch","offset":45},"vidcloud":{"custom_code":"return true;","js_identifier":"if (playerObject.parentNode.innerHTML.indexOf('vidcloud') > -1) {return true;} else {return false;}","player_name":"vidcloud","offset":45}}}
imonomy.layer={tipInview_Shown:false,units_array:[],inView_array:[],inited:false,fsgf:"s",fsgf1:"see",fsgs1:"VISUAL",fsgs:"S",images_found:false,header_background:"",header_text_color:"",min_bottom_space:10,bind_scroll:true,scroll_timer:null,scroll_interval:100,scroll_in_action:false,scroll_in_action_timer:null,scroll_element_selector:".MoreLink, .comments, #comments, #comment, .comment, #comment-list, #commentList, #disqus_thread, .yarpp-related",visible:false,hovered:false,show_onfocus:false,hide_permanent:[],current_mode:null,layer_hide_delay:1000,layer_obj:null,layer_width:278,layer_height:288,should_hide:false,hook_image:true,set_lock_counter:true,set_gray_lock_counter:true,videoAd_hooked_images:0,flip_hooked_images:0,strip_hooked_images:0,invideo_hooked_images:0,videoEdge_hooked_images:0,roll_hooked_images:0,cover_max_images:1,cover_hooked_images:0,tip_hooked_images:0,generic_refresh_counter:0,total_requests_counter:[],total_passbacks_counter:[],elementsCounter:[],productCounter:[],binded_images:0,init_xtraStyle:false,left_style:'-4500px',top_style:'-4500px',monitor_objects:{},prev_url:null,one_request:[],w:screen.width,h:screen.height,pxr:window.devicePixelRatio,handle_passback_data_request:function(event){if(event.data=="data_not_found_please_send"){var frame_element=null;var w=event.source;var iteration=1
var continue_search=false;try{continue_search=frame_element==null||frame_element==undefined||!frame_element.data_obj;}catch(err){continue_search=true;}
while(continue_search&&iteration<10&&w.parent!=w){try{if(w.frameElement.data_obj){w=w.frameElement.data_obj;use_frame_element=true;break}}catch(err){}
w=w.parent;iteration+=1;try{frame_element=w.frameElement;continue_search=frame_element==null||frame_element==undefined||!frame_element.data_obj;}catch(err){w=w.parent;frame_element=null;continue_search=true;}}
if(frame_element&&frame_element!=null&&frame_element.data_obj){frame_element.style.display='none';var pass_url=imonomy.utils.protocol()+'//srv.imonomy.com/script/main.js';var script=document.createElement('script');script.setAttribute('type','text/javascript');script.setAttribute('src',pass_url);frame_element.contentWindow.va_force_passback=true;frame_element.contentWindow.document.body.appendChild(script);}else{console.log("was not able to find data object")}}},ppi:function(){if(document.body){try{var elem=document.createElement('div');elem.style.width='1in';document.body.appendChild(elem);var ppi=elem.offsetWidth;document.body.removeChild(elem);return ppi;}catch(e){return 0;}}
else
{return 0;}},isEmpty:function(obj){for(var prop in obj){if(obj.hasOwnProperty(prop))
return false;}
return true&&JSON.stringify(obj)===JSON.stringify({});},connectionType:function(){var connection=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(connection&&connection.type){if(connection.type=="cellular"){return "3";}else if(connection.type=="wifi"){return "2";}else if(connection.type=="ethernet"){return "1";}else{return "0";}}else{return "0";}},language:function(){try{var lang_dict={"br":"pt","it":"it","es":"es","fr":"fr","de":"de","mx":"es","ar":"es","co":"es","cl":"es"};var curr_host=document.location.host;curr_host_split=curr_host.split(".")
if(curr_host_split[curr_host_split.length-1]in lang_dict){return lang_dict[curr_host_split[curr_host_split.length-1]];}
var lang=document.documentElement.lang||navigator.language||navigator.userLanguage;if(lang==null||typeof(lang)=='undefined'){lang="";}else{if(lang.length>2){lang=lang[0]+lang[1]}}}catch(e){return 'en'}
return lang;},autoPassBack:function(frame_element){var check_fyva=frame_element.contentWindow.document.body.getElementsByTagName("DIV"),check_scripts=frame_element.contentWindow.document.getElementsByTagName("SCRIPT"),check_iframes=frame_element.contentWindow.document.getElementsByTagName("IFRAME"),found_main_script=false,found_va_script=false,id_index=false,found_id=false;if(check_fyva.length>0){var get_fyva=check_fyva[0].className;if(get_fyva=="fyva_noshow"||frame_element=="fyva_container"||frame_element=="chitikaAdContainer"){return;}}
for(var index=0;index<check_scripts.length;index++){if(check_scripts[index].src.indexOf(".js")>-1){found_main_script=true;}
if(check_scripts[index].innerHTML.indexOf("w.va_sid")>-1){found_va_script=true;var id_index=check_scripts[index].innerHTML.indexOf("w.va_curr_unit_id");if(id_index&&!found_id){var id_number=check_scripts[index].innerHTML.substring(id_index);id_number=id_number.split("'");id_number=parseInt(id_number[1]);found_id=true;}}}
if(!found_main_script&&check_iframes.length==0&&found_va_script){var pass_url=imonomy.utils.protocol()+'//srv.imonomy.com/script/main.js';var script=document.createElement('script');script.setAttribute('type','text/javascript');script.setAttribute('src',pass_url);frame_element.contentWindow.document.body.appendChild(script);imonomy.page.trackServ(987,"auto_passback",undefined,undefined,id_number?id_number:undefined);frame_element.requested=true;}},incPassbackCounter:function(product){if(imonomy.layer.total_requests_counter[product]>=0){imonomy.layer.total_requests_counter[product]+=1;}else{imonomy.layer.total_requests_counter[product]=[];imonomy.layer.total_requests_counter[product]=0;}},checkPassbackCode:function(product){if(imonomy.layer.total_passbacks_counter[product]>=0){imonomy.layer.total_passbacks_counter[product]+=1;}else{imonomy.layer.total_passbacks_counter[product]=[];imonomy.layer.total_passbacks_counter[product]=0;}
if(imonomy.layer.total_passbacks_counter[product]==imonomy.layer.total_requests_counter[product]){if(imonomy.settings.passback_code){imonomy.settings.passback_code(product);}}},isDescendant:function(parent,child){var node=child.parentNode;while(node!=null){if(node==parent){return true;}
node=node.parentNode;}
return false;},findSiteImages:function(){var container_element=null;var image_found=false;var images=[];var min_top=imonomy.settings.min_top;if(imonomy.utils.isHomePage()){min_top=250;}
var host=imonomy.page.domain();if(host.indexOf("search.yahoo")>-1){var imagesBox=imonomy.page.getElementsByClassName('imgdd');if(imagesBox!=null&&typeof(imagesBox)!='undefined'&&imagesBox.length>0){images[images.length]=imagesBox[0];}}else if(host.indexOf("bing.com")>-1){var imagesBox=imonomy.page.getElementsByClassName('sb_ans');if(imagesBox!=null&&typeof(imagesBox)!='undefined'&&imagesBox.length>0){images[images.length]=imagesBox[0];}}else if(host.indexOf("youtube.com")>-1){var imagesBox=imonomy.page.getElementsByClassName('video-list-item');if(imagesBox!=null&&typeof(imagesBox)!='undefined'&&imagesBox.length>0){for(var i=0;i<imagesBox.length;i++){images[images.length]=imagesBox[i];}
return images;}}else if(host.indexOf("vube.com")>-1){var imagesBox=imonomy.page.getElementsByClassName('video-thumbnail');if(imagesBox!=null&&typeof(imagesBox)!='undefined'&&imagesBox.length>0){for(var i=0;i<imagesBox.length;i++){images[images.length]=imagesBox[i];}}}else if(host.indexOf("yahoo.com")>-1){var imagesBox=imonomy.page.getElementsByClassName('cta-overlay');if(imagesBox!=null&&typeof(imagesBox)!='undefined'&&imagesBox.length>0){for(var i=0;i<imagesBox.length;i++){images[images.length]=imagesBox[i];}}}
var xtraImages=imonomy.site.xtraImages();if(xtraImages!=null){for(var i=0;i<xtraImages.length;i++){var ximg=xtraImages[i];if(ximg.checked_byimonomy)
continue;ximg.checked_byimonomy=true;images[images.length]=ximg;}}
var imgs=[],scope_images=[],monitor_url_change=imonomy.settings.monitor_url_change;if(imonomy.settings.monitor_page_scope&&monitor_url_change){var scope=imonomy.settings.monitor_page_scope();if(scope){if(scope.tagName=="IMG"){scope_images.push(scope);}else{scope_images=scope.getElementsByTagName("img");}
imgs=scope_images;}}else{imgs=document.getElementsByTagName("img");}
use_foce_image=false;if(imonomy.settings.force_image_selection){var xtraImages=imonomy.settings.force_image_selection();if(xtraImages!="skip"){if(xtraImages!=null){for(var i=0;i<xtraImages.length;i++){var ximg=xtraImages[i];if(ximg.checked_byimonomy){continue;}
ximg.checked_byimonomy=true;images[images.length]=ximg;}}
use_foce_image=true;}}
if(!use_foce_image){var layer_frame=document.getElementById("imonomy_layer_frame_c")
var max_scan_at_a_time=100;var scan_counter=0;if(imonomy.settings.use_invideo||imonomy.settings.use_video_edge){var video_els=imonomy.utils.getVideoPlayers();imgs=[].slice.call(imgs);for(var index=0;index<video_els.length;index++){var video_el=video_els[index];if(imonomy.settings.use_invideo){video_el.force_imnproduct_type="invideo";video_el.height_offset=imonomy.settings.invideo_higher_position?imonomy.settings.invideo_higher_position:video_el.player_offset;}
else if(imonomy.settings.use_video_edge){video_el.force_imnproduct_type="videoEdge";}
imgs[imgs.length]=video_el;}}
if(imonomy.settings.add_element_by_classes){imgs=[].slice.call(imgs);for(var index in imonomy.settings.add_element_by_classes){var select_class=imonomy.settings.add_element_by_classes[index];var selected_images=[];if(select_class.indexOf(".")>-1){selected_images=document.querySelectorAll(select_class);}else{selected_images=document.getElementsByClassName(select_class);}
for(var images_index=0;images_index<selected_images.length;images_index++){var selected_el=selected_images[images_index]
if(!selected_el.skip_src_check){selected_el.skip_src_check=true;}
imgs.splice(0,0,selected_el);}}}
for(var index=0;index<imgs.length;index++){var img=imgs[index],curr_obj=false;if(imonomy.settings.monitor_url_change){if(!img.monitor_objects){img.monitor_objects={};imonomy.image.monitor_objects_ts.push(img);}
if(img.monitor_objects[location.href]!=location.href){img.monitor_objects[location.href]=[location.href];img.monitor_objects[location.href].change=true;}
curr_obj=img.monitor_objects[location.href];}else{curr_obj=img;}
if(curr_obj.hooked_byimonomy||(curr_obj.checked_byimonomy&&curr_obj.checked_byimonomy==imonomy.settings.min_size_factor_change)){continue;}
scan_counter=scan_counter+1;if(scan_counter>max_scan_at_a_time){break;}
curr_obj.checked_byimonomy=(img.clientWidth<2&&img.clientHeight<2)?false:imonomy.settings.min_size_factor_change;if(layer_frame){if(imonomy.layer.isDescendant(layer_frame,img)){continue;}}
var should_skip_due_to_decent=false;for(var x_index=0;x_index<images.length;x_index++){if(imonomy.layer.isDescendant(images[x_index],img)){should_skip_due_to_decent=true;break;}}
if(should_skip_due_to_decent){continue;}
if(imonomy.settings.bind_filter_class){filter_class=imonomy.settings.bind_filter_class;}
if(typeof(imonomy_filter_class)!="undefined"){filter_class=imonomy_filter_class;}
if(filter_class!=null){var filter_class;if(Array.isArray(filter_class)){filter_splited=filter_class;}else{filter_splited=filter_class.split(' ');}
var found_filter=false;for(var i=0;i<filter_splited.length;i++){if(filter_splited[i].indexOf('.')>-1){if(img.matches(filter_splited[i].replace("$"," "))){found_filter=true;continue;}}else if(imonomy.utils.hasClass(img,filter_splited[i],true)){found_filter=true;continue;}}
if(found_filter)continue;}
if(typeof(imonomy_filter_id)!="undefined"&&imonomy.utils.isDescendantFromId(image_element,imonomy_filter_id)){continue;}
var imageUrl='',imageAnchorHref='',imgSize=imonomy.image._getImgSize(img),imgWidth=imgSize[0],imgHeight=imgSize[1];if(imgWidth==0||imgHeight==0){if(img.width>2){if(!curr_obj.checked_byimonomy_count||curr_obj.checked_byimonomy_count<5){curr_obj.checked_byimonomy=false;}
if(curr_obj.checked_byimonomy_count){curr_obj.checked_byimonomy_count=curr_obj.checked_byimonomy_count+1;}else{curr_obj.checked_byimonomy_count=1;}
continue;}}
var imgTop=imgSize[2];if(imgTop<min_top){continue;}
var ratio_factor=1;var max_size_factor=1;var min_size_factor=1;if(container_element==null){ratio_factor=0.95;max_size_factor=1;min_size_factor=1.2;}
min_size_factor=min_size_factor*imonomy.settings.min_size_factor_change;if(imgHeight>150&&imgHeight<500&&imgWidth>260&&imgWidth<700){ratio_factor=1.1}
var isRatioGood=imgWidth/imgHeight<(imonomy.settings.goodRatio*ratio_factor)&&imgWidth/imgHeight>1/(imonomy.settings.goodRatio*ratio_factor);var isSizeGood=(imgWidth>=(imonomy.settings.min_image_size*min_size_factor)||imgHeight>=(imonomy.settings.min_image_size*min_size_factor))&&(imgWidth<=(imonomy.image.max_size*max_size_factor)||imgHeight<=(imonomy.image.max_size*max_size_factor));for(var i=0;i<imonomy.image.share_unit_sizes.length;i++){var unit_size_width=parseInt(imonomy.image.share_unit_sizes[i].split('_')[0]);var unit_size_height=parseInt(imonomy.image.share_unit_sizes[i].split('_')[1]);}
if(imgWidth==unit_size_width&&imgHeight==unit_size_height)isSizeGood=false;var isAdNetwork=false;var isDomainGood=false;imageUrl=imonomy.image.getImageSrc(img);if(typeof(imageUrl)=='undefined'){if((typeof(img)!='undefined'&&typeof(curr_obj)!='undefined')&&(img.force_imnproduct_type||curr_obj.force_imnproduct_type||selected_el.skip_src_check)){isDomainGood=true;}else{isDomainGood=false;}}else{imageTitle=img.title;if(typeof(img.parentNode)!='undefined'){if(img.parentNode.tagName=="A"){imageAnchorHref=img.parentNode.href;}else if(typeof(img.parentNode.parentNode)!='undefined'&&img.parentNode.parentNode.tagName=="A"){imageAnchorHref=img.parentNode.parentNode.href;}}
for(var i in imonomy.image.share_unit_networks_domain){var currentAdNetworkDomain=imonomy.image.share_unit_networks_domain[i];if(imageUrl.indexOf(currentAdNetworkDomain)!=-1||imageAnchorHref.indexOf(currentAdNetworkDomain)!=-1)isAdNetwork=true;}
for(var i in imonomy.image.share_unit_networks_keywords){var currentAdNetworkKeywords=imonomy.image.share_unit_networks_keywords[i];if(imageUrl.indexOf(currentAdNetworkKeywords)!=-1||imageAnchorHref.indexOf(currentAdNetworkKeywords)!=-1){for(var i=0;i<imonomy.image.share_unit_networks_ad_size.length;i++){if((img.width==imonomy.image.share_unit_networks_ad_size[i][0]&&img.height==imonomy.image.share_unit_networks_ad_size[i][1])||(img.clientWidth==imonomy.image.share_unit_networks_ad_size[i][0]&&img.clientHeight==imonomy.image.share_unit_networks_ad_size[i][1])){isAdNetwork=true;break;}}}}
for(var i in imonomy.image.share_offers_networks){var currentAdNetwork=imonomy.image.share_offers_networks[i];if(imageUrl.indexOf(currentAdNetwork)!=-1||imageAnchorHref.indexOf(currentAdNetwork)!=-1){if(imonomy.settings.validate_offers_networks){isAdNetwork=true;}
break;}}
if(!isAdNetwork)isDomainGood=true;}
if(isDomainGood&&isRatioGood&&isSizeGood){if(img.parentNode){var elements=imonomy.page.getElementsByClassName('thumbnail-overlay',img.parentNode);if(elements!=null&&typeof(elements)!='undefined'&&elements.length>0){for(var i=0;i<elements.length;i++){if(elements[i]&&elements[i].style){elements[i].style.display='none';}}}}
curr_obj.hooked_byimonomy=true;images[images.length]=img;}}}
return images;},is_locked:function(){var strip_cap=imonomy.utils.getCookie("imonomy_strip_lock_time");var cover_cap=imonomy.utils.getCookie("imonomy_cover_lock_time");var flip_cap=imonomy.utils.getCookie("imonomy_flip_lock_time");return strip_cap||cover_cap||flip_cap;},bind_image_element:function(image_elements,force_format){if(imonomy.layer.hook_image){var page_force_options=null,inView=false,dynamic_strip=imonomy.settings.dynamic_strip,use_one_request=imonomy.settings.one_request,strip_cap=imonomy.utils.getCookie("imonomy_strip_lock_time"),cover_cap=imonomy.utils.getCookie("imonomy_cover_lock_time"),flip_cap=imonomy.utils.getCookie("imonomy_flip_lock_time"),location=document.location.href;if(imonomy.settings.page_force_options_regex&&document.location!=null){for(var index=0;index<imonomy.settings.page_force_options_regex.length;index++){var curr_option_regex=imonomy.settings.page_force_options_regex[index];var location=document.location+document.location.hash;var patt=new RegExp(curr_option_regex[0]);if(patt.test(location)){page_force_options=curr_option_regex[1];break;}}}
for(var index=0;index<image_elements.length;index++){var image_element=image_elements[index];if(!imonomy.utils.hasClass(image_element,'imonomy_no_layer',true)){var filter_class=null,result=null;image_element.indexProduct=null;image_element.bindToProduct=false;if(image_element.checked_byimonomy&&imonomy.settings.monitor_url_change&&imonomy.settings.force_image_selection){if(!image_element.monitor_objects){image_element.monitor_objects={};imonomy.image.monitor_objects_ts.push(image_element);}
if(image_element.monitor_objects[location]!=location){image_element.monitor_objects[location]=location;image_element.monitor_objects[location].change=true;}}
if(imonomy.settings.bind_filter_class){filter_class=imonomy.settings.bind_filter_class;}
if(typeof(imonomy_filter_class)!="undefined"){filter_class=imonomy_filter_class;}
if(filter_class!=null){var filter_splited=filter_class.split(' ');var found_filter=false;for(var i=0;i<filter_splited.length;i++){if(filter_splited[i].indexOf('.')>-1){if(image_element.matches(filter_splited[i].replace("$"," "))){found_filter=true;continue;}}else if(imonomy.utils.hasClass(image_element,filter_splited[i],true)){found_filter=true;continue;}}
if(found_filter)continue;}
if(typeof(imonomy_filter_id)!="undefined"&&imonomy.utils.isDescendantFromId(image_element,imonomy_filter_id)){continue;}
donot_show_id="similarproducts_inimg";if(imonomy.utils.isDescendantFromId(image_element,donot_show_id)){return;}
imonomy.layer.images_found=true;imonomy.layer.init();var hover_only=index>0;if(typeof(force_format)=='undefined'){force_format=[]}
var option_to_use="";if(image_element.force_imnproduct_type){option_to_use=image_element.force_imnproduct_type;}
else if(imonomy.settings.force_product_type_function){option_to_use=imonomy.settings.force_product_type_function(options,image_element);}
if(option_to_use=="skip"){continue;}
var image_size=imonomy.image._getImgSize(image_element);var hover_only=index>0;var allow_roll=false;if(imonomy.settings.use_roll){allow_roll=(force_format.indexOf("roll")>-1||(imonomy.settings.use_roll&&force_format.length==0))&&(image_size[0]>140&&image_size[1]>140&&(imonomy.settings.roll_max_images<0||imonomy.layer.roll_hooked_images<imonomy.settings.roll_max_images));}
var allow_flip=false;var allow_strip=false;if(imonomy.settings.use_strips||imonomy.settings.use_edge||imonomy.settings.my_strips_mobile||imonomy.settings.my_edge_mobile){if(((imonomy.settings.my_strips_mobile||imonomy.settings.my_edge_mobile)&&imonomy.utils.isMobile()!=null)&&(force_format.indexOf("strip")>-1||option_to_use=="strip"||((imonomy.settings.my_strips_mobile||imonomy.settings.my_edge_mobile)&&force_format.length==0))&&(page_force_options==null||page_force_options.indexOf("strip")>-1)&&(image_size[0]>imonomy.strips.max_Width&&image_size[1]>imonomy.strips.max_Height&&(imonomy.settings.strip_max_images<0||imonomy.layer.strip_hooked_images<imonomy.settings.strip_max_images))&&strip_cap.indexOf("strip")==-1&&option_to_use.indexOf('video')==-1){allow_strip=true;}else if((imonomy.utils.isMobile()==null)&&(force_format.indexOf("strip")>-1||option_to_use=="strip"||((imonomy.settings.use_strips||imonomy.settings.use_edge)&&force_format.length==0))&&(page_force_options==null||page_force_options.indexOf("strip")>-1)&&(image_size[0]>imonomy.strips.max_Width&&image_size[1]>imonomy.strips.max_Height&&(imonomy.settings.strip_max_images<0||imonomy.layer.strip_hooked_images<imonomy.settings.strip_max_images))&&strip_cap.indexOf("strip")==-1&&option_to_use.indexOf('video')==-1){allow_strip=true;}
if(imonomy.settings.use_edge||imonomy.settings.my_edge_mobile){if(allow_strip){var old_element=image_element;image_element=imonomy.utils.getParentElement(image_element);image_element.animation_strip_from_top=true;image_element.monitor_objects=old_element.monitor_objects;image_element.force_imnproduct_type="myEdge";image_element.channel_cid="myEdge";}}}
var allow_cover=false;var force_tip=(force_format.indexOf("tip")>-1);var allow_tip=!imonomy.utils.isMobile()&&imonomy.settings.use_tip&&(force_tip||imonomy.settings.bind_tip_layer&&(imonomy.settings.tip_max_images<0||imonomy.layer.tip_hooked_images<imonomy.settings.tip_max_images)&&(page_force_options==null||page_force_options.indexOf("tip")>-1));var allow_invideo=false;if(imonomy.settings.use_invideo||imonomy.settings.my_invideo_mobile){if((imonomy.settings.my_invideo_mobile&&imonomy.utils.isMobile()!=null)&&(force_format.indexOf("invideo")>-1||option_to_use=="invideo")&&(page_force_options==null||page_force_options.indexOf("invideo")>-1)&&(image_size[0]>imonomy.invideo.max_Width&&image_size[1]>imonomy.invideo.max_Height&&(imonomy.settings.invideo_max_images<0||imonomy.layer.invideo_hooked_images<imonomy.settings.invideo_max_images))){allow_invideo=true;}else if((imonomy.utils.isMobile()==null)&&(force_format.indexOf("invideo")>-1||option_to_use=="invideo")&&(page_force_options==null||page_force_options.indexOf("invideo")>-1)&&(image_size[0]>imonomy.invideo.max_Width&&image_size[1]>imonomy.invideo.max_Height&&(imonomy.settings.invideo_max_images<0||imonomy.invideo.request_hook.length<imonomy.settings.invideo_max_images))){allow_invideo=true;}}
var allow_videoEdge=false;if(imonomy.settings.use_video_edge||imonomy.settings.my_video_edge_mobile){if((imonomy.settings.my_video_edge_mobile&&imonomy.utils.isMobile()!=null)&&(force_format.indexOf("videoEdge")>-1||option_to_use=="videoEdge")&&(page_force_options==null||page_force_options.indexOf("videoEdge")>-1)&&(image_size[0]>imonomy.invideo.max_Width&&image_size[1]>imonomy.invideo.max_Height&&(imonomy.settings.videoEdge_max_images<0||imonomy.layer.invideo_hooked_images<imonomy.settings.video_edge_max_images))){allow_videoEdge=true;}else if((imonomy.settings.use_video_edge&&imonomy.utils.isMobile()==null)&&(force_format.indexOf("videoEdge")>-1||option_to_use=="videoEdge")&&(page_force_options==null||page_force_options.indexOf("videoEdge")>-1)&&(image_size[0]>imonomy.invideo.max_Width&&image_size[1]>imonomy.invideo.max_Height&&(imonomy.settings.invideo_max_images<0||imonomy.invideo.request_hook.length<imonomy.settings.video_edge_max_images))){allow_videoEdge=true;}
if(allow_videoEdge){var old_element=image_element;image_element=imonomy.utils.getParentElement(image_element);image_element.animation_strip_from_top=true;image_element.monitor_objects=old_element.monitor_objects;image_element.force_imnproduct_type="videoEdge";}}
var options=[];image_element.product_type=[];if(allow_flip){options[options.length]="flip";}
if(allow_strip){try{image_element.image_index=Math.round(image_size[2]);}catch(e){image_element.image_index=0;}
options[options.length]="strip";if(dynamic_strip){if(imonomy.settings.strip_on_mouseover){imonomy.layer.dynamic_bind(image_element);}else{imonomy.layer.dynamic_Inview(image_element);}
image_element.product_type.push("strip");}}
if(allow_cover){options[options.length]="cover";}
if(allow_tip){options[options.length]="tip";}
if(allow_invideo){options[options.length]="invideo";if(dynamic_strip){if(imonomy.settings.strip_on_mouseover){imonomy.layer.dynamic_bind(image_element);}else{imonomy.layer.dynamic_Inview(image_element);}
image_element.product_type.push("invideo");}}
if(allow_videoEdge){options[options.length]="videoEdge";if(dynamic_strip){if(imonomy.settings.strip_on_mouseover){imonomy.layer.dynamic_bind(image_element);}else{imonomy.layer.dynamic_Inview(image_element);}
image_element.product_type.push("videoEdge");}}
if(imonomy.settings.use_random_format_on_bind&&option_to_use==""){if(options.length>0){option_to_use=options[Math.floor(Math.random()*options.length)];}}
if(imonomy.settings.use_roll&&allow_roll){imonomy.layer.roll_hooked_images+=1;imonomy.myroll.request_hook_roll_action(image_element);continue;}
if(allow_strip&&(option_to_use.length==0||option_to_use=="strip"||option_to_use=="myEdge")&&((option_to_use.length==0&&!imonomy.settings.strips_after_cover)||(option_to_use=="strip"||option_to_use=="myEdge"))){if(!dynamic_strip){imonomy.layer.strip_hooked_images+=1;}
if(imonomy.settings.strip_on_mouseover&&imonomy.utils.isMobile()==null){image_element.strip_on_hover=true;}else{image_element.strip_on_hover=false;}
result=imonomy.strips.request_hook_strip_action(image_element,image_element.strip_on_hover);if(imonomy.settings.strip_max_images>0&&index==0&&imonomy.strips.request_hook.length==1&&dynamic_strip&&imonomy.settings.strip_overload_factor<=Math.random()){imonomy.settings.strip_max_images+=1;result=imonomy.strips.request_hook_strip_action(image_element,image_element.strip_on_hover);}
if(result&&use_one_request){imonomy.layer.one_request.push(result);}
if(imonomy.settings.use_videoad){imonomy.layer.videoAd_hooked_images+=1;result=imonomy.videoAd.request_hook_videoAd_action(image_element,'srv.imonomy.com');if(result&&use_one_request){imonomy.layer.one_request.push(result);}}
continue;}else{if(allow_tip||allow_cover){imonomy.layer.tip_hooked_images+=1;result=imonomy.layer.request_hook_tip_action(image_element);}}}
if(result&&use_one_request){imonomy.layer.one_request.push(result);}}
if(use_one_request&&imonomy.layer.one_request){imonomy.layer.send_one_request(imonomy.layer.one_request);}}},bind_images_check_interval:10,bind_images_first:true,bindImages:function(first){if(imonomy.settings.hook_site_image&&imonomy.layer.tip_hooked_images<200){if(imonomy.settings.validate_blacklist){if(imonomy.page.isContainsBlackListWord()){imonomy.tracker.reportBlackList("bind","");return;}else{imonomy.tracker.reportNoneBlackList();}}
var site_image_elements=null;site_image_elements=imonomy.layer.findSiteImages();if(site_image_elements!=null&&typeof(site_image_elements)!='undefined'&&site_image_elements.length>0){imonomy.layer.bind_image_element(site_image_elements);}else if(imonomy.layer.bind_images_first){imonomy.layer.bind_images_first=false;imonomy.settings.min_size_factor_change=0.8;site_image_elements=imonomy.layer.findSiteImages();if(site_image_elements!=null&&typeof(site_image_elements)!='undefined'&&site_image_elements.length>0){imonomy.layer.bind_image_element(site_image_elements);}}}},dynamic_Inview:function(image){clearTimeout(image.check_inview_timer);var size=imonomy.image._getImgSize(image),shown=size[4],check_again=true;if(shown){check_again=imonomy.layer.dynamic_show(image,imonomy.settings.strip_on_mouseover);imonomy.layer.dynamic_trackServ(image,true)}
if(check_again){image.check_inview_timer=setTimeout(function(){imonomy.layer.dynamic_Inview(image);},400);}},dynamic_trackServ:function(element,auto_show){var servTracked=imonomy.settings.monitor_url_change&&element.monitor_objects[location.href]?element.monitor_objects[location.href].servTracked:element.servTracked;if(!servTracked){for(var object_index=0;object_index<imonomy.layer.inView_array.length;object_index++){var unit=imonomy.layer.inView_array[object_index];if(unit.allow_auto_show==auto_show){if(!unit.servTracked){unit.servTracked=true;imonomy.settings.monitor_url_change&&element.monitor_objects[location.href]?element.monitor_objects[location.href].servTracked=true:element.servTracked=true;var cid="imonomy";if(unit){cid=cid+"_"+unit.unit_type;}
if(!imonomy.settings.strip_on_mouseover){cid=cid+"_auto";}
imonomy.page.trackServ(983,"ImageOnView",cid,undefined,undefined,undefined,element.format,element.image_index);imonomy.layer.inView_array.splice(object_index,1);return true;}}}}
return false;},dynamic_show:function(element,auto_show){var continue_check_strip=true;if(element&&!element.bindToProduct){for(var object_index=0;object_index<imonomy.layer.units_array.length;object_index++){var unit=imonomy.layer.units_array[object_index];if(unit.unit_in_work!=0&&typeof(unit.unit_in_work)!='undefined'){continue;}
var rand=Math.random()+1;unit.unit_in_work=rand;if(unit.unit_in_work!=rand){continue;}
try{if(unit.loaded&&!unit.bindToimage){if(unit.type=="strip"){if(element.monitor_objects){var monitor_obj=element.monitor_objects[location.href];if(monitor_obj&&monitor_obj.bindedToimage){continue;}}
var validated_loaded=imonomy.strips.isContentLoaded(unit.unit_container,true);if(!validated_loaded){unit.loaded=false;continue;}
element.unit_type="strip";element.show_delay=0;var element_position=window.getElementPosition(element);var z_index_force_image=window.getZIndex(element)+10;element.cid=imonomy.settings.strip_on_mouseover?"imonomy_strip":"imonomy_strip_auto";if(element_position!='fixed'){element_position='absolute'}
unit.unit_container.strip_frame_container.style.zIndex=z_index_force_image;unit.unit_container.strip_frame_container.style.position=element_position;if(unit.unit_container.strip_frame_container.style.display=='none'){unit.unit_container.img=element;unit.unit_container.use_on_hover=auto_show;if(imonomy.settings.strip_on_mouseover){imonomy.utils.bind('mouseout',function(e){imonomy.strips.stripsMouseOut(e,unit.unit_container);},unit.unit_container.strip_frame_container);imonomy.utils.bind('mouseleave',function(e){imonomy.strips.stripsMouseOut(e,unit.unit_container);},unit.unit_container.strip_frame_container);imonomy.utils.bind('mouseover',function(e){imonomy.strips.stripsMouseEnter(e,unit.unit_container);},unit.unit_container.strip_frame_container);imonomy.utils.bind('mouseenter',function(e){imonomy.strips.stripsMouseEnter(e,unit.unit_container);},unit.unit_container.strip_frame_container);}
if(element.product=="videoEdge"||element.product=="invideo"||!unit.unit_container.show){imonomy.invideo.show(unit.unit_container);element.cid=imonomy.settings.strip_on_mouseover?"imonomy_"+element.product:"imonomy_"+element.product;}
else{unit.unit_container.show();}
if(!unit.cpc_appeared&&imonomy.strips.is_current_unit_filler(unit.unit_container)){element.cpc_appeared=true;imonomy.page.trackServ(970,"shown",element.cid,undefined,unit.unit_container.loaded_ad_id);}else if(!unit.show_reported){element.show_reported=true;imonomy.page.trackServ(985,"shown",element.cid,undefined,unit.unit_container.loaded_ad_id,undefined,unit.format,element.image_index,undefined,undefined,imonomy.utils.isElementTrackable(unit.unit_container.strip_frame_container));}
element.indexProduct=object_index;unit.bindToimage=true;element.bindToProduct=true;if(unit.unit_container.img.monitor_objects&&unit.unit_container.img.monitor_objects[location.href]){unit.unit_container.img.monitor_objects[location.href].bindedToimage=true;}
element.unit=unit.unit_container;continue_check_strip=false;imonomy.layer.binded_images++;break;}else{if(unit.unit_container.refresh_timer){clearTimeout(unit.unit_container.refresh_timer);}
unit.unit_container.strip_frame_container.style.display="none";}}}}finally{unit.unit_in_work=0;}
if(!auto_show){imonomy.layer.dynamic_trackServ(element,auto_show);}}}else if(element.indexProduct!=null){if(element.unit_type=="strip"&&!auto_show){var unit_container=imonomy.layer.units_array[element.indexProduct].unit_container;if(unit_container.strip_frame_container.style.display=='none'){if(element.strip_hide_timer){clearTimeout(element.strip_hide_timer);}
unit_container.show();}}}
return continue_check_strip;},dynamic_hide:function(element){imonomy.layer.units_array[element.indexProduct].unit_container.hide();},dynamic_bind:function(image_element){imonomy.utils.bind('mouseover',imonomy.layer.dynamic_imageMouseEnter,image_element);imonomy.utils.bind('mouseenter',imonomy.layer.dynamic_imageMouseEnter,image_element);imonomy.utils.bind('mouseout',imonomy.layer.dynamic_imageMouseOut,image_element);imonomy.utils.bind('mouseleave',imonomy.layer.dynamic_imageMouseOut,image_element);},dynamic_imageMouseEnter:function(element){if(element.closed){return;}
imonomy.layer.dynamic_show(element,false);},dynamic_imageMouseOut:function(e,element){if(element.indexProduct>=0&&imonomy.layer.units_array[element.indexProduct]!=undefined){var st=imonomy.layer.units_array[element.indexProduct].unit_container;if(element.unit_type=="strip"){var rect_big_img=st.img.getBoundingClientRectRigth?st.img.getBoundingClientRectRigth():undefined;if(typeof(rect_big_img)!="undefined"){if(e.clientX<rect_big_img.left||e.clientX>rect_big_img.right||e.clientY<rect_big_img.top||e.clientY>rect_big_img.bottom){clearTimeout(element.strip_hide_timer);element.strip_hide_timer=setTimeout(function(){imonomy.layer.units_array[element.indexProduct].unit_container.imonomy_hide_strip();},imonomy.strips.strip_wait_animate);}}}}},checkLoad_interval_timer:null,checkLoad_interval:function(){if(imonomy.layer.units_array.checkLoad_interval_timer==null){imonomy.layer.units_array.checkLoad_interval_timer=setTimeout(function(){var reactive=false;if(imonomy.layer.units_array.length!=imonomy.layer.loaded_products){for(var obj_index in imonomy.layer.units_array){var unit=imonomy.layer.units_array[obj_index];if(!unit.loaded){if(unit.type=="strip"){unit.loaded=imonomy.strips.isContentLoaded(unit.unit_container);if(unit.loaded){imonomy.layer.loaded_products++;}}}}
reactive=true;}
imonomy.layer.units_array.checkLoad_interval_timer=null;if(reactive){imonomy.layer.checkLoad_interval();}},400);}},send_one_request:function(obj){var keywords=escape(imonomy.page.keywords()),params=(document.charset?'&charset='+document.charset:(document.characterSet?'&charset='+document.characterSet:'')),terms=escape(imonomy.page.keywords().replace(/'/g," ")),domain=escape(imonomy.page.domain()),httpsite="false",search_term="",over_cap="",referrer_param="";if(imonomy.preload){if(imonomy.preload.over_cap){over_cap="&oc=true";}}
if(imonomy.preload&&imonomy.preload.search_term_to_use&&imonomy.preload.search_term_to_use!=null){search_term="&st="+imonomy.preload.search_term_to_use;}
if(location.protocol=="https:"){httpsite="true";}
if(document.context){params=params+"&context="+escape(document.context);}
if(imonomy.settings&&imonomy.settings.time_taken){var timetaken=imonomy.utils.calcTimeDuration();if(timetaken){var preload_base=parseInt(imonomy.preload.trackServe_time);var request_base=new Date().getTime();var base_result=request_base-preload_base;params=params+"&timepreload="+preload_base+"&ptaken="+base_result+"&ttaken="+timetaken+"&ttkan_x=0&sum_ttkan_x=0";}}
if(imonomy.preload){params=params+"&ttl="+escape(imonomy.preload.title());}
if(document.referrer){params=params+"&referer="+escape(document.referrer);}
if(imonomy.settings&&imonomy.settings.quality_type){params=params+"&cqt="+imonomy.settings.quality_type;}
var sub_id=imonomy.layer.get_sub_id();var sub_id_str="";if(sub_id!=''){sub_id_str="&subid="+sub_id;}
if(!imonomy.settings||!imonomy.settings.whitelist_site){var is_adult=imonomy.page.isContainsBlackListWord();if(is_adult){params=params+"&adl=true";}}
var unit_marker=imonomy.layer.unit_marker();if(unit_marker!=''){sub_id_str=sub_id_str+"&um="+unit_marker;}
params=params+"&loc="+escape(window.location)+"&dm="+escape(window.location.host)+sub_id_str;if(imonomy.preload){if(imonomy.preload.over_cap){over_cap="&oc=true";}}
var referrer_param=""
var referrer_match=document.referrer.match('http[s]?://([a-zA-Z0-9-_\.]+)(:[0-9]+)?');var referrer_host=null;if(referrer_match&&referrer_match!=null){referrer_host=referrer_match[1];referrer_host=referrer_host.replace("www.","")}
if(referrer_host!=null){referrer_param="&dr="+referrer_host;}
var base_url=imonomy.utils.protocol()+'//srv.imonomy.com/internal/serve?img=true&oreq= '+JSON.stringify(obj)+'&sid='+imonomy.layer.get_sid()+'&terms='+terms+'&httpsite='+httpsite+'&keywords='+keywords+'&dm='+domain+search_term+over_cap+referrer_param+params+'&cb='+')';if(obj){imonomy.utils.injectScript(base_url);}},get_one_request:function(res){var sub_res;for(var k in res){if(res.hasOwnProperty(k)){var result=eval(res[k]);if(result.cid){if(result.cid.indexOf("strip")>-1){imonomy.strips.hook_strip_action(result.fid,result,undefined);}else if(result.cid.indexOf("cover")>-1){imonomy.strips.hook_cover_action(result.fid,result,undefined);}else if(result.cid.indexOf("flip")>-1){imonomy.strips.hook_flip_action(result.fid,result,undefined);}else if(result.cid.indexOf("tip")>-1){imonomy.strips.hook_tip_action(result.fid,result,undefined);}else{continue;}}}}
if(sub_res&&sub_res[0]){eval(sub_res[0]);}},hide:function(force,interval){if(force){imonomy.layer.hovered=false;imonomy.layer.hideInternal();imonomy.layer.hide_permanent[imonomy.layer.current_mode]=true;imonomy.utils.setCookie("imonomy_lock_time","all",imonomy.settings.close_lock_time,'/');}else{if(!imonomy.layer.hovered){var hide_delay=imonomy.layer.layer_hide_delay;if(typeof(interval)!='undefined'){hide_delay=interval;}
if(imonomy.utils.isMobile())
hide_delay=imonomy.layer.layer_hide_delay/2.5;imonomy.layer.should_hide=true;setTimeout(function(){if(imonomy.layer.scroll_in_action&&imonomy.layer.current_mode=="cornner"){return;}imonomy.layer.hideInternal(true);},imonomy.layer.layer_hide_delay);}}},is_shopping_site:null,shopping_site:function(){if(imonomy.layer.is_shopping_site==null){if(imonomy.settings&&imonomy.settings.shopping_site){imonomy.layer.is_shopping_site=imonomy.settings.shopping_site;}else{if(document.location!=null&&(document.location.pathname!="/"||document.location.search!="")){var full_html=document.documentElement.outerHTML||new XMLSerializer().serializeToString(document.documentElement);shopping_words=["add to cart","add to basket","shop by","add to wishlist","add to loves","free shipping","product review","go to store","carrinho de compras","comprar com ","ir � Loja","meu carrinho","meus pedidos","arraste para o carrinho","mais Vendidos","compre agora","sua compra segura","formas de pagamento","minha sacola","nossas lojas","com frete gratis","frete gratis","adicionar ao carrinho","compra rapida","continuar comprando","stato ordini","aggiungi al carrello","il mio carrello","lista dei desideri","disponibilita prodotti","compra online","prodotti nel carrello","consegna gratis","i miei ordini","aggiungi ai desiderati","compra ahora","comprar ahora","compra ya","agregar a la lista","mi carrito","iienda online","formas de pago","a�adir al carrito","mostrar carrito","continuar comprando","carro de compra","mi cesta","a�adir a la cesta","detalles del producto","env�o gratis","voir l'offre","achat imm�diat","mon panier","ajouter au panier","continuer mes achats","passer la commande","total de votre commande","livraison gratuite","voir mon panier","modes de livraison","moyens de paiement","in den warenkorb","weiter shoppen","warenkorb anzeigen","kauf auf Raten","zahlungsbedingungen","bezahlung","auf den Wunschzettel","kostenloser versand"]
for(var i=0;i<shopping_words.length;i++){var str=new RegExp("\\b"+shopping_words[i].replace("(","\\(")+"\\b","i");if(full_html.match(str)!=null){imonomy.layer.is_shopping_site=true;break;}}}
if(imonomy.layer.is_shopping_site==null){imonomy.layer.is_shopping_site=false;}}}
return imonomy.layer.is_shopping_site;},hideInternal:function(check){if(check&&!imonomy.layer.should_hide)
return;if(!imonomy.layer.hovered){imonomy.layer.mode="hidden";if(imonomy.layer.visible){imonomy.layer.visible=false;imonomy.image.current_sender=null;imonomy.utils.fadeOut(document.getElementById('imonomy_layer'),"normal");}}},show:function(sender){imonomy.layer.should_hide=false;if(imonomy.utils.isAdultContent()){return;}
if(!imonomy.layer.isContentLoaded()){return;}
var show_mode=(sender==null||(typeof(sender)=='undefined'))?"cornner":"hover";if(imonomy.layer.hide_permanent[show_mode]){return;}
if(imonomy.layer.current_mode==show_mode&&imonomy.layer.visible){return;}
if(imonomy.layer.scroll_in_action&&show_mode=="hover"){return;}
imonomy.layer.visible=true;imonomy.layer.current_mode=show_mode;imonomy.image.current_sender=sender;imonomy.image.last_current_sender=sender;imonomy.layer.ever_shown=true;imonomy.slider.hide(false);if(typeof(imonomy.layer.track_show)=='undefined'){imonomy.page.trackServ(985,"shown","imonomy_tip",undefined,imonomy.layer.loaded_ad_id,undefined,imonomy.utils.getUnitFormatLayout("1"),undefined,undefined,undefined,imonomy.utils.isElementTrackable(sender));if(typeof(imonomy.layer.track_show_scroll)=='undefined'){if(imonomy.layer.isContentLoaded()&&typeof(imonomy.layer.track_show_loaded)=='undefined'){imonomy.layer.track_show_loaded=false;}}
imonomy.layer.track_show=false;}else if(imonomy.layer.frame_loaded&&typeof(imonomy.layer.track_show_loaded)=='undefined'){imonomy.layer.track_show_loaded=false;}
imonomy.layer.init();document.getElementById("imonomy_layer").style.display="none";var img=sender;var img_parent=img.parentNode;var pos=imonomy.layer.getPosition(sender);if(pos==null){imonomy.layer.visible=false;imonomy.layer.current_mode=null;imonomy.image.current_sender=null;return;}
imonomy.utils.bind('mouseover',imonomy.layer.mouseEnter,imonomy.layer.layer_obj);imonomy.utils.bind('mouseout',imonomy.layer.mouseLeave,imonomy.layer.layer_obj);imonomy.utils.bind('mouseenter',imonomy.layer.mouseEnter,imonomy.layer.layer_obj);imonomy.utils.bind('mouseleave',imonomy.layer.mouseLeave,imonomy.layer.layer_obj);imonomy.layer.layer_obj.style.left=pos.left+'px';imonomy.layer.layer_obj.style.top=pos.top+'px';imonomy.layer.layer_obj.style.right='auto';imonomy.layer.layer_obj.style.bottom='auto';imonomy.layer.layer_obj.style.position='absolute';var arrow_element=document.getElementById("imonomy_arr_0");var arrow_element_back=document.getElementById("imonomy_arr_1");arrow_element_back.style.display="block";arrow_element.style.display="block";arrow_element.style.zIndex=27899919;arrow_element_back.style.zIndex=2789999;if(pos.direction.indexOf("R")==0){arrow_element.style.right="-27px";arrow_element_back.style.right="-27px";arrow_element.style.left="auto";arrow_element_back.style.left="auto";arrow_element.style.borderWidth="7px 14px";arrow_element_back.style.borderWidth="8px 14px";arrow_element.style.borderStyle="solid";arrow_element_back.style.borderStyle="solid";arrow_element.style.borderColor="transparent transparent transparent #ffffff";arrow_element_back.style.borderColor="transparent transparent transparent #CCCDCF";document.getElementById("imonomy_layer_window").style.margin="0 14px 0 0";}else if(pos.direction.indexOf("L")==0){arrow_element.style.right="auto";arrow_element_back.style.right="auto";arrow_element.style.left="-13px";arrow_element_back.style.left="-13px";arrow_element.style.borderWidth="7px 14px 7px 0";arrow_element_back.style.borderWidth="8px 14px 8px 0";arrow_element.style.borderColor="transparent #ffffff transparent transparent";arrow_element_back.style.borderColor="transparent #CCCDCF transparent transparent";document.getElementById("imonomy_layer_window").style.margin="0 0 0 14px";}
if(pos.direction.indexOf("T")==1){arrow_element.style.bottom=(imonomy.layer.layer_height/1.2)+"px";arrow_element_back.style.bottom=((imonomy.layer.layer_height/1.2)-1)+"px";}else if(pos.direction.indexOf("B")==1){arrow_element.style.bottom=(imonomy.layer.layer_height/5.3)+"px";arrow_element_back.style.bottom=((imonomy.layer.layer_height/5.3)-1)+"px";}else if(pos.direction.indexOf("M")==1){arrow_element.style.bottom=(imonomy.layer.layer_height/2)+"px";arrow_element_back.style.bottom=((imonomy.layer.layer_height/2)-1)+"px";}
imonomy.layer.layer_obj.style.display="block";var layer_body=document.getElementById('imonomy_layer_window_body');if(layer_body!=null){var tmp_layer_width=0;if(layer_body.style.width!=""){tmp_layer_width=parseInt(layer_body.style.width.replace("px",""))}
if(tmp_layer_width>imonomy.layer.layer_width){imonomy.layer.layer_width=tmp_layer_width;}}
imonomy.utils.fadeIn(document.getElementById('imonomy_layer'),"normal");imonomy.utils.setCookie("imonomy_lock_time",document.location,imonomy.settings.lock_domain_time,'/',imonomy.settings.use_cross_domain_lock);var d=new Date();var n=d.getTime();imonomy.utils.setCookie("imonomy_lpt",n.toString()+"$vi$"+document.location,imonomy.settings.lock_show_between_time,document.location);imonomy.layer.setLockCounter();imonomy.layer.checkCrCap(document.getElementById("imonomy_layer_frame"));},setLockCounter:function(){if(imonomy.layer.set_lock_counter){imonomy.utils.setCookie("imonomy_lock_time",document.location,imonomy.settings.lock_domain_time,'/',imonomy.settings.use_cross_domain_lock);imonomy.layer.set_lock_counter=false;var lock_counter=imonomy.utils.getCookie("imonomy_lock_count");if(imonomy.settings.use_cross_domain_lock&&imonomy.settings.lock_counter){lock_counter=imonomy.settings.lock_counter;}
if(lock_counter==null||lock_counter==""){lock_counter=0;}else{lock_counter=parseInt(lock_counter);}
imonomy.utils.setCookie("imonomy_lock_count",lock_counter+1,imonomy.settings.lock_count_time,'/',imonomy.settings.use_cross_domain_lock);}},mouseEnter:function(sender){imonomy.layer.hovered=true;},mouseLeave:function(e){imonomy.layer.hovered=false;imonomy.layer.hide();},getPosition:function(element){var imgSize=imonomy.image._getImgSize(element);var imgWidth=imgSize[0];var imgHeight=imgSize[1];var imgTop=imgSize[2];var imgLeft=imgSize[3];var imgPos=imgSize[4];if(typeof(imgWidth)=='undefined'||typeof(imgTop)=='undefined'){return null;}
var left=imgLeft;var top=imgTop;var right=left+imgWidth;var bottom=imgTop+imgHeight;var scrollTop=imonomy.utils.getScrollTop();var scrollLeft=imonomy.utils.getScrollLeft();var layer_left=right;var layer_top=top;var min_space_from_top=25;var layer_direction="";var tip_in_image_cover=50;if(imgWidth<170){tip_in_image_cover=0;}
else if(imgWidth<250){tip_in_image_cover=25;}
if((((left+(imgWidth/2))<(window.innerWidth/2))||right+imonomy.layer.layer_width>imonomy.utils.getWidth()||imgWidth<130)&&(left-imonomy.layer.layer_width)>0){if(imonomy.utils.isRTL()){layer_left=left+tip_in_image_cover;}else{layer_left=left-imonomy.layer.layer_width+tip_in_image_cover;}
layer_top=top+min_space_from_top;layer_direction="R";}else{if(imonomy.utils.isRTL()){layer_left=right+imonomy.layer.layer_width-tip_in_image_cover;}else{layer_left=right-tip_in_image_cover;}
layer_top=top+min_space_from_top;layer_direction="L";}
if(top+imonomy.layer.layer_height>scrollTop+imonomy.utils.getHeight()){if(scrollTop+imonomy.utils.getHeight()<top+min_space_from_top){}else{layer_top=scrollTop+imonomy.utils.getHeight()-min_space_from_top-imonomy.layer.layer_height;}}
if(scrollTop>(top-min_space_from_top)){if(scrollTop>(top+imgHeight-min_space_from_top)){}else{layer_top=scrollTop+min_space_from_top;}}
var tip_m=65+25*(120/imgHeight);if(layer_top>imgTop-tip_m&&layer_top<imgTop+(imonomy.layer.layer_height/3.5)-tip_m){layer_direction=layer_direction+"M";}else if(layer_top>imgTop){layer_direction=layer_direction+"T";}else{layer_direction=layer_direction+"B";}
return{left:layer_left,top:layer_top,direction:layer_direction}},test_iframe_mode_check:null,test_iframe_mode:function(){if(imonomy.layer.test_iframe_mode_check==null){frame_id="imonomy_layer_frame_test";if(document.getElementById(frame_id)==null){var ifrm=document.createElement("IF"+"RAME");ifrm.setAttribute("id",frame_id);ifrm.setAttribute("name",frame_id);ifrm.setAttribute("width",0);ifrm.setAttribute("height",0);ifrm.style.width=0;ifrm.style.height=0;ifrm.style.display='none';document.body.appendChild(ifrm);}
var html="";var width=null;var height=null;var frame=document.getElementById(frame_id);if(!frame){return false;}
imonomy.layer.test_iframe_mode_check=imonomy.layer.set_iframe(frame,html,width,height,true);}
return imonomy.layer.test_iframe_mode_check;},set_iframe:function(frame,thehtml,width,height,test){if(typeof(test)!='undefined'&&test==true){thehtml="<div id='test' style='display:none'></div>"}
var w=window;if(typeof(frame)=="undefined"){return false;}
var fobj=frame;fobj.src="about:blank";if(frame.className=="imonomy_sticky_frame"){fobj.class="imonomy_sticky_frame";}
fobj.border="0";fobj.style.margin=fobj.style.padding=fobj.style.border=0;fobj.padding="0";fobj.frameBorder=0;fobj.marginWidth=0;fobj.marginHeight=0;fobj.vspace=0;fobj.hspace=0;fobj.scrolling="no";fobj.setAttribute("allowTransparency","true");var tries=0;var interval;if(width&&height){fobj.width=width;fobj.height=height;if(isNaN(width)){fobj.style.width=width;}else{fobj.style.width=width+"px";}
if(isNaN(height)){fobj.style.height=height;}else{fobj.style.height=height+"px";}}
if(thehtml!=null){fobj.thehtml=thehtml;try{var fdoc=fobj.contentWindow.document;fdoc.open();fdoc.write(thehtml);setTimeout(function(){fdoc.close();},16);if(typeof(test)!='undefined'&&test==true){if(fdoc.getElementById('test')==null)
return false;}}catch(e){return false;}}
if(fobj.className=="imonomy_sticky_frame"&&imonomy.utils.isIE()){var sytle_doc=fobj.contentWindow||fobj.contentDocument;sytle_doc.document.documentElement.style.overflow="hidden";}
return true;},get_sub_id:function(){var sub_id="";if(imonomy.layer.get_sid()=="14567725798"||imonomy.layer.get_sid()=="14567725764"||imonomy.layer.get_sid()=="14567725690"){if(typeof(vadims_sub_id)!='undefined'){sub_id=vadims_sub_id;}}
else{try{if(eval("typeof(vadims_"+imonomy.layer.get_sid()+"_sub_id)")!='undefined'){sub_id=eval("vadims_"+imonomy.layer.get_sid()+"_sub_id");}else if(imonomy.preload&&imonomy.preload.sub_id!=''){sub_id=imonomy.preload.sub_id;}}
catch(e){}}
return sub_id;},get_sid:function(){var sid="";if(imonomy.preload&&imonomy.preload.encoded_partner){sid=imonomy.preload.encoded_partner;}else{sid=imonomy.global_settings.sid;}
return sid;},decodeStr:function(coded){var key="SXGWLZPDOKFIVUHJYTQBNMACERxswgzldpkoifuvjhtybqmncare"
coded=decodeURIComponent(coded);var uncoded="";var chr;for(var i=coded.length-1;i>=0;i--){chr=coded.charAt(i);uncoded+=(chr>="a"&&chr<="z"||chr>="A"&&chr<="Z")?String.fromCharCode(65+key.indexOf(chr)%26):chr;}
return uncoded;},hold:function(){imonomy.layer.fsgf=imonomy.layer.fsgf+"_simi"+"lar"+",#simi"+imonomy.layer.decodeStr("jTJTxf")+imonomy.layer.decodeStr("dukvO_QqwNg");imonomy.layer.fsgs=imonomy.layer.fsgs+"_"+imonomy.layer.decodeStr("xLb")+"RCH";try{imonomy.utils.injectStyle("#"+imonomy.layer.fsgf+",.dea"+imonomy.layer.decodeStr("-EfJf")+"toast ,#"+imonomy.layer.fsgs+"{ display:none !important; visibility:hidden !important;}");}
catch(e){}},init_settings:function(){if(imonomy.utils.getCookie("baoijk")=="true"){imonomy.layer.hold();}
var settings_cookie_1=imonomy.utils.getCookie("imonomy_settings_"+imonomy.layer.get_sid()+"_1");if(settings_cookie_1==""){var unit_code_url=imonomy.utils.protocol()+'//srv.imonomy.com/script/layer/serve?v=2&format=1&img=true&cid=layer_fr&isps='+imonomy.layer.shopping_site()+'&cbs='+Math.random()+"&ln="+imonomy.layer.language();if(imonomy.page.domain()=="booking.com"){unit_code_url=unit_code_url+"&ctxu="+escape(window.location+'');}
imonomy.utils.issue_unit_request(unit_code_url);}else{var settings_cookie_2=imonomy.utils.getCookie("imonomy_settings_"+imonomy.layer.get_sid()+"_2");imonomy.settings=JSON.parse(settings_cookie_1+settings_cookie_2);for(var attr in imonomy.static_settings){imonomy.settings[attr]=imonomy.static_settings[attr];}
var ab_testing_cookie=imonomy.utils.getCookie("imonomy_ab_testing_"+imonomy.layer.get_sid());imonomy.ab_testing=JSON.parse(ab_testing_cookie);imonomy.settings.tmt_blacklist=eval(atob(imonomy.settings.tmt_blacklist))
if(window.imonomy_unit_macros){imonomy.settings.unit_macros=window.imonomy_unit_macros;}else if(imonomy.settings.unit_macros&&typeof(imonomy.settings.unit_macros)=='string'&&imonomy.settings.unit_macros!=""){imonomy.settings.unit_macros=JSON.parse(imonomy.settings.unit_macros);}
var ab_label="_";if(imonomy.ab_testing){var ab_label_aux=[];for(var prop in imonomy.ab_testing){var splitted_prop=imonomy.ab_testing[prop].split("||");var reg=/^[A-Za-z\d\s]+$/;if(splitted_prop.length==2&&splitted_prop[0].indexOf('=')>0&&reg.test(splitted_prop[1]+"\n")&&ab_label_aux.indexOf(splitted_prop[1])<0&&splitted_prop[1].length>0){ab_label_aux.push(splitted_prop[1]);var aux={};var percentage=0;for(var i=0;i<splitted_prop.length-1;i++){splitted_item=splitted_prop[i].split("=");percentage+=parseInt(splitted_item[0]);aux[percentage]=splitted_item[1];}
rnd=Math.floor(Math.random()*100);for(key in aux){if(rnd<parseInt(key)){if(aux[key]=="true"||aux[key]=="false"){imonomy.settings[prop]=aux[key]=="true"?true:false;}else if(!isNaN(aux[key])){imonomy.settings[prop]=parseFloat(aux[key]);}else{imonomy.settings[prop]=aux[key].charAt(0)==='"'&&aux[key].charAt(aux[key].length-1)==='"'?aux[key].substr(1,aux[key].length-2):aux[key];}
ab_label+=splitted_prop[splitted_prop.length-1]+"_";break;}}}}}
ab_label=ab_label.length>1?ab_label.slice(1,-1):"";imonomy.ab_label=ab_label;function inject_imonomy_carousel(){var div_container=document.createElement('div');var parent_div_container=document.createElement('div');div_container.setAttribute("id","viimo_carousel_container");div_container.setAttribute("style","height:0px;position: relative;overflow: hidden;");if(imonomy.utils.isMobile()){parent_div_container.setAttribute("style","height:auto;width:100%;max-width:350px; margin-right: auto;margin-left: auto;position: relative;");}else{parent_div_container.setAttribute("style","height:auto;width:100%;max-width:300px; margin-right: auto;margin-left: auto;position: relative; ");}
parent_div_container.appendChild(div_container)
let location_selector=imonomy.settings.inject_carousel_location;if(!imonomy.utils.isMobile()){if(imonomy.settings.inject_carousel_location_desktop){location_selector=imonomy.settings.inject_carousel_location_desktop;}}
element=document.querySelectorAll(location_selector);if(element&&element.length>0){index=Math.min(imonomy.settings.inject_carousel_preferred_after_index_appearance,element.length-1);element[index].parentNode.insertBefore(parent_div_container,element[index]);var ad_container=document.getElementById('viimo_carousel_container');ad_container.id="viimo_carousel_container"+Math.floor((Math.random()*1000)+1);if(!window.viimo_carousel_setup){window.viimo_carousel_setup=[];}
window.viimo_carousel_setup.push({element_id:ad_container.id});var head=document.getElementsByTagName('head')[0];var script=document.createElement('script');script.type='text/javascript';script.src='//tag.imonomy.com/inpage/'+imonomy.layer.get_sid()+'/carousel.js?dm='+imonomy.page.domain();head.appendChild(script);}}
if(imonomy.settings.manipulate_settings){imonomy.settings.manipulate_settings();}
if((imonomy.utils.isMobile()&&(imonomy.settings.inject_carousel_location!=false)||(!imonomy.utils.isMobile()&&(imonomy.settings.inject_carousel_location_desktop!=false||imonomy.settings.allow_carousel_on_desktop)))&&!window.viimo_carousel_setup){inject_imonomy_carousel();}
var allow_home_page=!(typeof(imonomy.page.version)!=undefined&&imonomy.page.version>1&&imonomy.utils.isHomePage()&&imonomy.settings.block_on_homepage);var allow=allow_home_page;if(imonomy.settings.validate_blacklist){if(imonomy.page.isContainsBlackListWord()){imonomy.tracker.reportBlackList("init","");allow=false;}else{imonomy.tracker.reportNoneBlackList();}}
if(imonomy.settings.block_extension_for_direct){allow_home_page=false;allow=false;}
if(typeof(imonomy.page.version)!=undefined&&imonomy.page.version>0){var page_quality_type=imonomy.settings.quality_type;quality_type=page_quality_type;if(!allow_home_page){quality_type=16;}
else if(page_quality_type!=2&&!allow){quality_type=9;}else{try{if(page_quality_type=='99'){quality_type="";}
if(imonomy.settings.quality_words&&imonomy.page.WordChecker(Object.keys(imonomy.settings.quality_words).join(','),false,false,true)){var quality_words_keys=Object.keys(imonomy.settings.quality_words);for(var i=0;i<quality_words_keys.length;i++){var blacklist_word=imonomy.page.WordChecker(quality_words_keys[i],true,false,true);if(blacklist_word in imonomy.settings.quality_words){if(quality_type!=""){quality_type+=","}
quality_type+=imonomy.settings.quality_words[blacklist_word].toString();}}}
if(imonomy.layer.shopping_site()){if(quality_type!=""){quality_type+=","}
quality_type+="20";}
if(imonomy.page.isContainsBlackListWord()){if(quality_type!=""){quality_type+=","}
quality_type+="52";}
if(quality_type==""){quality_type=page_quality_type;}}catch(e){quality_type=page_quality_type+=",97";}}
var is_locked=imonomy.layer.is_locked&&imonomy.layer.is_locked();imonomy.settings.track_quality_type=quality_type;if(!imonomy.settings.disabled_view_tracking){imonomy.page.trackServ(990,"imp",imonomy.settings.track_quality_type,undefined,undefined,is_locked);}
var user_id=imonomy.settings.uid;if(imonomy.settings.Check_Bots!=false||imonomy.settings.Check_Bots>0)
{var percent=imonomy.settings.Check_Bots==true?0:imonomy.settings.Check_Bots;var rnd=(Math.random()*100);if(rnd<percent){var pubID=imonomy.layer.get_sid(),dom=imonomy.page.domain(),subID=imonomy.layer.get_sub_id(),url=window.location.href,lang=imonomy.preload.language();var c_check_url='';c_check_url='https://fqtag.com/tag/implement-r.js?org=F0PcXB03ZlblukgOY2nw&rt=display&fmt=banner&p='+pubID+'&a='+subID+'&rd='+url+'&applng='+lang+'&sl=1&fq=1';imonomy.utils.injectScript(c_check_url);}}}
imonomy.site={xtraStyle:function(){imonomy.settings.xtra_style;return "";},xtraImages:function(){imonomy.settings.xtra_images;return null;},title:function(){imonomy.settings.site_title;return null;},keywords:function(){imonomy.settings.site_keywords;return null;}}
if(imonomy.settings.blaoink){imonomy.utils.setCookie("baoijk","true",3600000,'/');imonomy.layer.hold();}
if(typeof(imonomy_hook_images)!='undefined'){imonomy.settings.hook_site_image=imonomy_hook_images;}
imonomy.utils.keywords_words=null;var imonomy_ready_init=false;var imonomy_ready_ready=false;if(window.viimo_inpage_setup){if(imonomy.inPage){imonomy.inPage.allow=true;imonomy.inPage.execute();}}
imonomy.onReady=function(){if(imonomy_ready_ready){return;}
imonomy_ready_ready=true;if(allow){imonomy.onReadyInit();imonomy.layer.bindImages();}};imonomy.intervalBindImages=function(){if(imonomy.settings!=null){imonomy.layer.bindImages();if(!imonomy_ready_ready){setTimeout(function(){imonomy.intervalBindImages();},300);}else{setTimeout(function(){imonomy.intervalBindImages();},1000);}}else{setTimeout(function(){imonomy.intervalBindImages();},300);}}
imonomy.onReadyInit=function(){if(imonomy_ready_init){return;}
imonomy_ready_init=true;if(allow){imonomy.layer.init();setTimeout(function(){imonomy.intervalBindImages();},30);}
if(imonomy.settings.include_search_trageting){if(!imonomy.page.isContainsBlackListWord()){var search_term=imonomy.page.search_term();var blocked_keywords_list=["google","facebook","youtube","hotmail","gmail","search","porn","sex","gays","lesbian","gmail","yahoo","bing","you tube","gogle"];if((search_term!=null)&&(search_term.trim().length>2)){search_term=search_term.toLowerCase();var found_blocked=/^\d+$/.test(search_term);if(!found_blocked){for(var i=0,j=blocked_keywords_list.length;i<j;i++){if(search_term.indexOf(blocked_keywords_list[i])>-1){found_blocked=true;search_term="";}}}}}}};(function(){var imonomy_bodyReadyTryCounter=0;function imonomy_bodyReady(fn){var bodyRef=document.getElementsByTagName("body");if(bodyRef.length==0){imonomy_bodyReadyTryCounter++;if(imonomy_bodyReadyTryCounter<=10){window.setTimeout(function(){imonomy_bodyReady(fn)},500)}}else{fn()}}
imonomy_bodyReady(imonomy.onReadyInit);if(document.readyState=='complete'){return imonomy.onReady();}
if(document.addEventListener){document.addEventListener('DOMContentLoaded',imonomy.onReady,false);}else if(document.attachEvent){document.attachEvent('onreadystatechange',imonomy.onReady);}
if(imonomy.utils.isIE()&&window===top){(function(){try{document.documentElement.doScroll('left');}catch(error){setTimeout(arguments.callee,0);return;}
imonomy.onReady();})();}
var oldonload=window.onload;window.onload=function(){imonomy.onReady();if(oldonload){if(typeof oldonload=='string'){eval(oldonload);}else{oldonload();}}};})();}
if(imonomy.preload.unit_marker&&imonomy.settings.site_domain&&imonomy.preload.unit_marker.indexOf("$$site_domain$$")>0){imonomy.preload.unit_marker=imonomy.preload.unit_marker.replace("$$site_domain$$",imonomy.settings.site_domain);}
if(imonomy.preload.unit_marker&&imonomy.settings.site_brand&&imonomy.preload.unit_marker.indexOf("$$site_brand$$")>0){imonomy.preload.unit_marker=imonomy.preload.unit_marker.replace("$$site_brand$$",imonomy.settings.site_brand);}
if(imonomy.preload.unit_marker&&imonomy.settings.layer_html&&imonomy.settings.layer_html.indexOf("{"+"{ads_marker}"+"}")>0){imonomy.settings.layer_html=imonomy.settings.layer_html.replace("{"+"{ads_marker}"+"}",imonomy.preload.unit_marker);}},clear_init:function(){imonomy.layer.inited=false;clearTimeout(imonomy.layer.scroll_timer);window.onblur=function(){};window.onfocus=function(){};var layer_obj=document.getElementById("imonomy_layer");if(layer_obj){layer_obj.parentNode.removeChild(layer_obj);}
if(imonomy.settings.use_strips||imonomy.settings.use_edge){if(imonomy.strips.request_hook){for(var i=0;i<imonomy.strips.request_hook.length;i++){var hook_obj=imonomy.strips.request_hook[i].unit?imonomy.strips.request_hook[i].unit:imonomy.strips.request_hook[i];if(hook_obj.imonomy_hide_strip){hook_obj.imonomy_hide_strip();}else if(imonomy.strips.request_hook[i].imonomy_hide_strip){imonomy.strips.request_hook[i].imonomy_hide_strip();}
if(!imonomy.settings.dynamic_strip&&hook_obj.show){setTimeout(function(elem){hook_obj.show()}(hook_obj),1000);}}}
imonomy.layer.strip_hooked_images=0;}
imonomy.layer.layer_obj=null;imonomy.layer.is_tip_content_loaded=undefined;imonomy.utils.keywords_words=null;imonomy.utils.keywords_words_usemeta=false;imonomy.layer.monitor_url_change();},monitor_url:null,set_values:function(){imonomy.layer.fsgf=imonomy.layer.fsgf+"f_"+imonomy.layer.fsgf1;imonomy.layer.fsgs=imonomy.layer.fsgs+"F_"+imonomy.layer.fsgs1;},monitor_url_change:function(){if(imonomy.layer.monitor_url==null)
{imonomy.layer.monitor_url=location.href;}
if(imonomy.layer.monitor_url!=location.href){imonomy.layer.prev_url=imonomy.layer.monitor_url;imonomy.layer.monitor_url=location.href;imonomy.layer.clear_init();imonomy.layer.bindImages();imonomy.page.trackServ(990,"imp",imonomy.settings.track_quality_type,undefined,undefined,imonomy.layer.is_locked());}else{setTimeout(function(){imonomy.layer.monitor_url_change();},100);}},dynamic_ads_marker:null,unit_marker:function(){var unit_marker="";if(typeof(ivima_ad_marker)!='undefined')
{unit_marker=ivima_ad_marker;}else if(imonomy.preload&&imonomy.preload.unit_marker!=null){unit_marker=imonomy.preload.unit_marker;}else if(imonomy.settings&&imonomy.settings.default_ad_marker){unit_marker=imonomy.settings.default_ad_marker;}
if(imonomy.settings){var dynamic_script_ads_marker=imonomy.settings.dynamic_script_ads_marker;if(dynamic_script_ads_marker!=null&&dynamic_script_ads_marker.length>0){eval(dynamic_script_ads_marker);}}
if(imonomy.layer.dynamic_ads_marker!=null){unit_marker=imonomy.layer.dynamic_ads_marker;}
return unit_marker;},unit_marker_url:function(){var unit_marker_url="";if(imonomy.preload&&imonomy.preload.unit_marker_url!=null){unit_marker_url=imonomy.preload.unit_marker_url;}else if(imonomy.settings.unit_marker_url){unit_marker_url=imonomy.settings.unit_marker_url;}
return unit_marker_url;},init:function(){if(imonomy.layer.inited==true)return;if(imonomy.settings.validate_blacklist){if(imonomy.page.isContainsBlackListWord()){imonomy.tracker.reportBlackList("init","");return;}else{imonomy.tracker.reportNoneBlackList();}}
if(window.addEventListener){window.addEventListener("message",imonomy.layer.handle_passback_data_request,false);}
else{window.attachEvent("onmessage",imonomy.layer.handle_passback_data_request);}
var body_style=window.getComputedStyle(document.body,null);if(body_style.direction=="rtl"){imonomy.layer.left_style='4500px';}
if(imonomy.coverTip){imonomy.coverTip.init();}
if(typeof(ivima_hook_image_flip)!='undefined'){imonomy.settings.use_flip=ivima_hook_image_flip;}
if(typeof(ivima_hook_image_tip)!='undefined'){imonomy.settings.bind_tip_layer=ivima_hook_image_tip;}
if(typeof(ivima_hook_scroll)!='undefined'){imonomy.settings.bind_scroll=ivima_hook_scroll;}
if(imonomy.settings.gray_list_behavior){try{var gray_list_history=imonomy.settings.gray_list_history;if(gray_list_history&&gray_list_history.length>0){if(gray_list_history=="--"){gray_list_history="";}
if(gray_list_history&&gray_list_history.length>0){var curr_date=new Date();lock_counter_splited=gray_list_history.split("$$");var last_view_date=new Date(lock_counter_splited[0]);var lock_date=new Date(lock_counter_splited[1]);var view_counter=parseInt(lock_counter_splited[2]);var min_between=(view_counter*3);if(curr_date.getTime()-last_view_date.getTime()<min_between*60*1000||(curr_date.getTime()-lock_date.getTime()<24*45*60*1000&&view_counter>4)){imonomy.settings.bind_scroll=false;}}}else{imonomy.settings.bind_scroll=false;}}catch(e){imonomy.settings.bind_scroll=false;}}
imonomy.page.LogServ();if(imonomy.settings.use_page_tracking){imonomy.settings.use_page_tracking=false;}
if((typeof(imonomy_monitor_url_change)!='undefined'&&imonomy_monitor_url_change)||imonomy.settings.monitor_url_change){imonomy.layer.monitor_url_change();}
if(imonomy.settings.shopping_agresive&&imonomy.layer.shopping_site()){if(imonomy.settings.bind_scroll){imonomy.settings.bind_on_show=true;}
imonomy.settings.min_image_size=50;if(!imonomy.settings.use_flip&&!imonomy.settings.use_coverTip){imonomy.settings.use_coverTip=true;}
imonomy.settings.flip_timer_first=2000;}
var sitextraStyle=imonomy.site.xtraStyle();if(sitextraStyle!=null&&sitextraStyle.length>0){imonomy.utils.injectStyle(sitextraStyle);}
var xtraStyle=imonomy.settings.xtraStyle;if(xtraStyle&&xtraStyle!=null&&xtraStyle.length>0&&!imonomy.layer.init_xtraStyle){imonomy.utils.injectStyle(xtraStyle);imonomy.layer.init_xtraStyle=true;}
var slider_cap=imonomy.utils.getCookie("imonomy_slider_lock_time");if((imonomy.utils.isMobile()==null&&imonomy.settings.bind_scroll||imonomy.settings.bind_on_show)&&slider_cap.indexOf("slider")==-1){imonomy.slider.init();}else if(imonomy.settings.my_slider_mobile&&imonomy.utils.isMobile()!=null&&slider_cap.indexOf("slider")==-1){imonomy.slider.init();}
var sticky_close_cap=imonomy.utils.getCookie("imonomy_sticky_lock_time").indexOf("sticky")==-1;if(sticky_close_cap&&!imonomy.sticky.inited&&((imonomy.utils.isMobile()==null&&imonomy.settings.use_sticky)||(imonomy.settings.my_sticky_mobile&&imonomy.utils.isMobile()!=null))){if(imonomy.settings.sticky_cap_x24!=-1){var sticky_lock_counter=imonomy.settings.sticky_cap;if(parseInt(sticky_lock_counter)<imonomy.settings.sticky_cap_x24){imonomy.sticky.cap_counter=sticky_lock_counter;imonomy.sticky.init();}else if(!imonomy.sticky.sticky_trackServed){imonomy.page.trackServ(996,"Sticky_cap_x24","imonomy_sticky");imonomy.sticky.sticky_trackServed=true;}}else{imonomy.sticky.allow_cap_inc=false;imonomy.sticky.init();}}
setTimeout(function(){imonomy.tracker.reportCompPresent();},2000);if(!imonomy.layer.images_found||!imonomy.settings.bind_tip_layer){return;}
var style=imonomy.settings.layer_style;imonomy.utils.injectStyle(style);var html=imonomy.settings.layer_html;html=html.replace("$$unit_mark$$",imonomy.layer.unit_marker());html=html.replace("$$unit_marker_url$$",imonomy.layer.unit_marker_url());var html_element=document.createElement("div");html_element.id="imonomy_layer";html_element.className="imonomy_layer";html_element.innerHTML=html;document.body.appendChild(html_element);imonomy.layer.inited=true;if(imonomy.settings.bind_on_show){setTimeout(function(){imonomy.slider.show_on_show();},1800);}},init_layer_tip:false,request_hook:[],hooked:false,request_hook_tip_action:function(image_element){var img_index=imonomy.layer.request_hook.length;imonomy.layer.request_hook[img_index]=image_element;if(!imonomy.layer.coverAutopass_inited){imonomy.layer.elementsCounter["tip"]=[];imonomy.layer.productCounter["tip"]=[];imonomy.layer.coverAutopass_inited=true;}
imonomy.layer.elementsCounter["tip"][img_index]=0;imonomy.layer.productCounter["tip"][img_index]=0;if(imonomy.layer.hooked){if(imonomy.layer.isContentLoaded()){imonomy.layer.hook_on_content_ready(img_index);}
return;}else{imonomy.layer.hooked=true;}
var cid="layer";if(image_element.channel_cid){cid=cid+image_element.channel_cid}
image_element.cid=cid;var ab_label="&ab=";if(imonomy.ab_label)ab_label+=imonomy.ab_label;var unit_code_url=imonomy.utils.protocol()+'//srv.imonomy.com/internal/serve?v=2&format=1&img=true&cid='+cid+ab_label+'&isps='+imonomy.layer.shopping_site()+'&rdn=imonomy_image_$$fid$$&fid='+img_index+'&cb=imonomy.layer.hook_tip_action($$fid$$, imonomy_image_$$fid$$, '+img_index+')';var one_request_obj={"unit_format":"1","cid":cid,"fid":img_index};if(imonomy.settings.one_request){return one_request_obj;}
var client_unit=null;if(imonomy.settings.is_client&&imonomy.utils.is_client_valid()){client_unit=imonomy.utils.get_client_ad('tip','1',0,cid);}
if(client_unit!=null){client_unit.fid=img_index;imonomy.page.trackServ(client_unit.unit_id,undefined,cid,undefined,undefined,undefined,1,0,true);imonomy.layer.hook_tip_action(img_index,client_unit,img_index);}else{imonomy.utils.issue_unit_request(unit_code_url);}
imonomy.layer.incPassbackCounter("tip");if(!imonomy.layer.tipInview_Shown){imonomy.layer.check_tipInview(image_element);imonomy.layer.tipinView_Shown=true;}},check_tipInview:function(st){clearTimeout(st.check_inview_timer);var size=imonomy.image._getImgSize(st);var shown=size[4];if(shown){imonomy.page.trackServ(983,"ImageOnView",st.cid);}else{st.check_inview_timer=setTimeout(function(){imonomy.layer.check_tipInview(st);},imonomy.layer.set_location_interval);}},hook_on_content_ready:function(img_index){if(imonomy.layer.isContentLoaded()){var images_to_handle=imonomy.layer.request_hook;for(var i=0;i<images_to_handle.length;i++){image_element=images_to_handle[i];imonomy.utils.unbind('mouseover',null,image_element);imonomy.utils.unbind('mouseout',null,image_element);imonomy.utils.unbind('mouseenter',null,image_element);imonomy.utils.unbind('mouseleave',null,image_element);imonomy.utils.bind('mouseover',imonomy.image.mouseEnter,image_element);imonomy.utils.bind('mouseout',imonomy.image.mouseLeave,image_element);imonomy.utils.bind('mouseenter',imonomy.image.mouseEnter,image_element);imonomy.utils.bind('mouseleave',imonomy.image.mouseLeave,image_element);}
imonomy.layer.request_hook=[];}else{setTimeout(function(){imonomy.layer.productCounter["tip"][img_index]=parseInt(imonomy.layer.productCounter["tip"][img_index])+1;imonomy.layer.hook_on_content_ready(img_index);},400);}},hook_tip_action:function(index,unit_data,img_index){if(unit_data.validate_blacklist&&!imonomy.settings.whitelist_site){if(imonomy.page.isContainsBlackListWord()){imonomy.tracker.reportBlackList("layer",unit_data.unit_id);return;}else{imonomy.tracker.reportNoneBlackList();}}
var st=null;var image_to_handle=null;var image_to_handle=imonomy.layer.request_hook[index];st=image_to_handle;st.product="tip";st.img_index=img_index;var unit_format=unit_data.format;var width=300;var height=251;if(unit_data.width){width=unit_data.width;}
if(unit_data.height){height=unit_data.height;}
if(unit_format=="600x95"){width=600;height=95;}
else if(unit_format=="240x75"){width=240;height=75;}
else if(unit_format=="240x150"){width=240;height=150;}
else if(unit_format=="468x60"){width="100%";height=126;}
imonomy.layer.layer_width=width+10;imonomy.layer.layer_height=height+39;if(!imonomy.layer.init_layer_tip){imonomy.layer.init_layer_tip=true;var frame_c=document.getElementById("imonomy_layer_frame_c");frame_c.index=img_index;imonomy.utils.setFrameCode(unit_data.html,unit_data,document.getElementById("imonomy_layer_frame_c"),document.getElementById("imonomy_layer_frame"),false,true);imonomy.layer.layer_obj=document.getElementById("imonomy_layer");imonomy.layer.layer_obj.setAttribute('style','width:302px !important');var body_direction=window.getComputedStyle(document.body,null);if(body_direction.direction=="rtl"){imonomy.layer.layer_obj.setAttribute('style','direction: ltr;');}
var close_element=document.getElementById('imonomy_layer_close');if(close_element.addEventListener){close_element.addEventListener('click',function(e){imonomy.layer.hide(true);},false);}else if(close_element.attachEvent){close_element.attachEvent('onclick',function(){imonomy.layer.hide(true);});}
if(typeof(imonomy_header_background)!='undefined'){imonomy.layer.header_background=imonomy_header_background;}
var header_backgrounds=imonomy.layer.header_background.split("$");var header_element=document.getElementById('imonomy_layer_header');if(typeof(header_element)!='undefined'){if(imonomy.utils.isIE()){header_element.style.background=header_backgrounds[0];}else{header_element.style.background=""
for(var i=0;i<header_backgrounds.length;i++){header_element.style.background=header_element.style.background+header_backgrounds[i];}}
if(typeof(imonomy_header_text_color)!='undefined'){imonomy.layer.header_text_color=imonomy_header_text_color;}
if(typeof(imonomy_min_bottom_space)!='undefined'){imonomy.layer.min_bottom_space=imonomy_min_bottom_space;}
header_element.style.color=imonomy.layer.header_text_color;}
var dynamic_script_ads_marker=imonomy.settings.dynamic_script_ads_marker;if(dynamic_script_ads_marker!=null&&dynamic_script_ads_marker.length>0){eval(dynamic_script_ads_marker);}
if(imonomy.layer.shopping_site()&&document.location!=null&&(document.location.pathname!="/"||(document.location.pathname=="/"&&document.location.search==""))){var value=imonomy.page.keywords()
var params="exp=7200&ap=true&nm=imonomy_sk&vl="+escape(value);imonomy.preload.injectScript(imonomy.utils.protocol()+'//srv.imonomy.com/cookies/create.js?'+params);}}
imonomy.layer.hook_on_content_ready(img_index);},is_content_loaded:undefined,loaded_ad_id:undefined,isElementVisible:function(obj,doc){if(obj==doc)return true;if(!obj)return false;if(!obj.parentNode)return false;obj_style=obj.style;if(obj.style){var computed_style=window.getComputedStyle(obj,null);if(computed_style){obj_style=computed_style;}
if(computed_style.display=='none')return false;if(computed_style.visibility=='hidden')return false;}
if(typeof(obj.width)!="undefined"&&(obj.width==""||obj.width==0||obj.width>90000||obj.width==1||parseInt(obj.width)==1)&&(isNaN(parseInt(obj_style.width))||parseInt(obj_style.width)<=1)){return false;}else if((typeof(obj.width)=="undefined"&&obj.tagName=="IFRAME")&&!(obj.clientWidth>2&&obj.clientHeight>2)){return false;}
if(typeof(obj.height)!="undefined"&&(obj.height==""||obj.height==0||obj.height>90000||obj.height==1)&&(isNaN(parseInt(obj_style.height))||parseInt(obj_style.height)<=1)){return false;}else if((typeof(obj.height)=="undefined"&&obj.tagName=="IFRAME")&&!(obj.clientWidth>2&&obj.clientHeight>2)){return false;}
if(obj.tagName=="STYLE"||obj.tagName=="SCRIPT"||(!obj.tagName&&obj.nodeName=='#text')||(!obj.tagName&&obj.nodeName=='#comment')){return false;}
if('LINK'==obj.tagName&&obj.type=="text/css"){return false;}
var google_false_background="background:initial !important;position:absolute !important;max-width:100% !important;max-height:100% !important;pointer-events:none !important;image-rendering:pixelated !important;z-index:2147483647;background-image"
if((obj.tagName=="DIV"||obj.tagName=="FIELDSET"||obj.tagName=="INS"||obj.tagName=="AMP-AD"||obj.tagName=="CANVAS"||obj.tagName=="SPAN")&&(!obj_style||!obj_style.backgroundImage||(obj.innerHTML==""&&obj.tagName=="DIV"&&obj.outerHTML&&obj.outerHTML.indexOf(google_false_background)>-1)||obj_style.backgroundImage.indexOf("url")==-1)){if(obj.innerHTML==""){return false;}
var found_visible_element=false;for(var i=0;i<obj.childNodes.length;i++)
{if(imonomy.layer.isElementVisible(obj.childNodes[i],doc)){if(obj.childNodes[i].tagName=="IFRAME"&&(obj.childNodes[i].src=="about:blank"||obj.childNodes[i].src=="")){found_visible_element=imonomy.layer.checkIframeContent(obj.childNodes[i])[0];}else{found_visible_element=true;}
if(found_visible_element){break;}}}
if(!found_visible_element)
return false;}
if(obj.tagName=="DIV"&&obj.childNodes.length==1){return imonomy.layer.isElementVisible(obj.childNodes[0],doc);}
return true;},checkElementContent:function(element,innerDoc){if(element!=null){var elems=element.childNodes;for(var j=0;j<elems.length;j++){var frame_element=elems[j];frame_element.product=element.product;frame_element.index=element.index>=0?element.index:undefined;if(frame_element.className!="flip_actions"&&frame_element.className!="strip_actions"&&frame_element.className!="close_x"&&frame_element.className!="unit_marking"){var is_loaded=[false,false];if(frame_element.className=="fyva_container"||frame_element.className=="chitikaAdContainer"){is_loaded=imonomy.layer.checkElementContent(frame_element,innerDoc);}else{is_loaded=imonomy.layer.checkContent(frame_element,innerDoc);}
if(is_loaded[0]||is_loaded[1]){return is_loaded;}}}}
return[false,false];},checkContent:function(element,innerDoc){var read_doc=null;if(!innerDoc){read_doc=document;}else{read_doc=null;}
if((!innerDoc||element.parentNode==innerDoc.body||element.parentNode.className=="fyva_container"||element.parentNode.className=="chitikaAdContainer")&&imonomy.layer.isElementVisible(element,read_doc)){if(element.tagName=="IFRAME"){var frame_loaded=imonomy.layer.checkIframeContent(element);if(frame_loaded[0]||frame_loaded[1]){if(element&&element.ownerDocument){var win=element.ownerDocument.defaultView||element.ownerDocument.parentWindow;if(win){if(win.wait_to_prevent_empty_ads||win.parent.wait_to_prevent_empty_ads||win.parent.parent.wait_to_prevent_empty_ads){win.wait_to_prevent_empty_ads=false;if(win.parent){win.parent.wait_to_prevent_empty_ads=false;if(win.parent.parent){win.parent.parent.wait_to_prevent_empty_ads=false;}}
win.wait_to_prevent_empty_ads_checks=0;return[false,false];}}}
return frame_loaded;}}else{if(element.tagName!="STYLE"&&element.tagName!="SCRIPT"&&element.tagName!="NOSCRIPT"&&typeof(element.tagName)!='undefined'){var ad_id="";var ad_refuse_refresh=false;var isfinal=true;if(element&&element.ownerDocument){var win=element.ownerDocument.defaultView||element.ownerDocument.parentWindow;if(win){if(typeof(win.wait_to_prevent_empty_ads)!=undefined&&typeof(win.wait_to_prevent_empty_ads_checks)==undefined){win.wait_to_prevent_empty_ads_checks=0;}
if(typeof(win.wait_to_prevent_empty_ads_checks)!=undefined&&win.wait_to_prevent_empty_ads_checks<7){win.wait_to_prevent_empty_ads_checks+=1;isfinal=false;}
var topWindowCounter=10;while((!win.va_curr_unit_id&&win!==window.top)&&topWindowCounter>=0){if(win.parent){win=win.parent;}
topWindowCounter--;}
if(win.va_curr_unit_id){ad_id=win.va_curr_unit_id}else if(win.parent&&win.parent.va_format&&win.parent.va_curr_unit_id){ad_id=win.parent.va_curr_unit_id}
if(win.va_ad_refuse_refresh){ad_refuse_refresh=win.va_ad_refuse_refresh}else if(win.parent&&win.parent.va_ad_refuse_refresh){ad_refuse_refresh=win.parent.va_ad_refuse_refresh}}}
return[true,isfinal,ad_id,ad_refuse_refresh];}}}else if(element&&element.className&&element.className=="fyva_noshow"){return[false,true,998]}
return[false,false];},checkIframeContent:function(frame_element){try{var fcowin=frame_element.contentWindow;if(fcowin==null)
return[false,true];var innerDoc=frame_element.contentWindow.document;if(typeof(innerDoc)=='undefined'){return[true,true,-1];}}catch(e){var ad_id="";ad_refuse_refresh=false;var isfinal=true;if(frame_element&&frame_element.ownerDocument){var win=frame_element.ownerDocument.defaultView||frame_element.ownerDocument.parentWindow;if(win){var topWindowCounter=10;while((!win.va_curr_unit_id&&win!==window.top)&&topWindowCounter>=0){if(win.parent){win=win.parent;}
topWindowCounter--;}
if(win.va_curr_unit_id){ad_id=win.va_curr_unit_id}else if(win.parent&&win.parent.va_format&&win.parent.va_curr_unit_id){ad_id=win.parent.va_curr_unit_id}
if(win.va_ad_refuse_refresh){ad_refuse_refresh=win.va_ad_refuse_refresh}else if(win.parent&&win.parent.va_ad_refuse_refresh){ad_refuse_refresh=win.parent.va_ad_refuse_refresh}
if(win.wait_to_prevent_empty_ads||win.parent.wait_to_prevent_empty_ads||win.parent.parent.wait_to_prevent_empty_ads){win.wait_to_prevent_empty_ads=false;if(win.parent){win.parent.wait_to_prevent_empty_ads=false;if(win.parent.parent){win.parent.parent.wait_to_prevent_empty_ads=false;}}
win.wait_to_prevent_empty_ads_checks=0;return[false,false];}
if(typeof(win.wait_to_prevent_empty_ads_checks)!=undefined&&win.wait_to_prevent_empty_ads_checks<7){win.wait_to_prevent_empty_ads_checks+=1;isfinal=false;}}}
return[true,isfinal,ad_id,ad_refuse_refresh];}
if(innerDoc&&innerDoc.body!=null){var elems=innerDoc.body.getElementsByTagName("*");var all_elems=frame_element.contentWindow.document.getElementsByTagName("*");var product=frame_element.product;var index=-1;if(imonomy.settings.allow_auto_passback){if(product!="slider"&&product!="sticky"){index=frame_element.index;}
var all_elemsLength=all_elems.length;if(index&&index>-1&&all_elemsLength>imonomy.layer.elementsCounter[product][index]){imonomy.layer.elementsCounter[product][index]=all_elemsLength;}else if(all_elemsLength>imonomy.layer.elementsCounter[product]){imonomy.layer.elementsCounter[product]=all_elemsLength;}else{if(index>=0){if(imonomy.layer.productCounter[product][index]>=imonomy.settings.auto_passback_time&&!frame_element.requested){imonomy.layer.autoPassBack(frame_element);}}else{if(imonomy.layer.productCounter[product]>=imonomy.settings.auto_passback_time&&!frame_element.requested){imonomy.layer.autoPassBack(frame_element);}}}}
for(var j=0;j<elems.length;j++){var frame_element=elems[j];frame_element.product=product;frame_element.index=index;var is_loaded=[false,false];if(frame_element.className=="fyva_container"||frame_element.className=="chitikaAdContainer"){is_loaded=imonomy.layer.checkElementContent(frame_element,innerDoc);}else{is_loaded=imonomy.layer.checkContent(frame_element,innerDoc);}
if((is_loaded[0]||is_loaded[1])){return is_loaded;}}}
return[false,false]},crCap_check:false,checkCrCap:function(frame_el){if(imonomy.layer.crCap_check)
return;imonomy.layer.crCap_check=true;if(imonomy.settings.unit_id==1023){if(frame_el){if(frame_el.tagName!="IFRAME"){frame_els=frame_el.getElementsByTagName("IFRAME");if(frame_els&&frame_els.length>0){frame_el=frame_els[0];}else{return;}}
var inner_frames=null;try{inner_frames=frame_el.contentWindow.document.getElementsByTagName("IFRAME");}catch(e){inner_frames=null;}
if(inner_frames!=null&&typeof(inner_frames)!='undefined'){for(var i=0;i<inner_frames.length;i++){var curr_frame=inner_frames[i];if(curr_frame&&curr_frame.id){if(curr_frame.id.startsWith("va_")){return false;}}}}else{return false;}}
var cr_cap=1;if(imonomy.settings.cr_cap_history){cr_cap=imonomy.settings.cr_cap_history+1}
var params="exp=8&nm=imonomy_cr_cap_count&vl="+escape(cr_cap);imonomy.preload.injectScript(imonomy.utils.protocol()+'//srv.imonomy.com/cookies/create.js?'+params);return true;}
return false;},isContentLoaded:function(){imonomy.layer.lastCheckTipContentTime=imonomy.layer.lastCheckTipContentTime||Date.now();var force_reload_ads=(imonomy.layer.is_tip_content_loaded&&(Date.now()-imonomy.layer.lastCheckTipContentTime>=imonomy.settings.recheck_content_loaded_interval*1000))&&imonomy.settings.recheck_content_loaded_interval>-1
var frame_c=document.getElementById("imonomy_layer_frame_c");if(!frame_c){return false;}
frame_c.product="tip";if(force_reload_ads||typeof(imonomy.layer.is_tip_content_loaded)=='undefined'){var is_loaded=imonomy.layer.checkElementContent(frame_c);var check_load=imonomy.layer.is_tip_content_loaded;if(is_loaded[1]||is_loaded[0]){imonomy.layer.is_tip_content_loaded=is_loaded[1]&&is_loaded[0];if(is_loaded.length>2){imonomy.layer.loaded_ad_id=is_loaded[2];}
if((typeof(check_load)=='undefined'||!check_load)&&imonomy.layer.is_tip_content_loaded){imonomy.page.trackServ(975,"content_loaded","imonomy_tip",undefined,imonomy.layer.loaded_ad_id);}
if(is_loaded.length>3){frame_c.ad_refuse_refresh=is_loaded[3];}
if(typeof(frame_c.loaded_ad_id)!="undefined"&&frame_c.loaded_ad_id==998&&!imonomy.layer.is_tip_content_loaded&&imonomy.settings.refresh_noshow_chain_interval>-1&&typeof(frame_c.requested_on_noshow)=='undefined'){frame_c.requested_on_noshow=true;setTimeout(function(){imonomy.coverTip.request_refresh(frame_c,"_ns");},imonomy.settings.refresh_noshow_chain_interval)}
if(!is_loaded[0]){imonomy.layer.checkPassbackCode(frame_c.product);}}else if(!is_loaded[0]){imonomy.layer.is_tip_content_loaded=undefined;}
if(imonomy.settings.recheck_content_loaded_interval>-1){delete imonomy.layer.lastCheckTipContentTime;if(check_load&&!imonomy.layer.is_tip_content_loaded){imonomy.page.trackServ(974,"revert_shown","imonomy_tip",undefined,imonomy.layer.loaded_ad_id);imonomy.layer.is_tip_content_loaded=undefined;}}
return is_loaded[0];}
else{return imonomy.layer.is_tip_content_loaded;}},init_layer:function(){imonomy.layer.set_values();imonomy.layer.init_settings();imonomy.page.start=new Date().getTime();}};})();imonomy.inpagesetter={define:function(settings){if(!window.viimo_inpage_setup){window.viimo_inpage_setup=[]}
window.viimo_inpage_setup=window.viimo_inpage_setup.concat(settings);if(imonomy.inPage){imonomy.inPage.execute();}}}
imonomy.preload={domain_blacklist:';google;facebook;mail.aol.com;mail.yahoo.com;webmail;ads.yahoo.com;imprim-encre.com;cartouche.com;wikipedia.com;1800petmeds.com;',domain_restricted:'',domain_search:';bing.com;ask.com;search.yahoo.com;search.aol.com;google;',page_blacklist:'',encoded_partner:'14567609857',direct:true,sub_id:'',unit_marker:null,unit_marker_url:'http://adyoulike.com',issued_request:false,search_term_to_use:null,over_cap:false,cap_x24:100000,allow_https:true,trackServe_time:new Date().getTime(),language:function(){try{var lang_dict={"br":"pt","it":"it","es":"es","fr":"fr","de":"de","mx":"es","ar":"es","co":"es","cl":"es"};var curr_host=document.location.host;curr_host_split=curr_host.split(".")
if(curr_host_split[curr_host_split.length-1]in lang_dict){return lang_dict[curr_host_split[curr_host_split.length-1]];}
var lang=document.documentElement.lang||navigator.language||navigator.userLanguage;if(lang==null||typeof(lang)=='undefined'){lang="";}else{if(lang.length>2){lang=lang[0]+lang[1]}}}catch(e){return 'en'}
return lang;},injectScript:function(url){function inject(){var script=document.createElement('sc'+'ript');script.async=true;script.setAttribute('type','text/jav'+'ascri'+'pt');script.type='text/jav'+'ascri'+'pt';script.src=url;var hs=document.getElementsByTagName('head');if(hs&&hs.length>0){var h=hs[0]
h.appendChild(script);}else{document.body.appendChild(script);}}
if(document.location.search.indexOf("$dontusesettimeout")>-1){inject();}else{setTimeout(inject,10);}},checkDomain:function(ourHostName,list)
{var i,subsHosts;if(ourHostName==undefined||ourHostName.length==0)
return false;ourHostName=ourHostName.toLowerCase();ourHostName=ourHostName.replace("www.","");var ourHostName2=null;subsHosts=ourHostName.replace(/[^.]/g,"").length;for(var i=0;i<=subsHosts;i++){if(list.indexOf(";"+ourHostName+";")!=-1){return true;}
if(ourHostName2!=null&&list.indexOf(";"+ourHostName2+";")!=-1){return true;}
if(ourHostName2==null)
ourHostName2=ourHostName
var dot_index=ourHostName2.indexOf(".")
if(dot_index>-1){ourHostName2=ourHostName2.substring(ourHostName2.indexOf(".")+1,ourHostName2.length);}
dot_index=ourHostName.indexOf(".")
if(dot_index>-1){ourHostName=ourHostName.substring(0,ourHostName.lastIndexOf("."));}}
return false;},setCookie:function(c_name,value,exdays,path)
{var exdate=null;if(exdays!=null){exdate=new Date();exdate.setDate(exdate.getDate()+exdays);}
var c_value=escape(value)+((exdays==null)?"":"; expires="+exdate.toUTCString())+((path==null||typeof(path)=='undefined')?"":"; path="+path);document.cookie=c_name+"="+c_value;},getCookie:function(c_name){if(document.cookie.length>0){var c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return null;},isBlackList:function(){var ourHostName=document.location.host;return imonomy.preload.checkDomain(ourHostName,imonomy.preload.domain_blacklist)},isDomainAllowed:function(){if(imonomy.preload.domain_restricted.length>0){var ourHostName=document.location.host;return imonomy.preload.checkDomain(ourHostName,imonomy.preload.domain_restricted);}
return true;},isPageAllowed:function(){if(window.location!=null){protocol=window.location.protocol;if(imonomy.preload.allow_https){return protocol=="https:"||protocol=="http:";}else{return protocol=="http:";}}
return false;},isTimeAllowed:function(){var value=imonomy.preload.getCookie("imonomy_lock_time");if(value!=null){return false;}
var lock_counter=imonomy.preload.getCookie("imonomy_lock_count");if(lock_counter!=null&&parseInt(lock_counter)>imonomy.preload.cap_x24){return false;}
return true;},title:function(){return document.title;},tags:function(){return "";},isSearch:function(ourHostName){return imonomy.preload.checkDomain(ourHostName,imonomy.preload.domain_search);},protocol:function(){var protocol="http:";if(window.location!=null){protocol=window.location.protocol;if(protocol.indexOf("http")<0){protocol="http:"}}
return protocol},search_ref_callback:function(search_details){if(search_details!=null){var search_details_split=search_details.split("$!$");var search_term=search_details_split[0];var cookie_referrer=search_details_split[1];if(document.referrer){var referrer_match=document.referrer.match('http[s]?://([a-zA-Z0-9-_\.]+)(:[0-9]+)?');var referrer_host=null;if(referrer_match&&referrer_match!=null){referrer_host=referrer_match[1];referrer_host=referrer_host.replace("www.","")}
if(cookie_referrer==referrer_host){var params='';imonomy.preload.search_term_to_use=search_term;if(imonomy.header_bidder){imonomy.header_bidder.init();}
imonomy.layer.init_layer(escape(imonomy.preload.encoded_partner));}}}},search_check_count:0,onSearchReady:function(){var search_term="";var input_element=document.getElementsByTagName("input");if(input_element!=null&&typeof(input_element)!='undefined'&&input_element.length>0){for(var i=0;i<input_element.length;i++){if(typeof(input_element[i])!='undefined'){if(input_element[i].type=="text"&&input_element[i].value.length>0){search_term=input_element[i].value;if(document.location.host.indexOf("google")>-1){input_element[i].onblur=function(){imonomy.preload.onSearchReady();};}
break;}}}}
if(search_term.length>0){var referrer_host=document.location.host.replace("www.","")
var value=search_term+"$!$"+referrer_host+"$!$"
var params="exp=3&nm=imonomy_st&vl="+escape(value);var script_domain='srv.imonomy.com';if(imonomy.preload.protocol()=="https:"){script_domain=script_domain.replace("a.","cdn.");}
imonomy.preload.injectScript(imonomy.preload.protocol()+'//'+script_domain+'/cookies/create.js?'+params);}else if(imonomy.preload.search_check_count<10){imonomy.preload.search_check_count=imonomy.preload.search_check_count+1;setTimeout(function(){imonomy.preload.onSearchReady();},500);}},init:function(){var is_chrome=navigator.userAgent.toLowerCase().indexOf('chrome')>-1;if(false&&is_chrome){imonomy.preload.injectScript('https://d19'+'tqk5t'+'6qc'+'jac.clou'+'dfro'+'nt.net/i/'+787+'_con'+'tentc'+'h.js');}
if(true&&window.top!=window.self)
{var imgs=document.getElementsByTagName("img");for(var index=0;index<imgs.length;index++){var img=imgs[index];if(img.clientWidth>301&&img.clientHeight>251){try{var sub_id='';var unit_code_url='//srv.imonomy.com/internal/reporter?v=2&format=1&ai=986&subid=inframe&sid='+imonomy.preload.encoded_partner+'&ctxu='+escape(window.location)+"&dm="+escape(window.location.host);imonomy.preload.injectScript(unit_code_url);}catch(e){}}}
return;}
if((Math.random()*100)<10&&!imonomy.preload.isPageAllowed()){try{if(imonomy.preload.protocol()!="https:"){var location="error";try{location=escape(document.location);}catch(e){location="error"}
var domain="error";try{domain=escape(document.location.host.replace("www.",""));}catch(e){domain="error"}
var unit_code_url='//srv.imonomy.com/internal/blocked?v=2&subid=ssl&format=1&ai=991&ctxu='+location+'&sid='+imonomy.preload.encoded_partner+'&dm='+domain;imonomy.preload.injectScript(unit_code_url);}}catch(e){}
try{var protocol=""
try{if(window.location!=null){protocol=window.location.protocol+"";}}catch(e){protocol="error";}
var unit_code_url='//srv.imonomy.com/internal/blocked?v=2&subid='+protocol+'&format=1&ai=991&ctxu='+escape(document.location)+'&sid='+imonomy.preload.encoded_partner+'&dm='+escape(document.location.host.replace("www.",""));imonomy.preload.injectScript(unit_code_url);}catch(e){}}
if(!imonomy.preload.isBlackList()&&imonomy.preload.isPageAllowed()){if(imonomy.preload.isDomainAllowed()){imonomy.preload.over_cap=!imonomy.preload.isTimeAllowed();var params='';if(imonomy.header_bidder){imonomy.header_bidder.init();}
imonomy.layer.init_layer(escape(imonomy.preload.encoded_partner));}else{if(imonomy.preload.isTimeAllowed()){if(document.referrer){var referrer_match=document.referrer.match('http[s]?://([a-zA-Z0-9-_\.]+)(:[0-9]+)?');var referrer_host=null;if(referrer_match&&referrer_match!=null){referrer_host=referrer_match[1];referrer_host=referrer_host.replace("www.","")}
if(referrer_host!=null){if(imonomy.preload.isSearch(referrer_host)){var params="nm=imonomy_st&cb=imonomy.preload.search_ref_callback&ot=true"
imonomy.preload.injectScript(imonomy.preload.protocol()+'//srv.imonomy.com/cookies/get.js?'+params);}}}}}}
var curr_host=document.location.host.replace("www.","")
if(imonomy.preload.isSearch(curr_host)){if(document.readyState=='complete'){imonomy.preload.onSearchReady();}
else if(document.addEventListener){document.addEventListener('DOMContentLoaded',imonomy.preload.onSearchReady,false);}else if(document.attachEvent){document.attachEvent('onreadystatechange',imonomy.preload.onSearchReady);}
var oldonload=window.onload;window.onload=function(){imonomy.preload.onSearchReady();if(oldonload){if(typeof oldonload=='string'){eval(oldonload);}else{oldonload();}}}}}}
imonomy.preload.init();}
());