jQuery.preloadImages=function()
{
	for(var i=0;
		i<arguments.length;
		i++)
		{
			jQuery("<img>").attr("src",arguments[i]);
		}
	};
	$.preloadImages('images/footer_com_hov.png','images/arrow_left.png','images/checkbox/checkbox_on.png','images/checkbox/radiobox_on.png','images/back_hov.png','images/go_hov.png','images/go_dis.png','images/qtip_tip.png');
	$(document).ready(function()
	{
		$("#overlay").click(function()
		{
		//	overlaySet('off');
		});
		$("#overlay_super_container").click(function()
		{
		//	overlaySet('off');
		});
		$(".back").click(function()
		{
			history.go(-1);
		});
		$(".back").hover(function()
		{
			$(this).addClass("back_hov");
			},function()
			{
				$(this).removeClass("back_hov");
			});
			$(".gobutton").click(function()
			{
				doBeforeSubmit();
			});
			$(".gobutton").hover(function()
			{
				goOver();
				},function()
				{
					$(this).removeClass('gobutton_hov');
				});
				function goOver()
				{
					if($(".gobutton").attr('disabled')!='disabled')
					{
						$(".gobutton").addClass('gobutton_hov');
					}
				}
				lastBlock=$("#step1_inner");
				maxWidth=595;
				minWidth=92;
				speed=750;
			});
			function goStep2()
			{
				$("#mid1_gy_gn, #mid2_gn_gy").animate({opacity:1
					},speed);
					$("#mid1_gn_gy, #mid2_gy_gn, #mid3_gn").animate({opacity:0
						},speed);
						$("#step1_inner").animate({width:minWidth+"px",opacity:0
						},{queue:false,duration:speed
							}).parent().animate({width:minWidth+"px"
							},{queue:false,duration:speed
							});
							$("#step2_inner").animate({width:maxWidth+"px",opacity:1
							},{queue:false,duration:speed
								}).parent().animate({width:maxWidth+"px"
								},{queue:false,duration:speed
								});
								curStep=2;
							}
							function goStep3()
							{
								$("#mid2_gy_gn, #mid3_gn").animate({opacity:1
									},speed);
									$("#mid1_gn_gy, #mid1_gy_gn, #mid2_gn_gy").animate({opacity:0
										},speed);
										$("#step2_inner").animate({width:minWidth+"px",opacity:0
										},{queue:false,duration:speed
											}).parent().animate({width:minWidth+"px"
											},{queue:false,duration:speed
											});
											$("#step3_inner").animate({width:maxWidth+"px",opacity:1
											},{queue:false,duration:speed
												}).parent().animate({width:maxWidth+"px"
												},{queue:false,duration:speed
												});
												curStep=3;
											}
