/**
 * 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(a,b,c){if(typeof b!='undefined'){c=c||{};if(b===null){b='';c.expires=-1}var d='';if(c.expires&&(typeof c.expires=='number'||c.expires.toUTCString)){var e;if(typeof c.expires=='number'){e=new Date();e.setTime(e.getTime()+(c.expires*24*60*60*1000))}else{e=c.expires}d='; expires='+e.toUTCString()}var f=c.path?'; path='+(c.path):'';var g=c.domain?'; domain='+(c.domain):'';var h=c.secure?'; secure':'';document.cookie=[a,'=',encodeURIComponent(b),d,f,g,h].join('')}else{var j=null;if(document.cookie&&document.cookie!=''){var k=document.cookie.split(';');for(var i=0;i<k.length;i++){var l=jQuery.trim(k[i]);if(l.substring(0,a.length+1)==(a+'=')){j=decodeURIComponent(l.substring(a.length+1));break}}}return j}};

/**
 * font-size switch plugin
 * 
 * @package 
 * @subpackage 
 * @id $Id: fs.js 2967 2011-05-13 02:09:55Z washizu $
 * @author hayashi@siance.co.jp / modified by: $Author: washizu $
 * @version SVN: $Revision: 2967 $ $Date: 2011-05-13 11:09:55 +0900 (金, 13 5 2011) $
 * @filesource
 */
jQuery(document).ready(function(){

jQuery(function(){jQuery.fn.textResize=function(b){b=jQuery.extend({'size':{'small':[['body *','87.5%']],'medium':[['body *','100%']],'large':[['body *','120%']]},'prefix':'font-','active_class':'on','cookie_name':'fontsize'},b);var c=jQuery.cookie(b.cookie_name);var d=function(a){if(b.size[a]!=undefined){jQuery.each(b.size[a],function(){jQuery(this[0]).css('font-size',this[1])});jQuery.each(b.size,function(k,v){jQuery('#'+b.prefix+k).removeClass(b.active_class)});jQuery('#'+b.prefix+a).addClass(b.active_class);jQuery.cookie(b.cookie_name,a,{expires:30,path:'/'})}};if(c){d(c)}return this.each(function(){jQuery('a',jQuery(this)).each(function(){jQuery(this).click(function(){d(jQuery(this).attr('id').replace(b.prefix,''));return false})})})}});

jQuery(function(){
	jQuery('#text_resize').textResize({
		'size': {
			'small': [
				['body', '75%'],
				['body p', '100%'],
				['#index_nav_store dl dd span', '87.5%'],
				['#pankuzu', '87.5%'],
				['.content_h2_wrap h2', '120%'],
				['.content_h2_wrap2 h2', '120%'],
				['#content_top_erea h1', '140%'],
				['#content_top_erea h2', '120%'],
				['#content_page_erea h1', '120%'],
				['#content_page_erea h2', '120%'],
				['#content_page_erea h3', '100%'],
				['#content_nav h2', '120%'],
				['.shop_datail_map_link a', '87.5%'],
				['.sitemap_title', '120%'],
				['#copyright_error', '87.5%'],
			],
			'medium': [
				['body', '87.5%'],
				['body p', '100%'],
				['#index_nav_store dl dd span', '87.5%'],
				['#pankuzu', '87.5%'],
				['.content_h2_wrap h2', '120%'],
				['.content_h2_wrap2 h2', '120%'],
				['#content_top_erea h1', '140%'],
				['#content_top_erea h2', '120%'],
				['#content_page_erea h1', '120%'],
				['#content_page_erea h2', '120%'],
				['#content_page_erea h3', '100%'],
				['#content_nav h2', '120%'],
				['.shop_datail_map_link a', '87.5%'],
				['.sitemap_title', '120%'],
				['#copyright_error', '87.5%'],
				
			],
			'large': [
				['body', '100%'],
				['body p', '100%'],
				['#index_nav_store dl dd span', '87.5%'],
				['#pankuzu', '87.5%'],
				['.content_h2_wrap h2', '120%'],
				['.content_h2_wrap2 h2', '120%'],
				['#content_top_erea h1', '140%'],
				['#content_top_erea h2', '120%'],
				['#content_page_erea h1', '120%'],
				['#content_page_erea h2', '120%'],
				['#content_page_erea h3', '100%'],
				['#content_nav h2', '120%'],
				['.shop_datail_map_link a', '87.5%'],
				['.sitemap_title', '120%'],
				['#copyright_error', '87.5%'],
			]
		},
		'prefix': 'font-',
		'active_class': 'on',
		'cookie_name': 'fontsize'
	});

});

});

