(function () { $.fn.setCookie = function(cname, cvalue, minutes) { var d = new Date(); d.setTime(d.getTime() + (minutes*60*1000)); var expires = "expires="+ d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } $.fn.getCookie = function(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } $.fn.bnextDialog = function(flag) { if(typeof space === 'undefined') { return; } var visible = 'visible'; if(flag) { visible = 'hidden'; } space.el.css({ 'visibility': visible, 'display': 'block', 'position': 'fixed', 'top': 0, 'left': 0, 'width': '100%', 'bottom': 0, 'z-index': 999999 }); space.el.find('iframe').css({'height':'100%','width':'100%'}); this.each(function() { var $el = $(this); var $c = $('
',{ 'class':'bnextDialog' }); var $btn = $('X').click(function(){ space.el.remove(); }); var $btnC = $('
',{ 'class':'btn', 'html': $btn }) var $wrapper = $('
',{ 'class':'wrapper', 'html':[$btnC,$el] }); $c.append($wrapper); $('body').append($c); }); return space.el; }; var obj_ads = {"width":"width","height":"height","uuid":"58097ec8-163d-e9550761","css":"","style":"