(function() { if(!window.BA_BANNER){ window.BA_BANNER = { getWorkingCore: function() { return "m279088268"; } }; function BA_CORE() { this.bannerId = 'BA_Banner'; this.extraId = 'BA_EXTRB'; this.appDomain = 'js1.bloggerads.net'; } BA_CORE.prototype = { m937266g82: function(offset) { var endstr = document.cookie.indexOf(";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); }, m837452p34: function(date) { var base = new Date(0); var skew = base.getTime(); if (skew > 0) date.setTime(date.getTime() - skew); }, m882734x93: function(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return this.m937266g82(j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; }, m882735x93: function(name, path, domain) { if (this.m882734x93(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } }, m882736x93: function(name, value, expires, path, domain, secure) { document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); }, secs: 0, timerID: null, timerRunning: false, StartTheTimer: function() { this.secs++; this.timerRunning = true; this.timerID = self.setTimeout(function() { this.StartTheTimer() }, 1000); }, StopTheTimer: function() { if (this.timerRunning) clearTimeout(this.timerID); this.secs = 0; this.timerRunning = false; }, getAdHeight: function(obj) { var curH = 0; var ret; if (obj.offsetParent) { while (obj.offsetParent) { curH += obj.offsetTop; obj = obj.offsetParent; } } else if (obj.y) curH += obj.y; return curH; }, loadJS: function(url) { document.getElementsByTagName("body")[0].appendChild(this.createNode('script', null, { type: 'text/javascript', src: url })); }, loadCSS: function(url) { document.getElementsByTagName("body")[0].appendChild(this.createNode('link', null, { rel: 'stylesheet', type: 'text/css', href: url })); }, createNode: function(_t, _v, _attr) { if (_t == 'text') return document.createTextNode(_v); var _n = document.createElement(_t); if (_v) _n.innerHTML = _v; if (_attr) this.changeProperty(_n, _attr); return _n; }, changeProperty: function(_o, _k, _v) { if (arguments.length == arguments.callee.length) { _o[_k] = _v; return _o; } else if (_o && _k) { this.doEach(_k, function(_p) { _o[_p] = this; }); return _o; } else { var _tigr = this; this.doEach(_o, function(_p) { _tigr[_p] = this; }); return this; } }, doEach: function(_o, _f) { if (!_o.length || _o.length == 0) { for (var _i in _o) { if (_f.call(_o[_i], _i) === false) { break; } } } else { for (var _i = 0; _i < _o.length; _i++) { if (_f.call(_o[_i], _i) === false) { break; } } } return _o; }, layerDefault: { width: 450, height: 400, width_r: 450, height_r: 120, classid: 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000', codebase: 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0', allowScriptAccess: 'always', quality: 'best', wmode: 'transparent', type: 'application/x-shockwave-flash', pluginspage: 'http://www.macromedia.com/go/getflashplayer', movie: 'BloggerAds_w1.swf' }, bannerWrite: function() { var _banner = window.document.getElementById(this.bannerId); if (!_banner) return; var _default = this.layerDefault; var _flashvar = ['distent=1', 'callback=' + BA_BANNER.getWorkingCore() + '.bannerOpen', 'h=' + this.getAdHeight(_banner)].join('&'); var _src = ['http:/', this.appDomain, _default.movie].join('/') + '?blogid=20100617000088&fid=5'; var _layer = '' + ''; _banner.innerHTML = _layer; this.bannerClose(); }, bannerOpen: function(_width, _height) { if (arguments.length == 0) { this.bannerClose(); return; } var _layer = this.getLayer(); if (_layer) { _layer.style.clip = 'rect(0px, ' + _width + 'px, ' + _height + 'px, 0px)'; } }, bannerClose: function() { var _layer = this.getLayer(); if (_layer) { var _default = this.layerDefault; _layer.style.clip = 'rect(0px, ' + _default.width_r + 'px,' + _default.height_r + 'px, 0px)'; } }, getLayer: function() { var _banner = window.document.getElementById(this.bannerId); if (!_banner) return false; return _banner.getElementsByTagName('ins')[0]; } }; try { var c = new BA_CORE(); var iCliCK_SD = c.m882734x93("ICLICK_SESSIONID"); if (iCliCK_SD == null || iCliCK_SD.length <= 0) { iCliCK_SD = '196878093.tRwRPnf7'; var expdate = new Date(); c.m837452p34(expdate); expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365 * 10)); c.m882736x93("ICLICK_SESSIONID", iCliCK_SD, expdate, "/", "bloggerads.net"); } document.write('
'); c.bannerWrite(); window.m279088268 = c; } catch (ex) { } }})();