jQuery.noConflict();
jQuery(document).ready(function($){
	// ここでは、$はjQueryとして使えます。
	jQuery(function(){
		jQuery('.jobBlock').each(function(){
			var group = jQuery(this);
			var btn = group.find('.shadeBtn');
			var btn2 = group.find('.shadeBtnTop');
			// var btn3 = group.find('.shadePh');
// 			var btn4 = group.find('.shadePhTop');
			var contents = group.find('.job-text');
			group.addClass('shadeClose');
			contents.css('height', contents.height() + 'px').show();
			var y = contents.height();
			contents.height(150);
			//看護師ボタン画像
			btn.click(function(){
				if(contents.height()==150){
					new Effect.ScrollTo(group.attr("id"),{duration: 0.3});
					btn.html('<img src="/nurse/search/img/job_close_bt.gif" width="661" height="36" alt="この求人を閉じる" style="display: block;" />');
					contents.animate({ 
						height: eval(y)
					}, 500 );
				}else{
					new Effect.ScrollTo(group.attr("id"),{duration: 0.3});
					btn.html('<img src="/nurse/search/img/job_box_bt.gif" width="661" height="36" alt="この続きをもっと見る" style="display: block;" />');
					contents.animate({ 
						height: "150"
					}, 500 );
				}
			});
			//看護師見出し
			btn2.click(function(){
				if(contents.height()==150){
					new Effect.ScrollTo(group.attr("id"),{duration: 0.3});
					btn.html('<img src="/nurse/search/img/job_close_bt.gif" width="661" height="36" alt="この求人を閉じる" style="display: block;" />');
					contents.animate({ 
						height: eval(y)
					}, 500 );
				}else{
					new Effect.ScrollTo(group.attr("id"),{duration: 0.3});
					btn.html('<img src="/nurse/search/img/job_box_bt.gif" width="661" height="36" alt="この続きをもっと見る" style="display: block;" />');
					contents.animate({ 
						height: "150"
					}, 500 );
				}
			});
		});
	});
	
	jQuery(function(){
		jQuery('.jobBlockPh').each(function(){
			var group = jQuery(this);
			var btn = group.find('.shadeBtn');
			var btn2 = group.find('.shadeBtnTop');
			var contents = group.find('.job-text');
			group.addClass('shadeClose');
			contents.css('height', contents.height() + 'px').show();
			var y = contents.height();
			contents.height(150);
			//看護師ボタン画像
			btn.click(function(){
				if(contents.height()==150){
					new Effect.ScrollTo(group.attr("id"),{duration: 0.3});
					btn.html('<img src="/pharmacist/search/img/job_close_bt.gif" width="661" height="36" alt="この求人を閉じる" style="display: block;" />');
					contents.animate({ 
						height: eval(y)
					}, 500 );
				}else{
					new Effect.ScrollTo(group.attr("id"),{duration: 0.3});
					btn.html('<img src="/pharmacist/search/img/job_box_bt.gif" width="661" height="36" alt="この続きをもっと見る" style="display: block;" />');
					contents.animate({ 
						height: "150"
					}, 500 );
				}
			});
			//看護師見出し
			btn2.click(function(){
				if(contents.height()==150){
					new Effect.ScrollTo(group.attr("id"),{duration: 0.3});
					btn.html('<img src="/pharmacist/search/img/job_close_bt.gif" width="661" height="36" alt="この求人を閉じる" style="display: block;" />');
					contents.animate({ 
						height: eval(y)
					}, 500 );
				}else{
					new Effect.ScrollTo(group.attr("id"),{duration: 0.3});
					btn.html('<img src="/pharmacist/search/img/job_box_bt.gif" width="661" height="36" alt="この続きをもっと見る" style="display: block;" />');
					contents.animate({ 
						height: "150"
					}, 500 );
				}
			});
		});
	});
});
	








// jQuery.noConflict();
// jQuery(document).ready(function($){
// 	jQuery(function(){
// 		var btn = jQuery('.shadeBtn');
// 		var contents = jQuery('.job-text');
// 		contents.css('height', contents.height() + 'px').show();
// 		var y = contents.height();
// 		contents.height(150);
// 		btn.click(function(){
// 			if(contents.height()==150){
// 				new Effect.ScrollTo('jobBlock',{duration: 0.5});
// 				btn.html('<img src="/pharmacist/img/ph_more_bt_close.gif" width="668" height="71" alt="この求人を閉じる" class="btn" />');
// 				contents.animate({ 
// 					height: eval(y)
// 				}, 400 );
// 			}else{
// 				new Effect.ScrollTo('jobBlock',{duration: 0.5});
// 				btn.html('<img src="/pharmacist/img/ph_more_bt.gif" width="668" height="71" alt="この求人の続きをみる" class="btn" />');
// 				contents.animate({ 
// 					height: "150"
// 				}, 400 );
// 			}
// 		});
// 	});
// });


