/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */
jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};

$(function(){function a(b){$((navigator.userAgent.indexOf("Opera")!=-1)?document.compatMode=="BackCompat"?"body":"html":"html,body").animate({scrollTop:b},500)}$("a.pageTop").click(function(){a(0);return false});$("a[href*=#]:not(.pageTop,a[href=#])").click(function(){var b=this.href.substring(this.href.indexOf("#"),this.href.length),c=$(b).offset().top;a(c);return false})});

// Blend 2.1 for jQuery 1.3+
// Copyright (c) 2010 Jack Moore - jack@colorpowered.com
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
(function(a,b){a.fn.blend=function(f,c){var e=this,d=["backgroundColor","backgroundImage","backgroundRepeat","backgroundAttachment","backgroundPosition","backgroundPositionX","backgroundPositionY","paddingTop","paddingLeft","paddingRight","paddingBottom","width","height"];f=parseInt(f,10)||a.fn.blend.speed;c=c||a.fn.blend.callback;e[0]&&!e.find(".jsblend")[0]&&!(a.browser.mozilla&&parseFloat(a.browser.version)<1.9)&&e.each(function(){var g='<span style="position:absolute;top:0;left:0;display:block"/>',h=this,e,k=h.currentStyle||b.getComputedStyle(h,null),i=a(g),j=a(g);if(h.style.position!=="absolute")h.style.position="relative";for(e=0;d[e];e+=1)if(k[d[e]])j[0].style[d[e]]=i[0].style[d[e]]=k[d[e]];i[0].style.backgroundImage=i[0].style.backgroundColor="";a(h).wrapInner(i).addClass("hover").prepend(j);a(h).bind("mouseenter mouseleave",function(a){a.type==="mouseenter"?j.stop().fadeTo(f,0,function(){c&&typeof c==="function"&&c()}):j.stop().fadeTo(f,1)})});return e};a.fn.blend.speed=400;a.fn.blend.callback=null})(jQuery,this)
$(document).ready(function(){
	$("#nav a").blend();
});

$(function(){var d=20;var c=10;var a=2;var e="medinet";var b=$("body").css("font-size");$(".resetFont").click(function(){$("body").css("font-size",b);$.cookie(e,b,{path:"/",expires:365});return false});$("body").css("font-size",$.cookie(e));$(".decreaseFont").click(function(){var f=parseInt(($("body").css("font-size")).replace(/px/,""));if(f!=c){f-=a}else{alert("これ以上文字サイズを小さくすることはできません。")}$("body").css("font-size",f+"px");$.cookie(e,f+"px",{path:"/",expires:365});return false});$(".increaseFont").click(function(){var f=parseInt(($("body").css("font-size")).replace(/px/,""));if(f!=d){f+=a}else{alert("これ以上文字サイズを大きくすることはできません。")}$("body").css("font-size",f+"px");$.cookie(e,f+"px",{path:"/",expires:365});return false})});

$(document).ready(function(){$(".boxLink").click(function(){window.location=$(this).find("a").attr("href");return false});$(".boxLink").css("cursor","pointer")});

function mdnt_movie(url){
	w = window.open(url, "mdnt_movie", "width=550,height=380,scrollbars=yes,resizable=yes,menubar=no,toolbar=no,location=no,directories=no,status=no");
	w.focus();
}

