
(function() {
imonomy.settings = {
dynamic_strip: true,strip_max_images: 10,lock_count_time: 3600000,videoad_per_page: 1,use_videos_as_image: false,min_top: 56,use_coverTip: false,goodRatio: 2.4,country_code: "US",use_new_cover_style: false,use_user_matching: false,inpage_disabled_view_tracking: false,rotate_settings_json: false,limit_cover_show_count: -1,shift_cover_on_conflict: false,dynamic_script_ads_marker: '',bind_filter_class: false,auto_passback_time: 8,strip_on_mouseover: false,blaoink: false,lock_show_between_time: 4200,use_small_coverTip_style_on_large: false,use_sandbox_iframes: false,hide_sticky_onscroll: false,unit_macros: '',use_videoad: false,one_request: false,allow_carousel_on_desktop: false,strip_appearance_count: 'in_view',unit_wait_for_onload: false,header_bidding: false,block_on_homepage: false,use_page_tracking: false,settings_cookie_expiration: 0,hide_on_flip_back: false,site_brand: 'imonomy',my_sticky_mobile: false,bind_on_show: false,flip_timer_first: 8000,invideo_appearance_count: 'in_view',video_edge_max_images: 10,monitor_url_change: false,use_strips: true,my_video_edge_mobile: false,max_flip_width: 900,coverTip_min_Width_mobile: 250,sticky_cap_x24: -1,units_force_edge: ['4475','4471','4473','4449','4369','4367','4245','4247','4223','4225','4227','4229','4231','4233','4235','4237','4239','4241','4243','4217','4193','3711','3765','3729','3727','3709','3689','3663','3861','3863','3865','3869','3871','3919','3921','4017','4019','4039','4041','14567673820','14567673810','14567673802','14567673786','14567673808','14567673764','14567673406','14567673404','14567673556','14567673386','14567673384','14567673390','14567673388','14567673378','14567673376','14567673382','14567673380','14567673402','14567673400','14567673554','14567673546','14567676350','14567676348','14567676338','14567676342','14567676340','14567675934','14567675962','14567675940','14567676118','14567676098','14567676132','14567676116','14567676388','14567676410','14567676186','14567676184','14567676268','14567676258'],cover_tip_automatic_show_count: 1,private_code: '',max_flip_height: 900,refresh_noshow_chain_interval: 1000,my_strips_mobile: true,use_search_marker: false,cover_timer_first: 3500,my_invideo_mobile: false,strips_after_cover: false,shopping_site: false,use_tipForSmallImg: false,inject_carousel_location_desktop: false,invideo_max_images: 10,unit_marking: 'Publicité',page_force_options_regex: false,inject_carousel_preferred_after_index_appearance: 2,use_reduce_load_time: true,sticky_appearance_count: 'in_view',use_coverTipForSmallImg: true,close_lock_time: 0,region_code: "MA",cover_show_ad_interval: 100,after_show_event: false,flip_times_limit: false,term_tos_on_unit: '',wait_before_show: 0,tracking_show_url: '',gray_list_behavior: true,is_client: false,coverTip_min_Width: 260,add_element_by_classes: false,use_flip: false,recheck_content_loaded_interval: -1,sticky_appearance_effect: 'slide_bottom',min_size_factor_change: 1,flip_timer: 3500,tip_max_images: -1,min_image_size: 100,cornner_side: 'right',use_random_format_on_bind: false,sticky_min_position_to_show: -1,use_sticky: false,flip_max_images: 1,coverTip_min_Heigth_mobile: 206,whitelist_site: true,passback_code: false,refresh_noshow_chain_times: 1,use_roll: false,site_domain: 'adyoulike.com',use_cross_domain_lock: false,pid: 14567609857,use_edge: false,user_matching: false,scroll_pos_to_show: 0.3,bind_tip_layer: false,allow_auto_passback: false,use_invideo: false,force_product_type_function: false,hook_site_image: true,strip_appearance_effect: 'slide_bottom',use_video_edge: false,validate_offers_networks: true,carousel_disabled_view_tracking: false,uid: '619d4dafe6e067d62285bf4d32620dff',shopping_agresive: false,validate_blacklist: false,use_tip: false,ignore_body: false,my_cover_mobile: false,coverTip_min_Heigth: 215,strip_overload_factor: 0.4,roll_max_images: 1,gray_list_history: '--',use_fallback_strips: false,time_to_refresh: 55000,quality_type: '99',bind_scroll: false,use_alternative_top_left: false,use_bidder: false,set_strip_width: false,limit_tag_to_website: false,generic_refresh_count: 2,autoplay_myroll: true,img_position_fixed: false,invideo_higher_position: 0,hover_hooked_images: false,inject_carousel_location: false,time_taken: true,my_slider_mobile: false,invideo_appearance_effect: 'slide_bottom',use_sandbox_iframes_mobile: true,allow_cpc_tracking: false,strip_from_top: false,Check_Bots: 10,my_edge_mobile: false,lock_domain_time: 0
}
imonomy.settings.xtra_style = "";
imonomy.settings.xtra_images = "";
imonomy.settings.site_keywords = "";
imonomy.settings.site_title = "";
imonomy.settings.include_search_trageting =  false ;
imonomy.settings.use_Begun =  false ;
imonomy.settings.block_extension_for_direct =  false ;
imonomy.settings.flip_back = 'Flip Back';
imonomy.stop_words = new Array("a","about","above","across","after","afterwards","again","against","all","almost","alone","along","already","also","although","always","am","among","amongst","amoungst","amount","an","and","another","any","anyhow","anyone","anything","anyway","anywhere","are","aren't","around","as","at","be","became","because","become","becomes","becoming","been","before","beforehand","being","below","beside","besides","between","beyond","both","bottom","but","by","call","can","cannot","cant", "can't", "co","con","could","couldnt","de","describe","detail","do","done","down","due","during","each","eg","eight","either",                            "else","elsewhere","empty","enough","etc","even","ever","every","everyone","everything","everywhere","except","few","first","for","former","formerly", "found","from","front","full","further","get", "go","had","has","hasnt","have","he","hence","her","here","hereafter","hereby","herein","hereupon","hers","herself","him","himself","his","how","however","i","ie","if","in","indeed","into","is","isn't","it","its","itself","keep","last","latter","latterly","least","less","made","many","may","me","meanwhile","might","mill","mine","more","moreover","most","mostly","much","must","my","myself","name","namely","neither","never","nevertheless","next","no","nobody","none","noone","nor","not","nothing","now","nowhere","of","off","often","on","once","only","onto","or","other","others","otherwise","our","ours","ourselves","out","over","per","perhaps","rather","re","same","seem","seemed","seeming","seems","serious","several","she","should","since","sincere","so","some","somehow","someone","something","sometime","sometimes","somewhere","still","such","take","than","that","the","their","them","themselves","then","thence","there","thereafter","thereby","therefore","therein","thereupon","these","they","thick","thin","third","this","those","though","through","throughout","thru","thus","to","together","too","top","toward","towards","un","under","until","up","upon","us","very","via","was","we","well","were","what","whatever","when","whence","whenever","where","whereafter","whereas","whereby","wherein","whereupon","wherever","whether","which","while","whither","who","whoever","whole","whom","whose","why","will","with","within","without","would","yet","you","your","yours","yourself","yourselves","com","de","en","la","und","www","",">","|","dont", "didn't", "did", "new", "old","does", "doesn't", "cause", "causes",  "for", "you're", "don't", "don`t", "cancel", "2nd", "it's", "used", "frequent", "things", "list", "best", "news", "pro", "reviews", "review","cheap", "2013","thing", "reason", "reasons", "mean", "means", "matter", "span", "quality", "you", "hey", "you'll", "we'll", "I'll", "+", "i`m", "i'm", ".", ",", "?", "-", "(", ")", ":", "&");
imonomy.ab_testing = {

}
var user_configuration = {

}
if (user_configuration){
for (var attr in user_configuration) {
imonomy.settings[attr] = user_configuration[attr];
}
}
var settings_cookie_expiration = 0;
if (settings_cookie_expiration > 0) {
var imonomy_settings_json = JSON.stringify(imonomy.settings);
var imonomy_ab_testing_json = JSON.stringify(imonomy.ab_testing);
if (imonomy_settings_json.length < 5000) {
imonomy_settings_json_1 = imonomy_settings_json.substring(0, imonomy_settings_json.length / 2);
imonomy_settings_json_2 = imonomy_settings_json.substring(imonomy_settings_json.length / 2);
imonomy.utils.setCookie("imonomy_settings_14567609857_1", imonomy_settings_json_1, settings_cookie_expiration * 60 * 1000 , '/');
imonomy.utils.setCookie("imonomy_settings_14567609857_2", imonomy_settings_json_2, settings_cookie_expiration * 60 * 1000, '/');
imonomy.utils.setCookie("imonomy_ab_testing_14567609857", imonomy_ab_testing_json, settings_cookie_expiration * 60 * 1000, '/');
} else {
console.log("settings too large for cookie " + imonomy_settings_json.length);
}
}
if (imonomy.static_settings){
for (var attr in imonomy.static_settings) {
imonomy.settings[attr] = imonomy.static_settings[attr];
}
}
try{
if (imonomy.settings.invideo_settings){
for (var player in imonomy.settings.invideo_settings){
if (player == 'flash'){
imonomy.settings.invideo_flash_settings = imonomy.settings.invideo_settings[player];
imonomy.settings.invideo_flash_settings.js_identifier = new Function ('playerObject', imonomy.settings.invideo_settings[player].js_identifier);
imonomy.settings.invideo_flash_settings.custom_code = new Function ('st', imonomy.settings.invideo_settings[player].custom_code);
} else {
imonomy.settings.invideo_settings[player].js_identifier = new Function ('playerObject', imonomy.settings.invideo_settings[player].js_identifier);
imonomy.settings.invideo_settings[player].custom_code = new Function ('st', imonomy.settings.invideo_settings[player].custom_code);
}
}
delete imonomy.settings.invideo_settings['flash'];
}
} catch (e) {console.log(e)}

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("||");
// valid label regex
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)) {
// boolean
if (aux[key] == "true" || aux[key] == "false") {
imonomy.settings[prop] = aux[key] == "true" ? true : false;
// numeric
} else if (!isNaN(aux[key])) {
imonomy.settings[prop] = parseFloat(aux[key]);
// string
} 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);
}
}
}
//brand+customers // moved to server
//if (imonomy.settings.gray_list_behavior && [11,8].indexOf(imonomy.settings.quality_type) != -1){
// return;
//}
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 (imonomy.settings.click_request_id) {
// var c_check_url = "//c.fqtag.com/tag/implement-r.js?org=F0PcXB03ZlblukgOY2nw&p=" + imonomy.global_settings.sid + "&a=" + imonomy.layer.get_sub_id() +"&cmp=" + imonomy.settings.click_screen_location_id + "&&rt=click&sl=1";
// imonomy.utils.injectScript(c_check_url);
//}
}
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 ) { // check after function clear_init that imonomy.settings is not 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 = "";
}
}
}
}
}
}
};
/* NOTE: This code is self-executing. This is necessary in order to correctly determine the ready status. ( credit: facebook connect-js )
*/
(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);
// In case we're already ready.
if (document.readyState == 'complete') {
return imonomy.onReady();
}
// Good citizens.
if (document.addEventListener) {
document.addEventListener('DOMContentLoaded', imonomy.onReady, false);
// Bad citizens.
} else if (document.attachEvent) {
document.attachEvent('onreadystatechange', imonomy.onReady);
}
// Bad citizens.
// If IE is used and page is not in a frame, continuously check to see if
// the document is ready
if (imonomy.utils.isIE() && window === top) {
(function() {
try {
// If IE is used, use the trick by Diego Perini
// http://javascript.nwbox.com/IEContentLoaded/
document.documentElement.doScroll('left');
} catch(error) {
setTimeout(arguments.callee, 0);
return;
}
// and execute any waiting functions
imonomy.onReady();
})();
}
// Ultimate Fallback.
var oldonload = window.onload;
window.onload = function() {
imonomy.onReady();
if (oldonload) {
if (typeof oldonload == 'string') {
eval(oldonload);
} else {
oldonload();
}
}
};
})();

})();
