// index.js update:2011.10.08
jQuery(document).ready(function($){
				
			if(String(location.href).lastIndexOf('#field')!=-1)
			{
					$('#opening').remove();
					jQuery('body').load('index.php?ac=article&at=list&tid=49 #J-wrapper',function(){
										
										$('body').removeAttr('id');
										$.getScript('js/core.js');
										$.getScript('js/fieldRandom.js');
										$.getScript('js/field.js');
										
					});//body load end
				
			}
			else
			{
				jQuery('#J-index-content').load('index.php?ac=article&at=list&tid=49 #J-wrapper',function(){
												

												$.getScript('js/fieldRandom.js');
												var eti={duration:2000,easing: 'easeOutQuint',complete:function(){
																																				$('body').removeAttr('id').css({overflow:'auto'});
																																				$('#opening').remove();
																																				var tempHtml=$('#J-wrapper').html();
																																				$('body').empty().html(tempHtml);
																																				$(window).unbind('resize');
																																				$.getScript('js/core.js');
																																				$.getScript('js/field.js');
																																				}//complete function end
																																			};//eti end
												$('#btn-index-enter a').click(function(){
																	$('body').css({overflowX:'hidden'});
																	$('#J-index-wrapper').css({display:'block'}).animate({left:0},eti);
																	});
												
										});//j-index-content end
				
				jQuery('<img src="images/field-solution-btn.jpg" />').load();
				jQuery('<img src="images/shadow-left.png" />').load();
				jQuery('<img src="images/index-enter.png" />').load(function(){
				
					jQuery('#btn-index-enter a').html($(this));
					jQuery(document).ready(function($){
	
						$('#opening').fadeIn(1000,function(){ $('#btn-index-enter a').fadeIn(1000);});//控制开场页面
						
						$('#J-index-wrapper').css({left:$('#J-index').width()+"px"});
						$(window).bind('resize',function(){
												$('#J-index-wrapper').css({left:$('#J-index').width()+"px"});
								})
						
						})//ready end
					})//load end
				
			}
		
});

