// prepare the form when the DOM is ready 
$(document).ready(
	function() 
	{     
	var options = { 
    }; 
	
    // bind form using 'ajaxForm' 
	
	$('.check_bottom a').click(
		function()
		{
			$('.wecan.hidden').toggleClass('hidden');			
			$('#js_check_form').ajaxSubmit(options);
			$(this).unbind('click');
			$(this).bind('click', function(){return false});
			
			$('#check_content').css('height','263px');
			$('.check_bottom').hide();
			$('.check_bottom2').show();
			return false;
		})
		
	$('.win_bottom a').click(
		function()
		{
			$('#js_win_form').ajaxSubmit(options);
			//$(this).unbind('click');
			//$(this).bind('click', function(){return false});
			return false;
		})
	
	$('#tooltip a').click(
		function()
		{
			$('#tooltip').hide();
		});
	
	
	$('#check_content li span img').cluetip({
		 dropShadow:       false,     // set to false if you don't want the drop-shadow effect on the clueTip
		 dropShadowSteps:  6,  
		 titleAttribute:   'alt',
		 splitTitle: '|'            
	});
}); 
 

function showRequest(formData, jqForm, options) {     
    
	var queryString = $.param(formData); 
	//console.log( formData,jqForm,options );
    // jqForm is a jQuery object encapsulating the form element.  To access the 
    // DOM element for the form do this: 
    // var formElement = jqForm[0]; 
	
	//console.log(queryString);
	
    return true; 
} 
 
// post-submit callback 
function showResponse(responseText, statusText)  { 
    // for normal html responses, the first argument to the success callback 
    // is the XMLHttpRequest object's responseText property 
 
    // if the ajaxForm method was passed an Options Object with the dataType 
    // property set to 'xml' then the first argument to the success callback 
    // is the XMLHttpRequest object's responseXML property 
 
    // if the ajaxForm method was passed an Options Object with the dataType 
    // property set to 'json' then the first argument to the success callback 
    // is the json data object returned by the server 
 
    alert('status: ' + statusText + '\n\nresponseText: \n' + responseText + 
        '\n\nThe output div should have already been updated with the responseText.'); 
} 
