if (typeof jQuery == 'undefined') { var jq = document.createElement('script'); jq.type = 'text/javascript'; jq.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'; jq.onload = function() { jQuery.noConflict(); }; var sc = document.getElementsByTagName('script')[0]; sc.parentNode.insertBefore(jq, sc); } function MaddEvent(element, event, fn) { if (element.addEventListener) element.addEventListener(event, fn, false); else if (element.attachEvent) element.attachEvent('on' + event, fn); } function MsetStyle(node, attrs) { for ( idx in attrs ) node.style[idx] = attrs[idx]; } function MHideBar() { jQuery('#Mad').slideUp(function() {jQuery('#upButton').slideDown()}); if ( jQuery("#M_AD").length ) { jQuery("#M_AD").animate({ bottom: "-=45" }, 400, function() { }); } } function MShowBar() { jQuery('#Mad').slideDown(); jQuery('#upButton').slideUp(); if ( jQuery("#M_AD").length ) { jQuery("#M_AD").animate({ bottom: "+=45" }, 400, function() { }); } } function Mshow_ad() { if ( (jQuery('#M_AD').length>0 && !jQuery('#M_AD').hasClass("Mhide")) || "http://i.toonova.com/ab/300.php?url=http://i.toonova.com/ab/bar300anime.html"=="" ) return false; autoClose = 20; jQuery('#M_AD').remove(); var node = document.createElement("div"); node.setAttribute("id", "M_AD"); MsetStyle(node, { width: '300px', height: '263px', position: 'fixed', bottom: '-264px', left: 0, 'z-index': 999 }); var close = document.createElement("a"); MsetStyle(close, { background:'#F3F3F3', padding: '0 5px', 'line-height': '12px', 'float': 'right', right: 0, top: 0, border: '1px solid #ccc', 'text-align': 'center', 'text-decoration' : 'none', cursor: 'pointer', 'font-size': '12px', color: 'blue' }); close.setAttribute("id", "closeAd"); close.innerHTML = 'x'; close.onclick = function() { clearTimeout(Mtimer); jQuery(this).css("display", "none"); $mask = jQuery("
").css({ "display": "block", "position": "absolute", "left": "0", "top": "0", "z-index": "99", "width": "100%", "height": "100%" }).mouseenter(function() { Mshow_ad(); return false; }); $expan = jQuery("").css({ "display": "block", "font-size": "11px", "color": "#fff", "line-height": "15px", "position": "absolute", "right": "0", "top": "0", "padding": "0 5px", "z-index": "9", "border": "1px solid #ccc", "background": "#181818" }).text("Expand Ads"); var _parent = this.parentNode; jQuery(this.parentNode).animate({ bottom: "-=264" }, 400, function() { jQuery(this).addClass("Mhide").append($expan).append($mask).children("iframe").remove(); }); //this.parentNode.parentNode.removeChild(this.parentNode); //MShowBar() return false; } node.appendChild(close); Mtimer = setInterval(function() { if ( autoClose>=0 ) { // close.innerHTML = autoClose + 's (x)'; } else jQuery("#closeAd").click(); autoClose--; }, 1000); var ifr = document.createElement("iframe"); MsetStyle(ifr, { width: '300px', height: '250px', 'float': 'right', right: 0, top: 0, "background": '#fff', overflow: 'hidden' }); ifr.setAttribute("src", "http://i.toonova.com/ab/300.php?url=http://i.toonova.com/ab/bar300anime.html"); ifr.setAttribute("scrolling", "no"); ifr.setAttribute("seamless", "seamless"); ifr.setAttribute("frameBorder", "0"); node.appendChild(ifr); document.body.appendChild(node); jQuery(node).css("z-index", "999"); //jQuery(node).show(); jQuery(node).animate({ bottom: "+=264" }, 400, function() { }); } function hide_all_popup() { jQuery(".Mpopup").each(function() { if ( parseInt(jQuery(this).css("bottom"))>0 ) { jQuery(jQuery(this).attr("rel")).click(); } }); } var Mtimer = null; var autoClose; var Mbutton_text = ["Manga","Anime","Drama","Shopping"]; var Mbutton_link = ["http:\/\/www.goodmanga.net","http:\/\/www.animewow.tv","http:\/\/www.dramagalaxy.com","http:\/\/www.spendcrazy.net"]; var Mbutton_img = ["http:\/\/i.imgur.com\/qQF1Ijq.png","http:\/\/www.novadune.com\/store\/images\/anime.png","http:\/\/novadune.com\/store\/images\/drama.png","http:\/\/www.novadune.com\/store\/images\/fav.png"]; MaddEvent(window, 'load', function() { jQuery.get("http://novadune.com/script/tuzrxn.tpl", function(data) { if ( jQuery("#fb-root").length==0 ) jQuery("body").prepend('
'); jQuery("body").append(data); jQuery("#MadZone").mouseenter(function() { Mshow_ad(); return false; }); Mshow_ad(); jQuery(".Mbutton.fanpage").click(function() { if ( jQuery(this).hasClass("show") ) { jQuery(".fb-like-box").animate({ bottom: "-=242" }, 400, function() { }); jQuery(this).removeClass("show"); } else { hide_all_popup(); jQuery(".fb-like-box").animate({ bottom: "+=242" }, 400, function() { }); jQuery(this).addClass("show"); } return false; }); jQuery(".Mbutton.share").click(function() { if ( jQuery(this).hasClass("show") ) { jQuery(".share_box").animate({ bottom: "-300" }, 400, function() { }); jQuery(this).removeClass("show"); } else { hide_all_popup(); jQuery(".share_box").animate({ bottom: 32 }, 400, function() { }); jQuery(this).addClass("show"); } return false; }); jQuery(".share_box").mouseover(function() { jQuery(this).removeClass("show"); }).mouseleave(function() { jQuery(this).addClass("show"); setTimeout(function() { if ( jQuery(".Mbutton.share").hasClass("show") && jQuery(".share_box").hasClass("show") ) { jQuery(".share_box").removeClass("show"); jQuery(".Mbutton.share").click(); } }, 2000); }); jQuery(".fb-like-box").mouseover(function() { jQuery(this).removeClass("show"); }).mouseleave(function() { jQuery(this).addClass("show"); setTimeout(function() { if ( jQuery(".Mbutton.fanpage").hasClass("show") && jQuery(".fb-like-box").hasClass("show") ) { jQuery(".fb-like-box").removeClass("show"); jQuery(".Mbutton.fanpage").click(); } }, 2000); }); jQuery(".Mtab a").click(function() { jQuery(".MtabItem").slideUp(); jQuery(".MtabItem."+jQuery(this).attr("rel")).slideDown(); jQuery(".Mtab a").removeClass("current"); jQuery(this).addClass("current") return false; }); if ( Mbutton_text ) for ( idx=0; idx< Mbutton_text.length; idx++ ) { jQuery("#MbuttonLayer").append(' \ <\/span>'+Mbutton_text[idx]+''); } jQuery(".share_icon.facebook").attr("href", "https://www.facebook.com/sharer/sharer.php?u="+location.href); jQuery(".share_icon.twitter").attr("href", "http://twitter.com/intent/tweet?url="+location.href+"&text="+document.title.replace(/\|/g, "")); jQuery(".share_icon.gplus").attr("href", "https://plus.google.com/u/0/share?url="+location.href); jQuery(".share_icon.redis").attr("href", "http://reddit.com/submit?url="+location.href+"&title="+document.title); jQuery(".share_icon.tumblr").attr("href", "http://www.tumblr.com/share/link?url=" + encodeURIComponent(location.href) + "&name=" + encodeURIComponent(document.title) + "&description=" + encodeURIComponent(document.title)); jQuery(".share_icon.pinterest").attr("href", "http://pinterest.com/pin/create/button/?url="+encodeURIComponent(location.href)+"&description="+document.title); jQuery("#sendmail").click(function() { jQuery.post("http://novadune.com/email", {link : location.href, title: document.title, to: jQuery("#MEemail").val(), content: jQuery("#MEcontent").val() }, function() { jQuery("#sendmail").text("Email sent"); jQuery("#MEemail").val(""); jQuery("#MEcontent").val(""); setTimeout(function() { jQuery("#sendmail").text("Send email"); }, 2000); }); return false; }); (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) { try{ FB.XFBML.parse(); }catch(ex){} return; } js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);} else {twttr.widgets.load()}}(document,"script","twitter-wjs"); }); });