jQuery(document).ready(function($){
$(document).ready(function(){
/******************************************************
 * 
 * ここから
 * 
 ******************************************************/
	$('.txt-img-box,.img-txt-box,.txt-img-box2,.img-txt-box2').each(function(i){
		var conWidth=$(this).width();
		if(conWidth!=null){
			var imgWidth=$(this).children('.img-box').find('img').width();
			var txtWidth;
			var voiceSize=$(this).parent().parent('.voice-main-box').size();
			if(imgWidth>=100 && voiceSize==0 ){
				txtWidth=conWidth-imgWidth-30;
			}else if(imgWidth<100 ){
				txtWidth=conWidth-imgWidth-10;	
			}else if(imgWidth>=100 && voiceSize==1){
				txtWidth=conWidth-imgWidth-15;	
			}
			$(this).children('.img-box').width(imgWidth);
			$(this).children('.txt-box').width(txtWidth);
		}

	});
/******************************************************
 * 
 * ここまで
 * 
 ******************************************************/
//パンくず処理

$(function(){

//グローバルオン処理

var pankuzu_class=$('#pankuzu a:eq(1)').attr('class');

switch (pankuzu_class){
	case "subject":
	$('#global>ul>#subject>a').addClass("active");
	break;

	case "about":
	$('#global>ul>#about>a').addClass("active");
	break; 

	case "job":
	$('#global>ul>#job>a').addClass("active");
	break; 

	case "opencampus":
	$('#global>ul>#opencampus>a').addClass("active");
	break; 

default:
break;
}

});
});
});
