$(document).ready( function()
	{	
		setVarLoad();
	}
);
		

function setVarLoad()
{
	$( '.product_list select').change( function ()
									 {
										 aid = $( this).val();
										 if ( aid == '')
										 {
											 return;
										 }
										 var str = $( this).parent().serialize();
										 var pbox = $( this).parentsUntil( '.product_list').filter( '.product_box');
										 var ajaxbox = $( '.load', pbox);
										 ajax_load( ajaxbox, true);
										 $( pbox).load( shopUrl, str, function (responseText) {  ajax_load( ajaxbox, false); setVarLoad(); });
									 }
									 );
}

function ajax_load( elm, mode)
{
	if ( mode)
	{
		$( elm).css( 'display', 'block');
	}
	else
	{
		$( elm).css( 'display', 'none');
	}
}
