/***/

jQuery.noConflict();
jQuery(document).ready(function($){
	// ここでは、$はjQueryとして使えます。


	jQuery(function(){
		jQuery('div.detailJobData').each(function(){
			var group = jQuery(this);
			var btn = group.find('.shadeBtn');
			var btn2 = group.find('.shadeBtnTop');
			var contents = group.find('.shadeContents');
			group.addClass('shadeClose');
			contents.css('height', contents.height() + 'px').show();
			var y = contents.height();
			contents.height(120);
			btn.click(function(){
				if(contents.height()==120){
					new Effect.ScrollTo(group.attr("id"),{duration: 0.5});
					btn.html('<span class="close"><img src="/doctor/search/img/detail_btn_close_over.gif" width="710" height="32" alt="この求人詳細を閉じる" /></span>');
					contents.animate({ 
						height: eval(y)
					}, 500 );
				}else{
					new Effect.ScrollTo(group.attr("id"),{duration: 0.5});
					btn.html('<span><img src="/doctor/search/img/detail_btn_over.gif" width="710" height="32" class="roll" alt="この求人詳細を見る" /></span>');
					contents.animate({ 
						height: "120"
					}, 500 );
				}
			});
			btn2.click(function(){
				if(contents.height()==120){
					new Effect.ScrollTo(group.attr("id"),{duration: 0.5});
					btn.html('<span class="close"><img src="/doctor/search/img/detail_btn_close_over.gif" width="710" height="32" alt="この求人詳細を閉じる" /></span>');
					contents.animate({ 
						height: eval(y)
					}, 500 );
				}else{
					new Effect.ScrollTo(group.attr("id"),{duration: 0.5});
					btn.html('<span><img src="/doctor/search/img/detail_btn_over.gif" width="710" height="32" class="roll" alt="この求人詳細を見る" /></span>');
					contents.animate({ 
						height: "120"
					}, 500 );
				}
			});
			
		
		});
	});

	jQuery(function(){
		jQuery('div.detailJobData_of').each(function(){
			var group = jQuery(this);
			var btn = group.find('.shadeBtn');
			var btn2 = group.find('.shadeBtnTop');
			var contents = group.find('.shadeContents');
			group.addClass('shadeClose');
			contents.css('height', contents.height() + 'px').show();
			var y = contents.height();
			contents.height(120);
			btn.click(function(){
			
				if(contents.height()==120){
					new Effect.ScrollTo(group.attr("id"),{duration: 0.5});
					btn.html('<span class="close">この求人情報の詳細を閉じる</span>');
					contents.animate({ 
						height: eval(y)
					}, 500 );
				}else{
					new Effect.ScrollTo(group.attr("id"),{duration: 0.5});
					btn.html('<span>この求人情報の詳細を見る</span>');
					contents.animate({ 
						height: "120"
					}, 500 );
				}
			});
			btn2.click(function(){
				if(contents.height()==120){
					new Effect.ScrollTo(group.attr("id"),{duration: 0.5});
					btn.html('<span class="close">この求人情報の詳細を閉じる</span>');
					contents.animate({ 
						height: eval(y)
					}, 500 );
				}else{
					new Effect.ScrollTo(group.attr("id"),{duration: 0.5});
					btn.html('<span>この求人情報の詳細を見る</span>');
					contents.animate({ 
						height: "120"
					}, 500 );
				}
			});
		
		});
	});
	
	jQuery(function(){
		jQuery('div.detailClipData').each(function(){
			var group = jQuery(this);
			var btn = group.find('.shadeBtn');
			var btn2 = group.find('.shadeBtnTop');
			var contents = group.find('.shadeContents');
			group.addClass('shadeClose');
			contents.css('height', contents.height() + 'px').show();
			var y = contents.height();
			contents.height(120);
			btn.click(function(){
			
				if(contents.height()==120){
					new Effect.ScrollTo(group.attr("id"),{duration: 0.5});
					btn.html('<span class="close"><img src="/doctor/search/img/detail_btn_close_over.gif" width="710" height="32" alt="この求人詳細を閉じる" /></span>');
					contents.animate({ 
						height: eval(y)
					}, 500 );
				}else{
					new Effect.ScrollTo(group.attr("id"),{duration: 0.5});
					btn.html('<span><img src="/doctor/search/img/detail_btn_over.gif" width="710" height="32" class="roll" alt="この求人詳細を見る" /></span>');
					contents.animate({ 
						height: "120"
					}, 500 );
				}
			});
			btn2.click(function(){
				if(contents.height()==120){
					new Effect.ScrollTo(group.attr("id"),{duration: 0.5});
					btn.html('<span class="close"><img src="/doctor/search/img/detail_btn_close_over.gif" width="710" height="32" alt="この求人詳細を閉じる" /></span>');
					contents.animate({ 
						height: eval(y)
					}, 500 );
				}else{
					new Effect.ScrollTo(group.attr("id"),{duration: 0.5});
					btn.html('<span><img src="/doctor/search/img/detail_btn_over.gif" width="710" height="32" class="roll" alt="この求人詳細を見る" /></span>');
					contents.animate({ 
						height: "120"
					}, 500 );
				}
			});
		
		});
	});

});


