(function($){$(function(){if( navigator.userAgent.search(/iPhone|iPod/) == -1 ){ return true; }	$('body.pageRestaurant').each(function(){	if( $('body.pageRestaurant') ){		$('.leftContents, .rightContents').remove();			var iphcont = '<div id="wrapArea"><h1><img src="/restaurant/common/images/share_title_01.gif" alt="参加レストラン一覧" width="242" height="24" /></h1><div id="areaMenu"><ul><li id="btnTokyo"><a href="#">TAP東京</a></li><li id="btnNagoya"><a href="#">TAP名古屋</a></li><li id="btnKansai"><a href="#">TAP関西</a></li><li id="btnOther"><a href="#">その他</a></li></ul></div><div id="naviArea">地域を選択してください</div><div id="txt">地区を選択してください</div><div id="mise">住所が出ます</div><div id="mapArea">&nbsp;</div></div>';				$('#contents').find('.pageAnchorPoint').before(iphcont);	}	});	//top	$('body#home').each(function(){		location.href = "/about/";	});		var ipw=300;		//global nav	var elm = $('#globalNav li#gnav07');	var reg = new RegExp("<span.*>(.+)<\/span>");	var txt = '<a href="/mb/">'+elm.html().match(reg)[1]+'</a>';	elm.html(txt);		$('.pageAbout .mt15px img').each(function(){		var trg = $(this);		trg.parent().html( '<span style="color:#09f;">'+trg.attr('alt')+'</span>' );	});	//img chage txt	var cliptag = $('h2 > img, h3 > img').not("body.pageParticipate .howtoList02 h3 > img");	cliptag.each(function(){		var trg = $(this);		//if( trg.width()>=320 ){			trg.parent().html( trg.attr('alt') );		//}	});	//big img resize	var imgs = $('.section img').not("h2 > img, h3 > img, p#logo3 > img");	imgs.each(function(){		var trg = $(this);		if( trg.width()>=ipw ){			trg.attr('width',ipw);			trg.attr('height',(trg.height()*(ipw/trg.width())).toFixed(1));		}	});//	$('body.pageParticipate .howtoList02 h3 > img').each(function(){		var trg = $(this);		if( trg.width()>=ipw ){			trg.attr('width',ipw);			trg.attr('height',(trg.height()*(ipw/trg.width())).toFixed(1));		}	});		$('#tapVision, #clockWhiteColumn').each(function(){		$(this).replaceWith('<div class="caution">パソコンからご覧ください</div>');	});		$('#posterList img').each(function(){		var trg = $(this);		var b=ipw/2;		trg.attr('width',b);		trg.attr('height',(trg.height()*(b/trg.width())).toFixed(1));	});		$('p#logo3 > img').each(function(){		var trg = $(this);			trg.attr('width',trg.width()*0.7);			trg.attr('height',trg.height()*0.7);	});	});})(jQuery);