/* ================================================================================ iphone URLバーを隠す ================================================================================ */ window.onload = function() { setTimeout(function(){window.scrollTo(0, 1);}, 100); } /* ================================================================================ メニュー ================================================================================ */ $(document).ready(function(){ $(".menu-list").each(function(){ var imgSwitch = $("img.open", $(this)); var openList = $("ul.open-list", $(this)); $(imgSwitch).toggle( function () { $(openList).css("display", "block") $(this).attr("src", $(this).attr("src").replace("_plus", "_minus")); }, function () { $(openList).css("display", "none") $(this).attr("src", $(this).attr("src").replace("_minus", "_plus")); } ); }); }); /* ================================================================================ バイアグラの適正使用 ================================================================================ */ $(document).ready(function(){ $(".use-box").each(function(){ var imgChange = $("dt", $(this)); var openDetail = $("dd", $(this)); var imgOpen = $("img.open", $(this)); $(imgChange).toggle( function () { $(openDetail).css("display", "block") $(imgOpen).attr("src", $(imgOpen).attr("src").replace("_plus", "_minus")); }, function () { $(openDetail).css("display", "none") $(imgOpen).attr("src", $(imgOpen).attr("src").replace("_minus", "_plus")); } ); }); }); /* ================================================================================ バイアグラの適正使用 アニメーション ================================================================================ */ /* Copyright (c) 2010-2011 attosoft. Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php */ var Animations={delay:1000,repeat:-1,rewind:false,className:'animation',idPrefix:'animateImage',idIndex:1};function generateAnimationId(){var id;do{id=Animations.idPrefix+Animations.idIndex++;}while(document.getElementById(id));return id;} function Animation(files,id,repeat,rewind){this.id=id;this.index=0;this.images=generateImages(files);this.repeat=this.count=repeat;this.rewind=rewind;} function generateImages(files){var isArray=files instanceof Array;var startIndex,endIndex,substr;if(isArray){startIndex=0;endIndex=files.length;}else{var result=files.match(/\[(\d+)-(\d+)\]/);substr=result[0];startIndex=result[1];endIndex=parseInt(result[2],10)+1;} var images=new Array();for(var i=startIndex;i