if (!window.va_use_frame && (window.viimo_inpage_setup || window.viimo_inpage_setup_14567716008)){ if (!window.vimo_14567716008){ window.vimo_14567716008 = {}; // need to move layer sepecific to the layer.js out from dependencies... window.brand_name_for_internal = window.vimo_14567716008; /////////////////////// functions String.prototype.startsWith = function(str) {return (this.match("^"+str)==str)} if (!("classList" in document.documentElement) && Object.defineProperty && typeof HTMLElement !== 'undefined' && !HTMLElement.prototype.classList) { 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' && !HTMLElement.prototype.getBoundingClientRectRigth) { Object.defineProperty(Object.prototype, 'getBoundingClientRectRigth', { get: function() { return function() { if (this.getBoundingClientRect){ var rect = this.getBoundingClientRect(); if (this.x && this.y){ var scroll_top = vimo_14567716008.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]) { // can't watch constants Object.defineProperty(this, prop, { get: getter , set: setter , enumerable: true , configurable: true }); } } }); } function vimo_14567716008_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); // chrome + firefox } else{ var camelCasedCssProperty = getCamelCasedCssProperty(cssProperty); // transforme for IE syntax from "margin-top" to "margainTop" var style_ie8 = window.getComputedStyle(el); // IE8 if (style_ie8.getPropertyValue(camelCasedCssProperty)) { return html_style.getPropertyValue(camelCasedCssProperty); } else{ if(el.currentStyle){ // IE9 return el.currentStyle(camelCasedCssProperty); } else{ if (el.style[camelCasedCssProperty].length > 0){ // IE10 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(''); }; /////////////////////////////// // dependencies vimo_14567716008.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, // used in order to avoid hide+show when moving from layer to image 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"], 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]], // known units ad sizes 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; // fix bug with offset use only integers with out frec //if (vimo_14567716008.utils.browser.browser_type == "Firefox"){ 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(vimo_14567716008.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); } // check that body is in position relative and its height is in same as the screen // in this case I need to add the position to the top if (style_body && style_body.position == "relative" && window.screen.height+10 > docBody.clientHeight) { if (!vimo_14567716008.utils.isIE() && (vimo_14567716008.utils.browser.type() != "Firefox")){ // set viewport per browser type viewportElement = document.body; curtop = curtop - (docBody.getBoundingClientRectRigth().top + viewportElement.scrollTop); curleft = curleft - (docBody.getBoundingClientRectRigth().left + viewportElement.scrollLeft); //need to test this action } else { viewportElement = document.documentElement; curtop = curtop - (docBody.getBoundingClientRectRigth().top + viewportElement.scrollTop); curleft = curleft - (docBody.getBoundingClientRectRigth().left + viewportElement.scrollLeft); //need to test this action } } if (vimo_14567716008.settings.use_alternative_top_left){ if(!obj.curtop && !obj.curleft){ obj.curtop = curtop; obj.curleft = curleft; }if(obj.curtop != curtop){ curtop = vimo_14567716008.image.get_top(obj).top; }if(obj.curleft != curleft){ curleft = vimo_14567716008.image.get_top(obj).left; } } cur_width = rectObject.width; cur_height = rectObject.height; return {top: curtop, left: curleft , width: cur_width, height: cur_height} // } else { // var floor_left = Math.round(rectObject.left) // if (floor_left != rectObject.left && obj.offsetLeft > 0){ // if (floor_left > rectObject.left){ // check for // chage_left = (floor_left - rectObject.left); // } else { // chage_left = (rectObject.left - floor_left); // } // } // curleft = chage_left; // if (obj.offsetParent) { // do { // curleft += obj.offsetLeft; // curtop += obj.offsetTop; // } while (obj = obj.offsetParent); // } // var body_computed_style= window.getComputedStyle(document.body, null) // var computedStylePos = ""; // if (body_computed_style){ // computedStylePos = body_computed_style.position; // } // if (!vimo_14567716008.utils.isIE() && computedStylePos != 'relative'){ // html_margin_top = window.getComputedStylePropertyValue(document.documentElement, 'margin-top'); // var html_margin_top = parseInt(html_margin_top) // curtop += html_margin_top; // } // } // } // catch(e){}; // return { top: curtop, left: curleft }; }, 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 = vimo_14567716008.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 = vimo_14567716008.image.gallery; while(parent && parent != parent.parentElement) { if(vimo_14567716008.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; /////////////////////////////////////////////////////////////// // TBD should fix bug when overfllow parent is bigger than self /////////////////////////////////////////////////////////////// if (alignText == 'center') { pos = vimo_14567716008.image._findPos(parent); } parent_rect = parent.getBoundingClientRectRigth(); 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 = vimo_14567716008.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 < visible_height){ visible_height = parent.clientHeight; pos = vimo_14567716008.image._findPos(parent);// set heigth and top with overflow hidden fix_height = overflow_top; 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 && vimo_14567716008.image.checkParentsFloat(img))){ shown = false; } // a fix for slid galleries when only one image is shown - Amit removed max_width_parent*gallerysubid 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 the target element is to the left of the parent elm if(offset + img_offsetWidth - VISIBLE_PADDING < parent.scrollLeft){ shown = false; } } if (computed_style.zoom != '1' && typeof computed_style.zoom != "undefined") { overflow_top += vimo_14567716008.utils.getScrollTop(); visible_width *= parseFloat(computed_style.zoom); visible_height *= parseFloat(computed_style.zoom); overflow_top *= parseFloat(computed_style.zoom); overflow_left *= parseFloat(computed_style.zoom); } 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 (isOverflowSetToHidden){ // actual_left = overflow_left + border_left ; // actual_top = overflow_top + border_top; // } else { // actual_left = pos.left; // actual_top = pos.top // } 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 = vimo_14567716008.utils.getScrollLeft(); var scroll_top = vimo_14567716008.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'){ // check scroll location only when position is not fixed if(actual_top <= (scroll_top+ vimo_14567716008.utils.getHeight()) && (actual_top+image_portion)>=scroll_top){ }else{ shown = false; } } if (visible_width > img.width || pos.width > img.width ){ // check if img has border and padding box inculded (visible_width = img.clintwidth) can set check visible_width - boder = img.width if (border_left > 0 || border_rigth > 0) { actual_left = actual_left + border_left; } } if (visible_height > img.height || pos.height > img.height) { //pos.height and pos.width are comming from _findpos function if (border_top > 0 && border_top != padding_bottom){ actual_top = actual_top + border_top; } } // Fix the pos function to return the inside rect when there is a border (this is border with a fix border (top, left, rigth, bottom)) //if (pos.height > height && border_top != 0) { // actual_top = actual_top + (pos.height - height)/2; //} //if (pos.width > width &ser& border_left != 0) { // actual_left = actual_left + (pos.width - width)/2; //} return [visible_width, visible_height, actual_top, actual_left, shown]; var imgLeft; var imgPos; var imgTop; var imgHeight; var imgWidth; if (img) { imgPos = vimo_14567716008.image._findPos(img); if (typeof(imgPos) != "undefined"){ imgLeft = imgPos.left; imgTop = imgPos.top; } else{ imgLeft = img.offsetLeft; imgTop = img.offsetTop; /*var rect = img.getBoundingClientRectRigth(); if (typeof(rect) != "undefined"){ imgLeft = rect.left; imgTop = rect.top; }*/ } imgWidth = img.clientWidth; imgHeight = img.clientHeight; } if (typeof(imgWidth) == "undefined"){ if (typeof(img.innerWidth) != 'undefined'){imgWidth = img.innerWidth(); }else {imgWidth = img.clientWidth} } if (typeof(imgHeight) == "undefined"){ if (typeof(img.innerHeight) != 'undefined'){imgHeight = img.innerHeight(); } else{imgHeight = img.clientHeight} } var parent = img.parentNode; if (parent && window.getComputedStyle){ var overflow = ""; var computed_style = window.getComputedStyle(parent,null); if (computed_style != null){ overflow = window.getComputedStyle(parent,null).getPropertyValue("overflow") } if (overflow == "hidden"){ parent_width = parent.clientWidth; if (parent_width < imgWidth){ imgWidth = parent_width; } parent_height = parent.clientHeight; if (parent_height < imgHeight){ imgHeight = parent_height; } } else if (parent.nodeName == "A"){ if (parent.clientWidth > 0 && parent.clientWidth < imgWidth){ imgWidth = parent.clientWidth; } if (parent.clientHeight > 0 && parent.clientHeight < imgHeight){ imgHeight = parent.clientHeight; } } } return [imgWidth, imgHeight, imgTop, imgLeft, imgPos] }, 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(vimo_14567716008.image.mouse_enter_timeout); if (vimo_14567716008.image.last_current_sender != sender){ if (vimo_14567716008.preload){ var value = vimo_14567716008.preload.getCookie("vimo_14567716008_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])) < vimo_14567716008.settings.lock_show_between_time){ return false; } } } } catch(e){} } } } if (vimo_14567716008.layer.current_mode == "hover" && vimo_14567716008.layer.visible && vimo_14567716008.image.mouse_enter_sender != sender && (vimo_14567716008.image.current_sender == null || vimo_14567716008.image.current_sender != sender) ){ // if visible and mode == image and sender is different // hide imidiatly if (vimo_14567716008.layer.scroll_in_action){ return; } // setTimeOut fro show and on timeout check still on the image. vimo_14567716008.image.mouse_enter_sender = sender; vimo_14567716008.layer.hideInternal(); vimo_14567716008.image.mouse_enter_timeout = setTimeout(function(){ if (vimo_14567716008.image.mouse_enter_sender != null){ vimo_14567716008.layer.show(vimo_14567716008.image.mouse_enter_sender); } }, 80) } else{ vimo_14567716008.image.mouse_enter_sender = sender; if (vimo_14567716008.image.first_hover){ vimo_14567716008.layer.show(sender); vimo_14567716008.image.first_hover = false; } else{ vimo_14567716008.image.mouse_enter_timeout = setTimeout(function(){ if (vimo_14567716008.image.mouse_enter_sender != null){ vimo_14567716008.layer.show(vimo_14567716008.image.mouse_enter_sender); } }, 40); } } }, mouseLeave: function(e_m){ // check if out to element over the image 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; // unbind other elements(wibiya click to share. for example) vimo_14567716008.utils.unbind('mouseover', null, image_element); vimo_14567716008.utils.unbind('mouseout', null, image_element); vimo_14567716008.utils.unbind('mouseenter', null, image_element); vimo_14567716008.utils.unbind('mouseleave', null, image_element); // bind to mouse enter vimo_14567716008.utils.bind('mouseover', vimo_14567716008.layer.mouseEnter, image_element); vimo_14567716008.utils.bind('mouseout', vimo_14567716008.layer.mouseLeave, image_element); vimo_14567716008.utils.bind('mouseenter', vimo_14567716008.layer.mouseEnter, image_element); vimo_14567716008.utils.bind('mouseleave', vimo_14567716008.layer.mouseLeave, image_element); return; } } } } vimo_14567716008.image.mouse_enter_sender = null; clearTimeout(vimo_14567716008.image.mouse_enter_timeout); if (vimo_14567716008.layer.current_mode == "hover"){ vimo_14567716008.layer.mouseLeave(e_m); } } }; vimo_14567716008.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, flip_hooked_images: 0, strip_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, ppi: function() { var elem = document.createElement('div'); elem.style.width = '1in'; document.body.appendChild(elem); var ppi = elem.offsetWidth; document.body.removeChild(elem); return ppi; }, isEmpty: function(obj){ for(var prop in obj) { if(obj.hasOwnProperty(prop)) return false; } return true && JSON.stringify(obj) === JSON.stringify({}); }, connectionType: function(){ if (navigator.connection && navigator.connection.type){ if (navigator.connection.type == "cellular"){ return "3"; } else if (navigator.connection.type == "wifi"){ return "2"; } else if (navigator.connection.type == "ethernet"){ return "1"; } else{ return "0"; } } else { return "0"; } }, language: function(){ try{ //var full_html = document.documentElement.outerHTML; //var reg_ex = new RegExp("lang=", "i"); 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' // do nothing } 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 = vimo_14567716008.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); vimo_14567716008.page.trackServ(987, "auto_passback", undefined, undefined, id_number ? id_number : undefined); frame_element.requested = true; } }, incPassbackCounter: function(product){ if(vimo_14567716008.layer.total_requests_counter[product] >=0){ vimo_14567716008.layer.total_requests_counter[product]+= 1; }else{ vimo_14567716008.layer.total_requests_counter[product]= []; vimo_14567716008.layer.total_requests_counter[product]= 0; } }, checkPassbackCode: function(product){ if(vimo_14567716008.layer.total_passbacks_counter[product] >=0){ vimo_14567716008.layer.total_passbacks_counter[product]+= 1; }else{ vimo_14567716008.layer.total_passbacks_counter[product]= []; vimo_14567716008.layer.total_passbacks_counter[product]= 0; } if (vimo_14567716008.layer.total_passbacks_counter[product] == vimo_14567716008.layer.total_requests_counter[product]){ if (vimo_14567716008.settings.passback_code){ vimo_14567716008.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; }, checkLoad_interval_timer: null, checkLoad_interval: function(){ if (vimo_14567716008.layer.units_array.checkLoad_interval_timer == null){ vimo_14567716008.layer.units_array.checkLoad_interval_timer = setTimeout(function (){ var reactive = false; if(vimo_14567716008.layer.units_array.length != vimo_14567716008.layer.loaded_products){ for(var obj_index in vimo_14567716008.layer.units_array){ var unit = vimo_14567716008.layer.units_array[obj_index]; if (!unit.loaded){ if(unit.type == "strip"){ unit.loaded = vimo_14567716008.strips.isContentLoaded(unit.unit_container); if(unit.loaded){ vimo_14567716008.layer.loaded_products++; } } } } reactive = true; } vimo_14567716008.layer.units_array.checkLoad_interval_timer = null; if (reactive){ vimo_14567716008.layer.checkLoad_interval(); } }, 400); } }, is_shopping_site: null, shopping_site: function(){ if (vimo_14567716008.layer.is_shopping_site == null){ if (vimo_14567716008.settings && vimo_14567716008.settings.shopping_site){ vimo_14567716008.layer.is_shopping_site = vimo_14567716008.settings.shopping_site; } else{ if (document.location != null && (document.location.pathname != "/" || document.location.search != "")){ // check if shopping site 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){ vimo_14567716008.layer.is_shopping_site = true; break; } } } if (vimo_14567716008.layer.is_shopping_site == null){ vimo_14567716008.layer.is_shopping_site = false; } } } return vimo_14567716008.layer.is_shopping_site; }, setLockCounter: function(){ if (vimo_14567716008.layer.set_lock_counter){ vimo_14567716008.utils.setCookie("vimo_14567716008_lock_time", document.location, vimo_14567716008.settings.lock_domain_time, '/', vimo_14567716008.settings.use_cross_domain_lock); //var d = new Date(); //var n = d.getTime(); //vimo_14567716008.utils.setCookie("vimo_14567716008_lpt", n.toString() + "$vi$" + document.location, vimo_14567716008.settings.lock_show_between_time, document.location); vimo_14567716008.layer.set_lock_counter = false; var lock_counter = vimo_14567716008.utils.getCookie("vimo_14567716008_lock_count"); if (vimo_14567716008.settings.use_cross_domain_lock && vimo_14567716008.settings.lock_counter){ lock_counter = vimo_14567716008.settings.lock_counter; } if (lock_counter == null || lock_counter == ""){ lock_counter = 0; } else{ lock_counter = parseInt(lock_counter); } vimo_14567716008.utils.setCookie("vimo_14567716008_lock_count", lock_counter + 1, vimo_14567716008.settings.lock_count_time, '/', vimo_14567716008.settings.use_cross_domain_lock); //3600000 = 1 hours //var random_mode = Math.random(); //if (random_mode <= 0.001){ // var c_check_url = "//c.fqtag.com/tag/implement-r.js?org=F0PcXB03ZlblukgOY2nw&p=" + vimo_14567716008.layer.get_sid() + "&a=" + vimo_14567716008.layer.get_sub_id() +"&cmp=&rd=" + escape(vimo_14567716008.page.domain()) + "&rt=display&sl=1"; // vimo_14567716008.utils.injectScript(c_check_url); //} } }, mouseEnter: function(sender){ vimo_14567716008.layer.hovered = true; }, mouseLeave: function(e){ vimo_14567716008.layer.hovered = false; vimo_14567716008.layer.hide(); }, getPosition: function(element){ var imgSize = vimo_14567716008.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 = vimo_14567716008.utils.getScrollTop(); var scrollLeft = vimo_14567716008.utils.getScrollLeft(); var layer_left = right; var layer_top = top; var min_space_from_top = 25; // check which is bigger left space or right space 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+vimo_14567716008.layer.layer_width > vimo_14567716008.utils.getWidth() || imgWidth < 130) && (left - vimo_14567716008.layer.layer_width) > 0 ){ if (vimo_14567716008.utils.isRTL()){ layer_left = left + tip_in_image_cover; } else { layer_left = left - vimo_14567716008.layer.layer_width + tip_in_image_cover; } layer_top = top + min_space_from_top; layer_direction = "R"; } else { if (vimo_14567716008.utils.isRTL()){ layer_left = right + vimo_14567716008.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+vimo_14567716008.layer.layer_height > scrollTop+vimo_14567716008.utils.getHeight()){ if (scrollTop+vimo_14567716008.utils.getHeight() < top+min_space_from_top){ // should show on top } else{ layer_top = scrollTop+vimo_14567716008.utils.getHeight() - min_space_from_top - vimo_14567716008.layer.layer_height; } } if (scrollTop > (top -min_space_from_top)){ if (scrollTop > (top + imgHeight - min_space_from_top)){ // should show under the image } else { layer_top = scrollTop + min_space_from_top; } } var tip_m = 65 + 25 * (120/imgHeight); if (layer_top > imgTop - tip_m && layer_top < imgTop + (vimo_14567716008.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 (vimo_14567716008.layer.test_iframe_mode_check == null){ frame_id = "vimo_14567716008_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; //response.width; var height = null; //response.height; var frame = document.getElementById(frame_id); if (!frame) {return false;} vimo_14567716008.layer.test_iframe_mode_check = vimo_14567716008.layer.set_iframe(frame, html, width, height, true); } return vimo_14567716008.layer.test_iframe_mode_check; }, set_iframe: function(frame, thehtml, width, height, test) { if (typeof(test) != 'undefined' && test == true){ thehtml = "" } var w = window; if (typeof(frame) == "undefined"){ return false; //f was undefined crashing Chrome for Mac. } var fobj = frame; fobj.src = "about:blank"; if(frame.className == "vimo_14567716008_sticky_frame"){ fobj.class = "vimo_14567716008_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; //if (!vimo_14567716008.utils.isIE()){ fdoc.open(); //} fdoc.write(thehtml); // setTimeout for a bug fix; for some reason the document's onload event doesn't fire if the containing element has position set, unless I add a delay... //if (!vimo_14567716008.utils.isIE()){ 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 == "vimo_14567716008_sticky_frame" && vimo_14567716008.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 (vimo_14567716008.layer.get_sid() == "14567725798" || vimo_14567716008.layer.get_sid() == "14567725764" || vimo_14567716008.layer.get_sid() == "14567725690") { if (typeof(vadims_sub_id) != 'undefined'){ sub_id = vadims_sub_id; } } else { try{ if (eval("typeof(vadims_" + vimo_14567716008.layer.get_sid() + "_sub_id)") != 'undefined'){ sub_id = eval("vadims_" + vimo_14567716008.layer.get_sid() + "_sub_id"); } else if (vimo_14567716008.preload && vimo_14567716008.preload.sub_id != ''){ sub_id = vimo_14567716008.preload.sub_id; } } catch(e){} } if (typeof (sub_id) == 'undefined') { sub_id = ""; } return sub_id; }, get_sid: function(){ var sid = ""; if (vimo_14567716008.preload && vimo_14567716008.preload.encoded_partner){ sid = vimo_14567716008.preload.encoded_partner; } else{ sid = vimo_14567716008.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(){ vimo_14567716008.layer.fsgf = vimo_14567716008.layer.fsgf + "_simi" + "lar"+ ",#simi" + vimo_14567716008.layer.decodeStr("jTJTxf") + vimo_14567716008.layer.decodeStr("dukvO_QqwNg"); vimo_14567716008.layer.fsgs = vimo_14567716008.layer.fsgs + "_" + vimo_14567716008.layer.decodeStr("xLb") + "RCH"; try{ vimo_14567716008.utils.injectStyle("#" + vimo_14567716008.layer.fsgf + ",.dea" + vimo_14567716008.layer.decodeStr("-EfJf") + "toast ,#" + vimo_14567716008.layer.fsgs + "{ display:none !important; visibility:hidden !important;}"); } catch(e){} }, monitor_url: null, set_values: function(){ vimo_14567716008.layer.fsgf = vimo_14567716008.layer.fsgf + "f_" + vimo_14567716008.layer.fsgf1; vimo_14567716008.layer.fsgs = vimo_14567716008.layer.fsgs + "F_" + vimo_14567716008.layer.fsgs1; }, monitor_url_change: function(){ if (vimo_14567716008.layer.monitor_url == null) { vimo_14567716008.layer.monitor_url = location.href; } if(vimo_14567716008.layer.monitor_url != location.href){ vimo_14567716008.layer.prev_url = vimo_14567716008.layer.monitor_url; vimo_14567716008.layer.monitor_url = location.href; vimo_14567716008.layer.clear_init(); vimo_14567716008.layer.bindImages(); vimo_14567716008.page.trackServ(990, "imp", vimo_14567716008.settings.quality_type, undefined, undefined, vimo_14567716008.layer.is_locked()); } else { setTimeout(function(){ vimo_14567716008.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 (vimo_14567716008.preload && vimo_14567716008.preload.unit_marker != null){ unit_marker = vimo_14567716008.preload.unit_marker; } else if (vimo_14567716008.settings && vimo_14567716008.settings.default_ad_marker){ unit_marker = vimo_14567716008.settings.default_ad_marker; } if (vimo_14567716008.settings){ var dynamic_script_ads_marker = vimo_14567716008.settings.dynamic_script_ads_marker; if (dynamic_script_ads_marker != null && dynamic_script_ads_marker.length > 0){ eval(dynamic_script_ads_marker); } } if (vimo_14567716008.layer.dynamic_ads_marker != null){ unit_marker = vimo_14567716008.layer.dynamic_ads_marker; } return unit_marker; }, unit_marker_url: function(){ var unit_marker_url = ""; if (vimo_14567716008.preload && vimo_14567716008.preload.unit_marker_url != null){ unit_marker_url = vimo_14567716008.preload.unit_marker_url; } else if (vimo_14567716008.settings.unit_marker_url){ unit_marker_url = vimo_14567716008.settings.unit_marker_url; } return unit_marker_url; }, init: function(){ if (vimo_14567716008.layer.inited == true) return; if (vimo_14567716008.settings.validate_blacklist){ if (vimo_14567716008.page.isContainsBlackListWord()){ vimo_14567716008.tracker.reportBlackList("init", ""); return; } else{ vimo_14567716008.tracker.reportNoneBlackList(); } } var body_style = window.getComputedStyle(document.body, null); if (body_style.direction == "rtl") { vimo_14567716008.layer.left_style = '4500px'; } if (vimo_14567716008.coverTip){ vimo_14567716008.coverTip.init(); } // init settings if (typeof(ivima_hook_image_flip) != 'undefined'){ vimo_14567716008.settings.use_flip = ivima_hook_image_flip; } if (typeof(ivima_hook_image_tip) != 'undefined'){ vimo_14567716008.settings.bind_tip_layer = ivima_hook_image_tip; } if (typeof(ivima_hook_scroll) != 'undefined'){ vimo_14567716008.settings.bind_scroll = ivima_hook_scroll; } if (vimo_14567716008.settings.gray_list_behavior){ try{ var gray_list_history = vimo_14567716008.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)){ vimo_14567716008.settings.bind_scroll = false; } } } else{ vimo_14567716008.settings.bind_scroll = false; } }catch(e){ vimo_14567716008.settings.bind_scroll = false; } } vimo_14567716008.page.LogServ(); /////////////////////// if (vimo_14567716008.settings.use_page_tracking){ vimo_14567716008.settings.use_page_tracking = false; } if ((typeof(vimo_14567716008_monitor_url_change) != 'undefined' && vimo_14567716008_monitor_url_change) || vimo_14567716008.settings.monitor_url_change){ vimo_14567716008.layer.monitor_url_change(); } if (vimo_14567716008.settings.shopping_agresive && vimo_14567716008.layer.shopping_site()){ if (vimo_14567716008.settings.bind_scroll){ vimo_14567716008.settings.bind_on_show = true; } vimo_14567716008.settings.min_image_size = 50; if (!vimo_14567716008.settings.use_flip && !vimo_14567716008.settings.use_coverTip){ vimo_14567716008.settings.use_coverTip = true; } vimo_14567716008.settings.flip_timer_first = 2000; } var sitextraStyle = vimo_14567716008.site.xtraStyle(); if (sitextraStyle != null && sitextraStyle.length > 0){ vimo_14567716008.utils.injectStyle(sitextraStyle); } var xtraStyle = vimo_14567716008.settings.xtraStyle; if (xtraStyle && xtraStyle != null && xtraStyle.length > 0 && !vimo_14567716008.layer.init_xtraStyle){ vimo_14567716008.utils.injectStyle(xtraStyle); vimo_14567716008.layer.init_xtraStyle = true; } var slider_cap = vimo_14567716008.utils.getCookie("vimo_14567716008_slider_lock_time"); if ((vimo_14567716008.utils.isMobile() == null && vimo_14567716008.settings.bind_scroll || vimo_14567716008.settings.bind_on_show) && slider_cap.indexOf("slider") == -1){ vimo_14567716008.slider.init(); }else if(vimo_14567716008.settings.my_slider_mobile && vimo_14567716008.utils.isMobile() != null && slider_cap.indexOf("slider") == -1){ vimo_14567716008.slider.init(); } var sticky_close_cap = vimo_14567716008.utils.getCookie("vimo_14567716008_sticky_lock_time").indexOf("sticky") == -1; if (sticky_close_cap && !vimo_14567716008.sticky.inited && ((vimo_14567716008.utils.isMobile() == null && vimo_14567716008.settings.use_sticky) || (vimo_14567716008.settings.my_sticky_mobile && vimo_14567716008.utils.isMobile() != null))){ if (vimo_14567716008.settings.sticky_cap_x24 != -1) { var sticky_lock_counter = vimo_14567716008.settings.sticky_cap; if(parseInt(sticky_lock_counter) < vimo_14567716008.settings.sticky_cap_x24) { vimo_14567716008.sticky.cap_counter = sticky_lock_counter; vimo_14567716008.sticky.init(); }else if(!vimo_14567716008.sticky.sticky_trackServed) { vimo_14567716008.page.trackServ(996, "Sticky_cap_x24", "vimo_14567716008_sticky"); vimo_14567716008.sticky.sticky_trackServed = true; } } else { vimo_14567716008.sticky.allow_cap_inc = false; vimo_14567716008.sticky.init(); } } setTimeout(function() { vimo_14567716008.tracker.reportCompPresent(); }, 2000); if (!vimo_14567716008.layer.images_found || !vimo_14567716008.settings.bind_tip_layer){ return; } var style = vimo_14567716008.settings.layer_style; vimo_14567716008.utils.injectStyle(style); var html = vimo_14567716008.settings.layer_html; html = html.replace("$$unit_mark$$", vimo_14567716008.layer.unit_marker()); html = html.replace("$$unit_marker_url$$", vimo_14567716008.layer.unit_marker_url()); var html_element=document.createElement("div"); html_element.id = "vimo_14567716008_layer"; html_element.className = "vimo_14567716008_layer"; html_element.innerHTML = html; document.body.appendChild(html_element); vimo_14567716008.layer.inited = true; if (vimo_14567716008.settings.bind_on_show){ //vimo_14567716008.settings.bind_scroll = false; setTimeout(function() { vimo_14567716008.slider.show_on_show(); }, 1800); } }, init_layer_tip: false, request_hook: [], hooked: false, is_content_loaded: null, loaded_ad_id:undefined, isElementVisible: function(obj, doc){ if (obj == doc) return true; if (!obj) return false; if (!obj.parentNode) return false; if (obj.style) { if (window.getComputedStyle(obj,null).display == 'none') return false; if (window.getComputedStyle(obj,null).visibility == 'hidden') return false; } //Try the computed style in a standard way //if (window.getComputedStyle) { // var style = window.getComputedStyle(obj, "") // if (style.display == 'none') return false // if (style.visibility == 'hidden') return false //} //Or get the computed style using IE's silly proprietary way //var style = obj.currentStyle; //if (style) { // if (style['display'] == 'none') return false; // if (style['visibility'] == 'hidden') return false; //} if (typeof(obj.width) != "undefined" && (obj.width == "" || obj.width == 0 || obj.width > 90000 || 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; } /*if ((obj.className.indexOf&& (obj.className.indexOf("i-amphtml-loading-container") > -1 || obj.className.indexOf("amp-active") > -1 || obj.className.indexOf("imonomy-amp-frame_fallback") > -1 || obj.className.indexOf("i-amphtml-new-loader-spinner") > -1 || obj.className.indexOf("i-amphtml-new-loader") > -1)) || obj.getAttribute("class") != null && obj.getAttribute("i-amphtml-new-loader-spinner") > -1){ return false; }*/ if ((obj.tagName == "DIV" || obj.tagName == "FIELDSET" || obj.tagName == "INS" || obj.tagName == "SPAN" || obj.tagName == "AMP-AD")){ if (obj.innerHTML == ""){ return false; } var found_visible_element = false; for (var i=0;i= 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 = vimo_14567716008.layer.checkElementContent(frame_element, innerDoc); } else{ is_loaded = vimo_14567716008.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 (vimo_14567716008.layer.isElementVisible(element, read_doc)){ // fix for smaato empty ads if (element.tagName == "INS" || element.tagName == "AMP-AD" || (element.tagName == "DIV" && element.id.indexOf("smaato") === 0)){ var is_loaded = vimo_14567716008.layer.checkElementContent(element, innerDoc); if (is_loaded[0] || is_loaded[1]){ return is_loaded; } } else if (element.tagName == "IFRAME"){ var frame_loaded = vimo_14567716008.layer.checkIframeContent(element); if (frame_loaded[0] || frame_loaded[1]){ if (element && element.ownerDocument){ var win = element.ownerDocument.defaultView || element.ownerDocument.parentWindow; if (win){ try{ 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; } } return [false, false]; } else if (typeof(win.wait_to_prevent_empty_ads) != undefined || typeof(win.parent.wait_to_prevent_empty_ads) != undefined || typeof(win.parent.parent.wait_to_prevent_empty_ads) != undefined){ return [true, false] } }catch(e){ } } } 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; if (element && element.ownerDocument){ var win = element.ownerDocument.defaultView || element.ownerDocument.parentWindow; if (win){ if (win.wait_to_prevent_empty_ads){ win.wait_to_prevent_empty_ads = false; return [false, false]; } if (win.va_curr_unit_id){ ad_id = win.va_curr_unit_id // check va_format to make sure its not the parent ad we get the id of } 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 // check va_format to make sure its not the parent ad we get the id of } else if (win.parent && win.parent.va_ad_refuse_refresh){ ad_refuse_refresh = win.parent.va_ad_refuse_refresh } } } return [true, true, 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];} // fix for safari bug cant get access to iframe }catch(e){ var ad_id = ""; ad_refuse_refresh = false; if (frame_element && frame_element.ownerDocument){ var win = frame_element.ownerDocument.defaultView || frame_element.ownerDocument.parentWindow; if (win){ if (win.va_curr_unit_id){ ad_id = win.va_curr_unit_id // check va_format to make sure its not the parent ad we get the id of } 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 // check va_format to make sure its not the parent ad we get the id of } else if (win.parent && win.parent.va_ad_refuse_refresh){ ad_refuse_refresh = win.parent.va_ad_refuse_refresh } } } return [true, true, 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; if(vimo_14567716008.settings.allow_auto_passback){ if(product != "slider" && product != "sticky"){ index = frame_element.index; } var all_elemsLength = all_elems.length; if(all_elemsLength > vimo_14567716008.layer.elementsCounter[product][index]){ vimo_14567716008.layer.elementsCounter[product][index] = all_elemsLength; }else if(all_elemsLength > vimo_14567716008.layer.elementsCounter[product]){ vimo_14567716008.layer.elementsCounter[product] = all_elemsLength; }else{ if(index >= 0){ if(vimo_14567716008.layer.productCounter[product][index] >= vimo_14567716008.settings.auto_passback_time && !frame_element.requested){ vimo_14567716008.layer.autoPassBack(frame_element); } }else{ if(vimo_14567716008.layer.productCounter[product] >= vimo_14567716008.settings.auto_passback_time && !frame_element.requested){ vimo_14567716008.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 = vimo_14567716008.layer.checkElementContent(frame_element, innerDoc); } else{ is_loaded = vimo_14567716008.layer.checkContent(frame_element, innerDoc); } if ((is_loaded[0] || is_loaded[1]) && frame_element.tagName != "INS"){ return is_loaded; } } } return [false, false] }, crCap_check: false, checkCrCap: function(frame_el){ if (vimo_14567716008.layer.crCap_check) return; vimo_14567716008.layer.crCap_check = true; // check if criteo shown if (vimo_14567716008.settings.unit_id == 1023){ // if true increase cookie 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){ // does not support IE8 and lower 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 (vimo_14567716008.settings.cr_cap_history){ cr_cap = vimo_14567716008.settings.cr_cap_history + 1 } var params = "exp=8&nm=vimo_14567716008_cr_cap_count&vl=" + escape(cr_cap); vimo_14567716008.preload.injectScript(vimo_14567716008.utils.protocol() +'//srv.imonomy.com/cookies/create.js?' + params); // set cookie return true; } return false; }, init_layer: function() { vimo_14567716008.layer.set_values(); vimo_14567716008.layer.init_settings(); vimo_14567716008.page.start = new Date().getTime(); } }; vimo_14567716008.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 (!vimo_14567716008.tracker.blocked_reported){ vimo_14567716008.tracker.blocked_reported = true; if ((Math.random()*100) < 5) { var unit_id = "988"; var blacklist_word = vimo_14567716008.page.isContainsBlackListWord(true) var unit_code_url = vimo_14567716008.utils.protocol() +'//srv.imonomy.com/internal/blocked?v=2&format=1&ai=' + unit_id + "&subid=4" + blacklist_word + "&cid="+location + "&ctxu=" + escape(window.location + ''); vimo_14567716008.utils.issue_unit_request(unit_code_url); } } }, reportNoneBlackList: function(){ if (!vimo_14567716008.tracker.blocked_reported && vimo_14567716008.page.WordChecker(vimo_14567716008.settings.blacklist_sus_porn,false, false, true)){ vimo_14567716008.tracker.blocked_reported = true; if ((Math.random()*100) < 5) { var blacklist_word = vimo_14567716008.page.WordChecker(vimo_14567716008.settings.blacklist_sus_porn,true, false, true) var unit_code_url = vimo_14567716008.utils.protocol() +'//srv.imonomy.com/internal/reporter?v=2&format=1&ai=989&subid=' + blacklist_word; vimo_14567716008.utils.issue_unit_request(unit_code_url, undefined, true); } } }, reportCompPresent: function(){ if (!vimo_14567716008.tracker.comp_reported && vimo_14567716008.settings.comp_words && vimo_14567716008.page.WordChecker(vimo_14567716008.settings.comp_words,false, false, true)){ vimo_14567716008.tracker.comp_reported = true; if ((Math.random()*100) < 20) { var blacklist_word = vimo_14567716008.page.WordChecker(vimo_14567716008.settings.comp_words,true, false, true) var unit_code_url = vimo_14567716008.utils.protocol() +'//srv.imonomy.com/internal/reporter?v=2&format=1&ai=989&subid=comp_' + blacklist_word; vimo_14567716008.utils.issue_unit_request(unit_code_url, undefined, true); } } }, sessionId: function () { if (vimo_14567716008.tracker.session_id == null){ var session_id = vimo_14567716008.utils.getCookie("sessionId"); if (typeof(session_id) != 'undefined' && session_id != null && session_id != ""){ vimo_14567716008.tracker.session_id = session_id; } else { if (typeof(vimo_14567716008.tracker.session_id) == 'undefined' || vimo_14567716008.tracker.session_id == null){ var now = new Date() vimo_14567716008.tracker.session_id = Math.random() + now.getTime(); vimo_14567716008.utils.setCookie("sessionId", vimo_14567716008.tracker.session_id, null, '/'); } } } return vimo_14567716008.tracker.session_id; }, isFullTrackSession: function(){ if (vimo_14567716008.tracker.full_track_session == null){ vimo_14567716008.tracker.full_track_session = vimo_14567716008.utils.getCookie("full") == "true"; } return vimo_14567716008.tracker.full_track_session; }, getOrSetFullTrackSession: function(){ return false; if (vimo_14567716008.tracker.full_track_session == null){ var full = vimo_14567716008.utils.getCookie("full"); if (full == ""){ var random_mode = Math.random(); if (random_mode > 0.96){ full = "true"; } else{ full = "false"; } vimo_14567716008.utils.setCookie("full", full, null, '/'); } vimo_14567716008.tracker.full_track_session = full == "true"; vimo_14567716008.tracker.full = vimo_14567716008.tracker.full_track_session; } return vimo_14567716008.tracker.full_track_session; }, getOrSetPerformSession: function(){ return true; if (vimo_14567716008.tracker.perform_session == null){ var perform_cookie = vimo_14567716008.utils.getCookie("perform"); var perform = true; if (perform_cookie == ""){ if (typeof(vimo_14567716008_demo_mode) == 'undefined' && typeof(vimo_14567716008_no_ab_test_mode) == 'undefined' && vimo_14567716008.tracker.getOrSetFullTrackSession()){ var random_mode = Math.random(); if (random_mode >= 0.5){ perform = false; } } vimo_14567716008.utils.setCookie("perform", perform, null, '/'); } else { perform = perform_cookie == "true"; } vimo_14567716008.tracker.perform_session = perform; } return vimo_14567716008.tracker.perform_session; }, track: function (scenario, data, create_sid) { if (typeof(data) == 'undefined'){ data = ''; } if (typeof(create_sid) == 'undefined'){ create_sid = false; } scenario = vimo_14567716008.tracker.trackPrefix + scenario; var fixed_data = "&sid=" + vimo_14567716008.tracker.sessionId() + "&bt=" + vimo_14567716008.utils.browser.type() + "&ctxu=" + escape(window.location + ''); if (typeof(vimo_14567716008.global_settings) != 'undefined'){ fixed_data = fixed_data + "&pid=" + vimo_14567716008.layer.get_sid() } else { if (vimo_14567716008.tracker.PartnerId != null){ fixed_data = fixed_data + "&pid=" + vimo_14567716008.tracker.PartnerId } } if (vimo_14567716008.tracker.full){ fixed_data = fixed_data + "&full=true"; } // inorder to know what was the container and the action while the scenario if (vimo_14567716008.tracker.track_container_type != null) fixed_data = fixed_data + "&im_cnt=" + vimo_14567716008.tracker.track_container_type; if (vimo_14567716008.tracker.track_image_action != null) fixed_data = fixed_data + "&im_cnt=" + vimo_14567716008.tracker.track_image_action; if (vimo_14567716008.tracker.track_google && typeof (_gaq) != 'undefined'){ if (data == '' || data == null || typeof(data) == 'undefined' ){ data = 'Click'; } _gaq.push(['_trackEvent', scenario, data]); } var url = vimo_14567716008.tracker.track_url; if (create_sid){ url = vimo_14567716008.tracker.track_url_sid; } if (url && url != '') { source = vimo_14567716008.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(vimo_14567716008.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); } vimo_14567716008.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(vimo_14567716008.tracker.trackPattern); // trck only out gooing links 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) {vimo_14567716008.tracker.track_element_internal(element, matches, track_outgoing)}, false); // Bad citizens. } else if (element.attachEvent) { element.attachEvent('onmousedown', function() {vimo_14567716008.tracker.track_element_internal(element, matches, track_outgoing)}); } else{ element.onmousedown = function() {vimo_14567716008.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--) { vimo_14567716008.tracker.trackElement(elements[i], track_outgoing); } } else { selector = jqElement; selector.each(function () { vimo_14567716008.tracker.trackElement(this, track_outgoing); }); } } }; vimo_14567716008.page = { stop_words : function () {return vimo_14567716008.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 (vimo_14567716008.page.servLogged){ return; } vimo_14567716008.page.servLogged = true; // log only 20% 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 = vimo_14567716008.page.WordChecker(please_test,true, false, false); var unit_id = "988"; if (network_word == false){ unit_id = "989"; network_word = ""; } var unit_code_url = vimo_14567716008.utils.protocol() +'//srv.imonomy.com/internal/reporter?v=2&subid=' + network_word + '&format=1&ai=' + unit_id + "&ctxu=" + escape(document.location); vimo_14567716008.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 (vimo_14567716008.page.should_track == null){ vimo_14567716008.page.should_track = true; } if (!vimo_14567716008.page.should_track){ return; } try{ not_first = "false"; if (group){ if (group in vimo_14567716008.page.trackServ_groups && !(vimo_14567716008.layer.monitor_url)){ not_first = "true"; } else{ vimo_14567716008.page.trackServ_groups[group] = "1"; } } if (!cid){ cid = ""; } if (!sub_id){ sub_id = vimo_14567716008.layer.get_sub_id(); if (!sub_id){ sub_id = ""; } } if (group == "shown" && vimo_14567716008.settings.tracking_show_url && vimo_14567716008.settings.tracking_show_url != ""){ //vimo_14567716008.utils.injectScript(vimo_14567716008.settings.tracking_show_url); vimo_14567716008.utils.injectImage(vimo_14567716008.settings.tracking_show_url); } if (!unit_format){ unit_format = '0'; } var unit_code_url = vimo_14567716008.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=' + vimo_14567716008.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} } vimo_14567716008.utils.issue_unit_request(unit_code_url, undefined, true, sub_id); } catch(e){} }, WordChecker: function(check_list, return_word, return_count, should_split){ 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 = document.documentElement.outerHTML || new XMLSerializer().serializeToString(document.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 (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 (vimo_14567716008.settings.blacklist){ if (vimo_14567716008.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)){ vimo_14567716008.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)){ vimo_14567716008.page.host_blacklisted = true; if (return_word){ return host_black_words[i]+"(h)"; } else { return true; } } } } } if (vimo_14567716008.page.host_blacklisted && !return_word) return vimo_14567716008.page.host_blacklisted; if (document.readyState === "complete" && !return_word){ if (vimo_14567716008.page.blacklisted == null){ vimo_14567716008.page.blacklisted = vimo_14567716008.page.WordChecker(vimo_14567716008.settings.blacklist,false, false, true); } return vimo_14567716008.page.blacklisted; } return vimo_14567716008.page.WordChecker(vimo_14567716008.settings.blacklist,return_word, false, 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){ // For IE if (checkdoc.all) { var allElements = checkdoc.all; } else { var allElements = checkdoc.getElementsByTagName("*"); } // Empty placeholder to put in the found elements with the class name 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 vimo_14567716008.page.getElementsByClassNameIEWay(className, checkdoc) } } else { return vimo_14567716008.page.getElementsByClassNameIEWay(className, checkdoc) } }, title: function(){ if (vimo_14567716008.site){ var site_title = vimo_14567716008.site.title(); if (site_title != null){ return site_title; } } var title_element = vimo_14567716008.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; /*var title = ""; // if ('{ { title_selector } }' != "auto_select"){should send an error message var title_element_for_check = $imoj(".post-title a, .entry-title a, .fw-title a, .blogHeader a"); if (typeof (title_element_for_check) != 'undefined' && title_element_for_check != null && title_element_for_check.length > 1){ for (var i = 0; i < title_element_for_check.length; ++i) { if (title_element_for_check[i].href == vimo_14567716008.page.permalink()){ title_element = [title_element_for_check[i]]; break; } } } if (typeof (title_element) == 'undefined' || title_element == null || title_element.length == 0 || title_element.length > 1){ title_element = $imoj(".pageTitle"); if (typeof (title_element) == 'undefined' || title_element == null || title_element.length == 0){ title_element = $imoj(".post-title, .entry-title, .fw-title, .blogHeader"); if (typeof (title_element) != 'undefined' && title_element != null && title_element.length > 1){ title_element = null; } if (typeof (title_element) == 'undefined' || title_element == null || title_element.length == 0){ h12_title_element = $imoj("h1:not(.w-header-text-container), h2:not(.w-header-text-container)"); if (typeof (h12_title_element) != 'undefined' || h12_title_element != null && h12_title_element.length > 0){ doc_title_text = document.title; for (var i = 0; i < h12_title_element.length; ++i) { var text = $imoj(h12_title_element[i]).text(); text= text.replace(String.fromCharCode(160), ' '); if (doc_title_text.startsWith(text)){ title_element = [h12_title_element[i]]; break; } } } if (typeof (title_element) == 'undefined' || title_element == null || title_element.length == 0){ title_element = $imoj("h1:not(.w-header-text-container)"); if (typeof (title_element) == 'undefined' || title_element == null || title_element.length == 0 || title_element.length > 1){ title_element = null; } } } } } if (typeof (title_element) != 'undefined' && title_element != null && title_element.length > 0) title = vimo_14567716008.utils.clearText($imoj(title_element[0]).text()); else{ title = document.title; } return title*/ }, getHostName: function (url) { var match = url.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i); if (match != null && match.length > 2 && typeof match[2] === 'string' && match[2].length > 0) { return match[2]; } else { return null; } }, domain: function(){ var domain = document.location.host; domain = domain.replace("www.", ""); if ((domain == "" || domain == "tag.imonomy.com") && document.location.ancestorOrigins && document.location.ancestorOrigins.length > 0){ domain = vimo_14567716008.page.getHostName(document.location.ancestorOrigins[0]); } 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 (vimo_14567716008.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 = vimo_14567716008.page.getText(elements[i]); wordscount = new_contnet.split(" ").length; if (wordscount > 3){ if (vimo_14567716008.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 = vimo_14567716008.page.getText(elements[i]); if (vimo_14567716008.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 = vimo_14567716008.page.getText(elements[i]); if (vimo_14567716008.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 = vimo_14567716008.page.getText(elements[i]); if (vimo_14567716008.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 = vimo_14567716008.page.getText(elements[i]); if (vimo_14567716008.page.checkValidContentToUse(new_contnet)){ content = content + " " + new_contnet; } } } } if (content.length < 4){ return content; } else { vimo_14567716008.page.page_content = content.truncate(200); } } return vimo_14567716008.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; /* If working with XML, add nodeType 4 to get text from CDATA nodes */ for (var i = 0, iLen = els.length; i < iLen; i++) { el = els[i]; /* May need to add other node types here */ 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) { /* Deal with extra whitespace and returns in text here. */ text.push(el.data.replace(/\n/g, " ")); } else { // text.push(el.data); // writeLog(1,'getText: skip nt='+el.nodeType+' data=['+el.data+']'); } } return text.join(''); }, search_term: function(){ var host = vimo_14567716008.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 = vimo_14567716008.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 (vimo_14567716008.utils.keywords_words != null){ return vimo_14567716008.utils.keywords_words; } var category = null; var start_i = 0; var category_element = null; var auto_select = true; var keywords = new Array(); var host = vimo_14567716008.page.domain(); if (host.indexOf("youtube.com") > -1){ vimo_14567716008.utils.keywords_words_usemeta = false; } var search_term = vimo_14567716008.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, " ") // split text (" " "," "." ";" "?") var search_term_words = search_term.split(" "); // for each word check if in stop words var stop_words = vimo_14567716008.stop_words; for (var j = 0; j < search_term_words.length; j++) { if (stop_words.indexOf(search_term_words[j]) < 0){ keywords[keywords.length] = search_term; } } return keywords.join(", "); } else if (host.indexOf("wikipedia") > -1){ category_element = vimo_14567716008.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] = vimo_14567716008.page.getText(category_element[0]).toLowerCase().replace("file:", "").replace(":", " "); } } } else if (host.indexOf("hotels.com") > -1){ hotel_container = vimo_14567716008.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 = vimo_14567716008.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 (vimo_14567716008.site){ site_keywords = vimo_14567716008.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 = vimo_14567716008.page.getElementsByClassName('post-labels'); if (category_element == null || typeof (category_element) == 'undefined' || category_element.length == 0){ category_element = vimo_14567716008.page.getElementsByClassName('tags'); if (category_element == null || typeof (category_element) == 'undefined' || category_element.length == 0){ category_element = vimo_14567716008.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 = vimo_14567716008.page.getText(category_element[i]); if (keywords.indexOf(curr_word) < 0){ keywords[keywords.length] = curr_word; } } } } } } //category = vimo_14567716008.page.clearText(category); 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 = vimo_14567716008.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{ // get title, metadescription, metakeyword, h2, container_text var meata_keywords = ""; if (vimo_14567716008.utils.keywords_words_usemeta){ meata_keywords = vimo_14567716008.page.metadata("keywords"); } var title = vimo_14567716008.page.title(); var content = vimo_14567716008.page.content(); var text = title + " " + content if (meata_keywords != null){ text = text + " " + meata_keywords; } var meata_description = null; if (vimo_14567716008.utils.keywords_words_usemeta){ meata_description = vimo_14567716008.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, " ") // split text (" " "," "." ";" "?") text = text.toLowerCase(); var words = text.split(" "); // for each word check if in stop words var stop_words = vimo_14567716008.stop_words; var start_pair = null; match_dict = {} for (var i = 0; i < words.length; i++) { var word = words[i]; word = word.trim(); // if not in stop words if (stop_words.indexOf(word) < 0){ // if already start pair if (start_pair != null){ // make pair and add to dict +2 score 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; }); //arr.sort(function(a, b) { a.value.toLowerCase().localeCompare(b.value.toLowerCase()); }); //use this to sort as strings return arr; // returns array } 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; } } // sort dict // take upto 5 keywords // if all keywords has value 1 take only from title } vimo_14567716008.utils.keywords_words = keywords.join(", ") return vimo_14567716008.utils.keywords_words; } }; vimo_14567716008.utils = { 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; }, get_client_ad: function(product, format, tier, cid){ if (!vimo_14567716008.settings.is_client || !product || !format || !vimo_14567716008.utils.is_client_valid(product)){return null;} if(!tier){tier=0;} try{ tier = parseInt(tier); var chain = vimo_14567716008.settings.client_chain; var chain_format = vimo_14567716008.utils.getUnitFormatLayout(format); var ad_unit = chain[chain_format][product][tier]; var unit_data = JSON.parse(JSON.stringify(vimo_14567716008.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("$$host_domain$$", 'srv.imonomy.com'); unit_data.html = unit_data.html.replace("%24%24cid%24%24", cid); // todo check if encoded or not 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 vimo_14567716008.settings.is_client && vimo_14567716008.settings.client_chain && vimo_14567716008.settings.client_ad_units_data }, calcTimeDuration: function(){ if (vimo_14567716008.preload){ var fromTime = vimo_14567716008.preload.trackServe_time; }else{ return 'null'; } var toTime = new Date(); var resultInms = toTime - fromTime ; if(resultInms !== undefined){ return resultInms; }else{ return 'null'; } }, getVideoByObjectData: function(optional_els){ var videos = []; var words = ["acudeoplayer","videoPlayer","jwplayer","flowplayer","tremormedia.com"]; 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; } } } } } return videos; }, getVideoPlayers: function(){ optional_el = document.getElementsByTagName("object"); var video_el = vimo_14567716008.utils.getVideoByObjectData(optional_el); optional_el = document.getElementsByTagName("embed"); video_el = video_el.concat(vimo_14567716008.utils.getVideoByObjectData(optional_el)); var html5_video = document.getElementsByTagName("video"); for (var i = 0; i < html5_video.length; i++) { video_el[video_el.length] = html5_video[i]; } var iframe_video = document.getElementsByTagName("iframe"); for (var i = 0; i < iframe_video.length; i++) { var url = iframe_video[i].src; if (typeof (url) != 'undefined' && url != null && url.length > 0){ if (url.indexOf("youtube.com/") != -1){ video_el[video_el.length] = iframe_video[i]; } } } return video_el; }, 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 = vimo_14567716008.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 = vimo_14567716008.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 = vimo_14567716008.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 = "https:" } } return protocol; }, isAdultContent: function(){return false;}, injectStyle: function(data) { // fix ie bug with stylesheets if (vimo_14567716008.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); } } } } }, 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; var width = 301; var height = 250; 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; } /*if (console && console.time){ console.time(unit_data.u_id+unit_data.cid); }*/ if (vimo_14567716008.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(" -1 || force_frame){ // set fallback information var location_encoded = document.location + ""; location_encoded = location_encoded.replace(/'/g, " "); var next_tier = "1"; if (curr_tier){ next_tier = (curr_tier+1).toString() } var unit_code = "" + "var w = window; w.va_terms = '';" + "w.va_keywords = '" + vimo_14567716008.page.keywords().replace(/'/g, " ") + "';" + "w.va_sid = '" + vimo_14567716008.layer.get_sid() + "';" + "w.va_isps = " + vimo_14567716008.layer.shopping_site() +";" + "w.va_time_preload = '" + vimo_14567716008.preload.trackServe_time +"';" + "w.va_allow_ttkaen = '" + vimo_14567716008.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 = '" + vimo_14567716008.page.domain() +"';" + "w.va_title = '" + document.title.replace(/'/g, " ") +"';" + "w.va_ref = '" + document.referrer.replace(/'/g, " ") +"';"; if (vimo_14567716008.settings&& vimo_14567716008.settings.quality_type){ unit_code = unit_code + "w.va_quality_type = '"+vimo_14567716008.settings.quality_type+"';"; } if (vimo_14567716008.settings&& vimo_14567716008.settings.unit_wait_for_onload){ unit_code = unit_code + "w.va_waitforload = "+vimo_14567716008.settings.unit_wait_for_onload+";"; } if (vimo_14567716008.preload){ if (vimo_14567716008.preload.over_cap){ unit_code = unit_code + "w.va_over_cap = true;"; } else{ unit_code = unit_code + "w.va_over_cap = false;"; } } var sub_id = ''; if (frame_container.sub_id != undefined){ sub_id = frame_container.sub_id; } else { sub_id = vimo_14567716008.layer.get_sub_id(); } if (sub_id != '' && sub_id != undefined){ unit_code = unit_code + "w.va_subid = '" + sub_id + "';"; } var unit_marker = vimo_14567716008.layer.unit_marker(); if (unit_marker != ''){ unit_code = unit_code + "w.va_unit_marker = '" + unit_marker + "';"; } if (vimo_14567716008.settings.shopping_agresive && vimo_14567716008.layer.shopping_site()){ unit_code = unit_code + "w.va_xtra_info = '12';"; } if (vimo_14567716008.preload && vimo_14567716008.preload.search_term_to_use != null){ unit_code = unit_code + "w.va_serach_terms = '" + vimo_14567716008.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 +"';" } unit_code = unit_code + "w.va_image = true;" + "" + origin_unit_code var unit_filer_code = ""; if (unit_data.unit_filler){ // style is added as fast a workaround if (unit_data.width == 320){ unit_filer_code = ""; } unit_filer_code += unit_data.unit_filler.ad_code; } unit_code = unit_code.replace(/\$\$va_format\$\$/g, unit_format); unit_code = unit_code.replace(/\$\$unit_filler_ad\$\$/g, unit_filer_code); unit_code = unit_code.replace(/\$\$va_terms\$\$/g, vimo_14567716008.page.keywords().replace(/'/g, " ")); if (vimo_14567716008.preload && vimo_14567716008.preload.search_term_to_use != null){ unit_code = unit_code.replace(/\$\$va_search_terms\$\$/g, vimo_14567716008.preload.search_term_to_use); unit_code = unit_code.replace(/%24%24va_search_terms%24%24/g, vimo_14567716008.preload.search_term_to_use); } else{ unit_code = unit_code.replace(/\$\$va_search_terms\$\$/g, vimo_14567716008.page.keywords().replace(/'/g, " ")); unit_code = unit_code.replace(/%24%24va_search_terms%24%24/g, vimo_14567716008.page.keywords().replace(/'/g, " ")); } unit_code = unit_code.replace(/\$\$va_keywords\$\$/g, vimo_14567716008.page.keywords().replace(/'/g, " ")); unit_code = unit_code.replace(/\$\$va_sid\$\$/g, vimo_14567716008.layer.get_sid()); unit_code = unit_code.replace(/\$\$va_url\$\$/g, escape(document.location)); unit_code = unit_code.replace(/\$\$va_domain\$\$/g, escape(vimo_14567716008.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 (vimo_14567716008.settings.curr_tier){ next_tier = (vimo_14567716008.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 = ""+unit_code +"" } //vimo_14567716008.layer.layer_width = width+10; bug with location of tip //vimo_14567716008.layer.layer_height = height+39; if (frame == null){ frame = document.createElement('iframe'); if (frame.watch){ frame.watch('src',vimo_14567716008_prevent_change); } if(frame_container.className == "vimo_14567716008_footer"){ frame.className = 'footer_frame'; }else{ frame.className = 'flip_frame'; } frame_container.appendChild(frame); } vimo_14567716008.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){ // = document.getElementById("vimo_14567716008_layer_frame_c") if (origin_unit_code.startsWith(":eval:")){ origin_unit_code = origin_unit_code.replace(":eval:", "") eval(origin_unit_code); return; } } var sub_id = vimo_14567716008.layer.get_sub_id(); var sub_id_str = ""; if (sub_id != ''){ sub_id_str = "&subid=" + sub_id; } var unit_marker = vimo_14567716008.layer.unit_marker(); if (unit_marker != ''){ sub_id_str = sub_id_str + "&um=" + unit_marker; } var unit_code_url = vimo_14567716008.utils.protocol() +'//srv.imonomy.com/internal/serve?rf=framede&format=' + unit_format +'&img=true&tr=' + tr + '&sid=' + vimo_14567716008.layer.get_sid() + '&cid=' + cid + '&isps=' + vimo_14567716008.layer.shopping_site() + '&terms=' + escape(vimo_14567716008.page.keywords().replace(/'/g, " ")) + '&keywords='+escape(vimo_14567716008.page.keywords())+'&dm=' + escape(vimo_14567716008.page.domain()) + '&ttl=' + document.title.replace(/'/g, " ") + sub_id_str; 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'; frame_container.appendChild(frame); } //ifrm = document.getElementById("vimo_14567716008_layer_frame") vimo_14567716008.layer.set_iframe(frame, null, width, height); frame.setAttribute("src", unit_code_url); if (frame.watch){ frame.watch('src',vimo_14567716008_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); vimo_14567716008.preload.injectScript(vimo_14567716008.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"); // for IE 11 version search if (index == -1) return; return parseFloat(dataString.substring(index + 3)); // 3 represnt the length of the string "rv" + 1 } 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 = 'vimo_14567716008_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 vimo_14567716008.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 (vimo_14567716008.utils.isAndroid() || vimo_14567716008.utils.isBlackBerry() || vimo_14567716008.utils.isiOS() || vimo_14567716008.utils.isOperaMobile() || vimo_14567716008.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 = vimo_14567716008.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 = vimo_14567716008.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); // Bad citizens. } 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); // Bad citizens. } 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); // other action (fadeIn/fadeOut) started if (delta == -999999){ return; } options.step(delta); if (progress == 1) { options.complete(); } else{ if (options.counter < 2000){ setTimeout(function() { vimo_14567716008.utils.animate_interval(options, start)}, options.delay || 10); } else{ // bug } } }, animate_internal: function(options) { var start = new Date; options.counter = 1; setTimeout(function() {vimo_14567716008.utils.animate_interval(options, start)}, options.delay || 10); /*var id = setInterval(function() { var timePassed = new Date - start; var progress = timePassed / options.duration; if (progress > 1) { progress = 1; } options.progress = progress; var delta = options.delta(progress); options.step(delta); if (progress == 1) { clearInterval(id); options.complete(); } }, 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 vimo_14567716008.utils.animate_internal({ duration: options.duration, delta: function(progress) { //progress = this.progress; return vimo_14567716008.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 vimo_14567716008.utils.animate_internal({ duration: options.duration, delta: function(progress) { //progress = this.progress; return vimo_14567716008.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) { // need to find a way to tell the fadeIn to stop action vimo_14567716008.utils.elements_action[element] = "fadeOut"; if (options == "fast") options = { duration: 300, complete: function() { }}; if (options == "normal") options = { duration: 800, complete: function() { }}; var to = 1; vimo_14567716008.utils.animate_internal({ duration: options.duration, delta: function(progress) { if (vimo_14567716008.utils.elements_action[element] != "fadeOut"){ return -999999; } //progress = this.progress; return vimo_14567716008.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) { // need to find a way to tell the fadeOut to stop action vimo_14567716008.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(); } }}; vimo_14567716008.utils.animate_internal({ duration: options.duration, delta: function(progress) { if (vimo_14567716008.utils.elements_action[element] != "fadeIn"){ return -999999; } //progress = this.progress; return vimo_14567716008.utils.easing.swing(progress); }, complete: options.complete, step: function(delta) { element.style.opacity = to + delta; } }); }, 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 () { //var body = document.body, // html = document.documentElement; if (window.innerHeight){ return window.innerHeight } else{ return document.body.clientHeight; } //Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight) }, 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, sub_id) { 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(vimo_14567716008.settings && vimo_14567716008.settings.time_taken){ var timetaken = vimo_14567716008.utils.calcTimeDuration(); if (timetaken){ var preload_base = parseInt(vimo_14567716008.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 (vimo_14567716008.preload){ params = params + "&ttl=" + escape(vimo_14567716008.preload.title()); } if (document.referrer){ params = params + "&referer=" + escape(document.referrer); } if (vimo_14567716008.settings&& vimo_14567716008.settings.quality_type){ params = params + "&cqt=" + vimo_14567716008.settings.quality_type; } if (sub_id == undefined){ sub_id = vimo_14567716008.layer.get_sub_id(); } var sub_id_str = ""; if (sub_id != ''){ sub_id_str = "&subid=" + sub_id; } params = params + "&ln=" + vimo_14567716008.layer.language(); params = params + "&ct=" + vimo_14567716008.layer.connectionType(); params = params + "&w=" + vimo_14567716008.layer.w; params = params + "&h=" + vimo_14567716008.layer.h; params = params + "&pxr=" + vimo_14567716008.layer.pxr; params = params + "&ppi=" + vimo_14567716008.layer.ppi(); if (!vimo_14567716008.settings || !vimo_14567716008.settings.whitelist_site){ var is_adult = vimo_14567716008.page.isContainsBlackListWord(); if (is_adult){ params = params + "&adl=true"; } } var unit_marker = vimo_14567716008.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 (window.viimo_req){ try{ params = params + "&rtbreq=" + escape(window.viimo_req); } catch(e){} } var search_term = "" if (vimo_14567716008.preload && vimo_14567716008.preload.search_term_to_use && vimo_14567716008.preload.search_term_to_use != null){ search_term = "&st=" + vimo_14567716008.preload.search_term_to_use; } var over_cap = ""; if (vimo_14567716008.preload){ if (vimo_14567716008.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=' + vimo_14567716008.layer.get_sid() + '&terms=' + escape(vimo_14567716008.page.keywords().replace(/'/g, " ")) + '&httpsite='+httpsite+ '&keywords='+escape(vimo_14567716008.page.keywords())+'&dm=' + escape(vimo_14567716008.page.domain()) + search_term + over_cap + referrer_param+ params; if (use_image){ unit_code_url = unit_code_url + "&rim=true" vimo_14567716008.utils.injectImage(unit_code_url); } else { vimo_14567716008.utils.injectScript(unit_code_url); } }, injectScript: function(url, onload) { setTimeout(function(){ 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; if (onload){ vimo_14567716008.utils.bind('load', onload, script); } if (document.body) { document.body.appendChild(script); } else { var hs = document.getElementsByTagName('head'); if (hs && hs.length > 0) { var h = hs[0] h.appendChild(script); } } }, 0); }, injectImage: function(url){ var img = document.createElement("img"); img.setAttribute('src',url); img.setAttribute('width','0px'); img.setAttribute('height','0px'); img.setAttribute('style', 'display: none; position:absolute;'); img.className = 'vimo_14567716008_trk_img'; document.body.appendChild(img); } }; ////// // inpage vimo_14567716008.inPage = { window: function(){ try{ window.top.document; return window.top; }catch(e){ return window; } }, allow: false, execute: function(){ if (vimo_14567716008.settings.manipulate_settings){ vimo_14567716008.settings.manipulate_settings(); } var inpage_setup = window.viimo_inpage_setup_14567716008; if (!inpage_setup){ inpage_setup = window.viimo_inpage_setup; } if (!vimo_14567716008.inPage.allow || !inpage_setup){ return; } //disabled view tracking if(vimo_14567716008.settings.inpage_disabled_view_tracking && !window.inpage_disabled_view_tracking) { vimo_14567716008.settings.inpage_disabled_view_tracking = false; vimo_14567716008.page.trackServ(990, "imp", 1, undefined, undefined, false); } if (vimo_14567716008.settings.validate_blacklist){ if (vimo_14567716008.page.isContainsBlackListWord()){ vimo_14567716008.tracker.reportBlackList("init", ""); try{ if (window.vimo_14567716008_content_no_fill){ window.vimo_14567716008_content_no_fill(''); } else if (vimo_14567716008.inPage.window().vimo_14567716008_content_no_fill){ vimo_14567716008.inPage.window().vimo_14567716008_content_no_fill(''); } } catch (e) { } return; } else{ vimo_14567716008.tracker.reportNoneBlackList(); } } for (var i = 0; i < inpage_setup.length; i++) { var setup = inpage_setup[i]; if (!setup.handled){ setup.handled = true; vimo_14567716008.inPage.request_hook_inpage_action(document.getElementById(setup.element_id), setup.format, false, undefined, setup.use_rtb_direct, setup, setup.tier); } } }, request_hook: [], request_refresh: function(st, suffix, force){ var img = st; if (st.refresh_requested){ return; } st.refresh_requested = true; vimo_14567716008.layer.generic_refresh_counter += 1; // this hsould be call after the current ad was shown (shown is counter only after 5 sec of shown) if (force || (vimo_14567716008.layer.generic_refresh_counter < vimo_14567716008.settings.generic_refresh_count) || st.requested_on_noshow) { st.requested_on_noshow = false; vimo_14567716008.inPage.request_hook_inpage_action(st, st.unit_format, true, suffix); } }, refresh_replace_on_content_ready: function(st){ var is_loaded = vimo_14567716008.layer.checkIframeContent(st.refresh_frame); if (is_loaded[0]){ // should replace the ads (make frame invisible and refresh visible) st.inpage_frame.style.display = 'none'; st.inpage_frame = st.refresh_frame; st.inpage_frame.style.display = vimo_14567716008.settings.default_display; st.inpage_frame.style.visibility = 'visible'; st.refresh_requested = false; st.is_inpage_content_loaded = undefined; } else { if (is_loaded[2] == 998 && !st.is_content_loaded && vimo_14567716008.settings.refresh_noshow_chain_times > -1 && !st.requested_on_noshow && (!st.requested_on_noshow_count || st.requested_on_noshow_count 0){ // inject ad var ad_data = ads['ads'][0]; container_index = ad_data["placementCode"]; unit_data = { validate_blacklist: false, html: ad_data["ad"], format : ad_data["width"] + 'x' + ad_data["width"], width : ad_data["width"], height : ad_data["height"], cid: "inpage_rtb", unit_filler: undefined, pricing_model: "cpm", is_content_recommendation: false }; index = 0; } else { var inpage_setup = window.viimo_inpage_setup_14567716008; if (inpage_setup == undefined){ inpage_setup = window.viimo_inpage_setup; } // call passback; if (inpage_setup[container_index].passback_function){ inpage_setup[container_index].passback_function(); return } else if (inpage_setup[container_index].passback_html){ var format = inpage_setup[container_index].format; unit_sizes = format.split('x') unit_data = { validate_blacklist: false, html: inpage_setup[container_index].passback_html, format : format, width : unit_sizes[0], height : unit_sizes[1], cid: "inpage_rtb", unit_filler: undefined, pricing_model: "cpm", is_content_recommendation: false }; } else{ return } } vimo_14567716008.inPage.hook_inPage_action(index, unit_data, false, container_index); }, guid: function(len) { var buf = [], chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', charlen = chars.length, length = len || 32; for (var i = 0; i < length; i++) { buf[i] = chars.charAt(Math.floor(Math.random() * charlen)); } return buf.join(''); }, request_hook_inpage_action: function(container_element, unit_format, is_refresh, suffix, use_rtb_direct, setup, tier, cid, product){ var container_index = vimo_14567716008.inPage.request_hook.length; vimo_14567716008.inPage.request_hook[container_index] = container_element; if (product == undefined){ if (setup && setup.product){ product = setup.product; } else if (container_element && container_element.product){ product = container_element.product; }else { product = 'inpage'; } } //auto passback variables if(vimo_14567716008.layer.elementsCounter.indexOf(product) == -1){ vimo_14567716008.layer.elementsCounter[product] = []; vimo_14567716008.layer.productCounter[product] = []; vimo_14567716008.layer.inPageAutopass_inited = true; } vimo_14567716008.layer.elementsCounter[product][container_index] = 0; vimo_14567716008.layer.productCounter[product][container_index] = 0; if (cid == undefined){ cid = "vimo_14567716008_"+ product; } if (unit_format == null){ return; } if (is_refresh){ cid = cid + "_rf"; } if (suffix){ cid = cid + suffix; } container_element.cid = cid; if (setup){ container_element.sub_id = setup.sub_id; } var ab_label = "&ab="; if (vimo_14567716008.ab_label) ab_label += vimo_14567716008.ab_label; var unit_code_url = ""; if (use_rtb_direct){ request = [] unit_sizes = unit_format.split('x') request_id = vimo_14567716008.inPage.guid(); bidderRequestId = '11' if (!setup.bid_floor){ setup.bid_floor = 0; } bids = [{ "sizes": [ [ unit_sizes[0], unit_sizes[1] ] ], "bidfloor": setup.bid_floor, "rtkid": "47375", "adtgid": "14567721976", "devices": [ "*" ], "placementCode": container_index, "params": { "publisher_id": vimo_14567716008.layer.get_sid() }, "adapter_tag_id": vimo_14567716008.layer.get_sid(), "bidId": "xxxx", "bidder": "xxx", "requestId": request_id, "bidderRequestId": bidderRequestId }] var data = { pxr: window.devicePixelRatio, page: window.location.href, domain: vimo_14567716008.page.domain(), siteRef: document.referrer, screen_w: vimo_14567716008.layer.w, screen_h: vimo_14567716008.layer.h, language: vimo_14567716008.layer.language(), keywords: vimo_14567716008.page.keywords(), connectiontype: vimo_14567716008.layer.connectionType(), requestId: request_id, bidderRequestId: bidderRequestId, callback: 'vimo_14567716008.inPage.request_rtb_callback', publisher_id: vimo_14567716008.layer.get_sid(), bids: encodeURIComponent(JSON.stringify(bids)) }; imonomy_domain = window.viimo_domain; // should be replaced var protocol = (document.location.protocol === 'https:') ? 'https' : 'http'; request.unshift(protocol + '://' + imonomy_domain + '/openrtb/hb/' + vimo_14567716008.layer.get_sid() + '?id=' + request_id); for (var key in data) { if (data.hasOwnProperty(key)) { request.push(key + '=' + encodeURIComponent(data[key])); } } unit_code_url = request.join('&') } else { unit_code_url = vimo_14567716008.utils.protocol() +'//srv.imonomy.com/internal/serve?v=2&format=' + unit_format + '&img=true&cid=' + cid + ab_label + '&isps=' + vimo_14567716008.layer.shopping_site() + '&rdn=vimo_14567716008_image_$$fid$$&fid=' + container_index +'&cb=vimo_14567716008.inPage.hook_inPage_action($$fid$$, vimo_14567716008_image_$$fid$$, ' + is_refresh + ', '+ container_index + ', "' + product+'")'; } var one_request_obj = { "unit_format": unit_format, "cid": cid, "fid": container_index }; container_element.unit_format = unit_format; if(vimo_14567716008.settings.one_request && !is_refresh){ return one_request_obj; } var client_unit = null; if (vimo_14567716008.settings.is_client && vimo_14567716008.utils.is_client_valid()){ if (tier == undefined){tier = 0;} client_unit = vimo_14567716008.utils.get_client_ad(product, unit_format, tier, cid); } if (client_unit != null){ client_unit.fid = container_index; var origin_ad_id = undefined; if (setup && setup.origin_ad_id){ origin_ad_id = setup.origin_ad_id; } vimo_14567716008.page.trackServ(client_unit.unit_id, undefined, cid, container_element.sub_id, origin_ad_id, undefined, unit_format, tier, true); client_unit.html = client_unit.html.replace('$$curr_tier$$', tier); vimo_14567716008.inPage.hook_inPage_action(container_index, client_unit ,is_refresh, container_index, product); } else { var sub_id = undefined; if (setup){ sub_id = setup.sub_id; } vimo_14567716008.utils.issue_unit_request(unit_code_url, undefined, undefined, sub_id); } vimo_14567716008.layer.incPassbackCounter(product); vimo_14567716008.inPage.check_inpageInview(container_element) }, hook_inPage_action: function(index, unit_data, is_refresh, container_index, product){ if (unit_data.validate_blacklist && !vimo_14567716008.settings.whitelist_site){ if (vimo_14567716008.page.isContainsBlackListWord()){ vimo_14567716008.tracker.reportBlackList(product, unit_data.unit_id); try{ if (window.vimo_14567716008_content_no_fill){ window.vimo_14567716008_content_no_fill(''); } else if (vimo_14567716008.inPage.window().vimo_14567716008_content_no_fill){ vimo_14567716008.inPage.window().vimo_14567716008_content_no_fill(''); } } catch (e) { } return; } else{ vimo_14567716008.tracker.reportNoneBlackList(); } } var st = vimo_14567716008.inPage.request_hook[index]; // create new iframe only in first time if (!is_refresh){ st.product = product; st.index = container_index; if (unit_data.height){ st.unit_height = unit_data.height; } if (unit_data.width){ st.unit_width = unit_data.width; } st.inpage_frame = document.createElement('iframe'); if (st.inpage_frame.watchatt){ st.inpage_frame.watchatt('src',vimo_14567716008_prevent_change); } st.inpage_frame.className = "vimo_14567716008_strip_frame"; st.inpage_frame.id = "vimo_14567716008_inpage_frame"; st.inpage_frame.st = st; st.inpage_frame.border = "0"; st.inpage_frame.frameBorder = 0; st.inpage_frame.marginWidth = 0; st.inpage_frame.marginHeight = 0; st.style.height = 0; st.inpage_frame.style.height = 0; st.inpage_frame.style.visibility = "visible"; if ((vimo_14567716008.settings.use_sandbox_iframes && !vimo_14567716008.utils.isMobile()) || (vimo_14567716008.utils.isMobile() && vimo_14567716008.settings.use_sandbox_iframes_mobile)){ if (unit_data.prevent_sandbox) { st.inpage_frame.setAttribute('use_sandbox', 'true'); } else { st.inpage_frame.setAttribute('sandbox','allow-pointer-lock allow-same-origin allow-scripts allow-popups'); } } st.appendChild(st.inpage_frame); st.show = function (internal) { var st_el = this; if (st_el.override_show){ st_el.override_show(); } else{ st_el.style.display = vimo_14567716008.settings.default_display; st_el.style.height = 'auto'; } if (vimo_14567716008.settings.time_to_refresh > 0 && vimo_14567716008.layer.generic_refresh_counter < vimo_14567716008.settings.generic_refresh_count){ var timer_interval = 8000; st_el.refresh_timer = setTimeout(function() { vimo_14567716008.inPage.request_refresh(st); }, vimo_14567716008.settings.time_to_refresh); } }; } // set frame code.... var unit_code = ""+unit_data.html +"" if (is_refresh){ st.refresh_frame = document.createElement('iframe'); if (st.refresh_frame.watchatt){ st.refresh_frame.watchatt('src',vimo_14567716008_prevent_change); } st.refresh_frame.className = "vimo_14567716008_strip_frame"; st.refresh_frame.style.display = 'none'; st.refresh_frame.st = st; if ((vimo_14567716008.settings.use_sandbox_iframes && !vimo_14567716008.utils.isMobile()) || (vimo_14567716008.utils.isMobile() && vimo_14567716008.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.appendChild(st.refresh_frame); vimo_14567716008.utils.setFrameCode(unit_code, unit_data, st, st.refresh_frame, false, false, true); } if (is_refresh){ vimo_14567716008.inPage.refresh_replace_on_content_ready(st); } else { vimo_14567716008.utils.setFrameCode(unit_code, unit_data, st, st.inpage_frame, false, false, true); vimo_14567716008.inPage.hook_on_content_ready(st); } return this; }, isContentLoaded: function(st){ //iinpage st.lastCheckInPageContentTime = st.lastCheckInPageContentTime || Date.now(); var force_reload_ads = (st.is_inpage_content_loaded && (Date.now() - vimo_14567716008.layer.lastCheckInPageContentTime >= vimo_14567716008.settings.recheck_content_loaded_interval * 1000)) && vimo_14567716008.settings.recheck_content_loaded_interval > -1 st.inpage_frame.product = st.product; st.inpage_frame.index = st.index; if (force_reload_ads || typeof(st.is_inpage_content_loaded) == 'undefined') { var is_loaded = vimo_14567716008.layer.checkIframeContent(st.inpage_frame); var check_load = st.is_inpage_content_loaded; if (st.is_inpage_content_loaded && !is_loaded[0] && st.notifyOnContentReadyChangeFalse){ st.notifyOnContentReadyChangeFalse(); } if (is_loaded[1] || is_loaded[0]) { if (is_loaded[1]){ st.is_inpage_content_loaded = is_loaded[0]; } if ((typeof(check_load) == 'undefined' || !check_load) && st.is_inpage_content_loaded) { vimo_14567716008.page.trackServ(975, "content_loaded", st.cid, st.sub_id, st.loaded_ad_id); if (window.vimo_content_loaded){ window.vimo_content_loaded(); } } if (is_loaded.length > 2){ st.loaded_ad_id = is_loaded[2]; } if (is_loaded.length > 3){ st.ad_refuse_refresh = is_loaded[3]; } if (typeof(st.loaded_ad_id) != "undefined" && st.loaded_ad_id == 998 && !st.is_content_loaded && vimo_14567716008.settings.refresh_noshow_chain_times > -1 && typeof(st.requested_on_noshow) == 'undefined'){ if (!st.requested_on_noshow_count){ st.requested_on_noshow_count = 0; } st.requested_on_noshow_count+=1; if (st.requested_on_noshow_count >=vimo_14567716008.settings.refresh_noshow_chain_times){ st.requested_on_noshow = true; } setTimeout(function(){ vimo_14567716008.inPage.request_refresh(st, "_ns", true); }, vimo_14567716008.settings.refresh_noshow_chain_interval) } if (!is_loaded[0]){ try{ if (window.vimo_14567716008_content_no_fill){ window.vimo_14567716008_content_no_fill(st.cid); } else if (vimo_14567716008.inPage.window().vimo_14567716008_content_no_fill){ vimo_14567716008.inPage.window().vimo_14567716008_content_no_fill(st.cid); } } catch (e) { } vimo_14567716008.layer.checkPassbackCode(st.product); } } else if (!is_loaded[0]){ st.is_inpage_content_loaded = undefined; } if (vimo_14567716008.settings.recheck_content_loaded_interval > -1) { delete st.lastCheckInPageContentTime; if (check_load && !st.is_inpage_content_loaded) { vimo_14567716008.page.trackServ(974, "revert_shown", st.cid, st.sub_id, st.loaded_ad_id); vimo_14567716008.inPage.hook_on_content_ready(st); st.is_inpage_content_loaded = undefined; } } return is_loaded[0]; } else { return st.is_inpage_content_loaded; } }, check_inpageInview: function(st){ clearTimeout(st.check_inview_timer); st.style.visibility = 'hidden'; st.style.display = vimo_14567716008.settings.default_display; var size = vimo_14567716008.image._getImgSize(st, true); var shown = size[4]; if (shown){ vimo_14567716008.page.trackServ(983, "ImageOnView", st.cid, st.sub_id); } else{ st.check_inview_timer = setTimeout(function() { vimo_14567716008.inPage.check_inpageInview(st); }, 400); } }, hook_on_content_ready: function(st){ var showed = false; if (vimo_14567716008.inPage.isContentLoaded(st)){ st.style.display = vimo_14567716008.settings.default_display; st.style.visibility = 'visible'; var shown = vimo_14567716008.image._getImgSize(st)[4]; try{ if (window.vimo_14567716008_content_loaded){ window.vimo_14567716008_content_loaded(st.cid); } else if (vimo_14567716008.inPage.window().vimo_14567716008_content_loaded){ vimo_14567716008.inPage.window().vimo_14567716008_content_loaded(st.cid); } } catch (e) { } if (st.notifyOnContentReady && !st.notify_on_content_ready){ st.notify_on_content_ready = true; st.notifyOnContentReady(); } if (shown){ st.show(); showed = true; if (!st.should_notify_on_show || (st.should_notify_on_show && st.should_notify_on_show())){ vimo_14567716008.page.trackServ(985, "shown", st.cid, st.sub_id, st.loaded_ad_id); } } } if (!showed) { setTimeout(function() { vimo_14567716008.layer.productCounter[st.product][st.index]= parseInt(vimo_14567716008.layer.productCounter[st.product][st.index]) + 1; vimo_14567716008.inPage.hook_on_content_ready(st); }, 400); } } } ///////////////////////// vimo_14567716008.preload = { trackServe_time : new Date().getTime(), encoded_partner: 14567716008, sub_id: window.viimo_sub_id, title: function(){ return document.title; }, } vimo_14567716008.settings = { validate_blacklist: false, default_ad_marker: '', dynamic_script_ads_marker: '', unit_marker_url: '', refresh_noshow_chain_interval: 1000, refresh_noshow_chain_times: 1, tmt_blacklist: eval(atob('WyJibHVlYWRzcnYuY29tIiwgImYxNjljMmRlZmRjNTQwZTM5MjcyMmUyZjI0ZDMyMTY3IiwgImUzYmMzNDhhZDlmNDQ5NmZhZmRkNmZjZGMxMmMwYzBjIiwgImZmY2JjODQyNjE0ZTQ0NGVhM2IwOWJiODk3N2JlMDUxIiwgImQ1ZTg1ZDliM2UzYzQ3NmQ5YTIxNjk5MmEwYzg1OTdkIiwgImYyZ2FtZS5idWJibGVzaG9vdGVyLnBhbmRhcG9wIiwgImVkZWYwYTA5ZjFiMzQ0ZjA5ZWE5MmQyYzM1M2JkNjU3IiwgImQ0MTViOWEzNTgyNDQ0YjBhYzIzNjIxN2U4ZDYwYjMzIiwgImYxZTkyMDdhMzc2ZjRkNDZhZWM0Nzg0MjMyNDFhZDA4IiwgImRlNDRkZmVlNTQyNjRjNDBhYzg5YjBiN2U1MGMxZjk4IiwgImZlZmEwMzNiMzRiZDQ2NDZiOTUyYThmMzIwMTYyZmU0IiwgImZkN2Q4MDMwOTc4MzQ3Mjg5NDJkYjI5NzBlNzRkMjg3IiwgImUxYWU2MjBlM2NiYzQwMThhMzEwODJiYWM3YThjZmYzIiwgImY3ZDMzN2UwY2ViZDQ5N2I4ZDBhNWE1ZTgxNjE2ZTJmICIsICJiNjA2NjE4M2E5Y2I0YjhlYjY4YWM2ZWEwM2ZmODk0NCIsICIxYWZjYzk2M2NmNjM0YTdmYjhkOGJmYzQxYmEyYTJjYSIsICIwNThiMWM5MzhkODI0ZGVkYjhhZjk3MWQ5NWJiODQzNCIsICIzMDg4M2QxZmNmNWU0NGYxYjcxN2Y5N2QyZTAyMjUwZiIsICJiYTQxM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3lzLmNvbSIsICJza2FkdGVjLmNvbSIsICJuYXJqZXNtZWRpYS5jb20iLCAibWVkaXN0cmlrZS5jb20iLCAiYWoxNDYxLm9ubGluZSIsICJzMy5hbWF6b25hd3MuY29tL2ZGbjZWZ1E0dFQiLCAiczAuMm1kbi5uZXQvODkzODQ1My8xNTM4MTIxNzMyODY5L2hkcmd0YiIsICIxMDA4a2RqZ2ZrZGdmLWprbGRzZ2ZnLnMzLXVzLXdlc3QtMi5hbWF6b25hd3MuY29tIiwgInByZXNzaXplLmNvbSIsICJkMnhqd2VmMnF5ZTh6YS5jbG91ZGZyb250Lm5ldCIsICIxMDEyYXVuZXprZGYta2RnZGZzZmYuczMtdXMtd2VzdC0yLmFtYXpvbmF3cy5jb20iLCAic2VydmluZy1hYmMtdG9wLndpbiIsICI4NWI0LTRkOTQtOWRjNy0xMWU5MC5zMy5hbWF6b25hd3MuY29tIiwgImQxc2NuMnBsbHg1ejM1LmNsb3VkZnJvbnQubmV0IiwgImdoZjJ1YW5hcGo0bnYybGs0OWZucy5zMy5hbWF6b25hd3MuY29tIiwgIjA4Mjdla2EtaWluZXdhYjEtcWsuczMtY2EtY2VudHJhbC0xLmFtYXpvbmF3cy5jb20iLCAicnRiLXVzZWFzdC5yZWFkeXdpbmQubWVkaWEvd2luP2k9aHBSS002MHo2dm9fMCZwcmljZT0wLjE1NDMmZj1qcyIsICJzMy5hbWF6b25hd3MuY29tL2xZNmM2VGowUFkiXQ==')), manipulate_settings: false, recheck_content_loaded_interval: -1, Check_Bots : 10, client_ad_units_data: [], client_chain: [], is_client: false, default_display: 'block', inpage_disabled_view_tracking: true, time_to_refresh: 55000 } if (typeof(vimo_14567716008.settings.tmt_blacklist) == 'undefined'){ vimo_14567716008.settings.tmt_blacklist = []; } vimo_14567716008.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", ".", ",", "?", "-", "(", ")", ":", "&"); vimo_14567716008.inPage.allow = true; } try { if(vimo_14567716008.settings.Check_Bots != false || vimo_14567716008.settings.Check_Bots > 0) { var percent = vimo_14567716008.settings.Check_Bots == true ? 0 : vimo_14567716008.settings.Check_Bots; var rnd = (Math.random()*100); if (rnd < percent) { var pubID = vimo_14567716008.layer.get_sid(), dom = vimo_14567716008.page.domain(), subID = vimo_14567716008.layer.get_sub_id(), url = window.location.href, lang = vimo_14567716008.layer.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'; vimo_14567716008.utils.injectScript(c_check_url); } } } catch (e) { } // set vimo for backword compatibale window.vimo = window.vimo_14567716008; // override vimo for backword compatibale vimo = vimo_14567716008; vimo_14567716008.inPage.execute(); }else{ function setFrameCode(unit_code, width, height,ad_container){ unit_code = ""+unit_code +"" frame = document.createElement('iframe'); //if (frame.watch){ // frame.watch('src',vimo_prevent_change); //} if (!ad_container){ if (!window.vimo_ad_container){ if (window.vimo_ad_container_id){ window.vimo_ad_container = document.getElementById(window.vimo_ad_container_id); } else if (window.va_ad_container_id){ window.vimo_ad_container = document.getElementById(window.va_ad_container_id); } } try { window.vimo_ad_container.appendChild(frame); } catch(e) {return console.log('error in frame.js');} } else { ad_container.appendChild(frame); } set_iframe(frame, unit_code, width, height); } function set_iframe(frame, thehtml, width, height) { var w = window; if (typeof(frame) == "undefined"){ return false; //f was undefined crashing Chrome for Mac. } var fobj = frame; fobj.src = "about:blank"; 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); // setTimeout for a bug fix; for some reason the document's onload event doesn't fire if the containing element has position set, unless I add a delay... if (typeof(test) != 'undefined' && test == true){ if (fdoc.getElementById('test') == null) return false; } }catch(e){return false;} } return true; } if (window.viimo_inpage_setup_inframe && !window.viimo_inpage_setup_inframe.handled){ /* window.va_use_inframe = true; window.viimo_inpage_setup_inframe = { format: '728x90' };*/ // create inpage code var sub_id = ''; if (window.viimo_sub_id){ sub_id = window.viimo_sub_id; } var unit_code = '
' + ''+ ''+ 'var ad_container = document.getElementById("viimo_container");' + 'ad_container.id = "viimo_container" + Math.floor((Math.random() * 1000) + 1);' + 'window.viimo_sub_id = "' +sub_id+ '";' + ' if (!window.viimo_inpage_setup) {' + ' window.viimo_inpage_setup = [];' + ' }' + ' window.viimo_inpage_setup.push({' + ' element_id: ad_container.id,' + ' format: "'+window.viimo_inpage_setup_inframe.format + '"' + ' });' + '' + '' + '
'; window.viimo_inpage_setup_inframe.handled = true; ad_container = document.getElementById(window.viimo_inpage_setup_inframe.element_id); unit_width = window.viimo_inpage_setup_inframe.format.split('x')[0]; unit_height = window.viimo_inpage_setup_inframe.format.split('x')[1]; setFrameCode(unit_code, unit_width, unit_height, ad_container); } else { var query_script = ""; if (window.vimo_sub_id){ query_script += "sub_id=" + window.vimo_sub_id; } else if(window.va_sub_id){ query_script += "sub_id=" + window.va_sub_id ; } if (window.vimo_pr){ if (query_script != ""){ query_script += "&" } query_script += "pr=" + window.vimo_pr; } else if(window.va_pr){ if (query_script != ""){ query_script += "&" } query_script += "pr=" + window.va_pr; } if (window.vimo_um){ if (query_script != ""){ query_script += "&" } query_script += "um=" + window.vimo_um; } else if (window.va_um){ if (query_script != ""){ query_script += "&" } query_script += "um=" + window.va_um; } if (window.vimo_umu){ if (query_script != ""){ query_script += "&" } query_script += "umu=" + window.vimo_umu; } else if (window.va_umu){ if (query_script != ""){ query_script += "&" } query_script += "umu=" + window.va_umu; } if (query_script != ""){ query_script = "?" + query_script; } var format = ""; var unit_height; var unit_width; if(window.vimo_unit_width && window.vimo_unit_height){ format = window.vimo_unit_width + "x" + window.vimo_unit_height; unit_height = window.vimo_unit_height; unit_width = window.vimo_unit_width; } else if(window.va_unit_width && window.va_unit_height){ format = window.va_unit_width + "x" + window.va_unit_height; unit_height = window.va_unit_height; unit_width = window.va_unit_width; } var unit_code = ' '; setFrameCode(unit_code, unit_width, unit_height); } }