var chcek_anime = loadCookie("openingcms"); if(chcek_anime != "on"){ $.getScript("/datajs/jquery.bgswitcher.js", function(){ $('.backloop').bgSwitcher({ images: ['http://www.mirai.biz/dataimge/1697585328.jpg'], interval: 3000, loop: true, shuffle: false, effect: "fade", duration: 1000, easing: "linear", controls:false, }); }); }else{ $(function(){ $("#WRAPPER").show(); $("#openinganimation").hide(); }); } window.setTimeout(function(){ $("#WRAPPER").show(); $("#openinganimation").hide(); }, 15000); $(function(){ $("#bx-main").on('click', function() { $("#WRAPPER").show(); $("#openinganimation").hide(); return false; }); }); setCookie("openingcms","on") function loadCookie(c_name,output){ var Str = document.cookie; var Num = Str.indexOf(c_name); if(Num != -1){ start=Num+c_name.length + 1; end = Str.indexOf("*" , start); if(end == -1){ end=Str.length; } var cookieValue=Str.substring(start,end); if(cookieValue != null){ return unescape(cookieValue); }else{ return ""; } } } function setCookie(c_name,c_value) { document.cookie = c_name+"=" + escape(c_value) + "*"; }