/* jQuery rollover plugin---------------------------------------------------------------------------------------------- */$(function(){	// 基本	$('.DscRetail li a img').rollover();	$('.more a img').rollover();	$('.GoPageTop a img').rollover();	$('#MailMag a img').rollover();	// input用	//$('form input:image').rollover();});/*External Linkhttp://www.kadoyan.com/item/515/--------------------------------------------------------------------- */$(function() {	$("a[href^=http://]").not("[href^=http://miyamotokohji.com]").click(function() {		window.open($(this).attr("href"));		return false;	});		$("a[href^=https://]").not("[href^=https://miyamotokohji.sakura.ne.jp]").click(function() {		window.open($(this).attr("href"));		return false;	});		$("a[rel^=external]").click(function() {		window.open($(this).attr("href"));		return false;	});});/*jQuery Smooth Scrollhttp://www.kouzu.info/?page_id=54--------------------------------------------------------------------- */jQuery.fn.extend({	scrollTo : function(speed, easing) {		// hashの取得が出来なければ、処理を中断		if(!$(this)[0].hash || $(this)[0].hash == "#") {			return false;		}		return this.each(function() {			var targetOffset = $($(this)[0].hash).offset().top;			$('html,body').animate({scrollTop: targetOffset}, speed, easing);		});	}});$(document).ready(function(){	$('a[href*=#]').click(function() {		$(this).scrollTo(800);		return false;	});});/* RegistMM - jQuery UI--------------------------------------------------------------------- *//*$(function(){	// Dialog	$('#dialog').dialog({		autoOpen: false,		width: 600,		height: 500		//show: 'blind',		//hide: 'blind'	});	// Dialog Link	$('#dialog_link').click(function(){		$('#dialog').dialog('open');		return false;	});});*//* Mail Magazine---------------------------------------------------------------------------------------------- *//*function mailMag() { //v2.0	newWin = window.open('mailmaga.html','winMM','width=350,height=200,menubar=no,toolbar=yes,locaction=yes,scrollbars=yes,status=yes,resizable=yes');	newWin.focus();}*/$(function() {	$(".registMM").click(function() {		window.open('mailnews.html', 'winMM', 'width=600,height=640,menubar=no,toolbar=yes,locaction=no,scrollbars=yes,status=yes,resizable=yes');			});});/* Message 2011.3.11---------------------------------------------------------------------------------------------- */$(function() {	$(".20110311msg").click(function() {		window.open('msg_20110311.html', 'winMM', 'width=600,height=640,menubar=no,toolbar=yes,locaction=no,scrollbars=yes,status=yes,resizable=yes');			});});/* Common---------------------------------------------------------------------------------------------- */function MM_openBrWindow(theURL,winName,features) { //v2.0	window.open(theURL,winName,features);}function windowclose() {	window.close();}/* jQuery - jquery.pngFix.js---------------------------------------------------------------------------------------------- */$(function(){ 	$(document).pngFix(); 	//$('img').pngFix(); }); /*DD_belatedPNG.fix('img'); //適用させる要素,id,class名 *//*$(function(){ 	//$(document).pngFix(); 		// Fix all inline PNG images and the element #container with the custom sizingMethod of "scale"	$("img[@src$=png]).pngfix({		sizingMethod: "scale"	});}); *//* jQuery - for Info.html---------------------------------------------------------------------------------------------- */$(function(){ 	//Hide (Collapse) the toggle containers on load	$("#Info .Article .TxtBody").hide();	$("#Info .Article .TxtBody.Open").show();	//Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state)	$("#Info .Article h2").click(function(){		$(this).toggleClass("active").next().slideToggle("slow");	});	$("#Info .Article h2 a").click(function(){		$(this).toggleClass("active").next().slideToggle("slow");	});});/*====================================================================================================////////////////////////////////////////////////////////////////////////////////////////////////////// Author : http://www.yomotsu.net created: 2008/06/06 update : 2008/11/18 Licensed under the GNU Lesser General Public License basefont.css.js http://www.yomotsu.net/lab/javascripts/basefont//////////////////////////////////////////////////////////////////////////////////////////////////////====================================================================================================*/var yomotsuSetBaseFont = {	fontRule : {		hiragino  : "font-family:'Hiragino Kaku Gothic Pro',¥¥30D2¥¥30E9¥¥30AE¥¥30CE¥¥89D2¥¥30B4¥¥20Pro¥¥20W3,sans-serif;",		msPGothic : "font-family:'MS PGothic',¥¥FF2D¥¥FF33¥¥20¥¥FF30¥¥30B4¥¥30B7¥¥30C3¥¥30AF,sans-serif;",		meirio    : "font-family:Meiryo,¥¥30E1¥¥30A4¥¥30EA¥¥30AA,'Segoe UI',sans-serif;"	},		ua : {		//Safari (Mac and Win), Macintosh		hiragino  : navigator.userAgent.match(/Safari/) && !navigator.userAgent.match(/Chrome/) || navigator.userAgent.match(/Macintosh|Mac_PowerPC/),		//Server 2003, XP, 2000, NT 4.0, ME, 98, 95, CE		msPGothic : navigator.userAgent.match(/Windows NT (4|5)¥.¥d+|windows (98|95|CE)/),		//Vista		meirio    : navigator.userAgent.match(/Windows NT (6)¥.¥d+/)	},		insertRule : function(){			if(this.ua.hiragino)			document.write('<style type="text/css">html body {' + this.fontRule.hiragino + ' !important}</style>');		else if(this.ua.msPGothic)			document.write('<style type="text/css">html body {' + this.fontRule.msPGothic + ' !important}</style>');		else if(this.ua.meirio || navigator.userAgent.match(/Windows/))			document.write('<style type="text/css">html body {' + this.fontRule.meirio + ' !important}</style>');	}}yomotsuSetBaseFont.insertRule();
