// JavaScript Document



var jssbox_e=$.cookie('style_e');
var fontbox_e=$.cookie('fontchange_e');

if(jssbox_e == null || fontbox_e == null) {

$(function(){
	$(".jstyle").attr('href', '/ir/common/css_e/fontm.css');
	$(".fch:eq(1)").attr('src', '/ir/common/images_e/btn_middle_on.gif');

});

}


//

if(jssbox_e != null && fontbox_e != null) {

$(function(){
$(".jstyle").attr({href:$.cookie('style_e')});

var onbtn_e = $.cookie('fontchange_e');
switch (onbtn_e){

case "small_e":

$(".fch:eq(0)").attr('src', '/ir/common/images_e/btn_small_on.gif');

	break;

case "middle_e":

 $(".fch:eq(1)").attr('src', '/ir/common/images_e/btn_middle_on.gif');

 	break;

case "large_e":

$(".fch:eq(2)").attr('src', '/ir/common/images_e/btn_large_on.gif');

 	break;
default:

    break;

}



});

}



function jstyle(cssurl){

$('.jstyle').attr({href:cssurl});

$.cookie('style_e',cssurl,{expires:30,path:'/'});

}





$(function(){

$('.fch').click(function(){

var index = $(".fch").index(this);

switch (index){

case 0:

	$(".fch:eq(0)").attr('src', '/ir/common/images_e/btn_small_on.gif');

  	$(".fch:eq(1)").attr('src', '/ir/common/images_e/btn_middle.gif');

	$(".fch:eq(2)").attr('src', '/ir/common/images_e/btn_large.gif');

	$.cookie('fontchange_e','small_e',{expires:30,path:'/'});

	$(this).attr('href');



	break;

case 1:

	$(".fch:eq(0)").attr('src', '/ir/common/images_e/btn_small.gif');

   	$(".fch:eq(1)").attr('src', '/ir/common/images_e/btn_middle_on.gif');

	$(".fch:eq(2)").attr('src', '/ir/common/images_e/btn_large.gif');

	$.cookie('fontchange_e','middle_e',{expires:30,path:'/'});

	$(this).attr('href');

	break;

case 2:

	$(".fch:eq(0)").attr('src', '/ir/common/images_e/btn_small.gif');

	$(".fch:eq(1)").attr('src', '/ir/common/images_e/btn_middle.gif');

	$(".fch:eq(2)").attr('src', '/ir/common/images_e/btn_large_on.gif');

	$.cookie('fontchange_e','large_e',{expires:30,path:'/'});

	$(this).attr('href');

	break;



default:

    break;

}

	 

});

})

