$(document).ready(
				
//文字の大きさを調整
function() {

var COOKIE_NAME = 'yjk_cookie';
var options = { path: '/', expires: 10 };

var check =$.cookie(COOKIE_NAME);
var Frame =$('iframe').contents().find('body')[0];

				
if ( check ) {
$("body").removeAttr("class");
$("body").addClass(check);
$("#"+check).addClass("on");
  }else{
$("body").removeAttr("class");
$("body").addClass("hsizem");
$("#hsizes").removeAttr("class");
$("#hsizem").addClass("on");
$("#hsizel").removeAttr("class");
}


$("#hsizes a").click(function(){
$("body").removeAttr("class");
$("body").addClass("hsizes");

$("#hsizes").addClass("on");
$("#hsizem").removeAttr("class");
$("#hsizel").removeAttr("class");

if(Frame){$('iframe')[0].contentWindow.setS();}

$.cookie(COOKIE_NAME, 'hsizes', options);
return false;
});

$("#hsizem a").click(function(){
$("body").removeAttr("class");
$("body").addClass("hsizem");
$("#hsizes").removeAttr("class");
$("#hsizem").addClass("on");
$("#hsizel").removeAttr("class");

if(Frame){$('iframe')[0].contentWindow.setM();}

$.cookie(COOKIE_NAME, 'hsizem', options);
return false;
});

$("#hsizel a").click(function(){
$("body").removeAttr("class");
$("body").addClass("hsizel");
$("#hsizes").removeAttr("class");
$("#hsizem").removeAttr("class");
$("#hsizel").addClass("on");

if(Frame){$('iframe')[0].contentWindow.setL();}

$.cookie(COOKIE_NAME, 'hsizel', options);
return false;
});

if(Frame){

$("body").load(function(){
if(check =="hsizes"){
$('iframe')[0].contentWindow.setS();
}
if(check=="hsizem"){
$('iframe')[0].contentWindow.setM();
}
if(check=="hsizel"){
$('iframe')[0].contentWindow.setL();
}
});

}

});

//読み込み完了したら内容を変更する

//$('iframe')[0].contentWindow
//$('iframe').contents().find('body')[0].addClass("hsizes");
//.style.backgroundColor='red';
//var ifm = $('body').append('<iframe src="../information/news.html" width="630" height="500" id="frameNews">').find('> :last-child');
